6 - 46                     6 - 46
MELSEC-Q
6   DEDICATED INSTRUCTIONS
[Operation of the local station when the SREAD instruction is being executed]
OFF
ON
OFF
ON
OFF
OFF
ON
ON
Sequence program
SREAD instruction
SREAD 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
[Operation of the other station when the SREAD instruction is being executed]
Completion of send of 
device data designated with 
the SREAD instruction.
OFF
ON
Sequence program
END 
processing
Completion device
END 
processing
END 
processing
END 
processing
(5)   When the instruction is executed using J.SREAD/G.SREAD, the next read
processing is executed in succession after one read processing is completed
while the read command is on.
When the instruction is executed using JP.SREAD/GP.SREAD, the read
processing is executed only once when the read 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 READ instruction described in Section 6.4.
The SREAD instruction only differs from the READ instruction on one point, namely
that the read notification device (D3) is designated at the end of arguments.