Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the timer when the step is active.
PLC Programming
IF step1_active THEN timer.[1] := TRUE;Attempts:
3 left
💡 Hint
Common Mistakes
Using PT (preset time) instead of IN to start the timer.
Confusing Q (output) with input signals.
✗ Incorrect
The 'IN' input enables the timer when the step is active.
2fill in blank
mediumComplete the code to check if the timer has finished.
PLC Programming
IF timer.[1] THEN next_step := TRUE;Attempts:
3 left
💡 Hint
Common Mistakes
Using ET (elapsed time) instead of Q to check completion.
Checking PT (preset time) which is a constant.
✗ Incorrect
The 'Q' output becomes TRUE when the timer finishes.
3fill in blank
hardFix the error in the timer reset code.
PLC Programming
IF step2_active THEN timer.[1] := FALSE;Attempts:
3 left
💡 Hint
Common Mistakes
Trying to reset the timer by setting Q or ET.
Using a non-existent RESET input.
✗ Incorrect
Setting 'IN' to FALSE resets the timer by disabling it.
4fill in blank
hardFill both blanks to create a step sequence with timer control.
PLC Programming
IF step1_active THEN timer.[1] := TRUE; IF timer.[2] THEN step2_active := TRUE;
Attempts:
3 left
💡 Hint
Common Mistakes
Using ET instead of Q to check timer done.
Confusing PT (preset time) with timer signals.
✗ Incorrect
Enable timer with IN and check completion with Q to move to next step.
5fill in blank
hardFill all three blanks to define a timer-based step transition.
PLC Programming
timer[1].[2] := T#5s; IF timer[3].Q THEN step1_active := FALSE;
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing timer instance names.
Using ET instead of Q to check timer completion.
✗ Incorrect
Set preset time PT on timer T1 and check Q output to end step.
