TwinCAT 3 PLC Lib: Tc2_System

GETCURTASKINDEX

This function block GETCURTASKINDEX finds the task index of the task from which it is called.

 

VAR_INPUT

VAR_INPUT
(*none*)
END_VAR
 
 

VAR_OUTPUT

VAR_OUTPUT
    index : BYTE;
END_VAR

index: Returns the current task index of the calling task.

 
 

Example of calling the block in FBD:

 
 

Requirements

Development environment
Target system type
PLC libraries to include (Category group)
TwinCAT v3.1.0
PC or CX (x86, x64, ARM)
Tc2_System (System)