Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Flip-Flops & Latches for PLC and DDC Programmers
New

Flip-Flops & Latches for PLC and DDC Programmers

Animated lessons on SR, D and JK flip-flops and latches — with real PLC, DDC and building-automation examples
Last updated 10/2026
English
English

What you'll learn

  • Explain how a latch stores one bit and why the SR latch has a forbidden state
  • Choose SET-dominant or RESET-dominant latches to make control logic fail safe
  • Decide from a sequence of operations whether your PLC or DDC logic needs a latch
  • Build SR latches from AND/OR/NOT, NOR and NAND gates and recognise a race condition
  • Explain edge triggering and how rising- and falling-edge pulse generators work
  • Describe how SR, D and JK flip-flops work and where the JK toggle is used in practice

Course content

5 sections • 17 lectures • 2h 28m total length
  • Welcome to the Course2:18

    Meet your instructor and see what the course covers: why every PLC and DDC program needs memory, the latches and flip-flops you will study, and how the animated simulations work.

  • Why Learn Flip-Flops and Latches?6:23

    Why flip-flops and latches matter to every PLC and DDC programmer. A water-tank pump that starts at the low level, stops at the high level and holds in between shows why plain AND/OR logic isn't enough and a latch is needed.

  • Latches vs Flip-Flops: Key Differences4:02

    Both store one bit, but a latch reacts to the input level while a flip-flop reacts only at the clock edge. See what that means for noise and reliability, and why PLCs use both.

  • Binary States: 0/1, OFF/ON, LOW/HIGH4:47

    A short good-to-know lesson: 0 and 1 appear as OFF/ON, LOW/HIGH, FALSE/TRUE or OPEN/CLOSED depending on whether you are writing code, reading hardware or labelling a valve or damper on a graphic. Skip it if you already know this.

  • Quiz: Introduction

Requirements

  • No programming experience needed
  • A basic idea of AND, OR and NOT gates helps
  • No software or hardware needed; just watch along

Description

Every PLC and DDC program relies on memory: a pump that keeps running after the start button is released, an alarm that keeps ringing until someone resets it, a fan that holds its last state between two setpoints. That memory comes from latches and flip-flops. This course shows you exactly how they work, from the logic gates inside them to the SR and RS instructions in your programming software.

The lessons are built around animated, interactive simulations. Instead of static diagrams, you watch signals move through the gates, see the feedback loop hold a value, and step through each state change slowly enough to follow it.

You start with why latches and flip-flops matter in automation and how they differ: level-triggered versus edge-triggered. Then you study the SR latch, its forbidden state, and why real plants need SET-dominant and RESET-dominant latches, shown with a toxic-gas alarm, a rotating-machine safety interlock and Siemens TIA Portal. A simple flowchart then teaches you to decide when your logic needs a latch, using HVAC heating examples.

Next you build latches yourself from AND, OR and NOT gates, then from NOR gates and NAND gates, and see the race condition that can make a latch unpredictable. Finally you move to edge triggering: rising- and falling-edge pulse generators, the edge-triggered SR flip-flop, the D latch, the edge-triggered D flip-flop and the JK flip-flop. The course ends with three practical uses of the JK toggle: dividing a clock, stepping a processor through its instructions and alternating two pumps.

Your instructor, Abhijeet Kirpekar, is a building-automation engineer with more than 18 years of experience in BMS, SCADA, DDC programming and commissioning.

No programming experience is needed. A basic idea of AND, OR and NOT gates will help.

Who this course is for:

  • Beginner PLC and DDC programmers who want to understand the logic behind SET/RESET instructions
  • BMS, HVAC-controls and industrial-automation engineers and technicians
  • Electrical and electronics students preparing for automation jobs
  • Anyone curious how digital memory works inside a controller