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

Process Control

Condition a measurement, then act on it

Clean up noisy digital and analog signals, preserve and derive useful measurements, then apply them to tank level control and process alarms.

  1. 0

    // Filters contact bounce by ignoring input transitions shorter than a preset time.

    Debounce

    EXERCISE
    Difficultymedium
    Status—unknown
  2. 1

    // Applies hysteresis to an analog input, setting the output true at the high limit and false at the low limit.

    Hysteresis

    EXERCISE
    Difficultymedium
    Status—unknown
  3. 2

    // Tracks the minimum and maximum of an analog input and re-seeds both outputs while In_Reset is asserted.

    Min Max Tracker

    EXERCISE
    Difficultymedium
    Status—unknown
  4. 3

    // Outputs the middle of three transmitter readings, excluding the highest and lowest values.

    Median 3

    EXERCISE
    Difficultymedium
    Status—unknown
  5. 4

    // Smooths a noisy analog input by closing a fraction of the gap to it once per second.

    Lag Filter

    EXERCISE
    Difficultymedium
    Status—unknown
  6. 5

    // Reports how much an analog input changed over the last second, updating once per second.

    Rate of Change

    EXERCISE
    Difficultymedium
    Status—unknown
  7. 6

    // Generates high and low alarms based on a level input, configurable setpoints, and a deadband to prevent chatter.

    Level Alarm

    EXERCISE
    Difficultymedium
    Status—unknown
  8. 7

    // Bang-bang controller for a tank fill valve with configurable deadband.

    Tank Fill

    EXERCISE
    Difficultymedium
    Status—unknown
  9. End
Previous course← Analog and ScalingNext courseBit Manipulation →

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