Rockwell Automation 61C345 4 Input 4-20mA Analog Rail Module User Manual
Page 32
4Ć10
For DCS 5000 or AutoMax Version 2.1 or earlier, use the RIODEF
statement to define each channel on the Analog Rail module as a
separate register. Note that in addition to defining each channel as a
register, you can also define the overĆrange and underĆrange bits for
each channel separately. These bits can also be defined using the
RIODEF statement. Use the following format for the RIODEF
statement:
nnnnn RIODEF name[MASTER_SLOT=m, DROP=d, SLOT=s, REGISTER=r, BIT=b]
where:
nnnnn Ć Configuration task line number; range 1Ć32767.
name Ć Symbolic name of channel, ending with % (integer) for
registers, @ (booleans) for bits.
m
Ć Slot in rack containing DCS 5000/AutoMax master remote
I/O module; range 0Ć15.
d
Ć Drop number of DCS 5000/AutoMax Remote I/O Head;
range 1Ć7.
s
Ć Communication port on the DCS 5000/AutoMax Remote
I/O Head to which the Analog Rail module or Local I/O
Head is connected; range 0Ć3.
r
Ć Register number; range 0Ć3.
b
Ć Optional field defining the bit position within the register
number; range 0Ć15.
4.2.2
Configuring the Analog Rail Module with a Power
Module Interface Processor Host
The Analog Rail module is used in the Rail mode when the host is a
Power Module Interface (PMI) Processor. Beginning with AutoMax
Version 3.3, the Analog Rail module is configured using the AutoMax
Programming Executive. Refer to instruction manual J2Ć3045 for
more information.
4.2.3
DCS 5000/AutoMax Programming
When programming the Analog Rail module, it is recommended that
you monitor the state of the overĆrange and underĆrange bits for the
input channels. You can check the status of the appropriate bits
directly if they were defined in the configuration. You can also use
the BASIC expression AND with the variable name assigned to the
input channel to mask off the 12 bits of analog data and read the
values in the overĆrange and underĆrange bits. Any nonĆzero result
means that the value is out of range. See the following three
statements for examples of how to detect values out of range. Use
the hexadecimal values shown to mask off the analog data.
The value in the channel defined as CHANNEL_2 is either
overĆrange or underĆrange:
10000 RANGE_ERROR@ = CHANNEL_2 AND 3000H
The value in the channel defined as CHANNEL_2 is overĆrange:
11000 OVER_ERROR@ = CHANNEL_2 AND 1000H
The value in the channel defined as CHANNEL_2 is underĆrange:
12000 UNDER_ERROR@ = CHANNEL_2 AND 2000H