Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 7 of 14

Analog Input Module, Cat. No. 1771-IFE, User Manual: 4 - Configuring Your Module

Pages 30 to 38 of 63, from Analog Input Module, Cat. No. 1771-IFE, User Manual

The original document is the PDF (516 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.

For the Allen-Bradley 1771-IFE

Page 30

Chapter

4

Configuring Your Module

Chapter Objectives

In this chapter you will read how to configure your module’s features, condition your inputs and enter 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 Module Selection Plugs” in chapter 2. The software configurable features available with the Analog Input Module (cat. no. 1771-IFE) are: input range selection input type data format digital filtering real time sampling scaling to engineering units 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.

4-1

Page 31

Chapter 4 Module Configuration

Input Range Selection

You can configure the module to operate with any of five voltage or three current ranges. You can select individual channel ranges using the designated words of the write block transfer 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. For example, for channel 1, set word 1 bits 00-01 as shown in Table 4.A. Table 4.A Input Range Selection Bits Bit 01

Bit 00

Voltage or current input

0

0

1 to 5 V DC, 4 to 20 mA1

0

1

0 to 5 V DC, 0 to 20 mA1

1

0

-5 to +5 V DC, -20 to +20 mA1,2

1

1

-10 to +10 V DC2, 0 to 10 V DC

1 Current input mode selected by configuration plug. 2 Configurable using bi-polar scaling.

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. 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 Voltage or Binary Output Range Current Per Bit

+1 to +5V

0000 to +4095

0000 to + 4095

0.98mV

0 to 5V

0000 to +4095

0000 to +4095

1.22 mV

-5 to +5V

-4095 to +4095

-4095 to +4095

1.22mV

-10 to +10V

-4095 to +4095

-4095 to +4095

2.44mV

0 to +20mA

0000 to +4095

0000 to +4095

.0049mA

+4 to +20mA

0000 to +4095

0000 to +4095

.0039mA

-20 to +20mA

-4095 to +4095

-4095 to +4095

.0049 mA

Note: Voltage and current input ranges are selectable on a per channel basis.

4-2

Page 32

Chapter 4 Module Configuration

Input Type

You can 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 in Table 4.C. Table 4.C Selecting Single-ended or Differential Inputs Decimal Bit 8 (Octal Bit 10)

Data Format

Input type

1 differential inputs

0 single-ended inputs

You must also 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 C for details on data format. You use BTW word 3 bits 09-10 (11-12 octal) to set the data format (Table 4.D). Table 4.D Selecting the Data Format Decimal Bit 10 (Octal Bit 12)

Decimal Bit 09 (Octal Bit 11)

Data Format

0

0

BCD

0

1 not used

1

0 two's complement binary

1

1 signed magnitude binary

4-3

Page 33

Chapter 4 Module Configuration

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:

(Xn - Yn-1)

t + TA

Yn = present output, filtered peak voltage (PV) Y n -1 = previous output, filtered PV t = module channel update time (seconds) TA = digital filter time constant (seconds) X n = present input, unfiltered PV

Figure 4.2 Digital Filter Lag Equation Illustration 100%

63% Amplitude 0

Unfiltered Input TA = 0.01 sec TA = 0.5 sec TA = 0.99 sec 0

0.01

0.5

0.99

Time in Seconds

16723

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. 4-4

Page 34

Chapter 4 Module Configuration

Real Time Sampling

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 Table 4.E 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

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0 0

Default Settings =

15

14

13

12

11

17

16

15

14

13

No RTS, Default settings

1

0

0

0

0

1.6s

1

100ms

1

0

0

0

1

1.7s

1

0

200ms

1

0

0

1

0

1.8s

1

1

300ms

1

0

0

1

1

1.9s

1

0

0

400ms

1

0

1

0

0

2.0s

1

0

1

500ms

1

0

1

0

1

2.1s

0

1

1

0

600ms

1

0

1

1

0

2.2s

0

1

1

1

700ms

1

0

1

1

1

2.3s

0

1

0

0

0

800ms

1

1

0

0

0

2.4s

0

1

0

0

1

900ms

1

1

0

0

1

2.5s

0

1

0

1

0

1.0s

1

1

0

1

0

2.6s

0

1

0

1

1

1.1s

1

1

0

1

1

2.7s

0

1

1

0

0

1.2s

1

1

1

0

0

2.8s

0

1

1

0

1

1.3s

1

1

1

0

1

2.9s

0

1

1

1

0

1.4s

1

1

1

1

0

3.0s

0

1

1

1

1

1.5s

1

1

1

1

1

3.1s

Sample Time Period

Sample Time Period

Single-ended inputs - 25 ms Differential inputs - 12.5 ms

4-5

Page 35

Chapter 4 Module Configuration

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 polar 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 or 12-bit binary. 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: 1.

Inserting minimum and maximum scaled values in the appropriate configuration words

2.

If any of the minimum or maximum values are negative, set the appropriate sign bits in the minimum or maximum sign bit word

3.

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.

4-6

Page 36

Chapter 4 Module Configuration

Important: 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

1

5

7

2

6

9

3

7

11

4

8

13

5

9

15

6

10

17

7

11

19

8

12

21

9

13

23

10

14

25

11

15

27

12

16

29

13

17

31

14

18

33

15

19

35

16

20

37

Important: Use decimally addressed bit locations for PLC-5 processors.

4-7

Page 37

Chapter 4 Module Configuration

Default Configuration

If a write block of five words, with all zeroes, is sent to the Analog Input Module (cat. no. 1771-IFE), 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 Figure 4.3 Analog Input Module (1771-IFE) Block Transfer Write Configuration Block

Decimal 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

Word 1

8

7

6

5

4

3

2

1

Range Selection - Channels 1 thru 8

2

16

15

14

13

12

11

10

9

Range Selection - Channels 9 thru 16

3

Real Time Sampling

Data Format

Input Type

Real time sampling, data format, input type and digital filter

Digital Filter

4

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

Sign Bits, minimum scaling values

5

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

Sign Bits, maximum scaling values

6

Channel 1 - minimum scaling

7

Channel 1 - maximum scaling

8

Channel 2 - minimum scaling

9

Channel 2 - maximum scaling

10

Channel 3 - minimum scaling

⇓ 37

4-8

Description

⇓

⇓

⇓ Channel 16 - maximum scaling

Page 38

Chapter 4 Module Configuration

Bit/Word Descriptions for the Analog Input Module Block Transfer Write Configuration Block Note that decimal bits are shown, with octal bits in parentheses.

Chapter Summary

Word

Decimal Bit (Octal Bit)

Description

Word 1 and 2

Bits 00-15 (00-17)

Input range selections allow the user to configure the inputs for any of 7 input voltage or current ranges. Two bits are required for each channel. See Table 4.A.

Word 3

Bits 00-07 (00-07)

Digital filter reduces effect of noise on input. See "Digital Filtering" on page 4-4.

Bit 08 (10)

Input type, set bit for differential mode on all channels. Reset (0) = single-ended. Refer to Table 4.C

Bits 09-10 (07-10)

Data format matches format of processor. See Table 4.D.

Bits 11-15 (13-17)

Real time sampling will default to 12.5ms for differential mode and 25ms for single-ended, greater with filtering selected. See appendix A for timing details. See Table 4.E for other real time intervals.

Word 4

Bits 00-15 (00-17)

Minimum sign bits, when set, designate negative minimum scaling values for the corresponding input channels. Bit 00 corresponds to channel 1, bit 01 corresponds to channel 2, etc.

Word 5

Bits 00-15 (00-17)

Maximum sign bits, when set, designate maximum scaling values that are negative. Maximum scaling value must be greater than minimum on any particular channel. Bit 00 corresponds to channel 1, bit 01 corresponds to channel 2, etc.

Words 6-37

Bits 00-15 (00-17)

Minimum and maximum scaling values for each channel. Enter in BCD format.

In this chapter you learned how to configure your module’s features, condition your inputs and enter your data.

4-9