Working principle of solenoid valves
A solenoid valve consists of a solenoid coil and a magnetic core and is a valve body containing one or more ports. When the coil is energised or de-energised, the movement of the core makes the fluid pass through the valve body or be cut off, so as to change the direction of the fluid. The electromagnetic part consists of a fixed core, a movable core, a coil, etc.; the valve body part consists of a spool, a sleeve, a spring seat, etc. The coil is mounted directly on the valve body, and the valve body is enclosed in a sealed tube, forming a simple, compact assembly.
By principle, solenoid valves fall into three main types: direct-acting, step direct-acting and pilot-operated. In terms of air or oil circuits, the solenoid valves commonly used in production are two-position three-port, two-position four-port, two-position five-port, etc. "Two positions" means the spool of the solenoid valve has two different working positions (open and closed), while "how many ports" refers to the number of ports on the valve body; for example, a two-position two-port solenoid valve has one inlet and one outlet (two ports, the most common type), a two-position three-port solenoid valve controls liquid with one inlet and two outlets (one normally open and one normally closed), a pneumatic directional solenoid valve has one inlet, one outlet and one exhaust, and a hydraulic one has one inlet, one outlet and one return.
By structural principle, solenoid valves fall into three main types:
1) Direct-acting solenoid valve:
Principle: when energised, the coil produces an electromagnetic force that lifts the closing member off the seat and opens the valve; when de-energised, the electromagnetic force disappears and the spring presses the closing member onto the seat, closing the valve.
Features: works normally under vacuum, negative pressure and zero pressure, but the bore generally does not exceed 25 mm.
2) Step direct-acting solenoid valve:
Principle: this combines the direct-acting and pilot-operated principles. When there is no pressure difference between inlet and outlet, on energisation the electromagnetic force lifts the small pilot valve and then the main valve closing member in turn, opening the valve. When the starting pressure difference exists between inlet and outlet, on energisation the electromagnetic force acts on the small pilot valve, the pressure in the lower chamber of the main valve rises and that in the upper chamber falls, so the pressure difference pushes the main valve open; on de-energisation the pilot valve uses spring force or medium pressure to push the closing member downwards and close the valve.
Features: it also operates at zero pressure difference, under vacuum or at high pressure, but the power is higher and horizontal installation is required.
3) Pilot-operated solenoid valve:
Principle: on energisation the electromagnetic force opens the pilot port, the pressure in the upper chamber drops rapidly and a pressure difference is formed around the closing member that is low above and high below, so the fluid pressure pushes the closing member upwards and opens the valve; on de-energisation the spring force closes the pilot port, and through the bypass port the inlet pressure quickly forms a pressure difference around the closing member that is low below and high above, so the fluid pressure pushes the closing member downwards and closes the valve.
Features: a higher upper limit of the fluid pressure range, and it can be installed in any position (custom versions required), but the fluid pressure difference condition must be met.
Classification of solenoid valves by circuit
Two-position three-port solenoid valve:
In terms of the air circuit (or liquid circuit), a two-position three-port solenoid valve has one inlet port (connected to the air supply), one outlet port (supplying air to the target equipment) and one exhaust port (usually fitted with a silencer, which may be omitted if noise is not a concern). Electrically it is generally single-solenoid (single coil). Two-position three-port valves are divided into normally closed and normally open types: normally closed means the air circuit is cut off when the coil is not energised, and normally open means the air circuit is open when the coil is not energised. Operating principle of the normally closed two-position three-port solenoid valve: energise the coil and the air circuit opens; as soon as the coil is de-energised the air circuit closes - this is equivalent to "jogging". Operating principle of the normally open two-position three-port single-solenoid valve: energise the coil and the air circuit closes; as soon as the coil is de-energised the air circuit opens - this is also "jogging".
Fig. 1 shows a simple sectional view of the structure and the working principle of a two-position three-port direct-acting solenoid valve (normally closed). When the coil is energised, the fixed core produces an electromagnetic force; the spool moves upwards under this force and the seal lifts, so ports 1 and 2 are connected and ports 2 and 3 disconnected, and the valve is in the air-intake state and can control the action of a cylinder. When de-energised, the spool returns to its original position under the spring force, i.e. ports 1 and 2 are disconnected and ports 2 and 3 connected, and the valve is in the exhaust state.

Two-position five-port solenoid valve
A two-position five-port solenoid valve has one inlet port (air supply), one forward-action outlet port and one reverse-action outlet port (supplying the forward and reverse acting air supplies to the target equipment), and one forward-action exhaust port and one reverse-action exhaust port (fitted with silencers). Two-position five-port valves are generally double-solenoid (two coils). Operating principle of the two-position five-port double-solenoid valve: energise the forward-action coil and the forward-action air circuit opens (air at the forward-action outlet); even after the forward-action coil is de-energised the forward-action air circuit remains open, and this is maintained until the reverse-action coil is energised. Energise the reverse-action coil and the reverse-action air circuit opens (air at the reverse-action outlet); even after the reverse-action coil is de-energised the reverse-action air circuit remains open, and this is maintained until the forward-action coil is energised. This is equivalent to "self-locking".
Fig. 2 shows a simple sectional view of the structure and the working principle of a two-position five-port direct-acting solenoid valve (normally closed). In the initial state ports 1 and 2 admit air and ports 4 and 5 exhaust; when the coil is energised the fixed core produces an electromagnetic force that actuates the pilot valve, compressed air passes through the air circuit into the pilot piston and starts the piston, the sealing face in the middle of the piston opens the passage, ports 1 and 4 admit air and ports 2 and 3 exhaust; when de-energised the spool returns to its original position under the spring force.
Other solenoid valves with several positions and ports
Two-position two-port solenoid valve:
When the left solenoid coil is energised, the core overcomes the right spring force and other related resistances and pushes the piston, so that the passage from P to A is connected. When the left coil is de-energised, the right spring overcomes the gas resistance and other related resistances and pushes the piston, so that the passage from P to A is cut off.
Two-position four-port solenoid valve:
When the left solenoid coil is energised, the core overcomes the right spring force and other related resistances and pushes the piston, the passage P to A is connected and O to B is connected, and the valve push rod moves to the right under the pressure difference. When the left coil is de-energised, the core overcomes the spring, air pressure and other related resistances and pushes the piston, the piston returns under the spring force, passages P to B and O to A are connected, and the valve push rod moves to the left under the pressure difference.

Three-position three-port solenoid valve:
When the left solenoid coil is energised, the core overcomes the right spring force and other related resistances and pushes the piston, passage A to P is connected and compressed air flows normally, while passage A to O is blocked. When the right solenoid coil is energised, the core overcomes the right spring force and other related resistances and pushes the piston, passage A to O is connected and passage A to P is blocked. When both coils are de-energised, the springs at both ends push the piston to the middle position, maintaining the reset state and blocking inlet A.

Three-position four-port solenoid valve:
When the left solenoid coil is energised, the core pushes the piston, passage A to P is connected and B to O is connected. When the right solenoid coil is energised, the core pushes the piston, passage B to P is connected and A to O is connected. When both coils are de-energised, the piston returns under the spring force and all passages are blocked.

Three-position five-port solenoid valve:
When the left coil is energised, passage P to B is connected, air enters the right side of the cylinder and the pressure rises, while A to R is connected and the left side exhausts so the pressure falls, and the cylinder piston moves to the left. When the right coil is energised, passage P to A is connected, air enters the left side of the cylinder and the pressure rises, while B to S is connected and the right side exhausts so the pressure falls, and the cylinder piston moves to the right. When both coils are de-energised, the piston returns under the spring force and all passages are blocked, and the cylinder piston stays in its current state.