IMDTouchKnowledge BaseShop main store

Explainer

What HMI Logic Covers in an Industrial Interface

HMI and touchscreens Published 8 min read

Short answer

HMI logic is the programmed rule set that decides what the operator sees, which inputs become controller requests, and how alarms and communication faults appear. Sequencing, interlocks, and output decisions stay in the controller; the HMI issues requests and displays feedback.

On this page
  1. What is HMI logic?
  2. What should the operator see on each screen?
  3. How does the HMI handle operator input?
  4. Which control actions belong in the HMI and which in the controller?
  5. Where does a displayed value or command fail to bind?
  6. How should alarms and abnormal conditions appear?
  7. What about user access and error recovery?
  8. Questions asked

HMI logic is the programmed rule set inside the operator interface: it decides what the screen displays, which operator inputs become requests to the controller, and how alarms and communication faults appear. It does not own the process. Sequencing, interlocks, and output decisions belong to the controller, so the panel stays a window rather than a link in the safety chain. The design side of that discipline is standardized: ISA-101.01 defines an HMI design process that starts with a documented HMI philosophy and a style guide before any graphic is drawn. The sections below take the layers in the order you meet them — display, input, control responsibility, binding, alarms, access, and fault behavior — and close each with the decision.

What is HMI logic? #

HMI logic is the set of programmed rules in the interface application that governs display, input handling, alarm presentation, communication, and error behavior — everything the panel decides for itself, separate from the control logic in the PLC.

In practice it is the configuration and scripting that runs in the panel's runtime rather than in the controller's scan: display formatting, input interpretation, request generation, alarm monitoring and acknowledgment, the tag exchange with the controller, user access, and the behavior when any of that fails. Building the project — drawing screens, defining tags, selecting drivers — is the wider activity; what HMI programming covers from screens to controller tags is the craft, and the logic is the rule set the finished project contains.

The decision at definition time: list every rule the interface applies on its own — formatting, navigation, alarms, access, fault display — and confirm that not one of them silently decides a process outcome.

What should the operator see on each screen? #

Each screen shows three kinds of information and must keep them visually distinct: measured process values, commanded or requested values, and alarm conditions — a value that looks editable will be edited.

Display logic formats incoming data into numeric fields, gauges, trends, and status indicators, and decides when each one updates. Define the meaning of every value before you bind it: a measured process value must not look like an editable setpoint, and a status indicator must show the state it is bound to, not the last button pressed. Labels, engineering units, and consistent state conventions are what keep what the process is doing separate from what the operator asked for; designing a touch HMI screen around real operator conditions starts from the operator's task, not from the graphics.

Update cadence is display logic too. Why HMI pages lag with many PLC variable bindings is the case where the bindings outrun the driver's cycle: the controller is fine and the page is starved.

The decision at commissioning: compare each screen value against its source, units and sign included, and watch a trend while the value moves — the plotted line must follow the process, not the panel's own refresh.

How does the HMI handle operator input? #

Input logic maps each button press, touch, or keypad entry to one request toward the controller, and displays the result as separate feedback — the button's own color change proves only that the panel registered a touch.

For every control, define three things: the operator action, the request it generates, and the feedback that confirms the response. A start control issues a start request; a separate running indicator reports whether the equipment runs. That separation is what lets you see a refused request — an interlock not made, a device fault, a permissive missing — instead of assuming the press worked. For editable fields, define which accept input, the valid range, and what the field shows after an accepted or a rejected entry.

The decision when you test: exercise each control with one valid and one rejected input before it touches equipment. The rejected case must leave the display showing the true current value, and the feedback indicator must show that the request did not take effect.

Which control actions belong in the HMI and which in the controller? #

The HMI owns requests, setpoints, and presentation; the controller owns sequencing, interlocks, and every output decision — a communication loss, a closed screen, or an HMI application fault must never change the process state.

Use the panel to present the commands and parameters the operator is authorized to request, and keep the equipment logic that evaluates conditions and drives outputs in the controller. Classic controller work is latching two level inputs for pump start and stop control; there, the panel's whole job is the start and stop requests plus the running feedback. Never let screen logic enforce a machine-safe condition: a safety function belongs in the controller or in hardwired safety devices, because a cut cable, a closed screen, or an application fault must not change what the machine does.

Splitting rules between panel and controller gets harder to maintain as a project grows, so apply one test to every rule: if it must hold with the panel disconnected, it is controller logic; if it only affects what the operator sees or enters, it is panel logic. For each command, document the request's source tag, the controller logic that accepts or rejects it, and the feedback shown — then verify the command path and the feedback path independently before exercising equipment, and never display a requested value as though it were a measured or accepted one.

Where does a displayed value or command fail to bind? #

Trace every wrong or dead value in one order — screen object, HMI tag, communication driver, then controller — because each layer produces a different symptom, and one object wrong points to the binding while a whole source going stale points to the driver.

Symptom Layer to inspect Check
One object shows a wrong value while related objects update Object binding or tag definition Inspect the object's tag reference against the intended controller address
Many objects from one source go stale or show bad quality Driver or communication path Read driver diagnostics; confirm whether other values from the same source update
The screen value updates but the process ignores a command Request binding or controller conditions Trace the request tag into the controller and inspect what refuses it
Displayed state disagrees with the equipment State source or display logic Compare the bound value with the controller or device feedback that is authoritative

Bad quality is the driver reporting, not the data misbehaving: some panels render it as question marks on live values, and the repair is in the communication path, not the tag. A driver that returns nothing at all points below the tag layer — Modbus TCP discrete inputs read with FC02 returning no data is an addressing and data-direction fault, not a screen fault. For a command, trace the reverse direction — operator action, request tag, controller logic, output — then verify the return feedback path separately.

The decision before you call any layer healthy: representative displays and requests map to the intended data points, and the driver diagnostics show a live exchange.

How should alarms and abnormal conditions appear? #

Alarm logic compares monitored values against configured criteria and shows two separate states — active, meaning the condition exists now, and acknowledged, meaning the operator has responded — and acknowledgment never clears an active condition.

The governing standard is ANSI/ISA-18.2: it requires alarms to be rationalized, meaning each one has a defined cause, consequence, and operator response; prioritized consistently; and presented so the active state and the acknowledgment state stay separate. Detection of process alarms belongs in the controller, where it survives a panel failure; the HMI alarm engine handles display, the acknowledgment record, and the event log.

Worked example with illustrative inputs: a high-temperature alarm trips at 80.0 °C on a transmitter span of 0-150 °C with the deadband set to 5 % of span. The deadband is 0.05 × 150 °C = 7.5 °C, so the alarm returns to normal only below 80.0 °C − 7.5 °C = 72.5 °C. An acknowledgment at 76 °C records the operator's response, and the banner still shows the alarm active until the value crosses 72.5 °C.

The decision: set the deadband wide enough that the process cannot chatter across the trip point — 7.5 °C of hysteresis on this span — and word each message so it names the triggering condition, letting the operator respond to the cause rather than to the banner.

What about user access and error recovery? #

Access logic decides who may see and do what at the panel, and error logic makes failures visible instead of silent — stale data must be marked stale, never displayed as live.

Access logic authenticates the operator and gates screens, commands, and parameters by role; designing HMI user access levels for operators and maintenance is where those levels and their boundaries get defined. Restricted functions should be unavailable to the role, not merely hidden one screen deep.

Error logic decides what failure looks like. When communication stops, values must be marked stale or bad quality with the time of the last good update, never frozen and presented as live. The event log is the diagnostic record — why extending HMI system event display time reveals comms faults is that dropouts too brief to notice at the default banner duration show up as a pattern. Recovery is logic too: define what the application does at power restoration and reconnect — auto-run the project, resubscribe the driver, restore the login state — so the operator comes back to a known screen.

The decision for the whole term: treat HMI logic as everything the interface decides for itself, keep every process decision in the controller, and engineer the request-acceptance-feedback boundary explicitly at every command.

Questions asked

Is HMI logic the same as PLC logic?

No. PLC logic executes in the controller's scan and decides outputs under all conditions; HMI logic executes in the panel's runtime and decides presentation, requests, alarms, and access. When the two disagree, the controller's result is the process. The failure mode to avoid is duplicating a rule on both sides, where each behaves correctly alone and the combination surprises everyone.

Why does a button light up but the machine still does not start?

Because the lit button proves only that the panel registered the input. Check the request tag in the controller first: if the tag changes and the machine stays stopped, an interlock or device condition is refusing it, which is exactly what the separate running indicator should show. If the tag never changes, the fault is in the binding or the driver, one layer back toward the screen.

Does acknowledging an alarm clear it?

No. Acknowledgment records the operator's response; the alarm stays active until the process condition returns to normal, and with a deadband that means crossing fully through it. On the example span of 0-150 °C, a trip at 80 °C with a 5 % deadband clears only below 72.5 °C, no matter when the operator acknowledges.

Where should process alarms be detected, in the panel or the controller?

In the controller, so detection and any required response survive a panel failure; the HMI presents, records acknowledgments, and logs events. Panel-local conditions, such as a calibration prompt, a battery warning, or a project load failure, stay in the HMI alarm engine, because the controller cannot see them.

Can interlocks be implemented in the HMI instead of the controller?

No. Unplug the panel and everything that still must happen is controller logic; everything that stops is presentation. An interlock that dies with the cable is a defect. The HMI may show which condition refuses a start, but the refusal itself must be computed in the controller.

Keep reading

  • Explainer

    Reading raw PLC tags as diagnostics in WinCC over OPC

    No. An OPC server does not limit WinCC to slave diagnostics: WinCC reads every item the server publishes, process tags included. A raw tag is only an undecoded value — match its type to the server item, decode packed words at the tag level, and drive configured alarms and displays instead of C scripts in each graphic object.

    HMI and touchscreens

  • Explainer

    What a SCADA Operator Interface Must Do: Core Functions

    A SCADA operator interface carries six functions: acquisition and display of binary and analog data, alarm and event recording, a history database of process values, measurand processing for derived values, presentation through graphics, lists and reports, and command handling from binary commands to recipes. Keep alarm and event records separate from the history database: one records occurrences, the other retains values.

    HMI and touchscreens

  • Explainer

    What HMI programming covers from screens to controller tags

    HMI programming is the whole application an operator runs a machine from: the screens and objects, the tag database mapped to controller data, the communication driver that reaches the PLC, alarm handling, and the tests that prove each value. A graphic is not working until its tag matches the live controller value at several points across the range.

    HMI and touchscreens