4 reading and writing data in application tasks – Rockwell Automation 57C411 Resolver Input Module User Manual
Page 24

4Ć6
4.3.2
Bit Reference
Use this method to reference individual inputs on the module.
Common clock status and control bits are typically referenced using
this method. The symbolic name of each bit should be as meaningful
as possible:
nnnnnăăRIODEF SYMBOLIC_NAME@[ MASTER_SLOT=m,
ăăăăDROP=d, 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 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".
MASTER_SLOT Ć Slot number that the master remote I/O module is
plugged into. This number may range from 0Ć15.
DROP Ć Drop number of the slave remote I/O module that is in the
same rack as the input module. This number may range from 1Ć7.
SLOT Ć Slot number that the module is plugged into. This number
may range from 0Ć15.
REGISTER Ć Specifies the register that is being referenced. This
number may range from 0Ć4.
BIT Ć Used with boolean data types only. Specifies the bit in the
register that is being referenced. This number may range from 0Ć15.
4.3.3
Examples of Remote I/O Definitions
The following statement assigns the symbolic name SHAFT% to
register 0 on the input module located in slot 4 of remote I/O drop 3.
This remote drop is connected to the remote I/O system whose
master is located in slot 15 in the master rack:
1020ăăRIODEF SHAFT%[ MASTER_SLOT=15, DROP=3,
ăăăSLOT=4, REGISTER=0]
The following statement assigns the symbolic name CLCK_EN@ to
bit 6 of register 3 on the input module located in slot 7 of remote I/O
drop 2. This remote drop is connected to the remote I/O system
whose master is located in slot 6 in the master rack:
2050ăăRIODEF CLCK_EN@[ MASTER_SLOT=6,
ăăăDROP=2, SLOT=7, REGISTER=3, BIT=6]
4.4
Reading and Writing Data in Application
Tasks
In order for an input module to be referenced by application
software, it is first necessary to assign symbolic names to the
physical hardware. This is accomplished with either IODEF or
RIODEF statements in the configuration task.