SYSTEMTASKINFOTYPE
TYPE SYSTEMTASKINFOTYPE
STRUCT
active : BOOL;
taskName : STRING(16);
firstCycle : BOOL;
cycleTimeExceeded : BOOL;
cycleTime : UDINT;
lastExecTime : UDINT;
priority : BYTE;
cycleCount : UDINT;
END_STRUCT
END_TYPE
active : Boolean variable is TRUE, if the task is active.
taskName : Contains the name of the task.
firstCycle : The variable is TRUE in the first cycle of the task.
cycleTimeExceeded : The variable is TRUE if the runtime of the task exceeds the cycletime set in taskconfiguration.
cycleTime : Cycletime set in the taskconfiguration in parts of 100ns.
lastExecTime : Needed cycletime for the last cycle in parts of 100ns.
priority : Priority set in the task configuration.
cycleCount : Cyclecounter.
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 | PC or CX (x86) | PLCSystem.Lib |
TwinCAT v2.8.0 | PC or CX (x86) | TcSystem.Lib |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) | TcSystem.Lib |