App
- 29
Appendix 5 Method for Starting up the Previous Control System
APPENDICES
(2) When network module is mounted
Make sure that the network module has started up, and then create a program that
executes the SP.CONTSW instruction.
(a) CC-Link IE Controller Network module, MELSECNET/H module or Ethernet
module is mounted on the main base unit.
[System Configuration]
[Program Example]
Diagram App.19 System configuration when CC-Link IE Controller Network module,
MELSECNET/H module or Ethernet module is mounted on the main base unit
Diagram App.20 A program example
System A
System B
Tracking cable
Enables system switching when the network
module in the B system starts normally.
Makes the subroutine program (P100) execute
when the previous control system is the system B.
Executes the system switching instruction when the
network module in the B system starts normally.
Jumps the processing to P101 with the system
switching instruction.
Jumps the processing to the END instruction by
executing the system switching instruction.
Enables communications with
GX Developer or others.
Calculates the subroutine
program executing time.
Program which
waits 10 seconds
for the network
module startup in
the system B.
Continues the jumps to P100
until the SD401 value becomes
10 (10 seconds).
Stores the value of SD412 at subroutine program
execution to D400.
Resets the watchdog timer.
Ends the subroutine program.
Ends the main routine program.
SM1519
0
4
6
7
25
26
37
P100
P101
CALL
P100
GOEND
User program
FEND
SM1519
MOVP
SD412
D400
SET
SM1592
COM
RET
CJ
P101
SP.CONTSW
K1
M5004
=
SD1690 H0
SM1519
-
D400
SD412
D401
WDT
CJ
P100
<
D401
K10