![Omron CJ1G-CPUxx Скачать руководство пользователя страница 658](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491658.webp)
637
Table Data Processing Instructions
Section 3-17
addresses in data tables. Use DIM(631) to divide data into records and then
use SETR(635) to store the first address of the desired record in an Index
Register. The Index Register can then be used as a pointer in other instruc-
tions, such as read, write, search, or compare instructions.
As an example, if temperatures, pressures, or other set values are stored as
records and the records for various models are combined into a table, it is
easy to read the set values for each models for any particular conditions.
The two record-table instructions associated with DIM(631) are SETR(635)
and GETR(636). SETR(635) sets the leading PLC memory address of the
specified record number in the specified Index Register. GETR(636) outputs
the record number of the record that includes the specified Index Register
value (PLC memory address).
Flags
Precautions
Records in a registered table are identified by their record numbers, which
range from 0 to NR–1.
Examples
When CIO 000000 is ON in the following example, DIM(631) defines record
table number 2 with three 10-word records. The table begins at D00300.
Number of records
Table number (N)
LR
×
NR words
Record NR–1
Record 0
Record 1
Name
Label
Operation
Error Flag
ER
ON if LR or NR is 0000.
OFF in all other cases.
Record length: 10 words
Number of records: 3
Table number 2
Record 0
Record 1
Record 2
10 words
10 words
10 words
LR: D00100
NR: D00200
N
LR
NR
TB
Содержание 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 ...