Omron CS1G/H-CPUxx-EV1 Programming Manual page 156

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

Advertisement

Table Data Processing Instructions
Instruction
Symbol/Operand
Mnemonic
Code
DIMENSION
RECORD TABLE
DIM(631)
DIM
@DIM
631
N: Table number
LR: Length of
each record
NR: Number of
records
TB: 1st table
word
SET RECORD
SETR(635)
LOCATION
SETR
@SETR
635
N: Table number
R: Record
number
D: Destination
Index Register
GET RECORD
NUMBER
GETR(636)
GETR
@GETR
636
N: Table number
IR: Index Register
D: Destination
word
DATA SEARCH
SRCH(181)
SRCH
@SRCH
181
C: 1st control
word
R1: 1st word in
range
Cd: Comparison
data
120
Defines a record table by declaring the length of each record and the
number of records. Up to 16 record tables can be defined.
N
LR
NR
TB
Number of records
Writes the location of the specified record (the internal I/O memory
address of the beginning of the record) in the specified Index Register.
N
Table number (N)
R
D
Record
number (R)
Returns the record number of the record at the internal I/O memory
address contained in the specified Index Register.
N
IR
D
IR
Searches for a word of data within a range of words.
C
R1
R1
Cd
R1+(C−1)
Function
Table number (N)
Record 1
LR
Record NR
Internal I/O
memory address
SETR(635) writes the internal I/O
memory address (m) of the first word
R
of record R to Index Register D.
Table number (N) Internal I/O
memory address
GETR(636) writes the
record number of the
Record number
record that includes
(R)
I/O memory address
(m) to D.
Internal I/O
memory address
Search
Cd
C
Match
Section 3-15
Location
Execution
condition
Output
Required
NR words
×
Output
Required
Output
Required
n
Output
Required

Advertisement

Table of Contents
loading

Table of Contents