FUNCTION IecTaskEnableWatchdog2 : RTS_IEC_RESULT
Enable watchdog for the specified task
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: |
|