3.3.3. Control of a solenoid valve

Control of a solenoid valve
Example of control of an irrigation system for garden controlled by a solenoid valve solenoid.
For proper control of an irrigation system be used to control a power of time to schedule the connection and disconnection of irrigation at a specific time, and moisture sensors to determine if watering is necessary.
Amplifier
- DO1 Digital Output 1 (relay 10A) of the Unit1 connected to the solenoid valve.
Control
- 1 digital input DI1 Unit1 connected to the control button.
Program
When doing a short press <0.25 sec in the button Click event occurs that is used to send the shutdown command, Off process. If you perform a long press and sustained> 0.25 Ins Down event occurs that is used to send the activation order, On process.
If you perform a long press activates the solenoid valve if you perform a short press stops the valve.
You can also change the order of processes in the event, changing the effect of control, short press starts watering and long press stops.