Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 1060 -
8. High-Level task execution management data
"High-Level task execution management data" are variables in where how High-
Level task runs is stored. The following structure is defined.
struct HL_MNGDATA {
unsigned long HL_COUNT ;
unsigned int HL_STIME ;
unsigned int HL_ETIME ;
unsigned int HL_MAXETIME ;
unsigned int HL_MAXPROCTIME ;
unsigned int HL_TIMEOVER ;
unsigned int HL_RETFLAG ;
unsigned int HL_BUFCTRL ;
unsigned int HL_BUFSIZE ;
unsigned int HL_BUFIDX ;
unsigned long HL_PTRBUF ;
} ;
extern struct HL_MNGDATA HL_DATA ;
All tasks can access this "HL_MNGDATA". All members are readable and
writable.
HL_COUNT High-Level task calling count (accumulated value).
HL_STIME High-Level task's execution start time.
HL_ETIME High-Level task's execution end time.
When High-Level task starts and ends in each 8 msec
interruption process are recorded in these members.
Counter value of real-time clock is stored. The
following operation converts this value to elapsed
time ([micro-sec]) from the top of each 8 msec
interruption process.
( "x" is either HL_STIME or HL_ETIME.)
(long)( 0x1000 - x ) * 8000 / 4096
And the next operation shows execution time of High-
Level task ([micro-sec]).
(long)( HL_STIME - HL_ETIME ) * 8000 / 4096
HL_MAXETIME Maximum value of HL_ETIME.
This is the maximum value of end time of High-Level
task's execution. This indicates the maximum elapsed
time of interruption process. Contents of this are
counter value of real-time clock as same as HL_ETIME.
The following operation converts this value to
[micro-sec].
(long)( 0x1000 - HL_MAXETIME ) * 8000 / 4096