Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 24 -
2.3 Application program
(1) Program organization
Application program consists of three independent tasks.
+- USER APPLICATION -------------------------+
| +========================================+ |
| | | |
| | (A)MAIN TASK | |
| | | |
| +========================================+ |
| +- AUXILIARY TASK -----------------------+ |
| | +==============+ +==================+ | |
| | | (B)ALARM | | (C)COMMUNI- | | |
| | | TASK | | CATION TASK | | |
| | +==============+ +==================+ | |
| +----------------------------------------+ |
+--------------------------------------------+
(A) MAIN TASK
Almost all processes, such as screen displaying, key input,
read/write CNC information, etc., are executed in this task.
(B) ALARM TASK
This task is periodically started usally and watches various
conditions.
(C) COMMUNICATION TASK
This task is usually used for processing of input/output via
reader/puncher interface independently of MAIN TASK.
ALARM TASK and COMMUNICATION TASK are called AUXILIARY TASK. (Also called
BACKGROUND TASK because these tasks are executed in background of MAIN TASK)
AUXILIARY TASKS are limited in their function.
MAIN TASK ALARM TASK COMMUNICATION TASK
-------------------------------------------------------------------
Standard function x x x
Key input x
Character display x
Graphic display x
File I/O x x (*1) x (*1)
CNC/PMC window x x (*2)
Reader/puncher
interface x x (*3) x (*3)
Reading F-ROM x x (*3) x (*3) [4]
Reading touch-panel x x x [5]
("x" means "available" "BLANK" means "not available")