Message Communication; Message Communication - Reading - Mitsubishi Electric A1SJ71DN91 User Manual

Devicenet master module
Table of Contents

Advertisement

7. PROGRAMMING
7.5

Message Communication

7.5.1

Message communication - reading

Read
attributes
X0
X0F
Writing
Reading
X2
Y12
<>
=
This section describes a sample sequence program to conduct message communication.
The following sample program represents a case of reading attributes of expected packet rate
for the polling connection from the station number 3.
X2
Y12
K0
D11
K0
D11
MOVP
H101
MOVP
H0503
MOVP
K2
MOVP
K9
TOP
H0
H110
D0
FROMP
H0
H120
D10
Error processing program
/P
D14
K2
MOVP
D14
FROMP
H0
H130
D20
7
7
MELSEC-A
D0
Set attribute read
command
D1
Station number 3 slave station
Class ID =5
D2
Instance ID = 2
D3
Attribute ID = 9
K4
Write request data to
buffer memory
SET
Reading
SET
Y12
Set message
communication request
K5
Read result from buffer
memory
DECP D14
Calculate read length of
received data
D14
INCP
D14
Z
K0Z
Read received data
RST
Y12
Reset message
communication request
RST
Reading
RST
Read
attributes

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aj71dn91

Table of Contents