All exercises

Manual/Auto Motor

medium

Controls one motor in manual or automatic mode with stop priority and a resettable fault latch.

What it teaches

Builds on Start/Stop Motor by adding mode selection, an automatic run command, and a resettable fault interlock. A Start press made in Auto must not start Manual later.

Inputs and outputs

TagTypeDefaultDescription
In_StartBOOLManual Start push button
In_StopBOOLStop command; 1 stops the motor
In_AutoModeBOOL0 selects Manual; 1 selects Auto
In_AutoCommandBOOLRun command from the automatic sequence
In_FaultBOOLActive motor fault
In_ResetBOOLClears the fault latch after In_Fault is off
Out_RunBOOLRun command sent to the motor
Sts_FaultedBOOL1 while a motor fault is latched

Required behavior