SysTaskSleepΒΆ

This function of type BOOL can be used to interrupt the processing in a running task and to make it continue after a defined period of time.

TRUE will be returned, if the sleep function has been executed successfully, otherwise FALSE.

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
udiMilliseconds UDINT Time in milliseconds after which the stopped (sleeping) task should continue to be processed