System task information type

TYPE SYSTEMTASKINFOTYPE
STRUCT
    active            :       BOOL;
    taskName          :       STRING(16);
    firstCycle        :       BOOL;
    cycleTimeExceeded :       BOOL;
    cycleTime         :       UDINT;
    lastExecTime      :       UDINT;
    priority          :       BYTE;
    cycleCount        :       UDINT;
END_STRUCT
END_TYPE

Legend

active: This variable indicates whether the task is active.
taskName: the task name.
firstCycle: During the first PLC task cycle, this variable has the value: TRUE.
cycleTimeExceeded: this variable indicates whether the set task cycle time was exceeded.
cycleTime: set task cycle time in multiples of 100 ns.
lastExecTime: cycle time required for the last cycle in multiples of 100 ns.
priority: set task priority.
cycleCount: cycle counter.

Development environment

Target platform

PLC libraries to be linked

TwinCAT v2.9.0

BX Controller

TcBaseBX.lbx