5 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 83
Return to TOC  Curtis Model 1351 – December 2018
 Kick_Watchdog() Starts and reset the specied watchdog timer.
e rst call of this starts the watchdog timer (required). Succeeding calls will 
reset (re-starts) the watchdog timer timing.
 Kick_Watchdog(WD#)
:
WD#   One of the 5 watchdog timers, WD1 through WD5
: None
 :
Bad_ID  WD# out of range
Code Example: Two watchdogs setup.
Set_watchdog_timeout(WD1, 200)  ; 200 ms timer)
Set_watchdog_timeout(WD2,  1000)  ; 1000 ms (1 min) timer
Set_watchdog_fault_action(WD1, ShutdownAll)
Set_watchdog_fault_action(WD2, ShutdownDriver1)
; Do anything else to get the system setup, the watchdog(s)  
; is not running yet
MainLoop:
;do some functions
Call Update_Everything
kick_watchdog(WD1)  ; Set, Reset WD1 in the main loop
Goto MainLoop
Update_Everything:
;do some functions
kick_watchdog(WD2)  ; Set, reset WD2
return