Specifications
Curtis 1310 Manual, Rev. B
45
1 6 F E B R U A R Y 2 0 0 8 D R A F T
6
6 — DIAGNOSTICS & TROUBLESHOOTING
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
ID of the module where the error occurred and a Returned Error Value. The
Module ID can be found in the variable Last_VCL_Error_Module. The Error
Value is held in the variable Last_VCL_Error.
When an error occurs, its code is automatically sent out over the serial
port in Spyglass format. The format is EV VCL Module Value – Returned Error
Value; e.g., EV55-01 means Error VCL DAC Module Bad ID.
The VCL Module Values and Returned Error Values are listed in Tables
6 and 7.
Table 6 VCL Module IDs
VCL MODULE VALUE DESCRIPTION
MOD_CAN 01 Routines for CAN Bus
MOD_MAP 02 Routines for Mapping
MOD_VCL 03 Run-Time Interpreter
MOD_RMP 04 Routines for Ramping
MOD_SEL 05 Routines for Input Selectors
MOD_DLY 06 Routines for Delays
MOD_LIM 07 Routines for Limits
MOD_SCL 08 Routines for Scaling
MOD_CPY 09 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










