← 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.

Parameters

TagDirectionTypeDefaultDescription
In_StartInputBOOL0Manual Start push button
In_StopInputBOOL0Stop command; 1 stops the motor
In_AutoModeInputBOOL00 selects Manual; 1 selects Auto
In_AutoCommandInputBOOL0Run command from the automatic sequence
In_FaultInputBOOL0Active motor fault
In_ResetInputBOOL0Clears the fault latch after In_Fault is off
Out_RunOutputBOOL0Run command sent to the motor
Sts_FaultedOutputBOOL01 while a motor fault is latched

Required behavior