632
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
Last word
in stack
Stack
pointer
PC memory address
of last word in stack
Stack pointer
Read by FIFO(633).
TB
–1
D: D00300
Last word
in stack
PC memory address
of last word in stack
Stack pointer
Stack
pointer
TB: First stack address
D: Destination word
LIFO(634)
TB
D
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
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...