Basic
15 min

Pneumatic Press Cycle

pneumaticpresssafetycyclelimit-switchsequencing

Ready to build this?

Sign up free — no credit card required. This scenario requires the Basic plan.

Sign up to play this scenario →

Already have an account? Log in

Pneumatic Press Cycle scenario preview

Briefing

A pneumatic press with a safety guard. The guard must be closed before the cycle can start. Pressing START_PB energises the EXTEND_VALVE, pushing the ram down. When EXTEND_LS confirms the ram is fully extended, the extend valve de-energises and the RETRACT_VALVE energises, pulling the ram back. When RETRACT_LS confirms retraction, the cycle completes and CYCLE_COMPLETE_LAMP pulses. Opening the guard mid-cycle drops all valves immediately.

Objectives

  • GUARD_CLOSED must be true before START_PB is effective
  • START_PB energises EXTEND_VALVE; RETRACT_VALVE stays off
  • When EXTEND_LS true: EXTEND_VALVE drops; RETRACT_VALVE energises
  • When RETRACT_LS true: RETRACT_VALVE drops; CYCLE_COMPLETE_LAMP pulses
  • Opening guard mid-cycle (GUARD_CLOSED goes false) drops all valves immediately
  • ESTOP drops all valves immediately

Hints

  • Use a sequence state: IDLE → EXTENDING → RETRACTING → COMPLETE
  • PHASE_EXTEND: S= by START_PB AND GUARD_CLOSED; R= by EXTEND_LS or guard opening
  • PHASE_RETRACT: S= by EXTEND_LS AND PHASE_EXTEND; R= by RETRACT_LS or guard opening
  • EXTEND_VALVE := PHASE_EXTEND AND GUARD_CLOSED AND ESTOP
  • RETRACT_VALVE := PHASE_RETRACT AND GUARD_CLOSED AND ESTOP

I/O Table

Inputs

GUARD_CLOSED

Guard / barrier closed sensor

BOOL · %I0.0

START_PB

Cycle start push-button (momentary)

BOOL · %I0.1

RETRACT_LS

Ram fully retracted limit switch

BOOL · %I0.2

EXTEND_LS

Ram fully extended limit switch

BOOL · %I0.3

ESTOP

E-stop (NC — true=healthy)

BOOL · %I0.4

Outputs

EXTEND_VALVE

Pneumatic extend valve solenoid

BOOL · %Q0.0

RETRACT_VALVE

Pneumatic retract valve solenoid

BOOL · %Q0.1

CYCLE_COMPLETE_LAMP

Cycle complete indicator lamp

BOOL · %Q0.2

Your program will be tested against:

All test cases run automatically when you submit. Assertions are hidden until you pass.

  1. #1Guard must be closed before cycle can start

    START_PB with guard open does nothing

  2. #2START_PB with guard closed energises EXTEND_VALVE

    Normal cycle start: EXTEND_VALVE energises, RETRACT_VALVE stays off

  3. #3EXTEND_LS transitions to retract phase

    When EXTEND_LS fires, extend valve drops and retract valve energises

  4. #4RETRACT_LS completes cycle and lights CYCLE_COMPLETE_LAMP

    Full cycle: extend → retract → CYCLE_COMPLETE_LAMP on

  5. #5Opening guard mid-cycle drops all valves

    Guard opened during extend phase immediately drops EXTEND_VALVE

Ready to build this?

Sign up free — no credit card required. This scenario requires the Basic plan.

Sign up to play this scenario →

Already have an account? Log in

Runnable simulator field guide

Pneumatic-press PLC scenario: test checklist

Direct answer

The learner can define every motion permission and feedback transition, detect failure to reach position and recover without uncontrolled repeat movement.

Written for automation learners programming a guarded low-energy press model with clamp or extend, return, position proof and cycle state.

a guarded compact manufacturing cell used to test conveyor sensing, pneumatic transfer, counting, palletizing and recoverable sequence behavior while studying pneumatic press sequence, interlocks, end feedback and recovery
System map / 02

NODE 01observable

Scenario setup

Hazard boundary, safe training mode, start request, guard or protective condition, part present, pressure available, valve normal state, extend and retract commands, end sensors, timeout, stop and restart policy.

NODE 02observable

I/O and state map

Cycle demand through permissives and explicit state to valve output, cylinder motion, end-position feedback, dwell or process result, return and completed-cycle evidence.

NODE 03observable

Normal run

One deliberate request produces exactly one extend-and-return cycle with every transition proved and stop behavior defined.

NODE 04observable

Boundary run

Missing part, guard demand, low pressure, valve stuck, extend timeout, retract timeout, both end sensors, lost feedback, interrupted cycle and power return.

NODE 05observable

Injected fault

A permissive, state, command, valve, pressure, cylinder, sensor, timeout, stop or restart mismatch.

NODE 06observable

Target check

The real machine engineered and validated by qualified people for guarding, energy control, pneumatics and functional safety.

Answer surface / 07

What should a pneumatic press PLC sequence include?

Include explicit permissions, one-cycle state, valve commands, independent end-position feedback, timeouts, stop response and a deliberate recovery path.

Why is an output command not proof that a cylinder moved?

The valve, air supply, flow controls, cylinder, load or feedback can fail after the PLC output changes.