Appendix c, Continued) – Rockwell Automation 57C423 Common Memory Module User Manual
Page 31

CĆ3
Appendix C
(Continued)
16 Bit Register Reference Format
Use the following method to reference a 16 bit register as a single precision
integer. One statement is required in the configuration task for each variable. The
symbolic name of each value should be as meaningful as possible:
nnnnn IODEF SYMBOLIC_NAME%[ SLOT=s, REGISTER=r]
Bit Reference Format
Use the following method to reference individual bits in a register. One statement
is required in the configuration task for each variable. The symbolic name of each
bit should be as meaningful 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 precision, or long 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 a single precision 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".
SLOT - Slot number that the module is plugged into. This number may range
from 2-14. If you are referencing registers on the upper half of the card,
remember to use the slot number of the empty slot to the right of the module in
the rack.
REGISTER - Specifies the register that is being referenced. This number may
range from 0Ć32767 for both slots.
BIT - Used with boolean data types only. Specifies the bit in the register that is
being referenced. This number may range from 0Ć15.
Examples of Configuration Statements
The following statement assigns the symbolic name WINDOW! to register 2000
and 2001 on the memory module located in slot 10:
1000 IODEF WINDOW![ SLOT=10, REGISTER=2000]
The following statement assigns the symbolic name
POSITION% to register 250 of the input module located in slot 4:
1020 IODEF POSITION%[ SLOT=4, REGISTER=250]
The following statement assigns the symbolic name LIGHT@ to bit 9 of register
10 on the input module located in slot 6:
2050 IODEF LIGHT@[ SLOT=6, REGISTER=10, BIT=9]