![Omron CJ1G-CPUxx Скачать руководство пользователя страница 660](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491660.webp)
639
Table Data Processing Instructions
Section 3-17
Description
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).
Flags
Precautions
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).
Examples
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.
Index Registers
---
IR0 to IR15
Indirect addressing
using Index Registers
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048
to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,– (– –)IR0 to, – (– –)IR15
---
Area
N
R
D
Record
number (R)
Table number (N) PC memory
address
SETR(635) writes the PC memory address (m)
of the first word of record R to Index Register D.
R
IR
@
Name
Label
Operation
Error Flag
ER
ON if the specified table number (N) hasn’t 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.
to
Table number 10
PC memory
address
Record number 3
Record number: 0
R
Содержание CJ1G-CPUxx
Страница 3: ...iv N o t i c e ...
Страница 5: ...vi ...
Страница 21: ...xxii Conformance to EC Directives 6 ...
Страница 35: ......
Страница 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1143: ...Authorized Distributor Cat No W340 E1 08 Note Specifications subject to change without notice Printed in Japan ...