Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 26 -
(3) Example of application program
For example, the program which consists of only Main task has following
structures.
++---------------++
|| main function ||
++-------+-------++
|
+----------+----------+
| Initialization |
+----------+----------+
|
+----------+----------+
| Setting of user |
| screens |
+----------+----------+
|
+----------+----------+
| Setting of softkeys |
| by which user |
| screens are selected|
+----------+----------+
| Repetition
|<----------------------------------+
+----------+----------+ |
| Get current screen | |
| index | |
+----------+----------+ |
| |
+----------+----------+ |
| Branch to each | |
| screen's procedure | |
+----------+----------+ |
| |
+---------------+-------+----------------+--... |
| | | |
+----------+----------+ +----------+----------+ +---+---+ |
| Read CNC information| | Read numeric value | |.... | |
| and display them on | | from MDI key and | | | |
| screen | | update data | | | |
+----------+----------+ +----------+----------+ +---+---+ |
| | | |
+---------------+-------+----------------+--... |
| |
+-----------------------------------+