3. Instructions
582
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
GETR(636) finds which record includes the PLC memory address contained in the specified Index
Register and writes that record number in D. The PLC memory address contained in the Index Register
does not have to be the first word in the record; it can be any word in the record.
Note The record table must be defined in advance with DIM(631).
Example Programming
When CIO 0.00 is ON in the following example, GETR(636) finds the record number of the record that
contains the PLC memory address in Index Register IR11 and writes this record number to D1000.
IR
n
GETR(636) writes the record number
of the record that includes PC memory
address m to D.
PC memory
address
Table number (N)
Record number
(R)
IR
D1000
D1000
to
Table number 10
Record number: 0
Record number 3
PC memory
address
Record containing
address 10000.
0.00