
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 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.
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.
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.
The SR latch from the outside: its symbol, Q and Q-bar, and what set, reset and hold do, shown in a simulation and on a timing diagram. It ends with the forbidden state, when set and reset are both 1.
When set and reset are both 1, which one wins? Compare SR, SET-dominant and RESET-dominant latches, then see them in real applications: a toxic-gas alarm and a rotating-machine safety interlock, plus the SR and RS blocks in Siemens TIA Portal.
A simple flowchart for deciding, from a sequence of operations, whether your logic needs a latch. Worked HVAC heating examples show the test: two separate start and stop conditions need a latch; one condition and its opposite do not.
Build a latch from scratch with an OR, an AND and a NOT gate. See how feedback creates memory, walk through every input case, and finish with a challenge: rewire it so that set wins.
The answer to the challenge: the same three gates, moved so that set takes priority. Compare it step by step with the RESET-dominant version, and learn how to build either one in a tool that has no built-in latch.
Build the classic SR latch from two cross-coupled NOR gates, follow set, reset and hold through the truth table, and see the race condition that makes the output unpredictable when both inputs drop from 1 together.
Build the SR latch from NAND gates only, which is why a single 7400 chip with four NAND gates is enough. Follow the feedback that holds the output, and meet the standard latch symbol used for the rest of the course.
Turn each clock edge into a short pulse. Using a NOT gate's propagation delay and an AND gate, build rising-edge and falling-edge pulse generators, and see their ready-made versions: the P and N instructions in TIA Portal.
Add the edge-pulse generator to an SR latch and it becomes an edge-triggered flip-flop: a one-bit memory cell. See it written by hand and then by a microcontroller, and learn to read the triangle symbol for edge triggering.
Fix the SR latch's two weak points: the forbidden state and its two data lines. Build the D latch (D flip-flop with enable) in three small steps, then see its own weakness: any glitch on D passes straight through while enable is 1.
Read D at a single instant, the clock edge. Build rising-edge and falling-edge D flip-flops by feeding the enable through the edge-pulse generator, and learn their symbols: the triangle for edge triggering and the bubble for the falling edge.
The JK flip-flop keeps two inputs, J to set and K to reset, but when both are 1 it toggles instead of hitting a forbidden state. Build it from the edge-triggered SR flip-flop plus two feedback wires, and meet the T flip-flop.
Three uses of the JK toggle: chain flip-flops to divide a clock by 2, 4 and 8; step a processor through fetch, decode, execute and store; and make two pumps take turns, straight from building automation.
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.