System functions
Watchdog_Status
ADwin
58
ADwin-Gold II
, Manual February 2013
Watchdog_Status
Watchdog_Status
returns the status of the watchdog counter.
Syntax
#INCLUDE
ADwinGoldII.inc / GoldIITiCo.inc
ret_val
=
Watchdog_Status
()
Parameters
Notes
As soon as the watchdog counter is enabled, it decrements the counter
values continuously. When the counter value reaches 0 (zero) the sy-
stem assumes a malfunction and and executes the functions being set
by
Watchdog_Init
.
If the watchdog counter is disabled (bit 0 = 0), bit 1 has no function.
See also
Valid for
Gold II
Example
- / -
T11 TiCo
ret_val
Bit pattern with the status of the watchdog counter.
Bit 0: Operating mode.
Bit 0 = 0: watchdog counter is disabled.
Bit 0 = 1: watchdog counter is enabled.
Bit 1: detection of malfunction.
Bit 1 = 0: no malfunction, watchdog is counting.
Bit 1 = 1: malfunction, watchdog has reached
zero (0).
Other bits have no function.
LONG