Справочник Пользователя для Mitsubishi Electronics A1SJ61BT11

Скачать
Страница из 294
 
 
 
11 - 11 
11   COMMUNICATION BETWEEN THE MASTER STATION AND THE 
LOCAL STATION 
MELSEC-QnA 
 
11.3.2 Local station program 
(1)   Program for parameters 
Local stations do not need this. 
 
(2)   Program for communication 
Refer to Section 11.3.1 (2), for the relationship among the programmable 
controller CPU device, master station's buffer memory, and the local station's 
buffer memory. 
 
(a)   Local station No.1 
 
X0000 X000F
SM400
X0001
N0
M500
MC
M500
N0
K1M600 K1
FROM H0000 H0680
M601
Y0030
SM402
SET Y0000
SM400
K4M200 K4
FROM H0000 H00E0
K4M32 K2
FROM H0000 H0162
D200
K8
FROM H0000 H02E0
D304
K4
FROM H0000 H01E4
SM400
K4M0
K2
TO H0000 H0160
D300
K4
TO H0000 H01E0
MCR
N0
 Write the remote register 
(RWw)
 
Control program by the received data from the 
master station and the local station No.2. 
Program to create the transmission data to the  
master station and the local station No.2.  
 
Refresh instruction 
 
Host station data link 
is proceeding
Read the remote input (RX) 
 
Read the remote output (RY) 
 
Read the remote register (RWr) 
 
Read the remote register (RWw) 
 
Write the remote output  
(RY) 
 
Station No.2 local 
station error