IMDTouchKnowledge BaseShop main store

Checklist

Custom HMI maintainability checklist for plant applications

HMI and touchscreens Published 7 min read

Short answer

A custom WPF HMI is a maintainable replacement for a legacy VB6 system only when five handover checks pass: a clean build from documentation, color reserved for abnormal states, a written PLC data contract on non-optimized data blocks, big-endian decoding inside one communications service, and a second trained maintainer. Each check below carries its pass condition and the decision when it fails.

On this page
  1. First check: a clean build and deploy without the original developer
  2. Second check: color stays reserved for abnormal states
  3. Third check: a written data contract on non-optimized data blocks
  4. Fourth check: big-endian values decoded in one place
  5. Fifth check: a second maintainer passes the handover drill
  6. The decision
  7. Questions asked

A custom WPF application can replace a legacy VB6 HMI, but it becomes a plant asset only when the plant, not one engineer, owns its future. That ownership is testable: five checks, each with a pass condition you can verify at the bench. Run them in order before adding another screen; where one fails, the fix is named in the same section. A screen set that impresses in a demo and fails the build check or the maintainer check is technical debt with a modern font. Whether the custom route should exist at all, against a packaged platform, is the separate decision covered in Packaged HMI software or a custom VB.NET client; this checklist protects the build you already have.

First check: a clean build and deploy without the original developer #

The first failure mode of custom plant software is not code quality; it is that nobody left can produce the executable. The handover pack fixes that, and it has five parts:

  • Source under version control, with the running release tagged.
  • Build instructions that end in a runnable executable from a clean workstation.
  • A dependency inventory with exact versions, including the build of the S7 communications library the application calls.
  • Deployment steps for the runtime machine: where the executable and its configuration live, how the PLC connection settings are applied, and how the application starts with the machine.
  • A rollback: the previous executable and configuration, stored so a failed update costs minutes.

The pass condition is a drill, not a document review. A second engineer who has never seen the project builds it and deploys it to the bench machine using only the pack. If any step ends in a phone call to the original developer, the check fails, and completing the pack is the fix: no new screens until it passes.

Second check: color stays reserved for abnormal states #

The ASM Consortium publishes guidelines for effective operator displays and grades its practices by priority, with the Priority 1 set named as the minimum for good display quality. Its grey-background practice has a human-factors rationale: on a low-contrast neutral background, normal equipment stays visually quiet, and contrast pulls the eye only to alarms and required actions. For acceptance, commit to the rule that matters: alarm-grade color appears only where the operator must act, and every other state uses subdued colors defined once in a shared style, so normal, inactive, warning, alarm and unavailable states look the same on every screen.

Pixels count too. An equipment identifier sitting a couple of pixels out of line implies the wrong process grouping, so repeated symbols, labels and values follow one alignment rule from shared templates. Review the result with the operators before acceptance and confirm no function they rely on was removed; the screen-level rules are set out in Designing HMI screens for clear operator decisions, and reviewing them at the machine with the crew is covered in Designing a touch HMI screen around real operator conditions. This check fails if any decorative element outshouts an alarm.

Third check: a written data contract on non-optimized data blocks #

A Snap7-style client addresses PLC memory by absolute location — Sharp7, the C# implementation of Snap7, works this way — so every displayed value needs a byte address that stays put. Optimized data blocks do not offer that: their internal layout belongs to the PLC compiler and can change at any download, which is why absolute-address clients require non-optimized blocks. Keep the contract as a controlled document with one entry per point:

  • Data block number and byte offset
  • Data type and length
  • Read or write direction
  • Engineering units and valid range
  • The screen and control that consume it

If a value lives in an optimized block, publish a separate non-optimized interface block that the PLC logic fills, and record changes to either side in the same change set: the PLC may reorganize internals freely as long as the published interface holds still. The check passes only when the live PLC declarations and the contract agree field by field. Where they disagree, both are corrected before the point is shown on screen.

Fourth check: big-endian values decoded in one place #

Siemens stores multi-byte values in non-optimized data blocks big-endian, most significant byte first, while a standard PC treats memory little-endian, least significant byte first. Raw bytes therefore need their order reversed before they become application numbers, and that conversion belongs in the communications service, never scattered through screen code.

Worked example with illustrative values: the contract lists a signed 32-bit DINT at byte 12 of data block DB1, and a bench read of that field returns the four bytes 00 00 03 E8. Decoded as the PLC means it, the value is 0x000003E8 = 3 × 256 + 232 = 1000. Read without the swap, as little-endian, the same four bytes form 0xE8030000 = 232 × 16,777,216 + 3 × 65,536 = 3,892,510,720, which is -402,456,576 as a signed 32-bit integer: the screen would show a batch count of minus four hundred million instead of one thousand. The acceptance test compares each decoded screen value with an independent reading of the same tag at the PLC. The same rule covers 32-bit floating-point values, which read as near-zero garbage without the swap.

Symptoms map to causes like this:

  • Stable and plausible: address, type and byte order probably agree — still confirm against the independent PLC reading.
  • Stable but implausible or sign-flipped: byte order or signedness — compare the raw bytes against the contract.
  • Changes when a neighboring point changes: wrong offset or width — reconcile the contract with the PLC declaration.
  • Intermittently stale or blank: connection and quality handling, not conversion — check read status and freshness logic.

Screens consume typed values with quality and freshness from one service, and a failed read surfaces as an unavailable state, never as a frozen plausible number. Any screen code that holds a byte offset or performs a swap fails this check.

Fifth check: a second maintainer passes the handover drill #

Every custom HMI meets the same concern eventually: the author leaves for a better job, and the application becomes untouchable. The mitigation is a person, not documentation alone. Name and train at least one second maintainer, then run the drill: that person makes one small change end to end — for example, moving a displayed value or adding a point that already exists in the contract — and builds, deploys and verifies it on the bench using only the handover pack from the first check.

If the drill stops and waits for the original developer, the plant owns less than it thinks. When an outside contractor wrote the application, the pack and a passed drill are acceptance conditions, delivered before the project closes. This check and the first one stand or fall together: a trained second person with no buildable source is as exposed as a perfect pack nobody else can run.

The decision #

Cut over when all five pass:

  1. A second engineer builds and deploys from the handover pack alone.
  2. Alarm-grade color marks only abnormal states, from shared appearance rules reviewed with operators.
  3. Every point maps to a written contract entry on a non-optimized data block that matches the live PLC declaration.
  4. Byte order, range, quality and freshness are handled in one communications service and proven against an independent PLC reading.
  5. A trained second maintainer has passed the drill.

Fail check 3 or 4 and stop adding screens: the decode fault in the worked example is not cosmetic, it is a process decision made on a wrong number, and the same class of bug in a write path can write one — so prove every write on an isolated bench with verified test tags before cutover. Fail check 1 or 5 and the plant declines to fund the fix, take the packaged route compared in the introduction instead, because a platform runtime carries exactly the build, deployment and support burden a one-developer application cannot. An application that passes all five is owned by the plant; one that fails the first or fifth check is already a liability, whatever the screens look like.

Questions asked

Why can't the application read one value from an optimized data block?

An optimized data block has no fixed byte addresses, and the PLC tool can rearrange its internal layout at every download, so an offset that works today can point at a different variable after an unrelated edit. Publish a separate non-optimized interface block for the HMI, let the PLC logic copy the values into it, and address that block by byte offset instead.

Does the byte-order rule apply to values the HMI writes to the PLC?

Yes. A multi-byte value written from a little-endian PC must be reversed into the big-endian sequence the PLC expects, or the PLC receives a scrambled number. Siemens documents WRITE_BIG, a STEP 7 instruction that writes a single tag in big-endian byte order, which shows the required direction of conversion. Prove each write path on an isolated bench before cutover.

Is a grey background the same thing as a dark theme?

No. The grey-background practice exists so normal equipment stays visually quiet and color marks only abnormal states, not to make screens dark. Dark styling alone does not create an attention hierarchy; text must keep enough luminance contrast to read at the operating station, and alarm colors keep their meaning on either background.

How many maintainers does a custom HMI need?

At least two people who can build, deploy and change it: the author and one trained second. Run the drill once after handover — the second person makes one small change, deploys it and verifies it using only the handover pack. If an outside contractor wrote the application, make the pack and a passed drill acceptance conditions.

What changes later if the plant moves the HMI to OPC UA?

Only the communications service should change. Because screens request typed process values with quality and freshness instead of raw PLC bytes, an OPC UA service is a replacement behind the same application interface, not a screen rewrite. Keep the tag namespace aligned with the written data contract so one document describes the points before and after the transport change.

Keep reading

  • How-to

    Show SQL Data on a FactoryTalk View Screen by Date Range

    Use the Data Grid object, available in FactoryTalk View SE from v12, bound to a query that filters the timestamp column with Timestamp >= @Start AND Timestamp < @End. Verify the query in SSMS first, index the timestamp column, and refresh on an Apply button rather than on a timer.

    HMI and touchscreens

  • How-to

    Selecting a WinCC Unified PC Target in TIA Portal

    An IPC can host WinCC Unified as a PC-based HMI. If the SIMATIC HMI application list shows only WinCC RT Advanced, your TIA Portal installation is missing the Unified PC engineering option: add a PC station, add the SIMATIC WinCC Unified PC application, then match the runtime version and license on the target computer. The hardware is not the deciding check.

    HMI and touchscreens

  • Explainer

    Why runtime passwords do not restrict offline HMI screen edits

    No. Runtime user administration authorizes actions inside the running HMI and does nothing to the editable project on the engineering workstation. To restrict offline HMI screen modification you control the project folder, the engineering tool login and the transfer path as three separate boundaries; only a safety program's own protection gives F-PLC-style defense.

    HMI and touchscreens