Pro
8 min
CCST 38 — Program Comment Standards
ccstdocumentationcommentsIEC-61131naming
Ready to build this?
Sign up free — no credit card required. This scenario requires the Pro plan.
Sign up to play this scenario →Already have an account? Log in
Briefing
Write a well-commented rung that controls a MIXER_MOTOR: starts on BATCH_START, stops on BATCH_DONE or ESTOP, latches via MIXER_RUNNING. Demonstrate proper comment placement and tag naming per IEC 61131 conventions.
Objectives
- Use descriptive tag names (all UPPER_SNAKE_CASE)
- Write the logic correctly
- Add comments that describe WHAT, not HOW
Hints
- IEC 61131 recommends (* ... *) for line comments
- Comment each rung: (* Start mixing batch if not already running and no fault *)
I/O Table
Inputs
BATCH_STARTBatch start command
BOOL · %I0.0
BATCH_DONEBatch complete signal
BOOL · %I0.1
ESTOPEmergency stop
BOOL · %I0.2
Outputs
MIXER_MOTORMixer motor contactor
BOOL · %Q0.0
Your program will be tested against:
All test cases run automatically when you submit. Assertions are hidden until you pass.
- #1Mixer starts on batch start
Mixer starts on batch start
- #2Mixer stops on batch done
Mixer stops on batch done
Related scenarios
Ready to build this?
Sign up free — no credit card required. This scenario requires the Pro plan.
Sign up to play this scenario →Already have an account? Log in