698
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).
SET RECORD LOCATION SETR 635 718
GET RECORD NUMBER GETR 636 720
DATA SEARCH SRCH 181 722
SWAP BYTES SWAP 637 725
FIND MAXIMUM MAX 182 727
FIND MINIMUM MIN 183 731
SUM SUM 184 735
FRAME CHECKSUM FCS 180 738
STACK NUMBER OUTPUT SNUM 638 742
STACK DATA READ SREAD 639 744
STACK DATA OVERWRITE SWRIT 640 747
STACK DATA INSERT SINS 641 750
STACK DATA DELETE SDEL 642 753
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