AdvancedFive Rung / Mission~25 min

Five Rung (Mission)

The pattern real machines are built from: command a motion, seal it in while it runs, latch Done when the sensor confirms it, and latch a Fault if a watchdog timer expires first. One structure safe moves, detected failures.

Your goal

  • A Go pulse starts the move: Advance ON, sealed in.
  • When AtWork confirms position, the move ends (Advance OFF) with no fault.
  • If AtWork does NOT arrive within 2 s, Fault latches and Advance stops.
  • Reset clears the fault. A new Go pulse must be able to run the mission again.
Stuck? Show hints (4)
  1. R1 (the seal): (NO Go OR NO Advance) AND NC Done AND NC Fault β†’ OTE Advance.
  2. R2 (watchdog): NO Advance β†’ TON Twd. It only times while the motion is commanded.
  3. R3: NO Advance AND NO AtWork β†’ OTL Done. R4 (re-arm): NC Go AND NC Advance β†’ OTU Done.
  4. R5: NO Twd.DN β†’ OTL Fault. R6: NO Reset β†’ OTU Fault. Fault breaks R1's seal, which also stops the watchdog.

Pattern from Contact & Coil's classic ladder logic series.

I/O for this exercise

Inputs
GoStart mission button
AtWorkEnd-position sensor
ResetFault reset button
Outputs
AdvanceAdvance valve / motion output
FaultMission fault lamp
Internal coils
DoneMission complete flag
Timers
Twd Β· 2000msMotion watchdog
Loading the editor…