Example Of Writing Message Communication Data - Mitsubishi Electric QJ71DN91 User Manual

Melsec q series devicenet master-slave module
Hide thumbs Also See for QJ71DN91:
Table of Contents

Advertisement

7 PROGRAMMING FOR EXECUTING THE MASTER FUNCTION

7.5.2 Example of writing message communication data

7 - 34
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
M200
M201
X02
Y12
D30
D300 to D303
D310 to D314
D200
(2) Program example
Description
Set Attribute Execute Flag
Set Attribute Command
Message Communication Completion
Message Communication Request
Message Communication Data
Message Communication Command
Message Communication Result
Master Function Communication Status
Error handling program
MELSEC-Q
Reference
section
3.3.2 (3)
3.4.2
3.4.3
Sets attribute data.
Writes attribute data to buffer memory.
Reads master function
communication status.
Executes Set Attribute
if Master Function Comm.
Status is C0
or 40
.
H
H
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.
7 - 34

Advertisement

Table of Contents
loading

Table of Contents