Curtis 1232E/34E/36E/38E & 1232SE/34SE/36SE Manual, os 30
131
24 NOVEMBER 2015
SETUP_POT_FAULTS()
This function sets the upper and lower wiper fault voltages for a given pot input
and sets the replacement wiper voltage value that will be used if there is a fault.
The valid range for the function parameters is 0–6.25 V (0–400 counts). If this
function is not run, the default thresholds depend on the Throttle Type (or Brake
Type) parameter setting; see table below. If the Throttle 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 identiesthethrottlewhosefaultlimitsarebeingset:
THROTTLE_POT
BRAKE_POT
Low_Fault
Speciesthelowerthresholdvoltagelimit.
Scaling: 1 V = 64 counts.
High_Fault
Speciestheupperthresholdvoltagelimit.
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 at 0.3 volts (19/64) and the
upper pot voltage at 5.0 volts (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%.
8 — VCL