Pro
8 min

CCST 38 — Program Comment Standards

ccstdocumentationcommentsIEC-61131naming
CCST 38 — Program Comment Standards scenario preview

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_START

Batch start command

BOOL · %I0.0

BATCH_DONE

Batch complete signal

BOOL · %I0.1

ESTOP

Emergency stop

BOOL · %I0.2

Outputs

MIXER_MOTOR

Mixer 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.

  1. #1Mixer starts on batch start

    Mixer starts on batch start

  2. #2Mixer stops on batch done

    Mixer stops on batch done

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