Master Function (Message Communication Function) - Mitsubishi QJ71DN91 User Manual

Devicenet master-slave module programmable logic controller
Table of Contents

Advertisement

3 SPECIFICATIONS

3.2.2 Master function (Message communication function)

3 - 8
The message communication function is used to get and set the attribute data of a
slave node.
(1) Getting attributes
PLC CPU
TO
SET Y12
FROM
X02
X05
FROM
X05
X02
Message communication
completion
: In DeviceNet, the area used for reading and writing via communication
is specified by the numbers representing the class ID, instance ID, and
attribute ID. For details, refer to the manual of each slave node.
1) The TO instruction of the sequence program sets to get attributes 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 data, which is set in the "message
communication command" area in the buffer memory, is sent to the
slave node and the message communication starts.
3) When the QJ71DN91 receives data from the slave node, it is processed
as follows:
• The specific data of the slave node that is set in the "message
communication command" area is stored in the "message
communication data" area of the buffer memory.
• The processing result of message communication is stored in the
"message communication result" area of the buffer memory.
4) The message communication is completed when the processing result
is stored in the "message communication result" area of the buffer
memory, and the message communication completion (X02) is
automatically turned ON.
5) Upon normal completion, the data in 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.
6) 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.
QJ71DN91
0110
H
1)
Message
communication
command area
011F
H
Message
2)
communication
request
0120
H
Message
6)
communication
result area
012F
H
0130
H
Message
communication
data area
01A7
H
Message
4)
communication
complete
5)
MELSEC-Q
Slave node (MAC ID)
Class
2)
Instance
Attribute
Attribute
Instance
Attribute
3)
Class
Instance
Attribute
Instance
Attribute
Attribute
Attribute
3 - 8

Advertisement

Table of Contents
loading

Table of Contents