Publication 1763-RM001C-EN-P - October 2009
230
File Instructions
FFL - First In, First Out
(FIFO) Load
Instruction Type: output
On a false-to-true rung transition, the FFL instruction loads words or long
words into a user-created file called a FIFO stack. This instruction’s
counterpart, FIFO unload (FFU), is paired with a given FFL instruction to
remove elements from the FIFO stack. Instruction parameters have been
programmed in the FFL - FFU instruction pair shown below.
This instruction uses the following operands:
•
Source - The source operand is a constant or address of the value
used to fill the currently available position in the FIFO stack. The
address level of the source must match the FIFO stack. If FIFO is a
word size file, source must be a word value or constant. If FIFO is a
long word size file, source must be a long word value or constant.
The data range for the source is from -32768 to 32767 (word) or
-2,147,483,648 to 2,147,483,647 (long word).
EN
DN
EM
FFL
FIFO Load
Source
N7:0
FIFO
#N7:1
Control
R6:0
Length
1<
Position
0<
FFL
Execution Time for the FFL Instruction
Controller
Data Size
When Rung Is:
True
False
MicroLogix 1100
word
38.7 + 0.02
μ
s/
word
37.09
μ
s
long word
38.0 + 0.02/long
word
μ
s
37.09
μ
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
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive