Specifications

Curtis 1310 Manual, Rev. B
39
1 6 F E B R U A R Y 2 0 0 8 D R A F T
5 — VCL
UNIQUE I/O & VCL USAGE
The Curtis 1310 Vehicle System Controller is designed to be extremely flexible,
which means there is really no standard configurationor standard wiring.”
Because of its wide ranging application and large array of inputs and outputs,
many features and possible uses of the 1310 may not be readily apparent. This
section will introduce the unique features and uses of some of the 1310’s I/O
and associated VCL. Examples cover such concepts as:
Switch input usage with rising and falling edge detection
(interfacing to push buttons)
Output 1 & 2 used as current source drivers
(interfacing to proportioning valves)
Using arrays of text in VCL
(advanced interfacing to the Spyglass)
Single channel pulse/frequency counters
Sensor fault detection (using the measured voltage and load
on +5 and +12V).
I/O CONTROL WITH VCL
Digital Inputs
The 1310 controller can have up to 26 digital inputs; see the model selection
chart in Appendix D.
18 switch-to-B+ inputs (SW_1 through SW_18); sensed ON when switched
to B+ and OFF when left open.
8 switch-to-ground inputs (SW_19 though SW_26).
SW_19 SW_22 will be sensed ON when left open and OFF when
switched to ground.
SW_23 – SW_26 are associated with the encoders and are sensed ON
when closed to ground and OFF when left open.
To address a digital input in a VCL program, use the desired input label (SW_1
through SW_26). You must use the predefined constants ON or OFF in
the code when determining a switch state; using true/false or 1/0 will give er
-
roneous results.
If (SW_1 = ON)
{
;put code here to run when switch 1 is On
}
If (SW_16 = OFF)
{
;put code here to run when switch 16 is Off
}