The text of a manual · part 4 of 9
Analog Input Module (Cat. No. 1771-IFE Series C) User Manual, pages 31 to 40
Pages 31 to 40 of 82
The original document is the PDF (727 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Allen-Bradley 1771-AL
Page 31
Module Programming
Module Scan Time
3–5
Scan time is defined as the amount of time it takes for the input module to read the input channels and place new data into the data buffer. Scan time for your module is shown in Appendix A. The following description references the sequence numbers in Figure 3.4. Following a block transfer write “1” the module inhibits communication until after it has configured the data “2,” performed calibration check “3” (if requested), scanned the inputs “4,” and filled the data buffer “5.” Write block transfers, therefore, should only be performed when the module is being configured or calibrated. Any time after the second scan begins “6,” a BTR request “7” can be acknowledged. This interrupts the scan and the BTR empties the buffer. (If RTS is enabled, a BTR will only occur after the specified time period. Refer to chapter 4.) Following the BTR, the input module inhibits block transfer communications with the programmable controller until it has scanned its inputs “8” and new data is ready ”9.” The input module repeats the scan sequence “10,” updating the input values until another block transfer request is received. Therefore, BTRs will only be completed as frequently as the total scan time of the input module.
-
Page 32
3–6
Module Programming
Figure 3.4 Block Transfer Time -) *" 1,%.!
.%(!
.%(!
.%(!
/'! .* +!,"*,( /).%' .%(!
)*.!
Note: Configure/Calibration time: ! (* ! - (* ! - Scan time: (- "*, %)+/.- *, (- "*, -%)#'!3!) ! %)+/.- *,
Chapter Summary
In this chapter, you learned how to program your programmable controller. You were given sample programs for your PLC-2, PLC-3 and PLC-5 family processors. You also read about module scan time.
,
Page 33
Chapter
Chapter Objectives
4
-
In this chapter, we describe;
• configuring your module’s features • conditioning your inputs • entering your data.
Configuring Your Input Module
Because of the many analog devices available and the wide variety of possible configurations, you must configure your module to conform to the analog device and specific application that you have chosen. Data is conditioned through a group of data table words that are transferred to the module using a block transfer write instruction. Before continuing, make sure you read “Setting the Configuration Plugs on the Module” in chapter 2. The software configurable features available with the Analog Input Module (cat. no. 1771-IFE/C) are:
• • • • • • • input range selection input type data format digital filtering real time sampling scaling to engineering units calibration
Note that digital filtering and scaling values must be entered in BCD format only. Change your display format to BCD in the PLC-5 and PLC-3 to accomplish this. Note: Programmable controllers that use 6200 software programming tools can take advantage of the IOCONFIG utility to configure this module. IOCONFIG uses menu-based screens for configuration without having to set individual bits in particular locations. Refer to your 6200 software literature for details. Note: Programmable controllers that use process configuration and operation software (cat. no. 6190–PCO) can take advantage of those development and runtime tools used for the application of programmable controllers in process control. The PCO worksheets and the menu-driven configuration screens and faceplates let you configure, test/debug and operate the I/O module. Refer to your 6190-PCO software literature for details.
-
Page 34
4–2
Configuring Your Module
During normal operation the processor transfers 1 to 39 words to the module when you program a block transfer write instruction to the module’s address. This BTW file contains configuration words, and calibration words (words 38 and 39) for each channel. When a block transfer transfer length of 0 is programmed, the 1771-IFE/C will respond with the series A default length of 37.
Input Range Selection
You can configure the module to operate with any of five voltage or three current ranges. You select individual channel ranges using the designated words of the block transfer write instruction (Table 4.A). Use BTW word 1 for range selection of channels 1 through 8, and BTW word 2 for channels 9 through 16. Two bits are allocated for each channel. Table 4.A Input Range Selection Bits Bit 01
Bit 00
Voltage or current input
-
-
($ ($
-
- ($ - ($
-
+ ($ ($
($ - ($
#%)( $# )'
Dec. Bits
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Octal Bits
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Description
$# +
$# +
Table 4.B shows the incremented voltage or current assigned to each bit for the seven different input ranges. For example, if the channel 1 input range is 0 to +5V and the actual incoming signal is at mid-range (+2.5V) the value in the module’s data word would be 0000 1000 0000 0000 (binary) or 2048 (decimal). The input is 2048/4096, or 1/2 of full scale.
$#
Page 35
Configuring Your Module
4–3
Table 4.B Input Voltage and Current Ranges for the Analog Input Module Nominal Voltage or Current Range
Corresponding 4-Digit BCD Output Range
Corresponding 12-Bit Binary Output Range
Voltage or Current Per Bit
-)
-)
-)
-)
-)
-)
3 -)
3 -)
3 -)
-)
3 -)
3 -)
-
-)
-)
-)
-)
-)
-)
3 -)
3 -)
3 -)
Note: %(*.- )( *!+
Input Type
Select single-ended or differential inputs using the designated bit in the configuration file. Inputs to a particular module must be all single-ended or all differential. Set BTW word 3, bit 08 (bit 10 octal) as shown below. Table 4.C Selecting SingleĆended or Differential Inputs Decimal Bit 8 (Octal Bit 10)
Input type
%(*.-,
,%(#&!3!( ! %(*.-,
Dec. Bits
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Octal Bits
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
Data Format
**!( %1
-%&-!+
Description -%'! %(*.-2*! "%&-!+
You must indicate what format will be used to read data from your module. Typically, you select BCD with PLC-2 processors, and 2’s complement binary with PLC-3 and PLC-5 processors. See Appendix D for details on data format. You use BTW word 3, bits 09-10 (11-12 octal) to set the data format. Table 4.D Selecting the Data Format Decimal Bit 10 (Octal Bit 12)
Decimal Bit 09 (Octal Bit 11)
Data Format
,%#(! !
-
Page 36
4–4
Configuring Your Module
Digital Filtering
The module has hardware-based high frequency filters on all channels to reduce the effect of electrical noise on the input signal. Software digital filtering is meant to reduce the effect of process noise on the input signal. Digital filtering is selected using BTW word 3, bits 00-07. The digital filter equation is a classic first order lag equation (Figure 4.1). Using a step input change to illustrate the filter response (Figure 4.2), you can see that when the digital filter constant time elapses, 63.2% of the total response is reached. Each additional time constant achieves 63.2% of the remaining response. Figure 4.1 Digital Filter Equation t Yn = Yn-1 + Where:
t + TA
(Xn - Yn-1)
Figure 4.2 Digital Filter Lag Equation Illustration
#'
Digital filter time constant values of 0.00 BCD to 0.99 BCD (0.00 BCD = no filter; 0.99 BCD = maximum filter) are set in bits 00 through 07 of word 3 of the block transfer write instruction. If an invalid digital filter value is entered (i.e., 0.1F), bit 02, word 1 of the block transfer read instruction will be set. If an invalid digital filter value is entered, the module will not perform digital filtering. If you use the digital filtering feature, the filter time constant value chosen will apply to all input signals.
0
-
Page 37
Configuring Your Module
Real Time Sampling
4–5
The real time sampling (RTS) mode of operation provides data gathered at precisely timed intervals for use by the processor. BTW word 3 bits 11–15 (13–17 octal) are used to set the real time sampling interval. RTS is invaluable for time based functions (such as PID and totalization) in the PLC. It allows accurate time based calculations in local or remote I/O racks. In the RTS mode the module scans and updates its inputs at a user defined time interval (T) instead of the default interval. The module ignores block transfer read (BTR) requests for data until the sample time period elapses. The BTR of a particular data set occurs only once at the end of the sample period and subsequent requests for transferred data are ignored by the module until a new data set is available. If a BTR does not occur before the the end of the next RTS period, a time-out bit is set in the BTR status area. When set, this bit indicates that at least one data set was not transferred to the processor. (The actual number of data sets missed is unknown.) The time-out bit is reset at the completion of the BTR. Set appropriate bits in the BTW data file to enable the RTS mode. You can select RTS periods ranging from 100 milliseconds (ms) to 3.1 seconds. Refer to the table below for actual bit settings. Note that the default mode of operation is implemented by placing all zeroes in bits 11–15 (13–17 octal). Table 4.E Bit Settings for the Real Time Sample Mode
Decimal Bits
15
14
13
12
11
Octal Bits
17
16
15
14
13
-
-
15
14
13
12
11
17
16
15
14
13
"
-
- %
-
- %
-
-
- %
%
-
-
- %
-
-
%
-
-
-
%
-
-
-
-
%
-
-
-
-
-
%
-
-
-
-
-
-
%
-
-
-
-
-
%
-
-
%
-
-
%
-
-
-
%
-
-
-%
-
-
-
%
-
-
-
--%
-
-
-
-
%
-
-
-
-
-
%
-
-
-
-
-
-
-
-
-
-
- %
-
-
-
-
-
-
-
-
- %
-
-
-
-
-
) )
Sample Time Period
Sample Time Period
% %
- -) --
Page 38
4–6
Configuring Your Module
Scaling
Your module can perform linear conversion of unscaled data to engineering units, (for example; gallons/minute, degrees C, degrees F and pounds/square inch). Unscaled data in the module has a range of 0 through 4095 for the unipolar ranges (0 to 5V dc/0 to 20mA and 1 to 5V dc/4 to 20mA); and -4095 to +4095 (8190) for the bipolar ranges (+5V/+20mA and +10V). BTW words 6 through 37 are the scaling words for channels 1 through 16. Channel 1 minimum scaling values are set in word 6, and maximum scaling values are set in word 7. Channel 2 minimum scaling values are set in word 8, and maximum scaling values are set in word 9, and so on for the other channels. The format of this data is 4-digit BCD. The resolution at the module of scaled values is the same as for unscaled data: one part in 4095 for 0 to 5V dc/0 to 20mA and 1 to 5V dc/4 to 20mA ranges; and one part in 8190 for the +5V/+20mA and +10V ranges. Resolution at the processor, however, is determined by the scaled ranges (i.e., if 0 = minimum and 500 = maximum, resolution is now 1 part in 500). Each input channel can be scaled independently of the other channels. Note: To achieve the 0 to +10V range you must use bipolar scaling. Select the +10V range and scale for + the actual intended range. If you need 0 to 100 gpm, set scaling values at -100 and +100. You will effectively be creating a 0 to 10V range that is scaled from 0 to 100.
Implementing the Scaling Feature You implement the scaling feature by:inserting minimum and maximum scaled values in the appropriate configuration words using BCD format. A. If any of the minimum or maximum values are negative, set the appropriate sign bits in the minimum or maximum sign bit word B. If a single channel is scaled, all channels must be scaled, and all 37 configuration words must be written to the module.
Scaling Ranges The maximum range of the scaling values is +9999 BCD. These values must be entered in BCD. Typically, invalid values are “minimum greater than maximum,” or “minimum equal to maximum.” If invalid values are entered into the scaling words, the corresponding input in the BTR data will be zero and the invalid scaling bit will be set.
-
Page 39
Configuring Your Module
Important:
4–7
Scaling values must always be entered in BCD format, even if the data format chosen is binary. If scaling is selected for any channel, all channels must be scaled. If scaling is not required on certain channels, set those to the default input range: 0 to 4095 for 0 to + voltage or current ranges, and -4095 to +4095 for - to + voltage or current ranges.
If scaling is not selected, the module requires specific minimum BTR file lengths for the number of channels used. The BTW file length can be set to 3 words. Table 4.F shows the required BTW and BTR file lengths. Table 4.F Block Transfer Read and Write File Lengths Channels Used
BTR File Length
BTW File Length
-
-
-
-
-
-
-
-
-
--
Important:
Use decimally addressed bit locations for PLC-5 processors.
The module will return values outside the scaling range. For example, if a module is in the 0–5V dc mode, scaled for 0 to 5000, and has –2V dc applied, it will return –2000.
Page 40
4–8
Configuring Your Module
Default Configuration
If a write block of five words, with all zeroes, is sent to the Analog Input Module (cat. no. 1771-IFE series C), default selections will be:
• 1 to 5V dc or 4 to 20mA (dependent on configuration jumper setting) BCD data format no real time sampling (RTS) no filtering no scaling single-ended inputs
• • • • •
Table 4.G Analog Input Module (1771-IFE/C) Block Transfer Write Configuration Block Dec. Bits
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Octal Bits
17
16
15
14
13
12
11
10
07
06
05
04
03
02
01
00
-
-
-
-
&(,+
Description
-
0 - +"),
--
-
0 +"), - #&(,+
-
-
-
--
-
-
%#&#%,%
-
-
-
--
-
-
- 0 %#&#%,% - 0 0 %#&#%,%
0
-
0 %#&#%,%
⇓
⇓
⇓
⇓
- 0
-
-
-
--
-
-
-
-
-
-
--
-
-
- -0 --