![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030757.webp)
717
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.
Depending on the settings for the record length (LR) and number of records
(NR), it is possible that a single table (from TB and TB+LR
×
NR–1) will overlap
two data areas. Verify that no problems will arise before specifying a table that
overlaps a data area boundary.
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)
Record 0
Record 1
Record NR–1
LR
×
NR words
Name
Label
Operation
Error Flag
ER
ON if LR or NR is 0000.
OFF in all other cases.
LR: D00100
NR: D00200
N
LR
NR
TB
Record 0
Record 1
Record 2
Record length: 10 words
Number of records: 3
10 words
10 words
10 words
Table number 2
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...