Short answer: in most HMI-entry designs the screen stores nothing. The numeric-entry object writes the value straight into a PLC register and reads the same register back, so the PLC owns the setpoint and its memory decides what survives a power cut. When entered values come back as zeros after an outage, the cause is one of 3: a register outside the PLC's retentive byte range, an HMI startup write on reconnect, or a recipe reload copying an old saved record. The missing memory card is almost never the reason. Plenty of CPUs hold retentive data with no card fitted; what matters is the configured range and the stated hold-up time. Read the failing address online, run the restart test below, and one controlled shutdown names your cause.
Where the value actually lives
Start behind the screen. A numeric-entry object is an editor bound to a tag, and in the common arrangement that tag lives in the PLC. You type 185.0 °C, the HMI writes 185.0 °C to the PLC register, and every screen refresh reads the same register back. Pull the HMI's power and the register is untouched, because the HMI is a keyboard with a display and the register is the store. Retention belongs to the store, so the object you typed into is rarely the thing to fix.
Two other arrangements exist, and each one moves the store:
| Arrangement | Who stores the value | What decides survival | Where you look first |
|---|---|---|---|
| Entry writes a PLC tag (most designs) | The PLC | The retentive byte range and the hold-up time | The address the entry object targets |
| Entry writes an HMI-local tag | The HMI | The HMI's persistence setting for that tag | The tag's storage attributes in the HMI project |
| Setpoints managed as a recipe | The saved recipe record | Whether entry also saves the record | The save action bound to the entry screen |
A combined controller-and-display unit shares one device, and the rule stays the same. The value lives in the controller's registers, and its retention configuration decides whether it comes back. Our stainless Vision 570 housing is cut for exactly this pairing, the Unitronics Vision series.
What each symptom points to
Watch the PLC register online rather than the screen; the symptom itself then names the suspect. At a 10 ms scan time you can time the loss to within one or two scans, so 20 ms of clock resolution separates the causes. Work them in this order: retention configuration first, startup writes second, recipes third.
- Register reads zero at the first scan, before the HMI connects: the register sits outside the retentive range, or the hold-up time ran out.
- Register is correct at power-up, then snaps to zero as the HMI reconnects, typically 5 to 10 s after the link restores: an HMI startup write.
- Value survives the outage and disappears a few scans into the run: PLC initialization logic — a first-scan move, a defaults block copy or a boot-time recipe transfer.
- Short outages of seconds to minutes keep the value while a weekend-long outage of 48 h or more loses it: retentive bytes on capacitor or battery, and the outage exceeded their hold time.
- Screen shows zero while the register still holds the value: the object is bound to an HMI-local tag or the connection dropped, and nothing is lost.
- Value vanishes only after someone loads a recipe: entry updated the live register but the saved record was never written.
Cause 1: the register sits outside the retentive range
Retention is a byte range you configure, not a blanket property of the CPU. Siemens' S7-1200 manual gives the fix in one line: mark the data as retentive in the CPU's memory configuration and it holds through the power failure. Tags inside the range ride out an outage; a tag outside it, or straddling its edge, comes back as zero or garbage. The edge case is the one that bites, because the range is finite and every tag has a width.
Worked example — the inputs below are example values for a typical small CPU, so replace them with your project's own memory map before moving anything:
- Retentive range: bytes 0 to 99, which is 100 bytes. If the CPU lets you enlarge it, 200 bytes doubles the room to 50 four-byte REALs.
- Oven setpoint, a REAL at byte offset 88. A REAL is 4 bytes (IEEE 754 single precision), so it occupies bytes 88 to 91. Boundary check: 88 + 4 - 1 = 91, which is 99 or less, so the tag sits fully inside and holds.
- Line-speed setpoint, a REAL at byte offset 98. Boundary check: 98 + 4 - 1 = 101, past byte 99, so bytes 100 and 101 fall outside the range. Power up and the register reads zero or garbage, even though half the tag is inside the range.
- Fix: move the tag to offset 92. It then occupies bytes 92 to 95, since 92 + 4 - 1 = 95, and bytes 96 to 99 stay free for one more 4-byte setpoint.
One line covers every tag you retain: byte offset + width - 1 must be 99 or less. An INT needs 2 bytes, a DINT or a REAL needs 4, and a string takes its declared length plus its overhead bytes.
Hold-up time is the second half of this cause. Some families hold retentive bytes on a capacitor with a stated limit; the CLICK PLC documentation, for example, gives 7 days for its basic, standard and analog CPUs, and a battery module stretches that. A 9-day summer shutdown, say, outlasts the hold-up and erases a perfectly configured range: the map is right, and the values still arrive at defaults on Monday. A memory card is one way to keep a copy of your values; the retentive range is what keeps them alive.
Cause 2: a startup write overwrites a good value
A retained value can ride out the outage and still be gone by the time the screen is up, because something wrote a default after power returned. Two writers cover most cases. The HMI comes first: many entry objects carry an option that writes the tag's initial value when the display loads or the connection re-establishes. An HMI-local tag initialized to zero then pushes zero into the PLC register at every reconnect. The PLC's first scan comes second. Here the writer is an initialization move, a block copy from a defaults data block, or a recipe transfer fired at boot.
Sort the writers with one online watch:
| What you see online | Who wrote it |
|---|---|
| Value correct at power-up, zero arrives as the HMI connects, 5 to 10 s later | The HMI's write-on-load or write-on-connect option |
| Value correct at power-up, zero arrives 1 to 5 scans later with no screen traffic | PLC initialization logic: first-scan move, defaults copy or boot recipe transfer |
| Value already zero at the first read | Retention range or hold-up time — cause 1 |
To pin the writer, list every instruction that touches the failing address, including block copies and recipe transfers, and trace the source of each copy. Give the HMI side the same treatment: open the entry object, read its target address, and look for the write-on-load or write-on-connect option in its settings.
Cause 3: a recipe reload brings back an old value
With recipe-managed parameters, entering a value usually updates only the live register. The saved record still holds whatever it held at its last save, often zeros from commissioning. Everything looks fine until someone loads the recipe: the transfer copies the stale record over the live value, and the setting dies without any power failure at all.
The check takes 2 minutes. Enter 1234 at the setpoint, run the recipe's save action, load the recipe again, and read the register online. If 1234 comes back, entry and save write the same record. If the old value returns, the save action is missing or writes a different record than the load reads.
A restart test that names the cause
Before you cycle anything, save the current parameter set and follow the machine's own shutdown procedure. If the machine can move on power-up, lock the drive out and confirm absence of voltage first. Then run the four steps below, watching the register online throughout, and allow about 30 s between steps so reconnect writes and first-scan logic have time to fire.
- Enter a test value of 1234 at the failing setpoint and read its PLC address online. The address comes from the entry object's connection settings in the HMI project. If the register never receives 1234, the object writes an HMI-local tag, so the HMI owns the value and persistence belongs on that tag.
- Cycle the PLC on its own and watch the address. A register that returns as 1234 has retention configured; a register that returns as zero sends you to cause 1, boundary check first and hold-up time second.
- Set the register back to 1234, then cycle the HMI on its own with the PLC running. A register that changes with no one at the screen names the HMI's startup write — cause 2.
- Run one combined cycle with both devices powered down. Separate cycles that pass while the combined one fails point at boot order: the HMI wrote before the first PLC scan was ready, or a recipe transfer landed late.
The same read-back-first method, worked through on another controller pairing, is written up in a readback and warm-restart walkthrough for setpoints lost on a CPU restart.
The fix for each cause
| Cause | Fix | Proof it took |
|---|---|---|
| Tag outside the retentive range | Move the tag inside or extend the range in the CPU's memory configuration, then download the changed configuration | After the download and a power cycle, the 1234 test returns 1234 |
| Hold-up time exceeded | Fit the battery module, or write critical values to nonvolatile storage on entry: an explicit save instruction or a recipe record | An outage longer than the old hold-up, then the right value at restart |
| HMI startup write | Remove the write-on-load option from the object, or gate the PLC-side move behind a first-run flag the operator sets | An HMI-only cycle leaves the register untouched |
| Stale recipe record | Bind the save action to entry, so one operation writes the register and the record | Enter 1234, save, reload, and 1234 returns |
Keep one authoritative store. The PLC register is the live value, and the recipe record is a copy for loading and backup; two stores that both restore at startup create a boot-order dependency you will chase for months. Three habits keep the fault from coming back:
- Rerun the 1234 cycle test after every project download, because a changed retention map only takes hold with the download.
- Add the boundary check, offset + width - 1, to your tag-map sheet for every retained tag.
- Export or print the validated parameter set after each change, so production can re-enter values fast if a destructive event does land.
When to re-specify the enclosure
If the fix ends in new hardware, pick the housing from the device and let retention follow the new project. Our 304 stainless HMI housings take panel PCs from 7 to 23.8 in on a VESA 100 (100 x 100 mm) rear mount with a gasketed rear cover. The 10.1 in housing suits a compact machine-mounted screen, and the 15 in housing leaves room for a larger, glove-friendly display. The front seal is an IP65-type seal with the display installed — manufacturer rated, not UL listed. Get the opening right the first time with the cutouts, glands and HMI windows guide, and run through the dimensions to check before an LCD keypad panel cutout.
If nuisance power keeps wiping the box, treat the supply path as part of the fix. Put a fused IEC power entry module in a small PLC enclosure on the incoming side, and keep DC power entry into a sealed enclosure clean on the low-voltage side. Where the outage budget is long, add ride-through with one power input feeding multiple devices. Ride-through hardware adds depth inside the cabinet, so size the enclosure around it. Built to your drawing, the enclosure is delivered in 10 business days from your approval of the drawing.
Enclosures in this article
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| Unitronics V570 HMI housing | 304 stainless | 7 x 11.5 x 5.5 in | IP65-type front seal with the display installed, manufacturer rated; not UL listed |
| 10.1" HMI enclosure | 304 stainless | 8.72 x 12.66 x 3.48 in | IP65-type front seal with the display installed, manufacturer rated; not UL listed |
| 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 |
Questions
Who stores a value entered on an HMI screen?
Usually the PLC. The numeric-entry object writes the value to a PLC register and reads the same register back, so the screen is an editor and the register is the store. Retention then lives in the PLC's retentive byte range: a 100-byte area (bytes 0 to 99) holds 25 four-byte REAL setpoints (100 / 4 = 25), and anything parked outside the range reads zero after a power cut.
Why do setpoints survive a short outage but not a long shutdown?
Retentive bytes sit on a hold-up source with a stated limit, and some families give 7 days on basic CPUs with a battery module stretching that. A 9-day summer shutdown outlasts a 7-day hold, so a correctly configured range still arrives at defaults; fit the battery module or write critical values to nonvolatile storage on entry.
Can lost setpoints be fixed without adding a memory card?
Yes, in most cases. Configure the setpoint registers inside the PLC's retentive byte range and remove any startup write, and the values ride out a power cut with no card fitted; the card is one way to keep a copy, not the retention mechanism. Prove it with a test value of 1234: enter it, cycle PLC power only, then read the register online. A 1234 returning means the fix took.
Which housing suits a washdown HMI that holds critical setpoints?
A 304 stainless HMI housing sized to the display. Our range covers 7 to 23.8 in panel PCs on a VESA 100 (100 x 100 mm) rear mount with a gasketed rear cover, and the front seal is an IP65-type seal with the display installed; ratings are manufacturer ratings, not UL listed. Order it made to your drawing and it is delivered in 10 business days, counted from drawing approval for custom work.





