11 - 5
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE
LOCAL STATION
MELSEC-QnA
11.3 Creating a Program
11.3.1 Program for the master station
(1) Program for 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
K2 D0MOV
K7 D1MOV
K1 D2MOV
D0 K3TO H0004 H0001
K0 D3MOV
D3 K1TO H0004 H0006
M301
H2101 D4MOV
H2102 D5MOV
D4 K2TO H0004 H0020
M301
RST
Station information
Parameter
setting
Number of connected
modules
Number of retries
Number of automatic
return modules
Operation specification
when the CPU goes
down (stop)
Local station
(station No.1, occupies
1 station)
Local station
(station No.2, occupies
1 station)