
Lesson 11
HMI Design for Operators: What a PLC Programmer Should Get Right
Who the panel is for, why the panel asks and the wire decides, what never goes on a screen, pages and the way back, and designing for the worst morning.
From Usta's field manual in Meridian Works, a story-driven PLC course: chapter 11, “HMI”. The half of the job somebody else uses.
Who the panel is for
Up to now you have got machines running. This chapter is for the person who runs them after you have gone home.
On site this work is always done the same way. The program gets weeks. The screens get the Friday afternoon before commissioning. Then the plant runs for fifteen years. Every shift somebody stands in front of that screen, and none of them ever opens the program. For the operator, the machine is what the screen shows.
An HMI (Human-Machine Interface, the operator panel) is the touchscreen on the front of the machine. On site it is simply called the panel. The most important distinction in this chapter is between what is drawn on a screen and what is wired to a terminal.
The two platforms keep the panel in different places.
- On Siemens the panel lives inside the TIA Portal project. The screens are drawn with WinCC in the same project. To bind an object you pick the PLC tag directly.
- On Rockwell the panel is a separate project. The screens are drawn in FactoryTalk View Studio. The panel connects to the controller over the network and reads the controller's tags by name.
On the Rockwell side this has a consequence. If you rename a tag in the controller, the panel project does not find out by itself. The object bound to that tag stops working. Treat the tag names the panel reads as a contract.
This chapter is not a style guide. Every plant has its own colours and habits. None of them is wrong. No test in this zone looks at where anything is.
There are four ideas, and they are true on every panel:
— the panel asks, the wire decides; — what never goes on a panel; — a page nobody can reach does not exist; — design for the worst morning, not for the demonstration.
The panel asks, the wire decides
A panel is not an input card. It is another computer at the other end of a cable. It writes into the controller's memory over the network.
A button on the panel writes a tag. It is not a contact and it closes no circuit. A finger goes down, a message crosses the network, and a bit in memory becomes TRUE. When the finger lifts, a second message makes it FALSE. If the network drops at that moment, the bit stays TRUE with nobody holding it.
So a start button on a panel is a request. The program seals it in, exactly as it does for a wired button. The program decides what happens. Write the rung for the worst case: even if the tag sticks at TRUE, the machine must stay safe.
Keep command tags separate. HMI_Start is the tag the panel writes. Run_Req is the conclusion the program reached. There are two names because one of them belongs to a device you do not control. When you look at the program in two years, the HMI_ prefix tells you which values came over the network.
The wire always wins. Every stop on the machine is wired in series. The hardwired stop is in series whether the panel is plugged in or not. That is the difference between a stop button and a picture of one.
What never goes on a panel
Two things. The first is the most important sentence in this chapter.
AN EMERGENCY STOP IS NEVER ON A SCREEN.
Not a picture of one. Not a red button labelled E-STOP. Not "one on the screen as well as the real one". An emergency stop is a mechanism: a red mushroom button on a yellow background. It acts directly and latches mechanically. It breaks the circuit itself, without asking anybody. A safety relay watches it. The program is told afterwards. That is the only part you may touch.
The reason is one sentence. A screen is a computer, and it can fail at the very moment you need it. It hangs. It reboots. Its cable comes out. Its backlight dies. The application crashes. In every one of these the machine keeps running and somebody presses a picture. The four seconds they lose there instead of hitting the real button are the accident.
IEC 60204-1 requires an emergency stop to act directly and to stay actuated until it is deliberately reset. ISO 13850 requires the button to be red on a yellow background and usable at all times. A touchscreen meets none of these. This is not a matter of opinion. There is no plant where it is done differently.
The second is quieter: nothing on the panel writes an output.
An operator who can drive a contactor from a screen has a machine with two owners. An output with two owners has no owner. Every interlock you wrote becomes a suggestion. It always starts with good intentions: a HAND button for commissioning, a "force" left on for a fitter. A year later it is still there.
Show outputs. Show all of them; they are the most useful information on the panel. Showing and writing are different things. The panel editor in this app asks you that for every object: readout or entry?
Where is an alarm defined? The two platforms answer differently.
- On Siemens alarms are usually defined on the panel side, as HMI alarms. A discrete alarm is tied to a bit, an analog alarm to a value. The alarm class decides whether the alarm needs acknowledging.
- On Rockwell an alarm can also be defined inside the controller. ALMD is the digital alarm instruction and ALMA the analog one. The alarm then lives in the controller and the panel shows it.
Whichever way you choose, write the alarm text in the operator's language.
Pages, and getting back
One screen is never enough. Squeezing everything onto one screen is worse.
The structure that works on every panel, in every industry:
An OVERVIEW that is always watched. Everything true about the machine right now shows at a glance, from across the room: is it running, is it allowed to run, is anything wrong? Nothing on this page needs reading. If somebody has to walk up and read it, it belongs on another page.
DETAIL PAGES opened when needed. The recipe page when the product changes. The alarm page when the machine stops. The maintenance page for the fitter. Each page is a job somebody really does. The page is the job.
Every page has a way back. That looks too obvious to write down. Yet it is the most common defect on real panels. The reason is always the same: the page was drawn and tested by the person who could reach it from the development environment.
A screen with no button leading to it is not a page. It is a file in the project that nobody will see. I once lost two hours on a machine. The alarm page existed, it was correct, it was better than most. But nothing opened it. The engineer had drawn it last, on the Friday, and never walked the panel the way an operator does.
Walk the panel. Start on the page it boots to and get everywhere using only the buttons on the screen. If you cannot, the operator cannot either. And the operator does not even know there is a page to look for.
Design for the worst morning
The only test worth applying is this one.
It is twenty past five in the morning. The line has been down for forty minutes. The person in front of the panel has been up since four. They have never used this machine before. There is a lorry in the yard with its driver waiting.
Can they find out what is wrong? I am not asking "is the information in the system somewhere?" Can they find it, starting from the page the panel boots to, without knowing what they are looking for?
Can they tell what to do? An alarm that says FLT_0x04 is a note you wrote to yourself. Give the operator words: JAM, OVER TEMPERATURE, HOOD OPEN.
Does it still say what happened after the evidence is gone? That is what the first-out register is for. Most panels get this wrong. By the time somebody reaches the screen, the thing that tripped has often cleared itself. A panel that shows only the state right now shows a machine that looks healthy and is somehow stopped.
Can they start the line again without ringing you? Accept, then start. A few presses, and a reason to trust that it will not stop again at once.
That is the whole chapter. None of these four questions is about where things are on the screen. None can be answered by looking at a screenshot. They are answered by watching somebody use the panel.
Anybody can make a machine run. Making a machine that explains itself is the job.