Instruction
Symbol/Operand
Mnemonic
Code
DIMENSION
RECORD TABLE
DIM(631)
DIM
@DIM
631
NR
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
SWAP BYTES
SWAP(637)
SWAP
@SWAP
637
R1
N: Number of
words
R1: 1st word in
range
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
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)
Switches the leftmost and rightmost bytes in all of the words in the
range.
Byte position is swapped.
N
R1
Function
Table number (N)
Record 1
LR × NR words
Record NR
Internal I/O
memory address
SETR(635) writes the internal I/O
memory address (m) of the first word of
R
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.
n
Internal I/O
memory address
Search
Cd
C
Match
N
2. Summary of Instructions
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
Page
569
2
571
573
575
578
83
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers