5 — VEHICLE CONTROL LANGUAGE (VCL)
Curtis Model 1351 – December 2018
pg. 82
function
Set_Watchdog_Fault_Action()
User defined actions when the watchdog
timer times-out.
When a watchdog timer times-out, the user-defined actions are launched by the
OS. These watchdog fault actions are setup in identical fashion to the User Fault
Action in VCL.
syntax
Set_Watchdog_Fault_Action(WD#, Action_Bits)
arguments:
WD#
One of the 5 watchdog timers, WD1 through WD5
Action_Bits
The following table shows the available action bits
and the predefined labels that can be used directly
or combined to make new actions.
Fault Action Name
Action Code (Bits)
No Action
0x00000
Shut Down Driver 1
0x00001
Shut Down Driver 2
0x00002
Shut Down Driver 3
0x00004
Shut Down Driver 4
0x00008
Shut Down Driver 5
0x00010
Shut Down Driver 6
0x00020
Shut Down Digital Out 1
0x00040
Shut Down Digital Out 2
0x00080
Shut Down Driver 7
0x00100
Shut Down Driver 8
0x00200
Shut Down Driver 9
0x00400
Shut Down Driver 10
0x00800
Shut Down Driver 11
0x01000
Shut Down Driver 12
0x02000
Shut Down Digital Out 3
0x04000
Shut Down Primary Driver
0x000FF
Shut Down Driver Supervisor
0x07F00
Shut Down Driver All
0x07FFF
Shut Down Ext 5V
0x08000
Shut Down Ext 12V
0x10000*
Shut Down Safety Out
0x20000*
Shut Down All
0x3FFFF*
returns: None
reported errors:
BAD_ID
WD# out of range
PARM_RANGE
Parameter (Time) out of range
PT_RANGE
Unknown Parameter
*Note: VCL
CONSTANTS
are limited to 16-Bit, although OS processing is 32-bits. These VCL fault actions, with bits in the
upper
word
, must be either bit shifted or split & added during VCL runtime, e.g.:
Shut_Down_Ext12V = 0x1 << 16
; Results in 0x10000
Shut_Down_Safety_Out = 0x2 << 16
; Results in 0x20000
Shut_Down_All = (0x3<<16) + 0xFFFF
; Results in 0x3FFFF