![Mitsubishi Electric A1SJ71DN91 Скачать руководство пользователя страница 78](http://html.mh-extra.com/html/mitsubishi-electric/a1sj71dn91/a1sj71dn91_user-manual_239712078.webp)
7. PROGRAMMING
7
−
8
MELSEC-A
7.5.2
Message communication - writing
The following sample program represents a case of writing attributes of expected packet rate
for the polling connection from the station number 3.
Reading X0
Write send data to buffer
memory
Set attribute write
command
Station number 3 slave station
Class ID = 5
Instance ID = 2
Send data byte length=2
Attribute ID =9
Write request data to
buffer memory
Set message
communication request
Read result from buffer
memory
Reset message
communication request
Error processing program
X0F
X2
Y12
X2
Y12
Writing
Writing
H102
MOVP
D0
D0
H110
H0
TOP
K4
H0503
MOVP
D1
K2
MOVP
D2
H209
MOVP
D3
D10
H120
H0
FROMP
K6
SET
Writing
K0
<>
D11
RST
Y12
RST
RST
Write
attributes
D30
H130
H0
TOP
K1
Reading
Write
attributes
Write
attributes
K1000
MOV
D30
SET
Y12
Set onto D30 the data to
be written.