7 - 34 7 - 34
MELSEC-Q
7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION
7.5.2 Example of writing message communication data
An example program in this section performs Set Attribute to node No.3.
For the area enclosed with a dotted line, refer to the manual for the relevant slave node
since the class ID, instance ID, and attribute ID are different depending on the actual
area and the slave node.
(1) Device list
Device Description
Reference
section
M200
Set Attribute Execute Flag
―
M201
Set Attribute Command
X02
Message Communication Completion
3.3.2 (3)
Y12
Message Communication Request
D30
Message Communication Data
3.4.2
D300 to D303
Message Communication Command
D310 to D314
Message Communication Result
D200
Master Function Communication Status
3.4.3
(2) Program example
Sets attribute data.
Set Attribute
Node No.3, Class ID = 3
Instance ID = 1
Byte length of attribute
data = 1, Attribute ID = 3
Writes message comm.
command to buffer memory.
Sets Message Comm.
Request to on.
Sets Message Comm.
Request to off.
Error handling program
Executes Set Attribute
if Master Function Comm.
Status is C0
H
or 40
H
.
Reads master function
communication status.
Writes attribute data to buffer memory.
Summary of Contents for QJ71DN91
Page 1: ...DeviceNet Master Slave Module User s Manual QJ71DN91 GX Configurator DN SW1D5C QDNU E ...
Page 2: ......
Page 233: ......