![Omron CJ1G-CPUxx Instructions Manual Download Page 644](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491644.webp)
623
Table Data Processing Instructions
Section 3-17
The following diagram shows the basic structure of a record table. Each
record in a table has the same number of words.
Index Registers (IR) can be used to indirectly reference table data. Address
calculation of the record can be easily made by using the SETR(635) (SET
RECORD NUMBER) instruction and GETR(636) (GET RECORD NUMBER).
Range Instructions
The range instructions included here act on a specified range of words to find
the maximum value (MAX(182)) or minimum value (MIN(183)), search for a
particular value (SRCH(181)), calculate the sum (SUM(184)) or FCS
(FCS(180)), or swap the contents of the leftmost and rightmost bytes in the
words (SWAP(637)).
3-17-1 SET STACK: SSET(630)
Purpose
Defines a stack of the specified length beginning at the specified word.
Ladder Symbol
Variations
Applicable Program Areas
Operands
TB through TB+3: Stack control words
The first four words of the stack contain the PLC memory address of the last
word in the stack and the stack pointer (the PLC memory address of the next
word to be overwritten by PUSH(632)).
Table
Record
Same number of words
in each record
Record
Record
Range
specified in
instruction
MAX or
MIN
search
SRCH
search
SWAP
operation
SUM
calculation or
FCS
calculation
TB: First stack address
N: Number of words
SSET(630)
TB
N
Variations
Executed Each Cycle for ON Condition
SSET(630)
Executed Once for Upward Differentiation
@SSET(630)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Not supported.
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
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 ...