Wesley BC-620-4CA User Manual

Page 106

Advertising
background image

102

Curtis 1234/36/38 Manual,

OS

11

addition to flashing the code 52 on the controller status LEDs. An additional
VCL line was added (Put_Spy_Text (“BDI Low”)) to show how additional ac-
tions beyond those provided in the User_Fault_Action_xx can be programmed
using VCL. In this example the Put_Spy_Text(“BDI Low”) will result in the
message “BDI Low” appearing on the model 840 display (presumably as a mes-
sage to the vehicle operator). This example will still not result in any display on
the 1311 System Faults and Fault History menus.

To add the fault text on the 1311 System Faults and Fault History

menus it is necessary to create a Fault Definition for the 1311. Creating fault
definitions is a subject that is covered in detail in the VCL Programmer’s Guide
(Section 5, Support for the 1311 Handheld Programmer). Here is an example
of a fault definition:

User_Fault_Action_02 = 24 ;Set fault action to ShutdownInterlock

;and ShutdownThrottle

MainLoop:
if (BDI_Percentage < 10)

{

UserFault1.2 = ON

;Set User fault bit

Put_Spy_Text(“BDI Low”) ;Send message to Model 840 display

}

else

{

UserFault1.2 = OFF

;Clear User fault bit

}

goto MainLoop

; PARAMETER_ENTRY “BDI Low Fault”
; TYPE

FAULTS

; WIDTH

8BIT

; ALT_ADDRESS

Hist_UserFault1

; ADDRESS

UserFault1

; BITSELECT

1

; BITACTIVELOW

NO

; END

This example will result in the exact same actions as the last example, except
now the fault will be displayed in the 1311 System Faults menu (only while
the fault is set) and this fault will be logged into the 1311 Fault History menu
after being set. The text displayed in either of these 1311 menus will be the
text defined in the fault definition (in this example “BDI Low Fault” will be
displayed). The variable Hist_UserFault1 is listed as an ALT_ADDRESS. This
line controls whether the fault gets logged into fault history (and thus appears
in the 1311 Fault History menu). The two variables that can be used in the
fault definitions for ALT_ADDRESS are Hist_UserFault1 and Hist_UserFault2;
these should be used in the fault definitions with the corresponding UserFault1
and UserFault2 variables. If you wish to use VCL to clear fault history, use the
VCL function Clear_Diaghist(). Also note that this example fault definition
was for bit 1 of UserFault1. The VCL example set and cleared this bit by using
the UserFault1.2 notation (“.2” being the mask that defines bit 1).

7 — VCL

Advertising