SysTaskGetCurrentΒΆ

This function of type UDINT can be called by the currently processing task in order to get returned the own task Id.

Note

SysTask functions are not reentrant. This should be no problem in normal cases, but if in the application program a situation might occur, where several IEC-tasks create and manage additional tasks, the calls to these functions have to be synchronized. You can use the library The Library SysLibSem.lib in this case.

Input Variable Data type Description
bDummy BOOL TRUE starts the function