Appendix f, Continued) – Rockwell Automation 57C421B Pulsetach Input Module/DCS 5000/AutoMax User Manual

Page 62

Advertising
background image

FĆ2

Appendix F

(Continued)

When referenced as a double integer of 32 bits, register r" contains the

highĆorder 16 bits and register r+1" contains the lowĆorder 16 bits.

16ĆBit Register Reference

Use the following method to reference 16 bits as a single integer value. The

counter, comparator, timer, and ISCRshould be referenced this way. One

statement is required in the configuration task for each variable. The symbolic

name of the register should be as descriptive as possible:

nnnnn

IODEF SYMBOLIC_NAME%[ SLOT=s, REGISTER=r]

Bit Reference

Use the following method to reference individual bits in a register. Counter status

and control bits are typically referenced this way. One statement is required in

the configuration task for each bit. The symbolic name of the bit should be as

descriptive as possible:

nnnnn

IODEF SYMBOLIC_NAME@[ SLOT=s, REGISTER=r, BIT=b]

where:
nnnnn=

BASIC statement number. This number may range from

1Ć32767.

SYMBOLIC_NAME! = A symbolic name chosen by the user and ending with

(!). This indicates a double integer data type and all

references will access registers r" and r+1".

SYMBOLIC_NAME% = A symbolic name chosen by the user and ending with

(%). This indicates an integer data type and all

references will access register r".

SYMBOLIC_NAME@ =A symbolic name chosen by the user and ending with

(@). This indicates a boolean data type and all

references will access bit number b" in register r".

s =

Slot number that the module is plugged into. This

number may range from 0Ć15.

r =

Specifies the register that is being referenced. For this

module, using long integers, this number must be either

0 or 3. For all other references, this number may range

from 0Ć7.

b =

Used with boolean data types only. Specifies the bit in

the register that is being referenced. This number may

range from 0Ć15.

Advertising