Omron CS1G/H-CPUxxH Instructions Manual page 639

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

Advertisement

Table Data Processing Instructions
Stack Instructions
618
Instruction
LAST IN FIRST OUT
DIMENSION RECORD TABLE DIM
SET RECORD LOCATION
GET RECORD NUMBER
DATA SEARCH
SWAP BYTES
FIND MAXIMUM
FIND MINIMUM
SUM
FRAME CHECKSUM
STACK NUMBER OUTPUT
STACK DATA READ
STACK DATA OVERWRITE
STACK DATA INSERT
STACK DATA DELETE
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.
Group
Stack
Operate FIFO (first-in first-out) or LIFO
(last-in first-out) data tables.
Record-table
Operate tables of data made up of
records. (Record size is user-defined.)
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.
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).
Mnemonic
LIFO
634
631
SETR
635
GETR
636
SRCH
181
SWAP
637
MAX
182
MIN
183
SUM
184
FCS
180
SNUM
638
SREAD
639
SWRIT
640
SINS
641
SDEL
642
Purpose
I/O memory
Stack region
Section 3-17
Function code
Page
632
635
638
640
642
644
646
650
653
656
659
662
665
668
671
Instructions
SSET(630), PUSH(632),
FIFO(633), LIFO(634),
SREAD(639), SWRIT(640),
SINS(641), SDEL(642), and
SNUM(638)
DIM(631), SETR(635), and
GETR(636)
FCS(180), SRCH(181),
MAX(182), MIN(183),
SUM(184), and SWAP(637)

Advertisement

Table of Contents
loading

Table of Contents