Omron CS1G/H-CPUxxH Instructions Manual page 658

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Table Data Processing Instructions
Flags
Precautions
Examples
N
LR
NR
TB
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.
Number of records
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).
Name
Label
Error Flag
ER
Records in a registered table are identified by their record numbers, which
range from 0 to NR–1.
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.
LR: D00100
NR: D00200
Table number 2
Record 0
Record 1
Record 2
Table number (N)
Record 0
Record 1
Record NR–1
Operation
ON if LR or NR is 0000.
OFF in all other cases.
Record length:
Number of records: 3
10 words
10 words
10 words
Section 3-17
LR × NR words
10 words
637

Advertisement

Table of Contents
loading

Table of Contents