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

Boolean Logic

AND, OR, XOR and the seal-in circuit

The starting point for every PLC program: combine inputs with AND, OR and XOR, then build the seal-in circuit that lets a motor keep running after you release the start button.

  1. 0

    // Turns on a lamp while a push button is pressed and off when released.

    Lamp Follow

    EXERCISE
    Difficultyeasy
    Status—unknown
  2. 1

    // Controls a lamp to be the logical inverse of a push button.

    Lamp Inverted

    EXERCISE
    Difficultyeasy
    Status—unknown
  3. 2

    // Turns on a lamp only when both push buttons are pressed simultaneously.

    Two-Button Lamp

    EXERCISE
    Difficultyeasy
    Status—unknown
  4. 3

    // Turns on a lamp when either of two push buttons is pressed.

    Either-Button Lamp

    EXERCISE
    Difficultyeasy
    Status—unknown
  5. 4

    // Turns on a lamp when exactly one of two push buttons is pressed.

    Xor Gate

    EXERCISE
    Difficultyeasy
    Status—unknown
  6. 5

    // 2-of-3 majority voting for a lamp output.

    Voting Lamp

    EXERCISE
    Difficultyeasy
    Status—unknown
  7. 6

    // Selects and routes one of two REAL inputs to the output based on a boolean selector switch.

    Select Between

    EXERCISE
    Difficultyeasy
    Status—unknown
  8. 7

    // Start/Stop motor controller with seal-in latch and stop priority.

    Start/Stop Motor

    EXERCISE
    Difficultyeasy
    Status—unknown
  9. End
Next courseEdges and One-Shots →

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