A 5 2 solenoid valve has five ports and two states. It can switch between two different states to control airflow to and exhaust from both air ports of a pneumatic cylinder or actuator.