EasyManuals Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 User Manual

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #757 background imageLoading...
Page #757 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CJ - REFERENCE MANUAL 08-2008
CategoryController
LanguageEnglish

Related product manuals