7-152
FIFW(P)
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• The data table range exceeds the relevant device range when the FIFW instruction is
executed. (Error code: 4101)
Program Example
(1) The following program stores the data at D0 to the data table following R0 when X10 is
turned ON.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program stores the data at X20 to X2F to data table of D38 to D44 table when
X1B is turned ON, and, if there are more than 6 data blocks to be stored, turns Y60 ON and
disables the FIFW instruction.
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
R1
R2
R3
R4
Table
123
55
4
4321
11
257
R5
R0
R1
R2
R3
R4
Table
123
55
5
4321
11
R5
R0
D0
Data table range
257
Number of stored data blocks
0
Step
Instruction
Device
D39
D40
D41
D42
Table
1000
8100
5
4321
1234
0
4444
D43
0D44
D45
D38
D39
D40
D41
D42
Table
1000
8100
6
4321
1234
0
D43
4444D44
D45
D38
X20 to X2F
Data table range
123
Number of stored data blocks
123