APPENDICES
Appendix 4 Sample Programs when Using CC-Link
Appendix 4.5 Sample Program
App
- 24
9
PR
OC
ES
S
ING
T
IME
FOR RED
UNDA
NT
S
YSTEM
S
A
P
P
E
NDICE
S
INDE
X
2) Sample Program
Diagram App.11 A sample program of CHANGE
Adds I41 to the allowable interrupt
defaults (I0 to I31, I48 to I255).
Performs a refresh of RY (Y1000 to Y109F).
Performs a refresh of RX (X1000 to X109F).
Performs a refresh of RWw (W1100 to W1113).
Performs a refresh of RWr (W1000 to W1013).
Allows system switching by SP.CONTSW.
Set CC-Link forced master switching flag to OFF.
Set system switching execution flag to ON.
Set System B first startup system switching
flag to OFF.
Set refresh update request signal to ON.
Set refresh update request signal to OFF.
Set control program execute flag to ON.
Switches the system when System B
has started first.
Set System B first startup system change
flag to ON.
End main routine program.
Set CC-Link forced master switching flag to ON.
Set control program execution flag to OFF.
End interrupt program.
When System B has started first and a system
switch has occurred, sets the control program
execution flag to ON.