2-475
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Stack and Table Instructions
2
StackFIFO and StackLIFO
StackFIFO and StackLIFO
StackFIFO: Removes the bottom value from a stack.
StackLIFO: Removes the top value from a stack.
Instruction Name FB/FUN Graphic expression ST expression
StackFIFO First In First Out FUN StackFIFO(InOut, OutVal,
Size, Num);
StackLIFO Last In First Out FUN StackLIFO(InOut, OutVal,
Size, Num);
Variables
Name Meaning I/O Description Valid range Unit Default
Size Number of
stack ele-
ments
Input Number of stack array
elements
Depends on data type.
--- 1
InOut[]
(array)
Stack array
In-out
Array that functions as stack
Depends on data type.
--- ---
OutVal Output
value
Value or structure output
from stack
Num Number of
stored
elements
Number of elements stored
in stack
Out Return
value
Output Always TRUE TRUE only
--- ---
(@)StackFIFO
EN ENO
Out
InOut
OutVal
Size
Num
(@)StackLIFO
EN ENO
Out
InOut
OutVal
Size
Num