IMDTouchKnowledge BaseShop main store

Explainer

Why replacing an HMI does not change the PLC program

HMI and touchscreens Published 8 min read

Short answer

An HMI is only a client: it reads and writes the same controller addresses over the same protocol and port, so a replacement panel needs matching tags, connection settings and data types — not PLC edits. The program changes only where the old panel's configuration defined PLC-side coordination areas: a time-synchronization mailbox, a screen-number word, a heartbeat bit or an alarm bit array. Audit those, and everything else happens in the HMI project.

On this page
  1. Why the PLC program does not care which panel is connected
  2. What the replacement panel has to match
  3. The one exception: coordination areas the old panel defined
  4. Worked example: time sync on a PLC, HMI and inverter station
  5. Changeover steps that keep the PLC untouched
  6. Where the inverter stands
  7. When the panel hardware is the reason for the swap
  8. Questions asked

You can hang a different panel on the same controller and leave the PLC program untouched, provided the new HMI reads and writes the same addresses. The panel is a client: it opens a connection and reads or writes process values at fixed addresses — data block words, memory bits, inputs and outputs — over the port the station already has, PROFIBUS, Ethernet or PROFINET. The controller supplies a communication resource and answers; its user program never learns which panel is connected. The work of a swap therefore lives in the HMI project: connection settings, tags, screens. The PLC program moves only when the old panel's configuration defined coordination areas in controller memory — a time-synchronization mailbox, a screen-number word, a heartbeat bit or an alarm bit array. Find those first; everything else is panel work.

Why the PLC program does not care which panel is connected #

A tag is a name the panel uses for an address in controller memory. When a screen object needs a value, the panel asks the controller for that address; when an operator enters a setpoint, the panel writes it there. In a panel-initiated connection, the normal setup for an operator panel, the panel is the active partner: it opens the connection, and the controller supplies one communication resource and answers. The handshaking and the data exchange run on the built-in communication services of both devices, so no line of the user program executes for a plain tag read or write, and no line of it knows the panel's make or model.

That is the whole reason a swap works. Whatever sits at the other end of the link — the original brand or a third-party panel — can replace it if it speaks the same protocol on the same interface and addresses the same memory. The principle reaches past panels too: an S7-1500 can serve an OPC UA client directly, with no SIMATIC PC Station in the project, because the controller's communication services treat any qualified client the same way.

What the replacement panel has to match #

Four things decide whether the controller side stays untouched:

  • Interface and protocol. The same interface type as the old panel: PROFIBUS, including its MPI and DP variants where the old panel used them, Ethernet or PROFINET. A different brand of panel also needs a driver for the controller's protocol; confirm the driver exists before anything else.
  • Address. The same node address or IP address, in the same subnet on Ethernet. Standard practice is to give the new panel the old panel's address so nothing anywhere refers to a new address — after disconnecting the old panel, so the address is never live twice.
  • Access mode. Symbolic versus absolute addressing. On S7-class controllers a data block must be compiled for its absolute addresses to exist and be visible, and an optimized block has no fixed absolute addresses at all. A driver limited to absolute addressing cannot reach into an optimized block; either choose a driver that reads the controller's symbols, or a block attribute changes — a PLC edit.
  • Data types. Every tag carries the type and length the controller holds at that address; a mismatch is the classic cause of values that arrive but read as nonsense.

Match all four and the program stays as commissioned. Miss the access mode and the fix either lives in the driver choice or becomes that one block attribute.

The one exception: coordination areas the old panel defined #

Some controller memory exists only because the old panel's configuration said so. Four patterns cover nearly all of it:

  • Time synchronization. Two documented directions exist. With the panel as time master, a JobMailbox area pointer carries the values plus a job number into agreed controller words; the HMI family's time synchronization documentation assigns controller job number 14 to the time and 15 to the date, and the PLC program holds the handler that decodes them. With the PLC as time master, the Date/time PLC area pointer transfers the date and time from the controller to the panel, and the controller writes its clock into the agreed words.
  • Screen-number word. A controller word the panel watches so the PLC can force a screen change. The word's location and meaning come from the old panel's configuration, not from the process.
  • Heartbeat bit. A bit one side toggles and the other supervises; the pattern is the same one behind monitoring a PLC lifebit heartbeat in WinCC with an alarm.
  • Alarm bit array. A block of controller bits mapped one to one onto the panel's alarm numbers, laid out the way the old project defined it.

The rule for the swap: if the new panel's configuration can be pointed at the same words with the same meaning — same mailbox layout, same screen word, same array start — the PLC program stays untouched. Where it cannot, the edit is confined to the blocks serving those areas, and nothing else in the program changes.

Worked example: time sync on a PLC, HMI and inverter station #

The case: one controller, one HMI panel and one inverter, with the panel linked through PROFIBUS, Ethernet or PROFINET. The old panel's project synchronizes the clock with the panel as time master through the JobMailbox area pointer, and the PLC program holds a handler that decodes controller job numbers 14 (time) and 15 (date), as the HMI family's time synchronization documentation assigns them.

Inputs and sources: the station layout comes from the machine being swapped; the mailbox mechanism and its two job numbers come from that documentation; the audit list — screen-number word, heartbeat bit, alarm bit array, time-sync mailbox — comes from the four coordination patterns above. Units throughout are counts: areas found, jobs decoded, blocks edited.

The rule in words: PLC edits equal the number of coordination areas the new panel cannot reproduce; ordinary process tags never create a PLC edit.

The arithmetic, run as a search of the PLC project for memory that exists only for the panel:

  • Screen-number word: 0 found — this panel selects its own screens; the controller never writes a screen word.
  • Heartbeat bit: 0 found — no lifebit logic anywhere in this program.
  • Alarm bit array: 0 found — alarms are ordinary bits both sides already share.
  • Time-sync mailbox: 1 found — the JobMailbox words, plus the handler that decodes their job numbers.

The result: 0 + 0 + 0 + 1 = 1 coordination area, and that area carries 2 documented jobs, so the entire PLC-side coupling of this station is one handler block.

The decision, with its threshold: the mark to hit is zero PLC edits, and this station reaches it. If the new panel's configuration supports the JobMailbox mechanism pointed at the same words, PLC edits = 0 and the whole swap lives in the HMI project. If it does not, PLC edits = 1 — retire that handler or replace it with a controller-side clock write if the new panel accepts a Date/time PLC style pointer — while the process tags, the alarm bits and the inverter's cyclic data still need no edits.

Changeover steps that keep the PLC untouched #

  1. Export the tag map from the old project: every tag with its controller address and data type. If the project must come off the panel itself, start with reading an old HMI program before panel replacement; if no project files exist at all, the path is different, as replacing an old HMI when no project files exist lays out.
  2. Create the connection in the new panel's project: protocol, controller address, and rack and slot where the driver asks for them; on Ethernet, the same subnet as the controller.
  3. Map every tag one to one, keeping address and type identical, then compile the panel project — on S7-class controllers the referenced blocks must be compiled so absolute addresses exist and resolve.
  4. Disconnect the old panel and give the new panel the old panel's address.
  5. Prove both directions before release: compare a known live value on screen against the controller's online view, write a setpoint from the panel and watch the controller value, and trigger each coordination function you kept — clock, screen word, alarm bit — from the panel side.
  6. Notice what this sequence never does: nothing here downloads to the controller. The laptop never enters the PLC's download path, so the program cannot drift.

Where the inverter stands #

The panel and the inverter are separate participants on the network, and the controller owns the drive's cyclic control and status data, so replacing the panel does not touch the drive's telegram assignment. Two things can still disturb the drive: a duplicated node address on a shared PROFIBUS segment — the panel takes the old panel's address or its own, never the drive's — and direct parameter reads, if the old panel read drive parameters itself instead of through the controller; confirm the new panel's driver supports that access. After the swap, the controller's diagnostics should show no station failure, and the drive's control and status words should read exactly as before.

When the panel hardware is the reason for the swap #

If the old panel is failing, dimming or discontinued and the repair is not worth it, the same rule carries the runtime onto industrial panel PCs: a PC runtime is just another client reading and writing the same addresses, with its driver matched to the controller exactly as a panel driver would be, and the coordination-area check above still decides whether the controller side stays untouched.

Questions asked

How do I prove the PLC program was not modified during the swap?

Run the engineering software's online-offline comparison, or read the program's checksum, once while the old panel is still running and again after the new panel has been online for a while. The comparison must report no differences between the offline project and the controller. Save that result with the changeover notes; it is the record that the swap touched only the panel.

Do the old panel's screens, scripts and recipes transfer to the new panel?

No. Screens, scripts, recipes, alarms defined in the panel and user accounts are panel-project objects, not controller data. The new engineering tool rebuilds them, and you bind them to the same tags and addresses the old project used. Once the bindings match, the controller cannot tell the difference; nothing on the PLC side is added for any of these objects.

Can the old and new panel run side by side during the changeover?

Only if each panel has its own node address or IP address and the controller has a spare communication resource for the extra connection. If the controller has no free resource, run one panel at a time and move the old panel's address to the new one during a planned stop. Never let two devices share one address on the same segment.

The old panel was an integrated device inside the PLC project — does that force edits?

No. Build the replacement as a standalone panel project that opens its own connection to the controller instead of swapping the device entry inside the PLC project. The controller project then never contains the new panel, so it needs no edit and no download. This is the cleanest path when the goal is a PLC program that stays exactly as commissioned.

Keep reading

  • How-to

    Replacing an old HMI when no project files exist

    There is no free configuration software for a legacy Magelis or PanelMate panel that arrived without it, so choose one of three licensed routes: buy the matching engineering package, hire an integrator who owns it, or have a distributor upload and print. If no editable project can be recovered, capture the running application, map every tag against the live controller, and rebuild on confirmed writes.

    HMI and touchscreens

  • Troubleshooting

    When an HMI and PLC ping but will not communicate

    A ping proves only IP reachability. Build a minimal test project with one online-imported tag: if it shows live values, the network, the Put/Get permission and the access level are good, and stale tag references in the production project are the fault. Re-import the tags online, correct the flagged entries, recompile and download.

    HMI and touchscreens

  • Troubleshooting

    Connecting a CompactLogix PLC to an HMI over EtherNet/IP

    A CIP transport unsupported fault on a Generic Ethernet/IP module in a CompactLogix project means the connection was built the wrong way around. For HMI tag access, delete the module, select the panel's Rockwell PLC driver, point it at the controller IP, and rebuild the tags — no assembly instances, I/O sizes, or EDS file.

    HMI and touchscreens