3. Instructions
580
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SETR(635) stores the PLC memory address of the first word of the specified record in the specified
Index Register.
Note • The record table must be defined in advance with DIM(631).
• Valid record numbers range from 0 to NR-1, where NR is the number of records specified when the table
was defined with DIM(631).
Example Programming
When CIO 0.00 is ON in the following example, SETR(635) finds the PLC memory address of the first
word of record 3 of table number 10 and stores this address in Index Register IR11.
R
IR@
SETR(635) writes the PC memory address (m)
of the first word of record R to Index Register D.
PC memory
address
Table number (N)
Record
number (R)
R
Table number 10
Record number 3
PC memory
address
0.00