Wesley BC-620-4CA User Manual

Page 112

Advertising
background image

108

Curtis 1234/36/38 Manual,

OS

11

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 1311 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 identifies the throttle whose fault limits are being set:

THROTTLE_POT

BRAKE_POT

Low_Fault

Specifies the lower threshold voltage limit.

Scaling: 1 V = 64 counts.

High_Fault

Specifies 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 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%.

7 — VCL

Advertising