EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 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 #123 background imageLoading...
Page #123 background image
85
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-15 Table Data Processing Instructions
DIMENSION
RECORD TABLE
DIM
@DIM
631
Output
Required
577
SET RECORD
LOCATION
SETR
@SETR
635
Output
Required
579
GET RECORD
NUMBER
GETR
@GETR
636
Output
Required
581
DATA SEARCH
SRCH
@SRCH
181
Output
Required
583
SWAP BYTES
SWAP
@SWAP
637
Output
Required
586
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
DIM(631)
N
LR
NR
TB
N: Table number
LR: Length of
each record
NR: Number of
records
TB: 1st table
word
Number of records
Record NR
Record 1
Defines a record table by declaring the length of each record and the
number of records. Up to 16 record tables can be defined.
Table number (N)
LR × NR words
SETR(635)
N
R
D
N: Table number
R: Record
number
D: Destination
Index Re
g
ister
R
Writes the location of the specified record (the internal I/O memory
address of the beginning of the record) in the specified Index
Register.
Internal I/O
memory address
SETR(635) writes the internal I/O
memory address (m) of the first word of
record R to Index Register D.
Table number (N)
Record
number (R)
GETR(636)
N
IR
D
N: Table number
IR: Index
Register
D: Destination
word
IR
n
Returns the record number of the record at the internal I/O memory
address contained in the specified Index Register.
Internal I/O
memory address
GETR(636) writes the
record number of
the
record that includes
I/O memory address
(m) to D.
Record number
(R)
Table number (N)
SRCH(181)
C
R1
Cd
C: 1st control
word
R1: 1st word in
range
Cd: Comparison
data
R1+(C
−1)
R1
C
Search
Match
Cd
Internal I/O
memory address
Searches for a word of data within a range of words.
SWAP(637)
N
R1
N: Number of
words
R1: 1st word in
range
N
R1
S
w
i
tc
h
es t
h
e
l
e
f
tmost an
d
r
i
g
h
tmost
b
ytes
i
na
ll
o
f
t
h
e wor
d
s
i
nt
h
e
range.
Byte position is swapped.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals