Instruction manual
7. EXAMPLES OF SEQUENCE PROGRAMS
IMSRM52-E5
60
7.2 Example of Initialize Sequence Program
X0 X0F
01: Staion number 1
4: Occupies 4 stations
1: Remote device station
Data link startup
Master unit module initialize
Station information
H1401
Operation specification when the CPU
goes down
(0 = Dato link stop when a fault)
Error invalid station specification
(0 = No error invalid station)
Reserved station specification
(0 = No reservation made)
N
umber of automatic recovery stations
(1 station)
N
umber of retries (3 times)
N
umber of connected stations (1 station)
MOV K1 D0
MOV K3 D1
MOV K D2
M1
PLS M1
MOV H1401 D12
M1
MOV K0 D4
MOV K0 D5
MOV K0 D6
MOV K0 D7
M1
MOV K0 D8
MOV K0 D9
MOV K0 D10
MOV K0 D11
TO H0 H10 D4 K8
MOV K0 D3
M1
SET Y0
(Only one scan turned on after control start)
SM1038
PLS M2
SET M3
M2
SET Y6
M3
RST Y6
X6
RST M3
( Data link startup completes normally)
X0 X0F
TO H0 H20 D12 K1
TO H0 H6 D3 K1
TO H0 H1 D0 K3
(Master fault) (Master ready)
(Master fault)
(Master ready)