Publication 1762-RM001C-EN-P
File Instructions 14-11
FFU - First In, First Out
(FIFO) Unload
Instruction Type: output
On a false-to-true rung transition, the FFU instruction unloads words or
long words from a user-created file called a FIFO stack. The data is
unloaded using first-in, first-out order. After the unload completes, the
data in the stack is shifted one element toward the top of the stack and
the last element is zeroed out. Instruction parameters have been
programmed in the FFL - FFU instruction pair shown below.
EU
DN
EM
FFU
FIFO Unload
FIFO #N7:0
Dest N7:1
Control R6:0
Length 1<
Position 0<
FFU
Table 14.12 Execution Time for the FFU Instruction
Controller Data Size When Rung Is:
True False
MicroLogix 1200 word 33
µ
s + 0.8
µ
s/word 10.4
µ
s
long word 36
µ
s + 1.5
µ
s/ long word 10.4
µ
s
MicroLogix 1500 word 27.7
µ
s + 0.65
µ
s/word 9.7
µ
s
long word 29.4
µ
s + 1.25
µ
s/long word 9.7
µ
s
(EU)
(EM)
(DN)
FFL
FIFO LOAD
Source N7:10
FIFO #N7:12
Control R6:0
Length 34
Position 9
FFU
FIFO UNLOAD
FIFO #N7:12
Dest N7:11
Control R6:0
Length 34
Position 9
(EN)
(DN)
(EM)
Destination Position
N7:11 N7:12 0
N7:13 1
FFU instruction
unloads data from
stack #N7:12 at
position 0, N7:12
N7:14 2
3
4
5 34 words are allocated
for FIFO stack starting
at N7:12, ending at
N7:45
6
7
Source 8
N7:10 9
FFL instruction loads
data into stack
#N7:12 at the next
available position, 9
in this case.
N7:45 33
Loading and Unloading of Stack #N7:12
FFL and FFU Instruction Pair