712
Table Data Processing Instructions Section 3-17
Examples When CIO 000000 is ON in the following example, FIFO(633) reads the con-
tent of D00004 (TB+4 for the stack beginning at D00000) and writes that data
to D00300.
After the data is written to D00300, the stack pointer is decremented by one
and the remaining data is shifted down. (The content of D00005 is shifted to
D00004 and the content of D00006 is shifted to D00005.)
3-17-4 LAST IN FIRST OUT: LIFO(634)
Purpose Reads the last word of data written to the specified stack (the newest data in
the stack).
Ladder Symbol
Variations
Applicable Program Areas
TB:
D: D00300
TB
Read by FIFO(633).
Stack pointer
PC memory address
of last word in stack
Last word
in stack
Stack
pointer
D: D00300
–1
Last word
in stack
Stack
pointer
PC memory address
of last word in stack
Stack pointer
LIFO(634)
TB
D
TB: First stack address
D: Destination word
Variations Executed Each Cycle for ON Condition LIFO(634)
Executed Once for Upward Differentiation @LIFO(634)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK