7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION
MELSEC-Q
(2)
Program example
Reads master function
communication status.
Executes Get Attribute
if Master Function Comm.
Status is C0
or 40
.
H
H
Get Attribute
Node No.3, Class ID = 1
Instance ID = 1
Attribute ID = 7
Writes message comm.
command to buffer memory.
Sets Message Comm.
Request to ON.
Error handling program
Gets byte length
of attribute data.
Calculates byte length
of attribute data.
Reads attribute data.
Sets Message Comm.
Request to OFF.
7 - 32
7 - 32