Basic
15 min

Pneu 03 — Two-hand press cycle

pneumaticpresstwo-handsafetytimerTONsequencing

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

Pneu 03 — Two-hand press cycle

Briefing

A pneumatic press has two start buttons far enough apart that the operator needs both hands, so neither hand can be under the ram. The press cylinder is double-acting: DOWN_SOL drives the ram down, UP_SOL brings it back up. Reed switches report the top (RETRACT_LS) and the bottom (EXTEND_LS) of the stroke. Rules: both buttons together start the down stroke. They must be pressed within 500 ms of each other. If the second hand is late, or one button is tied down with tape or a wedge, nothing moves and FAULT_LAMP lights until both buttons are released. Letting go of either button during the down stroke sends the ram straight back up, and so does reaching the bottom. After a stroke the press waits for both buttons to be released before it accepts another cycle. Training material. Follow your site procedures, local electrical code and the manufacturer's instructions. Lockout/tagout and a qualified person are required for real equipment. A real two-hand control is a safety function built from certified safety hardware, not from ordinary PLC logic.

Objectives

  • Both buttons pressed together: the ram comes down
  • One button alone starts nothing
  • A second button more than 500 ms late starts nothing and lights FAULT_LAMP
  • Releasing either button mid-stroke sends the ram back up
  • After a stroke the press waits for both buttons to be released; a tie-down fault clears once both are released

Hints

  • Work out the states the press can be in: armed and waiting, coming down, going up. Write down what moves it from each one to the next.
  • To catch a late second hand or a tied-down button you need to know how long exactly one of the two buttons has been pressed. A timer fed by that condition gives you the fault.
  • The down stroke must end on either of two events (the bottom sensor, or a released button), and both of them start the return. The press should only be armed again once both buttons are released and the ram is at the top.
  • Hold both buttons through a full stroke in your head: what stops the press from coming down again straight after it returns? Then tie one button down for a second: what has to clear the fault?

I/O Table

Inputs

HAND_A

Left start button (held)

BOOL · %I0.0

HAND_B

Right start button (held)

BOOL · %I0.1

RETRACT_LS

Reed switch: ram at the top

BOOL · %I0.2

EXTEND_LS

Reed switch: ram at the bottom

BOOL · %I0.3

Outputs

DOWN_SOL

5/2 valve solenoid: ram down

BOOL · %Q0.0

UP_SOL

5/2 valve solenoid: ram up

BOOL · %Q0.1

FAULT_LAMP

Button synchronisation fault 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. #1Both buttons within the window → ram comes down

    A, then B 200 ms later, both held

  2. #2One button alone → nothing moves

    A single button never starts the press

  3. #3Second button 0.7 s late → no press, fault lamp on

    The 500 ms window has closed

  4. #4Let go of one button mid-stroke → ram goes back up

    Either hand releasing ends the down stroke and starts the return

  5. #5Hands held through a full stroke → returns and waits

    The press needs both buttons released before the next cycle

  6. #6One button tied down, then the other → fault; release both → clears

    A tie-down is refused and the fault clears when both buttons are released

  7. #7After a cycle, release and press again → comes down

    A second cycle starts cleanly

  8. #8B first, then A within the window → ram comes down

    The order of the two buttons does not matter

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