420
FIFR, FIFRP
Function
(1) Stores the oldest data ( +1) input to the table designated by at the device designated by .
After the execution of the FIFR instruction, the data in the table is all compressed up by one block.
(2) Users should attempt to avoid executing the FIFR instruction if the value stored at is 0. [See Program Example (1)]
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program stores the R1 data from the table R0 to R7 at D0 when X10 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The FIFR instruction was executed when the value of was 0.
4101
The data table range exceeded the range of the corresponding device
at the execution of the FIFR instruction.
D
D
S
+
1
+
2
Data
tab
l
e
N
umber
of
stored
data
b
l
oc
k
s
5
4
32
123
4
3
0
0
+
3
4
321
Stores
0
.
+4
+
1
+
2
Data
tab
l
e
123
4
4
321
2
0
0
+
3
0
5
4
32
+4
D
D
D
D
D
D
D
D
D
D
S
D
D
Step
Instruction
Device
R1
R2
R3
R4
Data table
123
55
5
4321
123
0
123
R5
0
R6
R7
R0
R1
R2
R3
R4
Data table
55
4321
4
123
234
0
R5
0
R6
R7
R0
D0
0
Number of stored data bloc
k
s
234
Data table
Number of stored data bloc
k
s