EasyManuals Logo

Omron CJ1M-CPU series Programming Manual

Omron CJ1M-CPU series
383 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 #280 background imageLoading...
Page #280 background image
259
Index Registers Section 6-2
record data, comparing record data, and performing calculations with record
data.
A typical application of record tables is storing manufacturing data for different
models of a product (such as temperature and pressure settings) in record
form and switching from model to model just by changing the record number.
Basically, record tables are used with the following steps:
1,2,3... 1. Define the structure of the record table with DIM(631) and set the PLC
memory address of a record in an Index Register with SETR(635).
2. Offset or increment the PLC memory address in the Index Register to read
or compare words in the record.
3. Offset or increment the PLC memory address in the Index Register to
switch to another record.
4. Repeat steps 2 and 3 as required.
Example
The following example uses Index Registers and the record-table instructions
to compare three values to words 1, 3, and 5 in each record. If a match is
found, the record number is stored in D00000.
Model A
↓
No. 2
↓
Model A
Record 2
Temperature setting
Pressure setting
Record table
Record 1
Record 2
Record N
DIM(631) defines a record table with 1,000 records of 5 words
each.
SETR(635) stores the PC memory address of the first record in
IR0.
• The first, third, and fifth words in the record are compared to three
different values.
• If all three words match their respective values, the record number
is stored in D00000 by GETR(636) and the loop is broken.
• If all three words do not match their respective values, 5 is added
to IR0 and the loop continues.

Table of Contents

Other manuals for Omron CJ1M-CPU series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ1M-CPU series and is the answer not in the manual?

Omron CJ1M-CPU series Specifications

General IconGeneral
BrandOmron
ModelCJ1M-CPU series
CategoryController
LanguageEnglish

Related product manuals