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