7-154
FIFR(P)
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]
(2) The following program stores the data at D0 in the data table D38 to D43, and, when the
table stores 5 data, stores the data at D39 of the data table in R0, when X1C is turned ON.
[Ladder Mode] [List Mode]
[Operation]
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 blocks
234
Data table
Number of stored data blocks
Step
Instruction
Device
123
1000
0
1234
55
4
0
D42
D41
D43
D39
D40
D38
D44
0
D45
4444
D0
123
1000
4444
1234
55
5
0
D42
D41
D43
D39
D40
D38
D44
0
D45
0
55
4
0
D42
D41
D43
D39
D40
D38
D44
0
D45
1234
R0
1000
123
4444
Data table
Data
table
Data table Data table
Number of
stored
data tables
Number of
stored
data tables
Number of
stored
data tables
Executes the FIFRP
instruction when D38=5.
Executes the FIFWP
instruction when X1C
turns ON again