IecTaskDisableWatchdog (FUN)

FUNCTION IecTaskDisableWatchdog : RTS_IEC_RESULT

Disable watchdog for the specified task

Note
  • You have to enable the watchdog of the task with IecTaskEnableWatchdog and _not_ with IecTaskEnableWatchdog2, because they act on different task flags!

  • The watchdog is disabled only for the current cycle! At the next cycle, the watchod is automatically enabled!

InOut:

Scope

Name

Type

Comment

Return

IecTaskDisableWatchdog

RTS_IEC_RESULT

Returns the runtime system error code (see CmpErrors.library)
  • ERR_OK: The watchdog for the task was disabled

  • ERR_PARAMETER: The task handle was invalid

Input

hIecTask

RTS_IEC_HANDLE

Handle of the task