High Country Tek DVC80 User Manual

Page 76

Advertising
background image

P/N: 021-00154, Rev. A.6 - updated for V4.7 Tools

Page | 76

PWM_1.Enable = True This command enables the output for PWM current regulation. If the enable is set to
False, the output will be 0% PWM, or 0 current. It will not go to Min current. To get min current, the output
should be enabled and the variable set to 0%.
Anti-stall
Two lines of code are required to run an Anti-stall algorithm. The key to the Anti-stall routine is in the set-up.
The load on the Engine is controlled with a Single Coil PWM Valve. In this example it is assumed that if this
valve is at min current, the load on the engine will be at its maximum and if the valve is at max current, the load
on the engine will be at minimum. The easiest way to achieve this is by inverting the Speed input. When the
Speed input is not inverted 0% = Min Speed and 100% = Max Speed. By inverting the output, the Min Speed is
100% and the Max Speed is 0%.

PWM_2 = Speed

This command sets the current regulation for the valve. Be sure the Speed setpoints

are correct in the setup and that the speed input is inverted if at min speed the output needs to be 100%.

PWM_2.Enable = True
This command simply enables the output for PWM current regulation. If this is set to
False, the output would be 0% PWM, or 0 current. It will not go to Min current. To get min current, the output
should be enabled and the variable set to 0%

Bang-Bang Valves
One line of code is all that is required to command a bang-bang valve. In this example, two digital switches
control two bang-bang valves. Bang-bang valves are best controlled with High-Side outputs, which are either on
or off. To setup the DVC to run bang-bang valves, set the output group to any setting except "Dual Coil High-
Side". In "Single Coil High-Side" mode, the output group can control only one bang-bang valve, but in "Single
Coil Low-Side" and "High-Side Only" mode, the output group can control two bang-bang valves.

HP_Limit = Dig_HP_Limit This line of code sets the bang-bang valve named "HP_Limit" to the value of the
Digital input labeled "Dig_HP_Limit". This can be used to turn on a valve that would limit the Horsepower in the
system. "HP_Limit" can also be set to "True" to turn the valve on and "False" to turn the valve off.

Relief = Dig_Relief

This line of code sets the bang-bang valve named "Relief" to the value of the digital

input labeled "Dig_Relief". This can be used to turn on a relief valve. "Relief" can also be set to "True" to turn
the valve on and "False" to turn the valve off

Flash LED

The Flash LED example illustrates the use of "Entry Code" in conjunction with Timers. This routine uses one
variable called "Wait" and it is defined as a "Timer". This logic sequence uses two bubbles. One bubble turns
on the LED output and the other one turns off the LED output. When a bubble is first executed, the "Entry
Code" sets the "Wait" variable to 50ms. The program will then wait until the timer becomes 0 before it
transitions to the other bubble. The cycle will turn the LED off and on repeatedly.

Dim Wait as Timer

This code statement flags the Programming Tool to reserve some space in memory for

this variable.

Wait = 50ms

Sets the Wait timer to 50ms. Because this line of code is in the "Entry Code", the Wait Variable

will not continue to be reset to 50ms. The bios will decrement this time to 0 in 50ms.

BlinkLED = True

Turns on the High-Side output.


BlinkLED = False

Turns off the High-Side output.

Pulse Regulation

Advertising
This manual is related to the following products: