🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Manufacturing & Marine › Robotics / Mechatronics › Pneumatics and Hydraulics for Mechatronics › Lesson 4
MFG-MECH15-03 · Lesson 4 · 15 clock hours · lab

Electro-Pneumatic Control: Solenoid Valves and PLCs

Objective. Students will wire a 24 VDC solenoid valve to a PLC output, write a ladder-logic program that sequences two cylinders using limit switches, and verify proper operation against a written sequence chart.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by a licensed engineer or certified journey-level tradesperson or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Electro-Pneumatic Control: Solenoid Valves and PLCs

What Is Electro-Pneumatic Control?

Electro-pneumatic control combines compressed-air actuators (cylinders and valves) with electrical control devices (PLCs, sensors, and solenoid valves). Instead of manually shifting a valve spool, a PLC output energizes a solenoid coil that shifts the spool electrically. This allows precise, repeatable, and remotely programmable control of cylinder motion — exactly the kind of automation found in packaging machinery, robotic end-of-arm tooling, and marine deck equipment.

The 5/2 Double-Solenoid Valve

A 5/2 valve has five ports and two switching positions. The five ports are: pressure supply (P), two actuator ports (A and B), and two exhaust ports (EA and EB). "Double-solenoid" means one coil extends the cylinder and a second coil retracts it. When coil A is energized, port A receives pressure and extends the cylinder rod. When coil B is energized, port B receives pressure and retracts the rod. If both coils are de-energized, the valve stays in its last position (detented). This is different from a spring-return (5/2 single-solenoid) valve, which returns to one state when power is removed.

In today's lab the valve operates on 24 VDC coils. Always confirm coil voltage before wiring — applying the wrong voltage destroys coils and can create arc-flash or fire hazards.

Inductive Limit Switches

An inductive proximity switch detects metallic targets without physical contact. It produces a solid-state output: PNP switches source current (output goes high when target is present) and NPN switches sink current (output goes low). Most industrial PLCs accept either type, but the wiring is different. Check the data sheet before wiring.

In this lab, limit switches confirm cylinder position. One switch signals "cylinder A extended" (A+), one signals "cylinder A retracted" (A−), one signals "B extended" (B+), and one signals "B retracted" (B−). These inputs are the interlocks that allow the sequence to advance safely.

Safety First

Lockout/Tagout (LOHTO) — OSHA 29 CFR 1910.147: Before wiring or changing any connections, de-energize the pneumatic supply and the electrical supply, then lock and tag out both energy sources. Verify zero pressure at the manifold and verify 0 VDC at the output terminals with a calibrated meter before touching any wiring. Never rely on a software interlock alone to make equipment safe.

Electrical safety — NFPA 70E: Use insulated tools. At 24 VDC the shock risk is low but the short-circuit current from a power supply can be high enough to cause burns or fire. Inspect wires for damaged insulation before energizing.

Machine guarding — OSHA 1910.212: Keep hands clear of cylinder stroke zone during powered tests. A pneumatic cylinder can generate hundreds of pounds of force. Establish a clear zone and announce "energizing" before each test run.

Industrial robot and automation safety — ANSI/RIA R15.06 / ISO 10218: Electro-pneumatic trainers connected to robot end-of-arm tooling must be treated as part of the robot safety system. Safeguarding must be confirmed intact before automatic operation begins.

Two-Cylinder Sequence: A+, B+, B−, A−

A displacement-step sequence chart is the standard way to document cylinder motion. For a two-cylinder system:

| Step | Action | Condition to advance |

|------|--------|----------------------|

| 1 | A extends (A+) | Limit switch A+ closes |

| 2 | B extends (B+) | Limit switch B+ closes |

| 3 | 1-second dwell | Timer done |

| 4 | B retracts (B−) | Limit switch B− closes |

| 5 | A retracts (A−) | Limit switch A− closes → back to step 1 |

The sequence only advances when the confirming limit switch closes (or timer completes). This interlocking prevents the next step from starting before the prior step finishes — a critical machine-safety principle.

Writing Ladder Logic for the Sequence

In IEC 61131-3 ladder diagram, each rung uses contacts (inputs) and coils (outputs). A common technique for sequential control is a step bit approach: a memory bit (internal coil) marks the active step, and only the rung for that step can energize the output.

Rung structure (simplified):

Always use one output address per coil. Writing the same output coil in more than one rung (duplicate coil) produces unpredictable behavior and is flagged as an error in most PLC compilers.

Downloading and Monitoring

After programming: compile with zero errors, download to the PLC in Stop mode, switch to Run, and use the online monitoring view to watch contact states in real time. Green (highlighted) contacts indicate a closed (logic 1) state. During the fault-injection exercise, a broken wire makes an input contact show open (not highlighted) even though the cylinder may have reached its target. Comparing the physical cylinder position with the PLC input state isolates the fault to the wiring, not the cylinder.

Documentation in the Lab Log

Record: wiring connections (terminal numbers, wire colors), input/output address assignments, program file name and version, sequence chart, test results for three consecutive runs, and fault-injection findings (symptom observed, input address affected, root cause, corrective action). Good documentation is an industry expectation and an exam topic for PMMI and Siemens credentials.

Key terms8

5/2 double-solenoid valveA directional control valve with five ports and two switching positions, shifted in either direction by energizing one of two separate solenoid coils; the valve holds its last position when both coils are de-energized.
Inductive proximity switchA non-contact sensor that detects metallic targets using an oscillating electromagnetic field; provides a solid-state PNP or NPN output signal used as a PLC input.
Displacement-step sequence chartA table or diagram that documents the ordered steps of a multi-actuator system, showing which cylinder moves at each step and the condition (limit switch or timer) required to advance to the next step.
Step bitAn internal PLC memory coil that flags the currently active step in a sequential program; only the rung associated with the active step can energize its output, preventing multiple steps from running simultaneously.
Duplicate coilAn error condition in ladder logic where the same output address appears as a coil in more than one rung; the last rung evaluated controls the output, causing unpredictable behavior.
Lockout/Tagout (LOTO)The OSHA 29 CFR 1910.147 procedure for controlling hazardous energy: de-energize equipment, apply a lock and tag to the energy-isolating device, and verify zero energy before any maintenance or wiring work.
Online monitoringA PLC programming software mode in which the programmer can view the live logic state of contacts and coils while the program is running, enabling real-time fault diagnosis without stopping the machine.
IEC 61131-3The international standard defining five PLC programming languages: ladder diagram, function block diagram, structured text, sequential function chart, and instruction list.

Worked examples4

1. A pneumatic cylinder with a 2-inch bore is supplied at 80 PSI. What extend force does it produce?
  1. Recall the cylinder force formula: Force = Pressure × Area.
  2. Calculate the piston area: Area = π × r² = π × (1 in)² = π ≈ 3.14 in².
  3. Multiply: Force = 80 PSI × 3.14 in² = 251.2 lb.
Answer: The cylinder produces approximately 251 lb of extend force at 80 PSI.
2. A 24 VDC solenoid coil has a resistance of 48 Ω. What current does it draw, and what power does it consume?
  1. Apply Ohm's law: I = V ÷ R = 24 V ÷ 48 Ω = 0.5 A.
  2. Apply the power formula: P = V × I = 24 V × 0.5 A = 12 W.
  3. Alternatively, P = V² ÷ R = 576 ÷ 48 = 12 W (confirms the result).
Answer: The coil draws 0.5 A and consumes 12 W.
3. A PLC timer is set for a 1-second dwell (1000 ms). The scan time is 10 ms. Approximately how many program scans occur during the dwell?
  1. Divide the dwell time by the scan time: 1000 ms ÷ 10 ms = 100 scans.
  2. Each scan the timer accumulator increments by the scan time; after 100 scans the preset is reached and the done bit turns on.
Answer: Approximately 100 program scans occur during the 1-second dwell.
4. A cylinder has a 1.5-inch bore and receives a flow of 0.5 GPM. Using the hydraulic speed formula adapted for pneumatic-flow estimation, what approximate extension speed (in/min) does this suggest? (Use: speed = GPM × 231 ÷ area.)
  1. Calculate bore area: Area = π × (0.75 in)² = π × 0.5625 ≈ 1.767 in².
  2. Apply the formula: Speed = 0.5 GPM × 231 ÷ 1.767 in² = 115.5 ÷ 1.767 ≈ 65.4 in/min.
Answer: The estimated extension speed is approximately 65 in/min.

The math in this lesson3

Learners divide a 1000 ms dwell by a 10 ms scan time and estimate cylinder speed from flow.
6.RP.3G-MG.2A-CED.4
Brush up in the math halls at newSchoolWorks.com:
In class: Wiring exercise: students connect a 5/2 double-solenoid valve (24 VDC coils) to PLC output cards and wire two inductive limit switches to input cards, following a provided point-to-point wiring diagram; instructor checks wiring before power-up. · PLC programming: students enter a ladder-logic program that implements a two-cylinder A+, B+, B−, A− sequence using contacts, coils, and a timer for a 1-second dwell; they download, run, and observe physical cylinder motion matching the sequence chart. · Fault injection exercise: instructor opens one limit switch wire; students use the PLC online monitoring view to identify the faulted input, restore the wire, and document root cause in their lab log.
Materials: Electro-pneumatic trainer, PLC (any IEC 61131-3 compliant unit used in Course 2), 24 VDC power supply, solenoid valves, inductive limit switches, wiring tools, laptop with PLC programming software, lab log notebooks
Check: Two-cylinder sequence runs three consecutive times without fault; wiring passes instructor point-to-point check; lab log entry is complete; pass = all three criteria met.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Safety and Hazardous Energy Control
1. When wiring a 24 VDC double-solenoid valve to a PLC output card, which action must be completed BEFORE making any wire connections?
Fluid Power — Pneumatic Components
2. A 5/2 double-solenoid valve has both coils de-energized. Which statement correctly describes its behavior?
PLC Programming — IEC 61131-3
3. In IEC 61131-3 ladder diagram, writing the same output coil address in two separate rungs is called a duplicate coil. What is the most likely result?
Fault Diagnosis and Troubleshooting
4. During online monitoring of the two-cylinder sequence, the program stalls at Step 2 (waiting for B+ limit switch). The B cylinder appears fully extended. What is the MOST likely fault?
Fluid Power — Cylinder Force Calculations
5. A pneumatic cylinder with a 3-inch bore is operated at 100 PSI. What is the approximate extend force? (Use π ≈ 3.14.)
Safety Standards
6. Which OSHA standard specifically addresses machine guarding requirements for industrial equipment such as pneumatic-cylinder trainers?
PLC Programming — Sequential Control
7. In a two-cylinder A+, B+, B−, A− sequence, which event should trigger the transition from Step 3 (dwell) to Step 4 (B retracts)?
Sensors and Input Devices — Siemens SMSCP / PMMI
8. A PNP inductive proximity switch is connected to a PLC sourcing input card. What does a logic 1 (ON) state at that input indicate?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.