Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 759

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Table Data Processing Instructions
Description
Flags
Precautions
Examples
Area
Index Registers
Indirect addressing
using Index Registers
SETR(635) stores the PLC memory address of the first word of the specified
record in the specified Index Register. The following diagram shows the basic
operation of SETR(635).
Table number (N)
PC memory
address
R
Record
number (R)
Name
Label
Error Flag
ER
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).
When CIO 000000 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
N
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048
to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,– (– –)IR0 to, – (– –)IR15
SETR(635) writes the PC memory address (m)
of the first word of record R to Index Register D.
IR@
Operation
ON if the specified table number (N) has not been defined
with DIM(631).
ON if the specified record number (R) exceeds the high-
est record number in the table (NR–1).
OFF in all other cases.
Table number 10
Record number: 0
to
Record number 3
Section 3-17
R
D
IR0 to IR15
---
PC memory
address
719

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents