SYSTEMTASKINFOARR
VAR_GLOBAL
SystemTaskInfoArr AT%MB32832(*The real address may differ!*) : ARRAY[1..4] OF SYSTEMTASKINFOTYPE;
END_VAR
System flags are implicitly declared variables that are different on each specific PLC. The type SYTEMTASKINFOTYPE is declared in the system library, so this library has to be included in the library manager. The index in this array is the task-Id. You can get the task-Id when you call the functionblock GETCURTASKINDEX from your task.
Requirements
Development environment |
Target system type |
PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 |
PC (i386) |
PLCSystem.Lib |
TwinCAT v2.8.0 |
PC (i386) |
TcSystem.Lib |