The Multi-Task System
Operating Manual XCA 1100 / XCA 1200
●
Version 12/17
127
9.3
User task information
Information is mapped to system variables for each user task. The
type definitions listed below for the system variables can be found in the
PLC_Types
section of the SchleicherLib library.
Type definition
Comment
TYPE
TaskNameType : ARRAY [1..10] OF BYTE;
END_TYPE
TYPE
TaskInfoType0 : STRUCT
MaxTask : INT; (* 00: *)
Max. poss. number of tasks
CurTask : INT; (* 02: *)
Current number of tasks
END_STRUCT (* TaskInfoType0 *);
END_TYPE
TYPE
TaskInfoType1 : STRUCT
TaskName : TaskNameType; (* 04: *)
Task name
TaskPrio : INT; (* 14: *)
Task priority
TaskMode : INT; (* 16: *)
Task mode
TaskPeriod : INT; (* 18: [ms] *)
Task period in ms
TaskStack : INT; (* 20: *)
Size of used task stack
MainPoe : INT; (* 22: assigned PLC
program *)
Assigned PLC program
TaskWatchDog : INT; (* 24: [ms] *)
Watchdog time in ms
reserve0 : DINT; (* 26: *)
MaxStack : INT; (* 30: max. used
stack *)
Size of poss. task stack
CurDuration : INT; (* 32: [ticks] *)
Current task duration including
prioritised calls
MinDuration : INT; (* 34: [ticks] *)
Minimum task duration
MaxDuration : INT; (* 36: [ticks] *)
Maximum task duration
AveDuration : INT; (* 38: [ticks] *)
Average task duration
CurDelay : INT; (* 40: [ticks] *)
Current task delay
MinDelay : INT; (* 42: [ticks] *)
Minimum task delay
MaxDelay : INT; (* 44: [ticks] *)
Maximum task delay
AveDelay : INT; (* 46: [ticks] *)
Average task delay
END_STRUCT (* TaskInfoType1 *);
END_TYPE