Mitsubishi Electric Melsec Q Series User Manual page 185

Ethernet interface module
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

6 DEDICATED INSTRUCTIONS
[Operation of the local station when the READ instruction is being executed]
Sequence program
READ instruction
Send/receive
instruction flag
Completion device
Status display device
at completion
Errors
Program example
Control
data
setting
command
Read
command
6 - 18
END
END
processing
processing
ON
OFF
ON
OFF
OFF
OFF
(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).
(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
or less
H
C000
or higher: User's Manual (Basic)
H
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.
READ instruction
execution is completed
: User's Manual (Hardware Design, Maintenance and
Inspection) for the CPU module used
When I/O signals of the Ethernet module are X/Y40 to X/Y5F
Processing program on read completion
Processing program on normal completion
Processing program on abnormal completion
MOV
D1
D100
MELSEC-Q/L
END
END
processing
processing
ON
Abnormal
ON
completion
Normal
completion
One scan
Clock data setting is required
Channel used by local station
Target station's CPU type (Control CPU)
Target station network number
Target station number
Arrival monitoring time (20 s)
Read data length (5 words)
Number of resend
X59: Initial normal completion signal
Performs error code reading, etc.
6 - 18

Advertisement

Table of Contents
loading

Table of Contents