6 - 16 6 - 16
MELSEC-Q
6 DEDICATED INSTRUCTIONS
[Operation of the local station when the READ instruction is being executed]
Sequence program
READ instruction
OFF
ON
READ instruction
execution is completed
END
processing
Send/receive
instruction flag
OFF
ON
Completion device
Status display device
at completion
Abnormal
completion
Normal
completion
One scan
OFF
OFF
ON
ON
END
processing
END
processing
END
processing
(5) When executing the instruction using JP.READ/GP.READ, the read processing is
executed only once when the read instruction flag 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
The following example shows a program that reads data from D10 to 14 of station
number 4 to D200 to 204 of station number 1.
When I/O signals of the Ethernet module are X/Y40 to X/Y5F
Clock data setting is required
Channel used by local station
Read data length (5 words)
Processing program on read completion
Processing program on normal completion
Processing program on abnormal completion
Performs error code reading, etc.
MOV
D1
D100
Arrival monitoring time(20 s)
Target station network number
Target station number
Number of resend
X59: Initial normal completion
signal
Target station's CPU type (target CPU)
Control
data
setting
command
Read
command
Содержание QJ71E71-100 Series
Страница 2: ......
Страница 214: ...6 65 6 65 MELSEC Q 6 DEDICATED INSTRUCTIONS MEMO ...
Страница 219: ......