# 5/2 Pneumatic Valves: Reading the Symbol

> How to read a 5/2 pneumatic valve symbol, what each port number does, and how to wire a double-acting cylinder to it.

Canonical: https://roboticsengineering.in/pneumatic-5-2-valve-symbol-explained/ | Published: 2026-11-13 | Updated: 2026-11-13 | Author: Jignesh S Panchal

**A 5/2 pneumatic valve has five ports and two positions, and its symbol shows exactly which ports connect in each position. Once you know that each square is one position and each arrow is one flow path, you can read any 5/2 valve drawing and wire a double-acting cylinder correctly.**

## Key takeaways

- In “5/2”, the first number is the count of ports and the second is the count of positions.
- The square joined to the port lines on the drawing shows the valve’s current state; the other square shows what happens when it shifts.
- A single solenoid valve returns by spring when power is lost; a double solenoid valve usually stays in its last position.
- A 5/2 valve drives a double-acting cylinder because it pressurises one end while exhausting the other.

## Ports and Positions

A port is a threaded or push-fit opening on the valve body, and a position is a stable internal arrangement of the spool. A 5/2 valve has five ports and two positions.

Most modern valves follow the numbering used in ISO 5599 and marked on the body. Older drawings use letters instead. The table maps one to the other.

| Number | Letter (older) | Job |
| --- | --- | --- |
| `1` | `P` | Supply pressure in |
| `2` | `B` | Work port to the cylinder |
| `4` | `A` | Work port to the cylinder |
| `3` | `S` | Exhaust for port 2 |
| `5` | `R` | Exhaust for port 4 |
| `12` and `14` | varies by maker | Pilot or solenoid signal that shifts the spool |

The pilot number tells you the result: signal `14` normally connects `1` to `4`, and signal `12` connects `1` to `2`. Letter conventions vary between makers, so trust the numbers printed on your valve.

## Reading the Symbol Box

The symbol is a pair of squares drawn side by side, one per position. Inside each square, arrows show which ports are joined and in which direction air flows.

The port lines (the short stubs for `1` to `5`) attach to one square only. That square is the position the valve is in right now, usually the rest state. The other square is what the valve does after the actuator shifts it. Read one square at a time:

1. Find the square with the port stubs attached.
2. Follow each arrow: a straight arrow joins two ports; a T-shaped end means a closed port.
3. Note which work port is fed by `1` and which is vented to `3` or `5`.
4. Repeat for the other square.

On the left and right of the two squares you will see actuator symbols: a zigzag for a spring, a rectangle with a diagonal line for a solenoid, and a small box for a pilot line. These decide how the valve moves, not where air goes.

## Single vs Double Solenoid

A single solenoid valve has one coil and a spring, and a double solenoid valve has two coils and no spring. The difference is what the valve does when electrical power drops.

With a single solenoid, power shifts the spool and the spring pushes it back when power is removed. The outcome on power loss is predictable: the cylinder goes to the same end every time. With a double solenoid, a short pulse on one coil shifts the spool and it stays there until the other coil is pulsed. This is called a memory or bistable valve. Check how your valve behaves at power-up, because the spool position can be undefined if the valve was moved by hand or vibration while off.

Do not energise both coils together on a double solenoid valve. Many controllers add an interlock in code so that both outputs cannot be on at once.

## Spring Return Behaviour

Spring return means a mechanical spring drives the spool back to a defined position when the signal ends. It gives you a fail-to-known-position behaviour without any electronics.

Choose the rest state with the machine in mind. If a gripper should open or close when air or power fails, pick the valve variant whose spring side gives that result, and confirm it on the symbol before ordering. A spring does not make the system safe by itself. Stored air in the cylinder and tubing can still move a load, so general guidance is to add the protection your risk assessment or machinery standard calls for.

## Wiring a Cylinder

A double-acting cylinder has two ports, and a 5/2 valve feeds one while venting the other. Connect cylinder cap end and rod end to valve ports `2` and `4`, supply to port `1`, and leave `3` and `5` as exhaust, ideally through silencers.

Which cylinder end goes to which port decides the direction of motion. Rather than guess, test it at low pressure with the load removed and swap the two tubes if it moves the wrong way. Add one-way flow control valves in the meter-out arrangement, so that the exhausting side is throttled and the cylinder moves smoothly. For sizing the cylinder itself, see [cylinder sizing for robots](https://roboticsengineering.in/pneumatic-cylinder-sizing-robots/), and for where air fits against motors and hydraulics, see [hydraulic, pneumatic and electric actuators](https://roboticsengineering.in/hydraulic-pneumatic-electric-actuators/).

The coil is switched by a relay, driver or output module sized for it. A 24 V DC coil is common in India on machine builds, but check the label on your own valve. Do not wire mains-voltage coils unless you are qualified to; this article is general guidance and does not replace the manufacturer’s instructions or a qualified engineer. Always depressurise and lock out the air supply before you remove a tube.

If you are practising control logic before touching air, a hobby servo is a safe stand-in for a two-position actuator, as in the [servo gripper project](https://roboticsengineering.in/projects/servo-gripper-potentiometer-arduino/). The [industry hub](https://roboticsengineering.in/industry/) shows where pneumatics fits in factory automation.

## Common Symbol Errors

Symbol errors are mistakes in reading the drawing, not faults in the valve. They cause cylinders that move backwards or never exhaust.

- Reading the wrong square as the rest position: always find the square with the port stubs attached.
- Confusing a 5/2 with a 3/2 valve: a 3/2 has three ports and only drives a single-acting cylinder.
- Ignoring which side the spring is on, which flips the power-off behaviour.
- Blocking exhaust ports `3` and `5` with plugs, so the cylinder cannot move.

## How to check this yourself

1. Read the markings moulded or printed on your valve body and write down which number sits beside each port.
2. Download your valve’s datasheet and compare its symbol with the body markings. Note the spring side and the coil voltage.
3. With the supply disconnected, use the manual override on the solenoid, if fitted, and watch which tube would pressurise.
4. At low supply pressure and with no load, run the cylinder out and back. If it moves backwards, swap the two work tubes.

## Frequently asked questions

### What does 5/2 mean on a pneumatic valve?

It means the valve has five ports and two switching positions. The ports are one supply, two work outlets and two exhausts. In one position the supply feeds one cylinder end, and in the other position it feeds the opposite end, which reverses the cylinder.

### Which port is the supply on a 5/2 valve?

Port number 1, sometimes marked P, is the supply. Ports 2 and 4 go to the cylinder, and ports 3 and 5 are exhausts. Always check the numbers moulded into the valve body, because layout and port sizes vary between manufacturers and valve styles.

### Can I use a 5/2 valve for a single-acting cylinder?

Yes. Connect one work port to the cylinder and plug or leave the other, but a 3/2 valve is the simpler choice. A 5/2 valve gives you a spare port and extra cost. If you do use one, make sure the unused work port is plugged correctly and not blocking an exhaust.

## Quick checklist

- Identify ports `1`, `2`, `3`, `4` and `5` on the body.
- Find the rest-position square and the spring side on the symbol.
- Decide single or double solenoid based on power-loss behaviour.
- Fit flow controls and silencers on the exhausts.
- Depressurise before changing tubes.

## Related reading

- [Robot end effector types](https://roboticsengineering.in/robot-end-effector-types-guide/): where valves drive grippers and cups.
- [3-DOF Arduino robot arm](https://roboticsengineering.in/projects/arduino-robot-arm-3dof/): a build where you can practise two-position and multi-position motion control.
- [Learn hub](https://roboticsengineering.in/learn/): more explainers on actuators and control.
- [Field-Oriented Control in Plain Language](https://roboticsengineering.in/field-oriented-control-plain-language/)
- [Battery State of Charge: Coulomb Counting Explained](https://roboticsengineering.in/battery-state-of-charge-estimation/)
- [Occupancy Grids: How a Robot Builds a Map](https://roboticsengineering.in/occupancy-grid-mapping-explained/)

## About the author and how this is kept accurate

Written, checked and maintained by [Jignesh Panchal](https://www.linkedin.com/in/jignesh-s-panchal/) of [Jaadu Digital](https://jaadudigital.com/). Figures in worked examples come from the stated assumptions, not from a bench test of our own. Read the [editorial standard](https://roboticsengineering.in/editorial-standard/), follow the author on [LinkedIn](https://www.linkedin.com/in/jignesh-s-panchal/), or [send a correction](https://roboticsengineering.in/contact/). Last reviewed: November 2026.
