IecTaskEnableWatchdog (FUN)ΒΆ
FUNCTION IecTaskEnableWatchdog : RTS_IEC_RESULT
Enable watchdog for the specified task
Note
- You have to disable the watchdog of the task before with IecTaskDisableWatchdog and _not_ with IecTaskDisableWatchdog2, because they act on different task flags! 
- The watchdog is enabled only at the next IEC cycle and _not_ immediately after calling this function! 
- If you disable with IecTaskDisableWatchdog and forgot to enable it, at least at the next cycle, the watchdog is automatically enabled! 
- InOut:
- Scope - Name - Type - Comment - Return - IecTaskEnableWatchdog- RTS_IEC_RESULT- Returns the runtime system error code (see CmpErrors.library)
- ERR_OK: The watchdog for the task was enabled 
- ERR_PARAMETER: The task handle was invalid 
 
 - Input - hIecTask- RTS_IEC_HANDLE- Handle of the task 
