GETCURTASKINDEX
This function block finds the task index of the task from which it is called.
VAR_INPUT
(*none*)
VAR_OUTPUT
VAR_OUTPUT
index : BYTE;
END_VAR
index : Returns the current task index of the calling task ( 1..4 ).
Example of calling the block in FBD:
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 |