Omron CS1G/H-CPUxxH Instructions Manual page 644

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

Advertisement

Table Data Processing Instructions
Range Instructions
Range
specified in
instruction
3-17-1 SET STACK: SSET(630)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
The following diagram shows the basic structure of a record table. Each
record in a table has the same number of words.
Table
Record
Record
Record
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).
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)).
MAX or
MIN
search
Defines a stack of the specified length beginning at the specified word.
SSET(630)
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
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)).
Same number of words
in each record
SRCH
search
SUM
calculation or
FCS
calculation
TB
TB: First stack address
N
N: Number of words
Step program areas
Subroutines
OK
Section 3-17
SWAP
operation
SSET(630)
@SSET(630)
Not supported.
Interrupt tasks
OK
623

Advertisement

Table of Contents
loading

Table of Contents