Both use the principle of an electromagnetic coil pulling in when energised: a relay uses electrical contacts to switch a circuit, while a solenoid valve uses a valve spool to switch a fluid path. The difference is that a relay switches electrical signals, whereas a solenoid valve switches gas/liquid media, and a solenoid valve must take into account medium pressure, sealing and pressure resistance.
In a control loop, the digital output of a PLC/DCS usually first drives a relay or solid-state relay, whose contacts then supply power to the solenoid valve coil.


