Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
CompTIA · SecOT+ SOT-001

Control theory

SecOT+ SOT-001 · Lesson 4 of 33 · 22:55

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the SecOT+ SOT-001 exam (CompTIA SecOT+). In this lesson: control logic and its languages (ladder logic, function block diagrams, structured text, sequential function charts), process variables and set points, inputs and outputs, watchdogs, timers, current values, and tags, with Saltbrook Chemicals, a fictional maker of specialty chemicals, as the running example. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Holding a reactor at its target

At Riverside, reactor two must stay at eighty degrees Celsius. A sensor reports the temperature, the controller compares it with the target, and it adjusts a steam valve. This is control theory, and an attacker who understands it knows exactly which values to change.

Ladder logic and function blocks

Control logic is the program that a PLC runs, and the IEC 61131-3 standard defines its languages. Ladder logic looks like an electrical wiring diagram: contacts on the left and coils on the right, on rungs between two power rails, which electricians read easily. A function block diagram connects blocks, such as timers, counters, or PID controllers, with lines that carry signals from inputs to outputs. Both are graphical, so a change of logic often shows up when you compare the program with a trusted copy.

Structured text and sequential functions

Structured text is a textual language, close to Pascal, with conditions, case statements, and loops, which suits calculations and complex logic. An older text language, instruction list, looks like assembly code: the standard has removed it, but older PLCs still run it. Sequential function charts organize a program into steps and transitions, like a batch recipe: fill, heat, mix, and drain. Whatever the language, the logic is code, so treat it like code: keep versions, sign it where you can, and compare it with a known good copy.

Process variables and set points

The process variable, or PV, is the measured value that the controller regulates, such as the temperature of reactor two. The set point is the target value for that variable, eighty degrees here. The controller compares them, and changes its output, for example the opening of a steam valve, to bring the process variable back to the set point. A set point changed by an attacker, or a process variable spoofed on the way, pushes the process to an unsafe place, while every screen can still look normal.

Inputs and outputs

Inputs bring signals into the controller, and outputs send commands out. Discrete inputs and outputs are on or off: a limit switch, a push button, a motor starter. Analog ones carry a range of values, often four to twenty milliamps or zero to ten volts, such as a level or the position of a valve. Forcing an input or an output overrides the logic, which is a normal tool for testing, and a dangerous one in the wrong hands.

Watchdogs

A watchdog is a timer that the controller must reset regularly, to show that it is still working. If the program hangs, or a scan takes too long, the watchdog runs out and triggers a fault: outputs go to a safe state, and the controller may stop or restart. Communication watchdogs do the same for a link: if a peer goes silent, the device falls back to a safe behavior. So a flood of traffic or a stuck program can trip a watchdog, and an attack can stop a process without touching its logic.

Timers, current values, and tags

Timers delay or limit actions: an on delay timer turns its output on only after its input has stayed on for a preset time, and an off delay timer keeps its output on for a while after its input goes off. The current value is the value at this moment, for a timer, a counter, or a point, such as the time already elapsed against the preset. Tags are the names that controllers, HMIs, and historians use for each value, such as reactor two temperature, linked to an input, an output, or a memory address. Attackers read tag names to understand the process, so a tag database is sensitive information.

Recap

Let's recap. Ladder logic, function block diagrams, structured text, and sequential function charts are the languages of control logic, and logic is code to protect. The process variable is the measurement, the set point is the target, and both are prime targets. Discrete inputs and outputs are on or off, analog ones carry a range, and forcing overrides the logic. Watchdogs bring outputs to a safe state when a program or a link goes silent. And timers have a preset and a current value, while tags name every value.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. An engineer must program the batch sequence of a reactor: fill, then heat, then mix, then drain, each step starting when the previous one is done. Which language fits best?

    • Ladder logic
    • A sequential function chart
    • Instruction list
    • A function block diagram
    Show the answer

    A sequential function chart

    A sequential function chart organizes a program into steps and transitions, just like a batch sequence. “Ladder logic” is best for discrete logic, with contacts and coils. “Instruction list” is an old text language, which the standard has removed. And “A function block diagram” would connect blocks for continuous signals, rather than organize steps.

  2. Operators see reactor two at 80 °C on the HMI, which is the right target, but the reactor is actually at 95 °C. Which value was most likely spoofed?

    • The set point
    • A timer preset
    • A tag name
    • The process variable
    Show the answer

    The process variable

    The process variable is the measured value, and a spoofed one shows the target while the process drifts. “The set point” is the target, and the target is still correct here. “A timer preset” would delay an action, without changing a reading. And “A tag name” is only a name, not a value.

  3. A flood of network traffic from a scan hits the packaging line, and a PLC stops its outputs, even though no logic changed. What most likely triggered the stop?

    • A watchdog that timed out
    • A set point change
    • A tag that was renamed
    • An off delay timer
    Show the answer

    A watchdog that timed out

    A watchdog that runs out puts the outputs in a safe state, with no change of logic. “A set point change” would change the target, without stopping the outputs. “A tag that was renamed” only changes a name. And “An off delay timer” is part of the normal logic, which did not change.