
B–61863E–1/06
5. TUTORIAL
GENERAL
35
In this section, 3 tasks execution is described.
Task3 which detect if the tool life is over is made.
The files are in the directory \tutorial\5–8.
(1) File confirmation
Please use the files (ctl.c and tutorial.bld) in the directories as listed
below.
The files in \tutorial\5–8\rc for PMC–SC/SC3/SC4.
The files in \tutorial\5–8\nb for PMC–NB/NB2.
D ctl.c Link control statement
D softkey.c Source code (task1)
D task1.c Source code (task1)
D task1.con Command file for binder (task1)
D task2.c Source code (task2)
D task2.con Command file for binder (task2)
D task3.c Source code (task3)
D task3.con Command file for binder (task3)
D tutorial.bld Build file
D tutorial.con Command file for binder
D tutorial.h Header file (task1, 2, and 3)
(2) Modification.
The difference from chapter 5.7 is described below.
D task1.c
The part to change the tool number specification by key was
added.
When run time of the tool is over the limit, ’*’ is displayed on
right side of run time on screen.
Please refer the source file for details.
D task3.c
The run time of the tool is detected by every 500ms (496ms). If
the run time is over the limit, flag is set to 1.
Please refer to the source file for detail.
D ctl.c
On the main screen of MKC(Link control statement creation
tool).
TASK COUNT 2 → 3 (task3 was added)
GDT ENTRY COUNT 5 → 7 (TASK3_CODE and TASK3_DATA
were added)
LINK CONTROL DATA(MAIN) Ver 1.2<OVRWRT>
USER GDT ADDRESS = 845000 (NOTE)
GDT ENTRY COUNT = 7 (1 64)
COMMON MEMORY COUNT = 0 (0:NOTHING/1 8)
DEVICE CONTROL PARAMETER (0:NO WAIT/1:WAIT)
MDI KEY = 0
GRAPHIC = 0
RS232C = 0
NC EDIT = 0
EXTERNAL MESSAGE = 0
TASK LEVEL(LADDER LEVEL 3)
= 10 (0:NON/–1:HIGH/10 99)
CYCLE TIME(LADDER LEVEL 3)
= 8 (8 2000ms)
TASK COUNT = 3 (1 16)
[ MAIN ] [ MEMORY ] [ TASK ] [ QUIT ] [ EXIT ]
5.8
MULTITASK-II
(COMPLEX
COMMUNICATION)