SysTaskSuspendΒΆ
This function of type BOOL can be used to stop a task during operation. The task will be identified by the task Id. (By calling the function SysTaskResume the processing can be continued later.)
TRUE will be returned in case of a successful stop of the task, 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 |
---|---|---|
udiTaskId | UDINT | Id of the task, which should be stopped; this Id was returned by SysTaskCreate during creation of the task |