Hydraulic solenoid valves are in general similar to pneumatic solenoid valves except that they control the flow of hydraulic fluid (oil), often at around 3000 psi (210 bar, 21 MPa, 21 MN/m2). Hydraulic machinery uses solenoids to control the flow of oil to rams or actuators. Solenoid-controlled valves are often used in irrigation systems, where a relatively weak solenoid opens and closes a small pilot valve, which in turn activates the main valve by applying fluid pressure to a piston or diaphragm that is mechanically coupled to the main valve.