Last-In-First-Out Table

Inputs/Outputs Operands Data Types
TBL VW, IW, QW, MW, SW, SMW, LW, T, C, *VD, *AC, *LD WORD
DATA VW, IW, QW, MW, SW, SMW, LW, AC, T, C, AQW, *VD, *AC, *LD INT

Memory Ranges ENO Errors Instruction Support for S7-200 CPUs SIMATIC/International Mnemonics
The Last-In-First-Out (LIFO) instruction removes the last entry in the table (TBL), and outputs the value to a specified location (DATA). The entry count in the table is decremented for each instruction execution.

Error Conditions that Set ENO = 0:

SM1.5 (empty table), SM4.3 (run-time), 0006 (indirect address), 0091 (operand out of range)

This instruction affects the following Special Memory bits:

SM1.5 is set to 1 if you try to remove an entry from an empty table.