Return to TOC Curtis 1239E-1269E Manual, os 37.0 RevA – May 2021
10 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 111
For investigating why a motor is not spinning, it is useful to use the 1313/1314 to check the state of
the throttle signal from beginning to end: using rottle_Pot_ Raw, Mapped_rottle, and rottle_
Command. Once these values are known, the Motor Command Diagram (Figure 18) can be used to
nd how that signal progressed from input to nal value.
e following throttle processing variables are accessible by VCL:
VCL Variable
CAN Object Index
Access Description
Throttle_Pot_Raw
0x3215 0x00
Read Only Voltage measurement at pin 16, scaled for the proper wiring.
OS_Throttle
0x3518 0x00
Read Only
Throttle pot value after mapping, to be used in VCL when VCL
Throttle Enable = On and Throttle Type = 1–4.
Scale: 0 – 100%, 0 – 32767.
Mapped_Throttle
0x3211 0x00
Read Only Throttle pot value after mapping.
VCL_Throttle
0x3218 0x00
Read/Write VCL-accessible throttle command.
Throttle_Multiplier
0x3213 0x00
Read/Write Multiplies or divides the throttle signal.
Throttle_Offset
0x3214 0x00
Read/Write Provides a ± offset to the throttle signal.
Throttle_Command
0x3216 0x00
Read Only Command resulting from throttle processing.
Brake Processing
Brake processing is optional as it can be turned O by setting Brake_Pedal_Enable = O. If turned
On, brake processing can be done with or without VCL. When the controller is in Speed Mode,
any non-zero brake command will then override the throttle signal and the motor controller will
brake to a stop as determined by the Brake Current Limit and Brake Taper Speed parameters.
When the controller is in Torque Mode, the brake command is multiplied by 2 and subtracted
from the throttle command to produce the nal command; thus a 50% brake command will cancel
a 100% throttle command.
e lower part of Figure 18 shows the brake signal processing section. e brake signal chain ows
from le to right starting with the physical brake pot. e voltage on the brake wiper input (pin
17) is processed by the controller and has the VCL variable name Pot2_Raw which is displayed as
Pot2 Raw in the 1313 Monitor » Inputs menu. is brake signal is then modied by the Brake Type
Processing and Brake Mapping blocks.
e Brake Type Processing block uses the Brake_Type parameter and the brake potentiometer input
(Pot2_Raw) to create a signed 16-bit variable. is brake signal then passes to the Brake Mapping
block, which re-shapes the brake signal according to the various Brake Menu parameters.
e brake signal next passes through a selector switch. If the Brake_Type parameter is set to 5 (Brake
Type = VCL input), the Brake Mapping block output signal is ignored and the command comes from
the VCL variable VCL_Brake. e VCL program manipulates the VCL_Brake variable to get a brake
command. Custom braking functions can be set up in this fashion; e.g., braking based on a switch
position or an internal fault. e brake potentiometer can still be used, but must be set up using the
Setup_Pot() function. When the Brake Type is set to 1–4, the variable VCL_Brake does nothing and
the Brake Mapping block output signal passes through.
Quick Links:
Brake Menu
Brake Pedal Enable p.51
Current Limits Menu
Brake Current Limit p.46
Brake Taper Speed p.44
Monitor
Inputs » Pot2_Raw p.77
Figure 18 p.112
Figure 19 p.114