12 - 5
MELSEC-QnA
12 COMMUNICATION IN THE COMPOUND SYSTEM
12.2 Creating a Program
12.2.1 Program for the master station
(1) Parameter program
Program for the parameter this program automatically initiates the data link when
the programmable controller CPU starts running.
[When debugging]
X0040 X004F
PLS M300
M300
SET M301
M301
K3 D0MOV
Number of
connected modules
K7 D1MOV
Number of retries
K1 D2MOV
Number of automatic
return modules
D0 K3TO H0004 H0001
K0 D3MOV
Operation specification
when the CPU goes down
(stop)
D3 K1TO H0004 H0006
M301
H0101 D4MOV
Remote I/O station
(station No.1)
H1202 D5MOV
H2104 D6MOV
D4 K3TO H0004 H0020
Remote device station
(station No. 2)
Local station (station No.4)
Station information
M301RST
Parameter setting