7-118
7.7 Data Table Operation Instructions
7.7.2 Reading oldest data from data table
FIFR
(2) In the following program, the data in Var_D0 are stored to the data table D38 to D43 when
X1C turns ON, and when the number of stored data reaches 5, the last-stored data in D39 of
the data table are stored to Var_R0.
[Structured ladder]
[ST]
FIFWP(X1C,Var_D0,D38);
FIFRP(D38=5,Var_R0,D38);
[Operation]
Data
ta
bl
e
-123
-1000
0
1234
55
4
0
D
42
D
41
D
43
D
39
D
40
D
38
D
44
Data
ta
bl
e
N
um
b
er
of
store
d
d
ata
ta
bl
es
0
D
45
4444
Var
_
D
0
Data
ta
bl
e
-123
-1000
4444
1234
55
5
0
D
42
D
41
D
43
D
39
D
40
D
38
D
44
0
D
45
Data
ta
bl
e
0
55
4
0
D
42
D
41
D
43
D
39
D
40
D
38
D
44
0
D
45
1234
Var
_R0
E
xecutes
the
FIFR
P
i
nstruct
i
on
w
hen
D
38=5.
-1000
-123
4444
E
xecutes
the
FIFW
P
i
nstruct
i
on
w
hen
X
1C
turns
ON
aga
i
n
N
um
b
er
of
store
d
d
ata
ta
bl
es
N
um
b
er
of
store
d
d
ata
ta
bl
es
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......