System Task Info 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

Key

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

BCxx50, BC9x20 Controller

TcBaseBCxx50.lbx