Rungsrungs.dev
DocsBlogExercises
> run studio> run studio.rungs.dev
← All courses

Counters

Counting parts, cycles and events

Counters track how many times something happened. Count parts off a line, count up and down against a target, and keep a count inside sensible bounds.

  1. 0

    // Up-counter that fires a done signal when count reaches 10.

    Count Up

    EXERCISE
    Difficultyeasy
    Status—unknown
  2. 1

    // Bidirectional counter tracking a running balance.

    Count Up Down

    EXERCISE
    Difficultyeasy
    Status—unknown
  3. 2

    // Bidirectional counter with upper and lower bounds, and flag outputs when the limits are hit.

    Count Up Down with Bounds

    EXERCISE
    Difficultymedium
    Status—unknown
  4. 3

    // Pulses BatchReady every 5 trigger events and tracks the running batch count.

    Batch Counter

    EXERCISE
    Difficultyeasy
    Status—unknown
  5. 4

    // Tracks parts in a feeder magazine: reload fills the count, then each dispense edge counts down to zero.

    Magazine Counter

    EXERCISE
    Difficultymedium
    Status—unknown
  6. End
Previous course← TimersNext courseMath and Comparison →

Product

  • PLC Simulator
  • Exercises
  • Courses
  • Pricing

Learn

  • Learn PLC Programming
  • Documentation
  • Ladder Logic
  • Structured Text
  • Blog

Community

  • Discussions
  • Contact

Legal

  • Privacy Policy
  • Terms and Conditions
  • Refund Policy
  • Cookie settings
© 2026 Techsolid Automation Limited