Data Table Operation Instructions; Data Table Operation Instructions; Writing Data To The Data Table - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

7.7

Data Table Operation Instructions

Writing data to the data table

FIFW(P)
High
Basic
Process
performance
FIFW
FIFWP
(S): Data to be written into the table or the number of the device where the data is stored (BIN 16 bits)
(D): Head number of the table (BIN 16 bits)
Setting
Internal device
data
Bit
(S)
(D)
Processing details
• Stores the 16-bit data designated by (S) in the data table designated by (D). The number of data blocks stored in the table
is stored at (D), and the data designated by (S) is stored in sequence from (D)+1.
Data table
D
2
D
+1
5432
D
+2
1234
D
+3
0
D
+4
0
0
S
4321
• When the FIFW(P) instruction is executed for the first time, device values specified by (D) should be cleared.
• The number of data blocks to be written in the data table and the data table range should be controlled by the user.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
Error
Error details
code
4100
The FIFW(P) instruction was executed when the value of (D) was FFFFH.
4101
The data table range has exceeded the range of the corresponding devices
at execution of the FIFW(P) instruction.
7 APPLICATION INSTRUCTIONS
498

7.7 Data Table Operation Instructions

LCPU
Redundant Universal
Command
Command
R, ZR
Word
Number of stored data blocks
Data table range
(controlled by the user)
J\
U\G
Bit
Word
Data table
D
3
D
5432
+1
D
1234
+2
D
4321
+3
D
0
+4
0
Q00J/
Q00/
Q01
D
FIFW
S
S
D
FIFWP
Zn
Constant
K, H
QnH
QnPH
QnPRH
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents