Short answer: keep routine browsing and user accounts in the HMI, and use PLC-driven screen changes only for machine events — a forced jog page, a sequence prompt, an alarm the operator must acknowledge. A screen change is presentation: it decides what the operator sees, never what the machine may do. The login question is separate. A 4-digit PIN checked in the PLC gives 10,000 possible codes and identifies a group, so keep individual accounts in the panel's user management whenever you need to know who pressed what. On a single-HMI system, PLC navigation earns its keep only when one project template serves many machines and each controller sets up its own screens from its tags.
The three ways a screen changes
Every panel changes pages in one of three patterns, and the pattern decides who wins when the operator and the machine disagree. It also decides what still works with the controller stopped.
| Pattern | Who decides the change | Built for | With the link down |
|---|---|---|---|
| Local navigation | The panel, from its own buttons and menus | Browsing: overview, diagnostics, settings | Every page keeps working |
| Panel watches controller state | The panel, from a tag expression | Forced prompts: acknowledge, confirm, look now | The page holds its last state |
| Controller commands the page | The PLC, writing a screen number | Coordinated stations, one template for many machines | Navigation freezes on the last page |
Command navigation rides the same link as your data. One 16-bit register carries the page number, which gives 65,536 possible values (0 to 65,535) — more pages than any project will hold. At 9,600 baud the write is under 20 ms of wire time, so the change lands as fast as the operator notices. The Modbus RTU serial connection article covers the wiring that carries it.
Much of what gets called "PLC navigation" is really the middle pattern. The controller publishes a state, and the panel decides which page that state means. It is the same shape as button visibility driven by a PLC counter bit: data drives presentation, and the panel owns the drawing.
Where each screen change belongs
Give browsing to the panel. Overview, diagnostics and settings pages should navigate locally, because you need those pages most when the machine is down and the controller sits in stop or program mode. A 40-screen project still keeps every page within three touches of the overview when the menu is local; push the buttons through the PLC and a controller in stop hides them all.
Give events to controller state, drawn by the panel. A stoppage-cause page, a confirm-before-continue prompt, a jog page the maintenance login opens: the PLC raises a state bit, and the panel maps that bit to a page. State survives a missed message; a one-shot command does not, which is why events read better as conditions.
Reserve commanded pages for coordination. Use the screen-number register when several stations must show the same thing at the same time — a 5-station line stepping through a shared sequence — or when one template serves many machines and each controller configures the generic screens from its own tags. On a single panel running one machine, pushing every menu button through the PLC buys a dependency and pays nothing back.
Design the link failure before it happens. A 2 s watchdog in the panel raises a local alarm page when the controller goes quiet, and the controller drops manual permissions on the same loss. When that happens, the likely causes of an HMI that stops talking to its PLC start with the cable and the station address. The NEC has plenty to say about the enclosure and the working space in front of its door. It says nothing about where a login screen lives — this split is architecture, and this is the split that ages well.
Why single-panel projects still do it
Three honest reasons keep this architecture alive. Editing a rung is faster than rebuilding and downloading a panel runtime — a typical panel redeploy runs 1 to 2 min per station, so troubleshooting navigation in the PLC saves that every time. One template across a fleet lets each machine's controller set up generic screens with its own tag values — equipment names, enabled functions, station context. And one controller can hold the login list for a whole site. Change a PIN once and 100 panels see the new code, instead of editing 100 panel projects by hand.
Price the costs at the same time. Navigation stops with the controller, which you will notice at startup while the program sits in stop and commissioning needs the pages. A credential list in controller memory is also readable by anyone with programming access, so treat it as a convenience and keep critical functions out from under it.
Panel user management is the alternative, and its friction explains the drift toward the PLC. These systems want unique groups and unique users, and on several platforms a single user edit means deleting and recreating the user, or reloading the whole user database to the device. A PIN compared in one rung sidesteps that chore — and inherits the readable-memory problem above.
Login: panel accounts or a PIN in the PLC
| Method | Choose it when | The trade you accept |
|---|---|---|
| Panel user management | You need to know who changed what, with a stable crew | User edits can mean a reload to the device |
| Directory-backed login | Many users, constant turnover | Platform support and an offline policy |
| Shared PIN in the PLC | Frequent maintenance access, nothing critical under the menu | Group access only: 10,000 codes, no audit trail |
| Badge reader (RFID) | Several logins a day, gloved hands | An input method; the identity decision stays behind it |
The PIN flow is one form and three rungs. A numeric entry writes the digits to a register, the PLC compares them and sets a permission bit per group, then writes the page number of the maintenance menu. Typing 4 digits takes about 3 s against 15 to 20 s for a username-and-password form, which is exactly why hourly users prefer it. Changing the code is a rung edit — the whole appeal. A central directory service answers turnover instead: accounts live where your IT team already manages them, and the panel asks the directory at login. The badge reader changes only how the ID arrives; it feeds the same register the PIN form writes.
Worked example: a 4-digit maintenance PIN in the PLC
Inputs: one HMI on a packaging machine, with a maintenance menu holding jog commands and timer setpoints and no safety functions. Access is a 4-digit PIN, each digit 0 to 9. That is the pattern plants ask for when a username-and-password form is too much for hourly use. This example adds its own design choice: lock the form for 10 minutes after 5 wrong entries.
Rule: the count of possible codes is 10 choices per digit, multiplied once per digit. The chance of one blind guess winning is 1 divided by that count.
Arithmetic: 10 × 10 × 10 × 10 = 10,000 possible codes. One guess wins 1 ÷ 10,000 = 0.01 % of the time, and a patient blind search averages 10,000 ÷ 2 = 5,000 entries before it hits. The lockout caps a window at 5 tries, so at most 5 ÷ 10,000 = 0.05 % per 10-minute window. Even a whole 8-hour shift of 10-minute windows covers only 48 windows, or 240 attempts — 2.4 % of the code space.
Result: the PIN is a group key. Anyone holding the code counts as "maintenance", the code space is 10,000, and nothing in the scheme names a person.
Decision: at 10,000 codes, use the PIN for convenience access to a menu with no safety functions and no audit needs. The moment a setpoint change must be attributable, or a safety-relevant function sits under that menu, use individual panel accounts or a directory login instead. Whatever the login decides, the jog command itself stays gated in logic — the next section.
The controller still gates the commands
A page is presentation. Seeing the jog screen tells you an operator is looking at manual controls; it tells you nothing about mode, permission or the guard. Accept every command on four inputs, and let the screen be at most a trigger:
- Machine mode — manual, with the sequence parked where jog is allowed
- Operator permission — the bit your login set, with its timeout
- The command itself — with a deadman or two-hand condition where the motion needs one
- Protective conditions — guard closed, drives ready, no active faults
Put the timeout on the permission, say 10 minutes idle: drop the bit, clear pending jog requests, and write the overview page number so the panel follows. When the panel link fails, the controller drops the same bits within its 2 s watchdog, and a stale jog page shows buttons that lead nowhere — the fail state you want.
One line on safety: manual jog from that page still passes through the guard circuit. The screen hides buttons; the safety function stops the axis.
What to specify
Write the split down before the first screen exists:
- Local navigation for overview, diagnostics and settings, built from the panel's own menu objects, every page within three touches of the overview
- One 16-bit screen-request register plus a one-shot request bit from the controller, and a displayed-page register the panel writes back, so each side knows what the other is showing
- Login by panel accounts or a directory where attribution matters; the shared 4-digit PIN only for a maintenance menu with no critical functions under it, always with lockout and timeout
- Command acceptance on mode, permission, command and protective conditions in the controller, with the screen never counted as authority
- For a fleet, one forced page set of 2 to 3 screens per machine out of a 40-screen template — everything else local
Then the hardware. The panel running all this lives on a door. A 15 in panel PC housing or a 10.4 in panel PC housing in 304 stainless gives it an IP65-type front seal with the display installed — a manufacturer rating, not UL listed. We build these housings with the display cutout made for your device; the HMI windows and cutouts guide and the stainless HMI enclosures section carry the dimensions. Where the menu must also stay physically shut, a lockable cover on a NEMA 4X door does that and keeps the rating. Give night support a view-only path with remote access through an ethernet port, so they see the same page the operator sees.
Enclosures in this article
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 15" HMI enclosure | 304 stainless | 12.91 x 16.06 x 3.88 in | IP65-type front seal with the display installed, manufacturer rated; not UL listed |
| 10.4" HMI enclosure | 304 stainless | 10.2 x 12.44 x 3.6 in | IP65-type front seal with the display installed, manufacturer rated; not UL listed |
Questions
Is a 4-digit PLC PIN secure enough for a maintenance menu?
For a menu with no critical functions, yes, treated as a group key: 10,000 possible codes means a 1 in 10,000 (0.01 %) chance per blind guess, and a lockout after five wrong entries caps a session at 5 of those codes. The moment you need to know who changed a setpoint, move to individual accounts in the panel's user management or a directory service.
What happens to PLC-driven screens when the controller link fails?
Command-driven navigation freezes on the last page the register called, while pages the panel draws itself keep browsing. Plan the fail state before it happens: a 2 s watchdog in the panel raises a local alarm page, and the controller drops manual permissions, so a stale jog page leads nowhere.
How many screens can one register address?
A single 16-bit register holds 65,536 values (0 to 65,535), so screen-number navigation never runs out of addresses; a 40-screen project uses 0.06 % of the space. The real limit is findability — keep every page within three touches of the overview, a common rule in interface design.
Does showing the jog page authorize jog commands?
The jog page is presentation, and a command needs four separate inputs in the controller: machine mode, operator permission, the command itself and protective conditions such as the guard circuit. Displaying the page can trigger a request. A 10-minute idle timeout drops the permission, clears pending jog requests and returns the panel to the overview.
Can you mix local browsing and PLC-driven pages in one project?
Yes, and it is the split to build. Browsing, diagnostics and settings navigate locally in the panel; the controller forces only the two or three pages an operator must act on — the jog page after login, a stoppage cause, a confirm-before-continue prompt. Current panel software supports both patterns in one project.
Is badge login a replacement for user accounts?
A badge reader replaces typing, which matters when maintenance logs in several times a day: the read drops an ID into the same register the PIN form writes in about 1 s instead of the 15 to 20 s a typed form takes. Behind that register you still choose the identity source — panel accounts, a directory or the PLC — and the permissions it grants. The reader changes the input, and the trust decision stays where you put it.





