pneumatics

solenoid valves

plc outputs

Pneumatic Solenoid Valves: Types, Wiring and PLC Control

‌
Pneumatic solenoid valve types connected to PLC output terminals, flat vector diagram

The solenoid valve is where PLC logic becomes physical movement. Get the valve type wrong and your cylinder either won't retract on power loss, will float mid-stroke, or will need two output cards instead of one. This post cuts through the naming convention confusion, explains which configuration to use for each application, and shows you exactly how to wire and program them.

Pneumatic Solenoid Valve Naming: What the Numbers Actually Mean

Every directional control valve gets a two-number designation: ports / positions. A 5/2 valve has 5 ports and 2 positions. A 5/3 has 5 ports and 3 positions. That's the whole system.

Ports are numbered (or lettered) according to ISO 1219. The standard port labels are: 1 (P) = pressure supply, 2 (A) = cylinder port A, 4 (B) = cylinder port B, 3 (R) = exhaust from port A side, 5 (S) = exhaust from port B side. On a 3/2 valve you only have ports 1, 2 and 3 because there's only one working port.

DesignationPortsPositionsTypical actuatorFail-safe
2/222Clamp, blow-offClosed or open
3/2 NC32Single-acting cylinderRetract on de-energise
3/2 NO32Single-acting cylinderExtend on de-energise
5/2 monostable52Double-acting cylinderReturns to spring side
5/2 bistable52Double-acting cylinderHolds last position
5/3 spring-center53Double-acting, mid-stop neededCenters (blocked or exhausted)
Common pneumatic directional valve types and their fail behaviour

Monostable vs Bistable: The Choice That Matters Most

This is the decision that bites engineers most often. A monostable (single-solenoid) valve has one coil and a return spring. Energise the coil and the spool shifts. Cut power and the spring pushes it back. One PLC output controls it. Simple.

A bistable (double-solenoid) valve has a coil on each end. You pulse one coil to shift the spool, pulse the other to shift it back. The spool holds position with no power applied, which is genuinely useful on long-stroke clamps where you don't want to hold a solenoid energised for 30 seconds. The trade-off: you need two PLC outputs and you must add interlock logic to prevent both coils being energised simultaneously. That's a very real failure mode if someone writes the logic carelessly.

Never energise both solenoids of a bistable valve at the same time. The coils fight each other, the spool can stick mid-travel, and on some valve bodies you'll burn out a coil within minutes. Always add an XIO interlock in the PLC rung: if Solenoid_A is ON, block Solenoid_B, and vice versa.

5/3 Valves and the Three Center Conditions

A 5/3 valve adds a center (neutral) position between the two working positions. When both solenoids are de-energised, the spool springs to center. What happens in center depends on the spool type:

  • Closed center (all ports blocked): cylinder locks in place. Good for clamping a workpiece mid-stroke. Watch out: if there's a load pushing on the rod, pressure will build until a seal leaks.
  • Pressure center (both cylinder ports connected to supply): cushions the cylinder against shock. Used on vertical axes where you want both sides pressurised to hold position against gravity.
  • Exhaust center (both cylinder ports open to exhaust): cylinder rod floats free. Used where you need to manually push the rod without fighting back-pressure, common on tooling change fixtures.

In practice, closed-center is the most common choice for machine tools. Exhaust-center shows up in assembly fixtures. Pressure-center is relatively rare and you'll see it called out explicitly in the pneumatic schematic notes.

Wiring a Solenoid Valve to a PLC Output

Most industrial solenoid valve coils run on 24 VDC and draw 0.5 to 2.5 W. That's well within the capacity of a standard transistor (sourcing) PLC output card, which is typically rated 0.5 A per point. Relay output cards can switch them too but the contact life on small relay outputs is shorter than people expect when you're cycling a clamp valve 60 times per minute.

Coil voltages vary: 24 VDC is by far the most common, but you'll encounter 110 VAC and 230 VAC coils on older machines or where the system uses AC I/O. Always check the coil label, not just the manifold nameplate, because manifolds can be mixed. A 24 VDC coil driven from 110 VAC will fail immediately. A 110 VAC coil driven from 24 VDC simply won't shift.

PLC transistor output wiring to monostable and bistable pneumatic solenoid valve coils with flyback diodes
Monostable valves need one output; bistable valves need two, with interlock logic in the PLC program.

Suppression Diodes: Don't Skip Them on DC Coils

When a solenoid coil de-energises, it generates a voltage spike that can be 10 to 100 times the supply voltage, lasting microseconds. On a 24 VDC system that spike can reach 200 to 300 V. A flyback diode across the coil (cathode to positive, anode to negative) clamps this to about 0.7 V above supply and protects the transistor output. Most modern valve coils have a suppression diode or TVS built into the connector. If you're wiring bare coil terminals, add an external 1N4007 or equivalent. This is standard practice and ignoring it is a silent killer of output cards over months of operation.

Check the valve connector first. Festo MPA, SMC SY series, and Parker P1E manifolds all include integrated LED and suppression in the coil plug. If yours does, you don't need an external diode. If the coil has bare spade terminals with no plug, add one.

PLC Logic for a Bistable 5/2 Valve with Interlocks

Here's what actually matters in the program for a bistable valve controlling a double-acting clamp cylinder. The cylinder has two sensors: Clamp_Extended and Clamp_Retracted. The valve has two outputs: Sol_Clamp_Extend (solenoid A) and Sol_Clamp_Retract (solenoid B). The key rule: never command both coils at once, and only command extend when retract is not already commanded, and vice versa.

Bistable 5/2 Valve: Extend/Retract Interlocked Rungs (Studio 5000). Ladder logic (2 rungs): Rung 0: examine if Cycle_Run is on (XIC), then examine if Clamp_Extended is off (XIO), then examine if Sol_Clamp_Retract is off (XIO), then energize output Sol_Clamp_Extend (OTE). Rung 1: examine if Part_Released is on (XIC), then examine if Clamp_Retracted is off (XIO), then examine if Sol_Clamp_Extend is off (XIO), then energize output Sol_Clamp_Retract (OTE). Rung 1: Extend command is only allowed when the cylinder is not already extended and the retract solenoid is not active. Rung 2: Retract command mirrors the same interlock in the opposite direction. Both rungs use XIO contacts on the opposing solenoid tag to prevent simultaneous coil energisation on the bistable valve.

Bistable 5/2 Valve: Extend/Retract Interlocked Rungs (Studio 5000)Ladder logic
Toggle inputs
Rung 0
Ladder logic rung: examine if Cycle_Run is on (XIC), then examine if Clamp_Extended is off (XIO), then examine if Sol_Clamp_Retract is off (XIO), then energize output Sol_Clamp_Extend (OTE) examine if Cycle_Run is on (XIC), then examine if Clamp_Extended is off (XIO), then examine if Sol_Clamp_Retract is off (XIO), then energize output Sol_Clamp_Extend (OTE) XIC Cycle_Run Cycle_Run Cycle_Run XIO Clamp_Extended Clamp_Extended Clamp_Extended XIO Sol_Clamp_Retract Sol_Clamp_Retract Sol_Clamp_Retract OTE Sol_Clamp_Extend Sol_Clamp_Extend Sol_Clamp_Extend
Rung 1
Ladder logic rung: examine if Part_Released is on (XIC), then examine if Clamp_Retracted is off (XIO), then examine if Sol_Clamp_Extend is off (XIO), then energize output Sol_Clamp_Retract (OTE) examine if Part_Released is on (XIC), then examine if Clamp_Retracted is off (XIO), then examine if Sol_Clamp_Extend is off (XIO), then energize output Sol_Clamp_Retract (OTE) XIC Part_Released Part_Released Part_Released XIO Clamp_Retracted Clamp_Retracted Clamp_Retracted XIO Sol_Clamp_Extend Sol_Clamp_Extend Sol_Clamp_Extend OTE Sol_Clamp_Retract Sol_Clamp_Retract Sol_Clamp_Retract
energizedTip: click a contact in the diagram to flip its bit.
Rung 1: Extend command is only allowed when the cylinder is not already extended and the retract solenoid is not active. Rung 2: Retract command mirrors the same interlock in the opposite direction. Both rungs use XIO contacts on the opposing solenoid tag to prevent simultaneous coil energisation on the bistable valve.

Manifold Wiring and Multi-Station Setups

On any machine with more than three or four cylinders you'll almost certainly be using a valve manifold rather than individual body-ported valves. Common options are Festo CPX, SMC EX series, or Parker Pro with DeviceNet/EtherNet/IP fieldbus nodes. These replace individual wiring runs back to the panel with a single network cable and a small fieldbus node at the manifold. The PLC sees each solenoid as a bit in an output word, and commissioning time drops dramatically.

The gotcha with manifold fieldbus nodes: the output update rate over the fieldbus adds a few milliseconds of latency compared to hardwired outputs. For most pneumatic applications this is invisible, but if you have a valve that must respond within one scan cycle for a safety-critical purpose, hardwire it directly. Don't route safety-critical solenoid commands through a fieldbus manifold node unless the node itself is a safety-rated device and the SIL calculation accounts for it. The post on Pneumatic Cylinder Sizing: Force, Bore and Stroke covers cylinder selection once you know which valve type you're using.

Fail-Safe Design: Which Valve Type for Which Risk

The right valve type is partly a pneumatic choice and partly a safety decision. Think through what happens on power loss or E-stop before you specify the valve.

  • Monostable 5/2, spring-return to retract: safest default for most horizontal clamps and grippers. Power off = cylinder retracts = part releases. No extra logic needed for fail-safe retract.
  • Monostable 5/2, spring-return to extend: used where the safe state is extended, e.g. a brake-apply cylinder where spring-extend applies the brake and power releases it.
  • Bistable 5/2: correct for long-dwell clamping where you don't want continuous solenoid current, or where the cylinder must hold position through a power micro-dip. Requires more careful logic and a defined safe-state procedure.
  • 5/3 closed-center: cylinder locks on E-stop. Useful on vertical axes to prevent drop, but you must verify the cylinder seals and valve leakage rate over time because slow drift is possible.
  • 5/3 exhaust-center: cylinder floats on E-stop. Acceptable only where the load cannot cause injury when the rod is free, such as a light part guide.
ISO 13849 and IEC 62061 require you to document the fail-safe state of every actuator as part of the safety function definition. If you're working on a machine that needs a formal SIL or PL assessment, the valve type choice directly affects the risk reduction credit you can claim. See the IEC 62061 SIL Levels explained post for the broader safety context.

Common Commissioning Problems

  • Valve clicks but cylinder doesn't move: check supply pressure (minimum 2 to 3 bar on most valves), then check for a blocked exhaust silencer. Silencers clog with oil mist over time and create back-pressure that stops the spool from shifting fully.
  • Cylinder drifts when valve is centered: worn spool seals or excessive supply pressure past the center spool lands. On older valves, a spool kit costs a fraction of replacement. On a new valve, it's a warranty call.
  • Solenoid coil gets hot: coil is being held energised at too high a voltage, or the coil is rated for pulse-width-modulated hold current and you're driving it with a constant 24 VDC. Some valves use a peak-and-hold driver built into the coil connector; if yours doesn't have one, verify the coil duty cycle rating.
  • Valve shifts but slowly: flow rate is too low for the cylinder bore. You may need a larger valve Cv, a quick-exhaust valve close to the cylinder port, or both. Don't just crank up the supply pressure.
  • Output card trips on overcurrent: measure coil resistance first. A shorted coil can read under 5 ohms and pull 4 to 5 A from a 24 VDC supply, which is well above a 0.5 A transistor output rating.

Related Blogs