7- DIAGNOSTIC S AND TROUBLE S HOOTING
DIAGNOSTICS AND TROUBLESHOOTING
The following errors will be returned if VCL encounters a runtime error while running one of its
internal library functions. The error code consists of the Module ID that the error occurred in
and a Returned Error Value. The Module ID can be found in the variable
Last_VCL_Error_Module The Error Code is held in the variable Last_VCL_Error.
When and error occurs in the VCL runtime library, the ID and value are also automatically sent
out over the serial port in Spy Glass format. The format is EV Module ID – Value. i.e. EV55-01
means Error VCL DAC Module Bad ID.
Note:All these faults will be flashed on the 1310 status LEDs as a Code “68”. (1 red flash
followed by 6 yellow flashed, followed by 2 red flasshes and lastly followed by 8 yellow flashes).
VCL Module Value Description
MOD_CAN 1 Routines for CAN Bus
MOD_MAP 2 Routines for Mapping
MOD_VCL 3 Run-Time Interpreter
MOD_RMP 4 Routines for Ramping
MOD_SEL 5 Routines for Input Selectors
MOD_DLY 6 Routines for Delays
MOD_LIM 7 Routines for Limits
MOD_SCL 8 Routines for Scaling
MOD_CPY 9 Routines for Copying Objects
MOD_NVM 10 Routines for Non_Volatile Memory Access
MOD_PID 12 Routines for PID Control
MOD_TMR 13 Routines for Timers
MOD_ABS 14 Routines for Absolute Value Functions
MOD_ASP 15 Routines for Asynchronous Serial I/O
MOD_SYS 16 Routines for System Level Functions
MOD_FLT 17 Routines For Filtering
MOD_PAR 18 Routines for Non_Volatile Parameter Access
MOD_SPY 19 Routines for Spyglass
MOD_MTD 21 Routines for Multiply then Divide fucntion
MOD_ESP 23 Routines for Extended Serial Protocol Processing
MOD_ADC 50 Routines for Analog Inputs
MOD_POT 51 Routines for Pot Inputs
MOD_ENC 52 Routines to Read Encoder Inputs
MOD_PWM 53 Routines for PWM Outputs
MOD_SWI 54 Routines for Binary Switch Inputs
MOD_DAC 55 Routines for Analog Outputs
MOD_RTC 56 Routines for Real Time Clock
1310 Vehicle Control System Users Manual Release Rev B Page 44 of 51
7