708
Table Data Processing Instructions Section 3-17
Description PUSH(632) writes the content of S to the address indicated by the stack
pointer (TB+3 and TB+2) and increments the stack pointer by one.
After PUSH(632) has been used to write data into a stack, FIFO(633) and
LIFO(634) can be used to read data from the stack.
Flags
Precautions The stack must be defined in advance with SSET(630).
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area TB S
m
n
n
m
D
D+1
D+2
D+3
S
m
m+1
n
n
m+1
D
D+1
D+2
D+3
A
A
A
PLC memory
address
PLC
memory
Write A.
Pointer
Increment
pointer by 1.
Pointer
Name Label Operation
Error Flag ER ON if the address specified by the stack pointer (TB+3
and TB+2) exceeds the last word in the stack.
(This is a stack overflow error.)
OFF in all other cases.