Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a latch that seals in when the start button is pressed.
PLC Programming
IF StartButton THEN Motor [1] TRUE END_IFAttempts:
3 left
💡 Hint
Common Mistakes
Using '==' which is a comparison operator, not assignment.
Using '=' which is not valid in many PLC languages for assignment.
✗ Incorrect
The assignment operator ':=' sets the Motor output to TRUE when StartButton is pressed.
2fill in blank
mediumComplete the code to keep the Motor ON after the StartButton is released using seal-in logic.
PLC Programming
Motor := StartButton OR Motor [1] FALSE;Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AND' instead of 'OR' which makes Motor follow StartButton only, no latching.
Using 'XOR' which toggles output incorrectly.
✗ Incorrect
The 'OR' operator implements seal-in logic (StartButton OR Motor OR FALSE), keeping Motor ON after StartButton is released.
3fill in blank
hardFix the error in the reset logic to stop the Motor when StopButton is pressed.
PLC Programming
IF StopButton [1] Motor := FALSE END_IFAttempts:
3 left
💡 Hint
Common Mistakes
Using 'DO' or 'WHEN' which are not valid after IF in this context.
Omitting the keyword entirely causing syntax errors.
✗ Incorrect
The 'THEN' keyword is required after the IF condition in PLC structured text.
4fill in blank
hardFill both blanks to complete the seal-in logic with start and stop buttons.
PLC Programming
Motor := (StartButton [1] Motor) [2] NOT StopButton;
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AND' in the first blank which would not latch Motor ON.
Using 'OR' in the second blank which would ignore StopButton.
✗ Incorrect
The Motor output is ON if StartButton is pressed or Motor was already ON, and StopButton is NOT pressed.
5fill in blank
hardFill all three blanks to create a complete latching circuit with start and stop buttons.
PLC Programming
Motor := ([1] [2] Motor) [3] NOT StopButton;
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AND' instead of 'OR' in the second blank which breaks the latch.
Using 'XOR' which toggles Motor incorrectly.
✗ Incorrect
StartButton OR Motor keeps Motor ON, AND NOT StopButton stops Motor when pressed.
