Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the motor when the start button is pressed.
PLC Programming
IF StartButton = [1] THEN
Motor := TRUE;
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Using FALSE instead of TRUE to detect button press.
Using numeric values like 1 instead of TRUE.
✗ Incorrect
The motor should start when the StartButton is TRUE (pressed).
2fill in blank
mediumComplete the code to stop the motor when the stop button is pressed.
PLC Programming
IF StopButton = [1] THEN
Motor := FALSE;
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Using FALSE instead of TRUE to detect button press.
Using numeric values like 0 instead of TRUE.
✗ Incorrect
The motor should stop when the StopButton is TRUE (pressed).
3fill in blank
hardFix the error in the code to keep the motor running after the start button is released.
PLC Programming
IF StartButton = TRUE THEN
Motor := TRUE;
ELSIF StopButton = [1] THEN
Motor := FALSE;
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Using FALSE instead of TRUE for stop button condition.
Using numeric values instead of TRUE.
✗ Incorrect
The motor should stop only when the StopButton is TRUE (pressed).
4fill in blank
hardFill both blanks to create a latch that keeps the motor running after start is pressed and stops on stop press.
PLC Programming
IF StartButton = [1] THEN Motor := TRUE; ELSIF StopButton = [2] THEN Motor := FALSE; END_IF;
Attempts:
3 left
💡 Hint
Common Mistakes
Using FALSE for stop button condition.
Using ON/OFF instead of TRUE/FALSE.
✗ Incorrect
Both start and stop buttons are checked for TRUE to control motor state.
5fill in blank
hardFill all three blanks to implement a start-stop motor control with a holding contact.
PLC Programming
IF StartButton = [1] OR Motor = [2] THEN Motor := TRUE; END_IF; IF StopButton = [3] THEN Motor := FALSE; END_IF;
Attempts:
3 left
💡 Hint
Common Mistakes
Using FALSE for StartButton or Motor conditions.
Using FALSE for StopButton condition instead of TRUE.
✗ Incorrect
StartButton and Motor are checked for TRUE to keep motor running; StopButton TRUE stops motor.
