The text of a manual · part 7 of 16
SLC 500 4-Channel Analog I/O Modules User Manual: 4 - Module Operation and System Considerations, pages 39 to 46
Pages 39 to 46 of 113, from SLC 500 4-Channel Analog I/O Modules User Manual
The original document is the PDF (1.2 MB). 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 1746-NI4
Page 39
Chapter
4
Module Operation and System Considerations
This chapter describes: • Interface between the Module and Processor • System Considerations
Interface between the Module and the Processor
This section describes how to set up an analog module in a SLC 500 system.
Entering Module ID Codes When configuring an analog module for an SLC 500 system using your programming software, a list of the different I/O modules, including the analog modules, is most likely provided for you. If a list is not provided, you need to enter the module identification code when configuring the slot. Refer to the table below for the appropriate analog module ID code. Using the Hand-Held Terminal (HHT) firmware v1.1, enter the proper MODULE ID CODE under the “other” selection. Version 2.0 or later of the HHT firmware provides a list of I/O modules. Refer to the following publications for complete information: • your programming software’s user manual • the Hand-Held Terminal User Manual
1
Catalog No.
Module ID Code
1746-NI4
4401
1746-NIO4I
3201
1746-NIO4V
3202
1746-NO4I
5401
1746-NO4V
5402
Publication 1746-UM005B-EN-P - June 2004
Page 40
4-2
Module Operation and System Considerations
Addressing Analog Modules NI4 - Each input channel of the NI4 is addressed as a single word in the input image table. The NI4 uses a total of 4 words in the input image table. The converted values from channels 0 through 3 are addressed as input words 0 through 3 respectively for the slot where the module resides. EXAMPLE
If you want to address input channel 2 of the NI4 in slot 4, you would address it as input word 2 in slot 4 (I:4.2).
NIO4I and NIO4V - Each input channel of the NIO4I and NIO4V is addressed as a single word in the input image table and each output channel of the module is addressed as a single word in the output image table. Both the NIO4I and NIO4V use a total of 2 input words and 2 output words. The converted input values from input channels 0 and 1 are addressed as words 0 and 1 of the slot where the module resides. The output values for the output channels 0 and 1 are addressed as output words 0 and 1 of the slot where the module resides. EXAMPLE
If you want to address output channel 0 of the NIO4I in slot 3, you would address it as output word 0 in slot 3 (O:3.0).
NO4I and NO4V - Each output channel of the NO4I and NO4V is addressed as a single word in the output image table. Both modules use a total of 4 output words. The converted output values from output channels 0 through 3 are addressed as words 0 through 3 respectively for the slot where the module resides. EXAMPLE
Publication 1746-UM005B-EN-P - June 2004
If you want to address output channel 3 of the NO4I in slot 3, you would address it as output word 3 in slot 3 (O:3.3).
Page 41
Module Operation and System Considerations
4-3
The following illustration shows I/O addressing for the analog modules.
SLC 500 SLC 5/01 or 5/02 Data Files Output Image Input Image Slot e
Address
1746-NI4 Analog Input Module Input Scan
Input Image 4 words
Input Channel 0
Word 0
I:e.0
Input Channel 1
Word 1
I:e.1
Input Channel 2
Word 2
I:e.2
Input Channel 3
Word 3
I:e.3
Bit 15
1746-NIO4I & NIO4V Analog Combination Modules
SLC 500 SLC 5/01 or 5/02 Data Files Slot e
Address Output Scan
Output Image 2 words
Output Image Slot e
Output Channel 0
Word 0
O:e.0
Output Channel 1
Word 1
O:e.1
Input Channel 0
Word 0
I:e.0
Input Channel 1
Word 1
I:e.1
Bit 15 Input Scan
Input Image
Input Image 2 words
Bit 15
Output Image Input Image
Bit 0
Bit 0
1746-NO4I & NO4V Analog Output Modules
SLC 500 SLC 5/01 or 5/02 Data Files Slot e
Bit 0
Output Scan
Output Image 4 words
Address Output Channel 0
Word 0
O:e.0
Output Channel 1
Word 1
O:e.1
Output Channel 2
Word 2
O:e.2
Output Channel 3
Word 3
O:e.3
Bit 15
Bit 0 e = slot # of module
Publication 1746-UM005B-EN-P - June 2004
Page 42
4-4
Module Operation and System Considerations
Bit Level Addressing The following bit maps show bit level addressing for the analog inputs and outputs. The input channel converter resolution is 16 bits, or 1 word. The output channel converter resolution is 14 bits and is loaded from the most significant 14 bits of the associated output word. The two least significant bits (O:e.0/0 and O:e.0/1) of the output word have no effect on the actual output value.
1746-NI4 msb lsb
15
14
13
12
11
10
9
CH 0 INPUT 8 7
15
14
13
12
11
10
9
CH 1 INPUT 8 7
I:e.0 I:e.1
6
5
4
3
6
5
4
3
7
6
5
4
CH 3 INPUT 8 7
6
5
4
2
1
0
2
1
0
3
2
1
0
3
2
1
0
CH 2 INPUT
I:e.2 15
14
13
12
11
10
9
I:e.3 15
14
13
12
11
10
9
8
1746-NIO4I & NIO4V msb lsb
O:e.0 15
14
13
12
11
10
9
CH 0 OUTPUT 8 7
XX 6
5
4
3
2
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1 msb
14
13
12
11
10
9
CH 0 INPUT 8 7
6
5
4
3
2
1
0
6
5
4
3
2
1
0
CH 1 INPUT
I:e.1 15 1746-NO4I & NO4V
0 lsb
I:e.0 15
0
XX
CH 1 OUTPUT
O:e.1
1
14
13
12
11
10
9
8
7 msb lsb
15
14
13
12
11
10
9
6
5
4
3
6
5
4
3
15
14
13
12
11
10
9
CH 1 OUTPUT 8 7
15
14
13
12
11
10
9
CH 2 OUTPUT 8 7
O:e.1 O:e.2 O:e.3 15
14
13
12
11
10
9
CH 3 OUTPUT 8 7 e = slot # of module x = bit not used
Publication 1746-UM005B-EN-P - June 2004
XX
CH 0 OUTPUT 8 7
O:e.0
6
5
4
3
2
1
0
X
X
2
1
0
2
1
0
X
X
1
0
XX
6
5
4
3
2
Page 43
Module Operation and System Considerations
4-5
Processor Update of Analog Data The analog input and output data is updated by the processor once during each scan of the user program. The table below shows typical analog update scan times and the number of input and output bits for the specified modules. If an application requires processor updates of the analog data more frequently than once per scan, use an Immediate Input or an Immediate Output instruction. An Immediate Input or Output instruction typically updates 16 bits (or 1 analog channel) in 1 millisecond. Refer to your programming software’s user manual for more information.
Typical Time for Analog Data Updates to the Processor’s Input and Output Image Once per processor scan (Automatic)
10 milliseconds for typical 1K program
Using immediate Input or Output Instruction
1 millisecond per analog channel
Number of Input and Output Bits Representing Analog Data Description
Input Bits
Output Bits
NI4
64
-
NI4OI and NIO4V (2 input and 2 Output channels)
32
32
NO4I and NO4V
-
64
Monitoring the Input and Output Data The analog input and output data can be monitored in several different radices using your programming software. Viewing the radix as decimal allows the analog input and output data to be viewed as decimal representations of integer words. When monitoring in binary radix, data is viewed in two’s complement representation for negative values. A description of two’s complement data is available in Appendix B.
Publication 1746-UM005B-EN-P - June 2004
Page 44
4-6
Module Operation and System Considerations
If you are using the Hand-Held Terminal (HHT) or the Data Table Access Module™ (DTAM) to monitor input and output data, the binary radix is the only available option. To view the analog input and output data in decimal radix, the data must be moved to an integer data file.
Converting Analog Input Data Analog inputs convert current and voltage signals into 16 bit two’s complement binary values. The table below identifies the current and voltage input ranges for the input channels, the number of significant bits for the applications using input ranges less than full scale, and their resolution
Voltage/Current Range
Decimal Representation
Number of Significant Bits
Resolution per LSB
-10V dc to +10V dc - 1LSB
-32,768 to +32,767
16 bits
305.176 µV
0 to 10V dc - 1LSB
0 to 32,767
15 bits
0 to 5V dc
0 to 16,384
14 bits
1 to 5V dc
3,277 to 16,384
13.67 bits
-20 mA to +20 mA
-16,384 to +16,384
15 bits
0 to +20 mA
0 to 16,384
14 bits
4 to +20 mA
3,277 to 16,384
13.67 bits
1.22070 µA
To determine an approximate voltage that an input value represents, use one of the following equations:
10V 32,768
× input value = input voltage(V)
The Input Value is the decimal value of the word in the input image for the corresponding analog input. For example, if an input value of ±16,021 is in the input image, the calculated input voltage is: 10V × ±16,201 = ±4.889221(V) 32,768 It should be noted that this is the calculated value. The actual value may vary within the accuracy limitations of the module.
Publication 1746-UM005B-EN-P - June 2004
Page 45
Module Operation and System Considerations
4-7
To determine an approximate current that an input value represents, you can use the following equation:
20 mA 16,384
× input value = input current (mA)
The Input Value is the decimal value of the word in the input image for the corresponding analog input. For example, if an input value of 4096 is in the input image, the calculated input current is: 20 mA × 4096 = 5(mA) 16,384 It should be noted that this is the calculated value. The actual value may vary within the accuracy limitations of the module.
Converting Analog Output Data Analog outputs convert a 16-bit two’s complement binary value into an analog output signal. Because the analog output channels have a 14-bit converter, the 14 most significant bits of this 16-bit number are the bits that the output channel converts. The NIO4I and NO4I support two and four current outputs respectively, ranging from 0 mA to a maximum of 21 mA. The NIO4V and NO4V support two and four voltage outputs respectively, ranging from -10 to +10 Volts dc. The following tables identify the current and voltage output ranges for the output channels, the number of significant bits for the applications using output ranges less than full scale, and their resolution.
Current Range
Decimal Representation for Output Word
Number of Significant Bits
Resolution per LSB
0 to 21 mA - 1LSB
0 to +32,764
13 bits
2.56348 µA
0 to +20 mA
0 to +31,208
12.92 bits
4 to +20 mA
6,242 to +31,208
12.6 bits
Publication 1746-UM005B-EN-P - June 2004
Page 46
4-8
Module Operation and System Considerations
Voltage Range
Decimal Representation for Output Word
Number of Significant Bits
-10 to +10V dc - 1LSB
-32,768 to +32,764
14 bits
0 to +10V dc - 1LSB
0 to +32,764
13 bits
0 to 5V dc
0 to +16,384
12 bits
1 to 5V dc
+3,277 to +16,384
11.67 bits
Resolution per LSB
1.22070 mV
Use the following equation to determine the decimal value for the current output:
32,768 21 mA
× Desired Current Output (mA) = Output Decimal V alue
For example, if an output value of 4 mA is desired, the value to be put in the corresponding word in the output image can be calculated as follows: 32,768 21 mA
× 4 mA = 6242
Note: The actual resolution for analog current outputs is 2.56348 µA per LSB, where the LSB position in the output word is indicated as:
LSB 15
14
13
12
11
10
9
8
7
6
5
4
3
2
X
X
1
0
X = Bit Not Used
Use the following equation to determine the decimal value for the voltage output:
32,768 10V dc
× Desired Voltage Output (V dc) = Output Decimal V alue
For example, if an output value of 1V dc is desired, the value to be put in the corresponding word in the output image can be calculated as follows: 32,768 10V dc
× 1V dc = 3277
Note: The actual resolution for analog voltage outputs is 1.22070 mV per LSB, where the LSB position in the output word is indicated as:
LSB 15
14
13
12
11
X = Bit Not Used
Publication 1746-UM005B-EN-P - June 2004
10
9
8
7
6
5
4
3
2
X
X
1
0