6.15 Table
6.15.1 Last in first out
Input/output Operand
Data type
TBL
VW, IW, QW, MW, SW, SMW, LW, T, C, *VD, *LD, *AC
word
DATA
VW, IW, QW, MW, SW, SMW, LW, AC, T, C, AQW, *VD, *LD, *AC
integer
LIFO:Instruction moves the latest (or last) entry in the table
to the output memory address.Remove the last entry in
the table (TBL) and move the value to the location
specified by DATA.Each time the instruction is executed,the
number of entries in the table reduces 1.
error conditions:
0006 Indirect address
0091 Operand range
SM1.5 Empty list
Special memory bit:
SM1.5 Empty list
Table Format:
VW200
The maximum number of entries
VW202
Entry count
W204
Data 0
VW206
Data 1
VW208
Data 2
..........
.........
189
Made with FlippingBook - Online magazine maker