![Omron CJ1G-CPUxx Instructions Manual Download Page 639](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491639.webp)
618
Table Data Processing Instructions
Section 3-17
All of these instructions define or operate on a group of words. The group of
words in a stack are defined by SSET(630), the group of words in a record-
table are defined by DIM(631), and the group of words used in a range
instruction are defined independently in each instruction.
Stack Instructions
Stack instructions act on specially defined data tables called stacks. The first
two words of the stack contain the PLC memory address of the last word in
the stack and the second two words contain the stack pointer (the PLC mem-
ory address of the word that will be overwritten by the next PUSH(632)
instruction).
LAST IN FIRST OUT
LIFO
634
DIMENSION RECORD TABLE DIM
631
SET RECORD LOCATION
SETR
635
GET RECORD NUMBER
GETR
636
DATA SEARCH
SRCH
181
SWAP BYTES
SWAP
637
FIND MAXIMUM
MAX
182
FIND MINIMUM
MIN
183
SUM
SUM
184
FRAME CHECKSUM
FCS
180
STACK NUMBER OUTPUT
SNUM
638
STACK DATA READ
SREAD
639
STACK DATA OVERWRITE
SWRIT
640
STACK DATA INSERT
SINS
641
STACK DATA DELETE
SDEL
642
Group
Purpose
Instructions
Stack
Operate FIFO (first-in first-out) or LIFO
(last-in first-out) data tables.
SSET(630), PUSH(632),
FIFO(633), LIFO(634),
SREAD(639), SWRIT(640),
SINS(641), SDEL(642), and
SNUM(638)
Record-table
Operate tables of data made up of
records. (Record size is user-defined.)
DIM(631), SETR(635), and
GETR(636)
Range
Operates on a range of words to find
values such as the checksum, a particu-
lar value, the maximum value, or mini-
mum value in the range.
FCS(180), SRCH(181),
MAX(182), MIN(183),
SUM(184), and SWAP(637)
Instruction
Mnemonic
Function code
Page
I/O memory
Stack region
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...