SPECIFIC VCL FUNCTIONS & EXTENSIONS
The VCL functions described in the VCL Common Functions Manual are available on 1310
controllers. In addition, the 1310 Vehicle System Controller has the following additional or
expanded functions:
• Pot Wiper Inputs
• Analog Inputs
• Analog (DAC) outputs
• Digital (PWM) outputs
• Encoder Inputs
• Real Time Clock
Pot Wiper Inputs
Setup_POT(2)
This function sets the type of input that will be connected to the 4 analog inputs. The system
uses the illustration of a potentiometer and thus are called Wiper inputs. The inputs can be set
up as one-wire, two-wire or three-wire, referring to the number of wires connected from the pot
to the 1310. A 1 wire pot, is a voltage input (0-5v), a 2 wire pot uses wiper and pot low
(rheostat) and a 3-wire pot connects with Pot High, Wiper and Pot Low signals. Note this
functions does not enable any fault checks. Fault checks must be done by custom VCL code.
Data Values
Pot#_Output Variable that is automatically updated with the value of the wiper
input.
Parameters
Pot_ID Identifies which wiper input is used
• Can be POT1 through POT4
Type Identifies which type of pot is connected
• Can be ONE_WIRE, TWO_WIRE or THREE_WIRE
Returns
0 – Setup did not execute.
1 – Setup successful.
Error Codes
Bad_ID = incorrect pot ID was used.
Param_Range = the Type value is not within range.
Examples
Setup_Pot(POT1,TWO_WIRE)
; refer to wiring diagram pins J4-6 and J4-7
Setup_Pot(POT3, THREE_WIR E)
; refer to wiring diagram pins J4-8 , J4-5, J4-10
Setup_Pot(POT4, TWO_WIRE)
; refer to wiring diagram pins J4-9, J4-10
1310 Vehicle Control System Users Manual Release Rev B Page 28 of 51