10 — VEHICLE CONTROL LANGUAGE (VCL)
Curtis 1232E/34E/36E/38E & 1232SE/34SE/36SE/38SE Manual, os 31 – May 2017 Return to TOC
pg. 122
SETUP_POT( )
is function determines the type of electrical connection of the rottle Wiper (J1-16) and Pot2
High (J1-27) potentiometers (pot inputs).
One wire pots are a 0 – 5 V input.
Two wire pots are rheostats.
ree wire pots use the pot-high and pot-low as their high and low references.
Syntax:
Setup_Pot(Pot_ID, Type)
Parameters:
POT_ID Pot (ID) Selector (THROTTLE_POT,or BRAKE_POT)
Type Pot type (ONE_WIRE, TWO_WIRE, or THREE_WIRE)
Returns:
0 Setup not successful
1 Setup successful
Errors
BAD_ID POT_ID out of Range
BAD_P_TYPE Pot Type out of Range
GET_POT( )
This function returns the value of the selected pot; 0 – 32767 equating to 0 – 100% over the
0 – 5.00 V input range.
Syntax:
Get_Pot(POT_ID)
Parameters:
POT_ID Pot Selector (THROTTLE_POT,or BRAKE_POT)
Returns:
0 Pot = 0 or error.
n Pot value.
Errors
BAD_ID POT_ID out of Range