Return to TOC Curtis 1239E-1269E Manual, os 37.0 RevA – May 2021
10 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 129
SETUP_POT_FAULTS( )
is function re-sets the upper and lower wiper fault voltages for the specied pot-input that will be
used to activate a pot-wiper voltage fault. e valid range for the function parameters are 0–6.25 V
(0–400 counts). If this function is not run, the default thresholds depend on the rottle Type (or
Brake Type) parameter setting; see table below. If the rottle Type = 5 (or Brake Type = 5), the VCL
function Setup_Pot will determine what fault thresholds are used.
Throttle Type Low Fault Threshold High Fault Threshold
1 0.1V 5.5V
2 NONE 5.5V
3 0.1V 5.5V
4 0.1V 5.5V
5 (ONE_WIRE) NONE 5.5V
5 (TWO_WIRE) 0.1V 5.5V
5 (THREE_WIRE) 0.1V 5.5V
Syntax:
Setup_Pot_Faults(Pot_ID, Low_Fault, High_Fault,
Fault_Value)
Parameters: Pot_ID identies the throttle whose fault limits are being set:
Throttle_Pot
Brake_Pot
Low_Fault:
Species the lower threshold voltage limit.
Scaling: 1V = 64 counts.
High_Fault: Species the upper threshold voltage limit.
Scaling: 1V = 64 counts.
Fault_Value: The value that is used for the pot input when
there is a fault (0–32767).
Scaling: ± 32767 = ± 100%.
Returns:
0 – Setup did not execute.
1 – Setup successful.
Error Codes: Bad_ID is returned when an incorrect pot ID is used.
Param_Range is returned when the voltage value is not
within range.
Example:
Setup_Pot_Faults(THROTTLE_POT,19,320,4000)
For the throttle pot, this will set the lower pot voltage to 0.3 V
(19/64) and the upper pot voltage to 5.0 V (320/64). When there
is a pot fault, the value of 4000 will be used. That is 4000/32767
of the full output, or roughly 12%.