Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to preset the counter value to 10.
PLC Programming
COUNTER [1] PRESET 10;
Attempts:
3 left
💡 Hint
Common Mistakes
Using a counter name that is not defined.
Forgetting to specify the counter name.
✗ Incorrect
The counter named C1 is preset to 10 using the PRESET instruction.
2fill in blank
mediumComplete the code to reset the counter named C2.
PLC Programming
COUNTER [1] RESET;Attempts:
3 left
💡 Hint
Common Mistakes
Resetting the wrong counter.
Omitting the counter name.
✗ Incorrect
The RESET instruction is applied to counter C2 to reset its count.
3fill in blank
hardFix the error in the code to correctly preset counter C3 to 5.
PLC Programming
COUNTER [1] PRESET 5;
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different counter name than C3.
Syntax errors in the instruction.
✗ Incorrect
The counter C3 is correctly specified for presetting to 5.
4fill in blank
hardFill both blanks to preset counter C4 to 7 and then reset it.
PLC Programming
COUNTER [1] PRESET 7; COUNTER [2] RESET;
Attempts:
3 left
💡 Hint
Common Mistakes
Using different counters for preset and reset.
Forgetting to specify the counter name in one of the instructions.
✗ Incorrect
Both preset and reset instructions apply to counter C4.
5fill in blank
hardFill all three blanks to preset counter C1 to 12, reset counter C2, and preset counter C3 to 8.
PLC Programming
COUNTER [1] PRESET 12; COUNTER [2] RESET; COUNTER [3] PRESET 8;
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up counter names for preset and reset.
Omitting a counter name.
✗ Incorrect
The instructions apply preset to C1 and C3, and reset to C2 as required.
