IecTaskEnableWatchdog2 (FUN)ΒΆ
FUNCTION IecTaskEnableWatchdog2 : RTS_IEC_RESULT
Enable watchdog for the specified task
Note
- You have to disable the watchdog of the task before with IecTaskDisableWatchdog2 and _not_ with IecTaskDisableWatchdog, because they act on different task flags! 
- The watchdog is enabled only at the next IEC cycle and _not_ immediately after calling this function! But if you never enable the watchdog after calling IecTaskDisableWatchdog2, the watchdog is disabled forever! 
- As a consequence, you always have to call IecTaskDisableWatchdog2 and IecTaskEnableWatchdog2 symmetrical 
- Can be called nested. Last call enables the watchdog. 
- InOut:
- Scope - Name - Type - Comment - Return - IecTaskEnableWatchdog2- 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 
