Programming
BC3150
71
Version: 2.1.0
5.12.2.2
System task information
VAR_GLOBAL
SystemTaskInfo : SYSTEMTASKINFOTYPE;
END_VAR
System flags are implicitly declared variables. Using the Input Assistant, a variable SystemTaskInfoArr can
be found under system variables. This variable is a field with four structures of type
. The structure definition can be found in the system library. The index in this field is the task ID.
Development environment
Target platform
PLC libraries to be linked
TwinCAT v2.9.0
BCxx50, BC9x20 Controller
TcBaseBCxx50.lbx
5.12.2.3
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
5.12.2.4
System info
VAR_GLOBAL
SystemInfo : SYSTEMINFOTYPE;
END_VAR
System flags are implicitly declared variables. Using the Input Assistant, a variable Systeminfo can be found
under system variables. The type
is declared in the system library. For accessing
the variable, the system library has to be integrated in the project.
Development environment
Target platform
PLC libraries to be linked
TwinCAT v2.9.0
BCxx50, BC9x20 Controller
TcBaseBCxx50.lbx