App
- 21
Appendix 4 Sample Programs when Using CC-Link
Appendix 4.5 Sample Program
APPENDICES
2) Sample Program
Diagram App.7 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).
Set refresh update request signal to ON.
Set refresh update request signal to OFF.
Set control program execution 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.
Set CC-Link forced master switching flag to OFF.