beautypg.com

Rockwell Automation 61C350 2-In/2-Out 0-10 Volt Analog Rail Module User Manual

Page 31

background image

4Ć9

4.1.4

Analog In (AIN) and Analog Out (AOUT) Instruction

Blocks

The AIN and AOUT blocks are used, respectively, to read inputs

from and write outputs to the Analog Rail module. AIN and AOUT

Blocks are supported for the 20E processor. The AIN and AOUT

blocks make 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 blocks also make 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 two blocks is shown in

figures 4.11 and 4.12.

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.11 Ć AIN Instruction Block