Basic
10 min

Jog / Run Motor Control

motorjogselectorsafetylatching
Jog / Run Motor Control scenario preview

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

Briefing

A classic two-mode motor starter. SELECTOR_RUN_MODE selects between Run mode (latched via RUN_PB) and Jog mode (CONTACTOR energised only while JOG_PB is held). An E-stop or thermal overload latches a fault that blocks operation until STOP_PB is pressed and the fault condition clears. Lamps indicate the current operating mode.

Objectives

  • In RUN mode: RUN_PB latches CONTACTOR (seal-in); STOP_PB drops it
  • In JOG mode: JOG_PB energises CONTACTOR only while held; release drops it
  • ESTOP or OVERLOAD drops CONTACTOR and latches FAULT_LAMP
  • Fault clears only when STOP_PB pressed AND fault condition cleared
  • RUN_LAMP on while CONTACTOR energised in run mode; JOG_LAMP on in jog mode while held

Hints

  • Use SELECTOR_RUN_MODE to gate RUN_PB into the RUN_BIT SET rung
  • In jog mode (SELECTOR_RUN_MODE = false): CONTACTOR := JOG_PB AND /FAULT_BIT
  • FAULT_BIT: S= by /ESTOP OR OVERLOAD; R= when STOP_PB AND ESTOP AND NOT OVERLOAD
  • ESTOP is NC — the safe/healthy state is ESTOP = TRUE

I/O Table

Inputs

RUN_PB

Run push-button (momentary)

BOOL · %I0.0

STOP_PB

Stop push-button (momentary)

BOOL · %I0.1

JOG_PB

Jog push-button (held)

BOOL · %I0.2

SELECTOR_RUN_MODE

Mode selector (true=RUN, false=JOG)

BOOL · %I0.3

ESTOP

E-stop (NC — true=healthy)

BOOL · %I0.4

OVERLOAD

Thermal overload (true=trip)

BOOL · %I0.5

Outputs

CONTACTOR

Motor contactor coil

BOOL · %Q0.0

JOG_LAMP

Jog mode indicator lamp

BOOL · %Q0.1

RUN_LAMP

Run mode running indicator lamp

BOOL · %Q0.2

FAULT_LAMP

Fault indicator lamp

BOOL · %Q0.3

Your program will be tested against:

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

  1. #1Run mode: RUN_PB seals in CONTACTOR

    In run mode, momentary RUN_PB energises and latches contactor

  2. #2Jog mode: CONTACTOR only while JOG_PB held

    In jog mode, contactor follows JOG_PB exactly

  3. #3E-stop latches fault, cleared by STOP_PB after restore

    E-stop drops contactor and latches fault until STOP_PB + E-stop cleared

  4. #4Thermal overload latches fault, requires overload reset + STOP_PB

    Overload trip drops contactor and latches fault until trip clears and STOP_PB pressed

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