Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add a comment describing the purpose of the PLC program.
PLC Programming
// [1]: Controls the conveyor belt speedAttempts:
3 left
💡 Hint
Common Mistakes
Using a comment that describes an action instead of the program purpose.
✗ Incorrect
The comment should describe the program's purpose, so 'Program description' is correct.
2fill in blank
mediumComplete the code to add a header comment with the author's name.
PLC Programming
/* Author: [1] */Attempts:
3 left
💡 Hint
Common Mistakes
Putting a date or version number instead of the author's name.
✗ Incorrect
The author's name should be placed after 'Author:' in the comment header.
3fill in blank
hardFix the error in the comment syntax to properly document the program version.
PLC Programming
// Version [1]Attempts:
3 left
💡 Hint
Common Mistakes
Adding quotes or extra words inside the comment.
✗ Incorrect
The version number should be a simple string without quotes in the comment.
4fill in blank
hardFill both blanks to document the input and output variables in the PLC program.
PLC Programming
// Input variable: [1] // Output variable: [2]
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing input and output variables.
✗ Incorrect
StartButton is an input, and MotorSpeed is an output variable in typical PLC programs.
5fill in blank
hardFill all three blanks to complete the documentation block with date, author, and description.
PLC Programming
/* Date: [1] Author: [2] Description: [3] */
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order of date, author, and description.
✗ Incorrect
The date, author, and description should be placed in the respective fields in the comment block.
