418
FIFW, FIFWP
7.7
Data Table Operation Instructions
: Data to be written into the table or the number of the device where the data is stored (BIN 16 bits)
: Head number of the table (BIN 16 bits)
Function
(1) Stores the 16-bit data designated by in the data table designated by .
The number of data blocks stored in the table is stored at , and the data designated by is stored in sequence from
+1.
(2) The first time the FIFW instruction is executed, any values designated by device should be cleared.
(3) The number of data blocks to be written in the data table and the data table range should be controlled by the user.
[See Program Example (2)]
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.
FIFW, FIFWP
Writing data to the data table
7.7.1
FIFW, FIFWP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The data table range exceeds the range of the corresponding device at
the execution of the FIFW instruction.
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
FIF
W
P
FIF
W
S
S
FIFW
FIFWP
D
D
S
D
S
D
S
D
D
S
D
+
1
+
2
+
3
+4
Data
tab
l
e
N
umber
of
stored
data
b
l
oc
k
s
+
1
+
2
+
3
+4
Data
tab
l
e
5
4
32
123
4
2
0
0
0
4
321
5
4
32
123
4
3
4
321
0
0
D
D
D
D
D
D
D
D
D
D
S
Data
tab
l
e
range
(
contro
ll
ed
b
y
the
user
)
D