First-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 First-In-First-Out (FIFO) instruction removes the first entry in the table (TBL), and moves the value to a specified location (DATA). All other entries of the table are shifted up one location. 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.