10 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 123
Return to TOC Curtis 1232E/34E/36E/38E & 1232SE/34SE/36SE/38SE Manual, os 31 – May 2017
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.1 V 5.5 V
2 NONE 5.5 V
3 0.1 V 5.5 V
4 0.1 V 5.5 V
5 (ONE_WIRE) NONE 5.5 V
5 (TWO_WIRE) 0.1 V 5.5 V
5 (THREE_WIRE) 0.1 V 5.5 V
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: 1 V = 64 counts.
High_Fault: Species the upper threshold voltage limit.
Scaling: 1 V = 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%.