Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the conveyor belt when the start button is pressed.
PLC Programming
IF StartButton = TRUE THEN
ConveyorBelt := [1];
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Setting the conveyor belt to OFF instead of ON.
Using STOP or PAUSE which are not valid states here.
✗ Incorrect
The conveyor belt should be turned ON when the start button is pressed.
2fill in blank
mediumComplete the code to stop the conveyor belt when the stop button is pressed.
PLC Programming
IF StopButton = TRUE THEN
ConveyorBelt := [1];
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Setting the conveyor belt to ON instead of OFF.
Using RUN or START which are not valid states here.
✗ Incorrect
The conveyor belt should be turned OFF when the stop button is pressed.
3fill in blank
hardFix the error in the code to correctly control the conveyor belt based on the start and stop buttons.
PLC Programming
IF StartButton = TRUE THEN
ConveyorBelt := [1];
ELSIF StopButton = TRUE THEN
ConveyorBelt := OFF;
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Setting the conveyor belt to OFF when starting.
Using STOP or PAUSE which are not valid states here.
✗ Incorrect
The conveyor belt should be set to ON when the start button is pressed.
4fill in blank
hardFill both blanks to create a code that starts the conveyor belt when the start button is pressed and stops it when the stop button is pressed.
PLC Programming
IF StartButton = TRUE THEN
ConveyorBelt := [1];
ELSIF StopButton = TRUE THEN
ConveyorBelt := [2];
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Using RUN or PAUSE which are not valid states.
Reversing ON and OFF states.
✗ Incorrect
The conveyor belt should be ON when starting and OFF when stopping.
5fill in blank
hardFill all three blanks to create a code that starts the conveyor belt when the start button is pressed, stops it when the stop button is pressed, and sets an alarm if the emergency button is pressed.
PLC Programming
IF StartButton = TRUE THEN
ConveyorBelt := [1];
ELSIF StopButton = TRUE THEN
ConveyorBelt := [2];
ELSIF EmergencyButton = TRUE THEN
Alarm := [3];
END_IF;Attempts:
3 left
💡 Hint
Common Mistakes
Setting alarm to FALSE instead of TRUE.
Mixing ON and OFF states for conveyor belt.
✗ Incorrect
The conveyor belt should be ON when starting, OFF when stopping, and the alarm should be TRUE when emergency is pressed.
