6 - 58 6 - 58
MELSEC-Q
6 DEDICATED INSTRUCTIONS
[Operation of the local station when the WRITE instruction is being executed]
OFF
ON
OFF
ON
OFF
OFF
ON
ON
Sequence program
WRITE instruction
WRITE instruction
execution is completed
END
processing
Send/receive
direction flag
Completion device
Status display device
at completion
Abnormal
completion
Normal
completion
One scan
END
processing
END
processing
END
processing
(5) When the instruction is executed using J.WRITE/G.WRITE, the next write
processing is executed in succession after one write processing is completed
while the write command is on.
When the instruction is executed using JP.WRITE/GP.WRITE, the write
processing is executed only once when the write command switches from off to on
(at rise).
Errors
(1) When a dedicated instruction ends with an error, the abnormal completion signal
(D2) + 1 turns on and the error code is stored in the completion status (S1) + 1.
See the following manuals regarding the error code, check the errors and take
corrective actions.
<Error codes>
4FFF
H
or less
: QCPU (Q Mode) User's Manual (Hardware Design, Maintenance
and Inspection)
C000
H
or higher: Section 11.3.3 of the Q Corresponding Ethernet Interface
Module User's Manual (Basic)
Program example
See the program example of the SWRITE instruction described in Section 6.11.
The SWRITE instruction only differs from the WRITE instruction on one point, namely
that the write notification device (D3) is not designated at the end of arguments.