VFD Fault Detection & Safe Reset
Ready to build this?
Sign up free — no credit card required. This scenario requires the Pro plan.
Sign up to play this scenario →Already have an account? Log in
Briefing
The physics engine runs a VFD and trips it after 2 seconds of operation (simulating an overload / overcurrent fault). Your ladder must: 1. **3-wire seal-in** — START latches RUN_BIT; STOP or VFD_FAULTED resets it. 2. **VFD_RUN** follows RUN_BIT. 3. **FAULT_LAMP** mirrors VFD_FAULTED. 4. **Safe reset** — RESET_PB only issues a VFD_RESET pulse when the drive is stopped (RUN_BIT = 0). Use an **R_TRIG** one-shot so the reset is a single scan pulse, not a continuous command. Safety note: resetting a faulted drive while it is still in RUN command can cause the motor to restart unexpectedly. The interlock on the reset ensures the operator must stop first.
Objectives
- SET RUN_BIT on START; RESET on STOP or VFD_FAULTED
- VFD_RUN := RUN_BIT
- FAULT_LAMP := VFD_FAULTED
- VFD_RESET via R_TRIG one-shot — only when /RUN_BIT
Hints
- | STOP OR VFD_FAULTED | R= RUN_BIT ; drops the run command when the drive faults
- Gate the reset in a helper bit: | RESET_PB AND /RUN_BIT | := RESET_PERMITTED ; then RT_RESET(CLK:=RESET_PERMITTED); | RT_RESET.Q | := VFD_RESET ;
I/O Table
Inputs
STARTStart push-button (momentary NO)
BOOL · %I0.0
STOPStop push-button (momentary NO)
BOOL · %I0.1
RESET_PBFault reset push-button
BOOL · %I0.2
VFD_RUNNINGPhysics: drive spinning (speed > 0.5 %)
BOOL · %I0.3
VFD_FAULTEDPhysics: drive fault / trip
BOOL · %I0.4
Outputs
VFD_RUNRun command to VFD
BOOL · %Q0.0
VFD_RESETFault reset command to VFD
BOOL · %Q0.1
FAULT_LAMPFault 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.
- #1Drive trips after 2 s → VFD_RUN drops, FAULT_LAMP on
START the drive; physics trips it after 2 s; FAULT_LAMP must be on and VFD_RUN off.
- #2RESET_PB ineffective while still in RUN state
Immediately after START (before fault), pressing RESET_PB should NOT issue VFD_RESET — interlock requires drive stopped.
- #3After STOP → RESET_PB clears fault (issues VFD_RESET pulse)
Start drive, manually STOP it, then press RESET_PB — VFD_RESET pulse should fire.
Related scenarios
Ready to build this?
Sign up free — no credit card required. This scenario requires the Pro plan.
Sign up to play this scenario →Already have an account? Log in