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.
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 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.
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.
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.
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.
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.
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.
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.
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.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.