Table Data Processing Instructions - Omron SYSMAC CS/CJ Series Programming Manual

Table of Contents

Advertisement

Table Data Processing Instructions

3-15 Table Data Processing Instructions
Instruction
Symbol/Operand
Mnemonic
Code
SET STACK
SSET(630)
SSET
@SSET
630
TB: 1st stack
address
N: Number of
words
PUSH ONTO
PUSH(632)
STACK
PUSH
@PUSH
632
TB: 1st stack
address
S: Source word
LAST IN FIRST
LIFO(634)
OUT
LIFO
@LIFO
634
TB: 1st stack
address
D: Destination
word
FIRST IN FIRST
FIFO(633)
OUT
FIFO
@FIFO
633
TB: 1st stack
address
D: Destination
word
116
Defines a stack of the specified length beginning at the specified word and
initializes the words in the data region to all zeroes.
TB
N
TB+1
TB+2
Last word
TB+3
in stack
Stack
pointer
Writes one word of data to the specified stack.
PLC memory
TB
address
S
TB
TB+1
TB+2
TB+3
Reads the last word of data written to the specified stack (the newest data in the
stack).
TB
Stack
D
pointer
TB
TB+1
TB+2
TB+3
Reads the first word of data written to the specified stack (the oldest data in the
stack).
TB
D
TB
TB+1
Stack
pointer
TB+2
TB+3
First-in first-out
Function
PLC memory
address
TB
m+(N-1)
m+(N – 1)
PUSH(632)
PLC memory
address
TB
Newest
TB+1
data
TB+2
m–1
TB+3
Stack
pointer
m–1
The pointer is
Last-in first-out
decremented.
PLC memory
address
TB
Oldest
data
TB+1
TB+2
TB+3
Stack
pointer
Section 3-15
N words
in stack
PLC memory
address
TB
TB+1
TB+2
TB+3
PLC memory
address
m–1
A is
left un-
chang-
ed.
PLC memory
address
m–1
m–1
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents