Rockwell Automation 61C346 4 Input 0-10V Analog Rail Module User Manual
Page 31

4Ć9
4.1.4
Analog In (AIN) Instruction Block
The AIN block is used to read inputs from the Analog Rail module.
AIN is supported for the A20E. The AIN block makes it possible to
update the channels on the Analog Rail module during the scan
instead of at the end of the scan (the standard AutoMate I/O update).
The block also makes it possible to update all four channels during
the scan in Rail mode, a hardware configuration which would
otherwise allow only one channel on the module to be updated. The
format of the AIN block is shown in figure 4.9.
AIN Instruction Block
The example below shows an AIN block for an Analog Rail module connected to
port 2 of an AutoMate Processor.
IOPORT - Host port to which the Analog Rail is connected (directly or
indirectly); value range 0Ć3.
LHPORT - Local I/O Head port to which the Analog Rail is connected; value
range 0Ć3. If a local I/O head is not used, the value is 0.
CHAN -
Channels on the Analog Rail module to read; value range 2 or 3.
DEST -
Register number where the value of the channel is stored.
12
.01
AIN
[ ]
EN
EN
ER
AIN
IOPORT:
LHPORT:
CHAN:
DEST:
VALUE:
2
0
3
2000
AutoMate 20E
with ports
0, 1, 2, and 3
Analog Rail with
channels 0, 1, 2, and 3
In Rail Mode
0
1
2
3
Chan 0
Chan 1
Chan 2
Chan 3
13
.01
( )
76
.00
( )
Figure 4.9 Ć AIN Instruction Block