7-114
7.7 Data Table Operation Instructions
7.7.1 Writing data to data table
FIFW
(2) When the FIFW(P) instruction is executed for the first time, any values specified for
should be cleared.
(3) The number of data blocks to be written in the data table and the data table range should be
managed by a user.
[Refer to Program Example (2)]
O
peration Error
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The data table range exceeds the corresponding device range when the FIFW(P)
instruction is executed.
(Error code: 4101)
Program Example
(1) In the following program, the data in Var_D0 are stored to the data table from R0 when X10
turns ON.
[Structured ladder]
[ST]
FIFWP(X10,Var_D0,R0);
[Operation]
d
R1
R2
R3
R
4
Ta
b
le
-
123
55
4
4
321
11
257
R5
R0
R1
R2
R3
R
4
Ta
b
le
-
123
55
5
4
321
11
R5
R0
Var_D
0
Data ta
b
le range
257
Num
b
er of store
d
d
ata
b
loc
k
s
0
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: ......