beautypg.com

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

Page 33

background image

4Ć11

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