5 simple control example, Simple control example – High Country Tek DVC80 User Manual

Page 68

Advertising
background image

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

Page | 68

First, by being in the Always bubble this code will execute every 10ms so the system will be very responsive to
any change in the setpoint or any variation in the performance of the pump as indicated by a change in the
pressure sensor or feedback.





Second, the valve will only be activated or enabled when a nonzero setpoint (True) is read from the analog input
Setpoint_PSI.

Third, when a valve is configured for Process PI, the
DVC5/7/10 BIOS automatically adjusts the valve
current over its defined range so that the feedback
and the setpoint will be equal. If the setpoint is
greater than the feedback then the current is
increased and decreased if the setpoint is less than
the feedback. The DVC BIOS’s current correction
uses PID techniques and PWM to effectively
increase the voltage seen by the valve’s coil.

Increased voltage increases the current through the
coil and moves the spool.

Fourth, the rest of the code is to manage the Virtual
Display so that an operator would see what is going
on in human readable terms.


5.5

Simple Control Example

This simple control example program will perform the following steps:

1. Wait for a Pulse Input on the Digital Input #1,
which is named "Start"
2. Ramp up the PWM #1 output, which is named
"TurnMotor", to 1 amp in 5 seconds
3. Wait 2 Seconds
4. Ramp down the output "TurnMotor" to 0 amps in
5 seconds
5. Turn on High-Side #1, which is named "EndPulse
6. Wait 1 Second
7. Turn off "EndPulse"


Setup the DVC5/7/10


Double click on the DVC10 Master Icon in the project window.



Advertising
This manual is related to the following products: