3 - 10 3 - 10
MELSEC-Q
3 SPECIFICATIONS
(3) Reading the communication error information
PLC CPU QJ71DN91 Slave node (MAC ID)
SET Y12
X02
FROM
Message
communication
request
1)
2)
5)
Message
communication
command area
0110
H
011F
H
4)
2)
TO
I/O
communication
X05
X02
FROM
X05
Message
communication
result area
0120
H
012F
H
Message
communication
data area
0130
H
01A7
H
Message
communication
complete
Message communication
completion
Class 1
Attribute
Attribute
Instance
Class
Attribute
3)
Slave
information
storage area
Instance
Instance
The status of each slave station is stored during I/O communication.
Attribute
Attribute
Attribute
Attribute
Attribute
Attribute
Instance
1) The TO instruction of the sequence program sets to read the
communication error information in the "message communication
command" area of the buffer memory.
2) When the message communication request (Y12) is turned ON by the
sequence program, the error information of the applicable slave node
that has been accumulated in the QJ71DN91 is read and processed as
follows:
• The error information of the slave node that was set by the "message
communication command" area is stored in the "message
communication data" area of the buffer memory.
• The processing result of the message communication is stored in the
"message communication result" area of the buffer memory.
3) When the processing result is stored in the "message communication
result" area of the buffer memory, the message communication
completion (X02) is automatically turned ON.
4) The communication error information of the slave node, which is stored
in the "message communication data" area of the buffer memory, is
loaded onto the PLC CPU by the FROM instruction of the sequence
program.
5) If the message communication error signal (X05) is turned ON, the
FROM instruction reads the contents of the "message communication
result" area, and the cause of the error is verified.