# Controlling two uni-directional valves with a single control output

**URL:** <https://forum.deltamotion.com/t/controlling-two-uni-directional-valves-with-a-single-control-output/1167>\
**Category:** Communications\
**Created:** [March 31, 2023, 6:45pm UTC](https://forum.deltamotion.com/t/controlling-two-uni-directional-valves-with-a-single-control-output/1167 "2023-03-31T18:45:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Heinrich](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/a/54ee81/32.png) [@Aaron\_Heinrich](https://forum.deltamotion.com/u/Aaron_Heinrich)\
**Post date:** [March 31, 2023, 6:45pm UTC](https://forum.deltamotion.com/t/controlling-two-uni-directional-valves-with-a-single-control-output/1167/1 "2023-03-31T18:45:22Z")

</div>

**Problem:**  
A control system has two valves controlling a swashplate, with one valve for flow in one direction and the other valve for flow in the opposite direction. Each valve only accepts a 0 - 10 V input signal. This approach could also be adapted to any system that requires a separate 0 - 10 V signal for each direction.

**Approach**  
The general approach is to use one control axis that sends its Control Output to two different Output-Only axes.

1. Create an Outer Loop axis. This axis will use the feedback from the system and has no physical output. It’s output is a register in the RMC.

2. Create two Output Only axes. These will be wired to each valve on the swashplate.  
See below screenshot for an example output definitions that would work.  

3. The next step is to create a User Program to continually apply the appropriate output to each Output Only axis. The below User Program applies the current control output to one axis, and zero volts to the other axis, based on the polarity of the output.  
 ![image](https://forum.deltamotion.com/uploads/default/original/1X/ba10c7c047d6c20a895001f9b411ce2e01b84937.png)

4. Run this User Program continuously on an unused task. See [Make a User Program Always Run](https://forum.deltamotion.com/t/make-a-user-program-always-run/436) for a refresher on how to do this.

**Alternative Approaches**  
This application can also be solved using [Uni-directional Mode](https://deltamotion.com/support/webhelp/rmctools/Registers/Register_Descriptions/Axis_Parameter_Registers/Output/Param_Unidirectional_Mode.htm), a discrete output, and a DPDT (double pole, double throw) relay. Uni-directional Mode is quite powerful, and the online help does a great job explaining it.

 ![Basic Schematic for Using DPDT relay with one output and two valves](https://forum.deltamotion.com/uploads/default/original/1X/205513920c5c3a012ee59ecd1527e2304a0e32c1.png)
