What the PLC and the HMI each do
In a PLC HMI system, the PLC (programmable logic controller) does the work and the HMI (human-machine interface) lets a person see and direct it. The PLC reads its sensors, runs its program in a fixed scan cycle and drives motors, valves and heaters. The HMI does no control itself. It reads values from the PLC, such as temperatures, states and counts, shows them on screen, and writes an operator’s commands and setpoints back.
Keeping the two apart is deliberate. The PLC is built to keep running the machine safely whatever happens to the screen, and the safety-related logic stays in the controller. If the HMI is switched off, rebooted or replaced, the machine carries on in its current state. The wider picture of PLCs, drives and supervisory systems is covered in our explainer on what industrial automation is.
How the HMI talks to the PLC: tags and polling
Everything the HMI shows or changes is a tag: a named link to a memory address in the PLC. A tag called Tank1_Level might point to a register holding the level reading; a tag called Pump1_Start might point to a bit the PLC program watches.
The HMI polls the PLC for the tags on the current screen, typically every few hundred milliseconds, and updates the display. When the operator presses a button or enters a setpoint, the HMI writes that value to the matching address, and the PLC program acts on it at its next scan. Alarms work the same way: the PLC sets an alarm bit and the HMI raises the message, logs it and records the acknowledgment.
Newer systems use subscriptions instead of polling, where the PLC or an OPC UA server pushes a tag only when its value changes. That cuts network traffic on screens with hundreds of tags.
Protocols an HMI uses to reach a PLC
The HMI software needs a driver for the PLC’s protocol. Most HMI packages ship with drivers for the major PLC makers, and the choice usually follows the PLC already on the machine.
| Protocol | Physical link | Maintained by | Common with | Notes |
|---|---|---|---|---|
| Modbus TCP | Ethernet | Modbus Organization | Most makers, as an open option | Simple register model, very widely supported |
| Modbus RTU | RS-485 or RS-232 serial | Modbus Organization | Older and small PLCs, drives, meters | One master polls up to 247 devices on a bus |
| EtherNet/IP | Ethernet | ODVA | Rockwell Automation and North American plants | Tag-based, uses the CIP protocol |
| PROFINET | Ethernet | PROFIBUS and PROFINET International | Siemens and European plants | Real-time classes for I/O and motion |
| OPC UA | Ethernet | OPC Foundation | Most current PLCs, mixed-vendor sites | Vendor-neutral, with built-in security |
Our FAQ on how Modbus works goes deeper into the register model, which is often the simplest way to link an HMI to a PLC from a different maker.
Connecting an HMI to a PLC step by step
The details depend on the software, but the sequence is much the same on every system:
-
//
Wire the link. Connect the HMI and PLC to the same Ethernet switch or network, or run a shielded twisted pair for RS-485 with termination at each end of the bus.
-
//
Set the addresses. Give the HMI an IP address on the PLC’s subnet, or match the serial baud rate, parity and station number for Modbus RTU.
-
//
Choose the driver. Select the PLC make and protocol in the HMI project, and enter the PLC’s IP address or station number.
-
//
Import or create the tags. Many HMI packages can import the tag list from the PLC project, which avoids typing addresses by hand.
-
//
Build and test the screens. Link buttons, displays and alarms to tags, then test each one against the running PLC before the machine goes into production.
Combined PLC-HMIs and PC-based HMIs
Small machines sometimes use a combined PLC and HMI in one housing, with the I/O on the back of the screen. That keeps wiring short and suits simple, single-function machines.
Larger machines usually keep them separate: the PLC in the control cabinet and a panel PC on the door or a swing arm. A panel PC runs Windows or Linux, so it can talk to PLCs from different makers through protocol drivers or OPC UA, run the HMI package, and run other software alongside it, such as data logging, barcode scanning or a vision application. Some sites go further and run a soft PLC on an industrial PC, with the control logic and HMI on one computer.
What to check on the HMI hardware
Make sure the HMI has the ports the network needs: Gigabit Ethernet, isolated RS-485 for older serial devices and, in wet or vibrating areas, sealed M12 connectors. Check the screen size and touch type for gloved use, the front-panel IP rating for washdown, and the operating temperature inside the cabinet door.
For door and cabinet installations, our panel mount PCs fit a cut-out with the electronics behind the panel. Our guide to choosing an industrial HMI covers the full specification, from touch technology to mounting.
Quick answers on PLCs and HMIs
PLC HMI: common questions
What is the difference between a PLC and an HMI?
The PLC controls; the HMI displays. The PLC runs the logic and switches the outputs. The HMI is the operator’s window onto that logic, showing values and passing commands back.
How do you connect an HMI to a PLC?
Over Ethernet or serial, with a matching driver. Put both on the same network, select the PLC’s protocol in the HMI software, enter its address and map the tags.
Can one HMI talk to several PLCs?
Yes. Most HMI software can open connections to several PLCs at once, even from different makers, as long as it has a driver for each or they all expose OPC UA.
Is HMI programming the same as PLC programming?
No. PLC programming writes the control logic, in IEC 61131-3 languages such as structured text or function block diagrams. HMI programming builds screens, alarms and recipes linked to the PLC’s tags.
Can an HMI work without a PLC?
Sometimes. An HMI can read devices directly over Modbus, and a PC-based HMI can run alongside a soft PLC. Most machines still use a dedicated PLC for the control logic.
We supply panel PCs for HMI use with the operating system, drivers and ports fitted as standard, and test each system before it ships. Send us your PLC make, protocol and mounting position, and we will specify the panel PC to match.