11 COMMUNICATION BETWEEN THE MASTER STATION AND THE
LOCAL STATION
11.2 Creating a Program
11.2.1 Program for the master station
Parameter
setting
(1) Program for parameter
This program automatically initiates the data link when the PC CPU starts
running.
[When debugging]
X0040 X004F
M300
M301
M301
PLS
SET
MOV
K2
MOV
K7
MOV
K1
TO
H0004
H0001
MOV
TO
H0004
H0006
MOV
H2101 D4
MOV
H2102 D5
TO
H0004
H0020
RST
11 - 4
MELSEC-A
M300
M301
Number of connected
D0
units
D1
Number of retries
Number of automatic
D2
return units
D0
K3
Operation specification
K0
D3
when the CPU goes
down (stop)
D3
K1
Local station
(station No.1, occupies
1 station)
Local station
(station No.2, occupies
1 station)
D4
K2
Station information
M301