App
- 25
Appendix 4 Sample Programs when Using CC-Link
Appendix 4.5 Sample Program
APPENDICES
(b) Sample Program Name: MAIN
1) Sample program overview flow
2) Sample program
Diagram App.12 Sample program overview flow
Diagram App.13 A sample program of MAIN
Turn the enable control program
execution flag ON.
(Step 0 to 1)
Control the CC-Link.
(Step 2 to 18)
MAIN
END
Set enable control program execute flag to ON.
When CC-Link is operating as master
station and data link is properly executed,
set M4531 to ON.
Control CC-Link.
Creates the CC-Link control program.