If the HMI project sits in battery-backed SRAM, a retention-path break of a fraction of a second erases it; a flash-stored project rides out the same outage. Confirm the memory type, check the cell and holder, reload, and pass a three-cycle power test before releasing the panel.
A panel that boots to a default screen after every power cut is telling you where its project lives. If the project sits in flash, an outage costs you nothing. If it sits in battery-backed SRAM, a break in the retention path of a fraction of a second is enough to erase it, and the battery can read healthy while the fault persists. Here is how to tell the two memory types apart, what to check on the retention path, and the controlled power-cycle test that settles whether the fix holds before the panel goes back on the machine.
Flash keeps its data with the power off; SRAM does not
Flash memory holds its contents with no power connected. Volatile SRAM holds them only while its retention rail stays above roughly 2 V, the data-retention floor printed on standard CMOS SRAM datasheets, and the bits corrupt within milliseconds once the rail falls below it. That single difference explains the whole fault.
Panel manuals draw the same line. One documented HMI line saves changed parameters to SRAM and keeps them through power cycles with a coin cell. PLC families back holding registers, counters and data tables with a battery the same way. Some controllers bridge short outages with a supercapacitor: one PLC family documents a few days of SRAM retention on a charged supercap alone, with the battery removed. The split runs through PLCs too; the S7-300 page on battery-backed RAM versus MMC flash backup shows one controller family holding retentive memory in RAM with a battery while the MMC keeps the program in flash.
So a panel whose project sits in SRAM depends on a coin cell, a holder and a copper path staying intact through every restart, washdown and vibration. A holder contact that opens for 200 ms during restart inrush erases the project and leaves no trace. The same panel with the project in flash shrugs all of it off, which is why panel families offer a flash option on the step-up models. If your manual does not state the memory type, treat the panel as battery-backed and check the battery path before anything else.
Symptoms and what each points to
- Boots to the supplier's default screen or asks for a download after a power cut. The project image was in volatile memory and the retention path failed. Run the checks below before reloading, so the download does not overwrite the evidence.
- The project survives but recipes, counters or stored values reset. Those values sit in the battery-backed retentive area, a separate setting from the project image. List the values that must survive an outage and move them to flash or off-panel storage; storing PLC data on an HMI panel for later retrieval covers the options.
- The screen stays dark or never reaches its startup splash. Power problem first. Measure the supply at the panel terminal before touching the battery.
- It runs for weeks, then one cycle wipes it. An intermittent contact, not a spent cell. A cell at full voltage still loses the project the instant vibration opens the holder.
Checks before you reload
- Record the symptom. Photograph the boot screen and note exactly which values reset. A download overwrites this evidence.
- Read the manual for the memory type. Do not infer it from the presence of a battery: flash-based panels still carry a cell for the clock and retentive values.
- Measure the cell at the holder. A fresh coin cell reads about 3.0 V. Against the roughly 2 V retention floor, replace the cell when it reads below about 2.5 V at the holder, which leaves 0.5 V of margin for contact drop and sag under load.
- Inspect the holder and its solder joints. Corrosion, a cracked joint or a flattened spring produce exactly the fault a meter cannot see, and they are the most common cause of a one-off wipe.
- Check for a supercapacitor in the retention circuit. If the design bridges the rail with one, short blips ride out on the capacitor and only longer outages threaten the memory.
- List the values that must survive an outage and where each one lives: project image, retentive area, or the PLC.
Example: both meter checks pass and the memory still dies
Take one panel that wiped its project during a single restart.
- Holder voltage measures 2.9 V. Fresh is 3.0 V and the retention floor is about 2.0 V, so the cell holds a 0.9 V margin. The cell passes.
- The holder contact has corroded to about 10 kΩ. Retention load for low-power SRAM is on the order of 1 µA, so the drop across the contact is 10,000 Ω × 0.000001 A = 0.01 V, or 10 mV. The holder passes too. With readings like these, no steady-state measurement finds the fault.
- During the restart, vibration opens the same contact for 200 ms. With the contact open, no current holds the rail up; without a dedicated hold-up capacitor the rail falls below the 2 V floor within milliseconds and the project image corrupts.
Result: 2.9 V at the holder, 10 mV of contact drop, a 200 ms break, a wiped project. The deciding check is another meter reading; it is a power cycle under the panel's real conditions, which is what the next section runs.
The fix
- Clean or replace the holder contacts, then replace the cell with the chemistry and size the manual specifies. Replacing the cell clears the retentive memory, so reload straight afterwards.
- Reload the approved project by the panel's normal download procedure and confirm the retained values. If the download fails after the reboot, work through fixing an HMI project restore that fails after reboot.
- Verify operation: startup screen, navigation, and every machine function the panel starts or stops.
- Then prove retention with the test below. A reload that sticks through one shift is recovery; the cycle test is what justifies release.
The controlled power-cycle test
Run it during planned downtime: if the panel starts or stops a running machine, a wipe during the test stops the machine with it.
- Load the approved project and set the retained values.
- Remove panel power with the normal disconnect for 30 s, then restore. Leave the battery and its connector untouched throughout.
- Compare the startup screen and retained values with the pre-test state and write the result down.
- Repeat with 5 min off, then 10 min off. Three cycles in total.
- Log the panel's model, memory type, battery voltage and the three results, so a repeat case at another machine can be compared against this one.
If all three cycles retain, release the panel. If any cycle wipes the project with the battery undisturbed, stop cycling: the retention path has a fault the meter cannot see, and the panel comes off the machine for a holder and cell replacement or a bench diagnosis. Fixed off-intervals keep the test repeatable; the P2K retentive values page on the controlled power-cycle test sets out the same reasoning for releasing a controller after a retentive-memory fix.
The decision for each case
| Result of the three cycles | What it means | What to do |
|---|---|---|
| Project and values retained at 30 s, 5 min and 10 min | Retention path repaired | Release the panel; keep the dated backup and the cell on the manual's replacement schedule |
| Values reset but project intact | Retentive-area setting or storage location, not the project image | Move the values to flash or off-panel storage and retest those values only |
| Any cycle wipes with the battery undisturbed | Retention path fault the meter missed | Replace holder and cell, retest once; a second wipe sends the panel to the bench |
| Panel dark, no startup splash at all | Power, not memory | Fix the supply first, then rerun the test |
Recommendation: For any panel whose project sits in battery-backed SRAM, keep a dated project backup at the machine and replace the coin cell on the schedule the manual prints. After one unexplained wipe, clean or replace the holder, reload, and pass three controlled cycles at 30 s, 5 min and 10 min off before release. If the panel wipes again with its battery undisturbed, move that machine to a flash-based panel, and standardize new installs on flash wherever the family offers it.
Questions
How long does the coin cell keep HMI memory alive with panel power off?
A CR2032-class cell holds about 220 mAh and a low-power SRAM retention load runs on the order of 1 µA, so the raw arithmetic is 220 mAh ÷ 1 µA = 220,000 hours, roughly 25 years. Real manuals quote far shorter service lives because cell self-discharge and holder wear end the cell first. Use the manual's replacement interval as the schedule; the arithmetic only shows that a healthy cell is not the weak link.
Can I test the battery by removing it with panel power off?
No. With the panel powered down, the cell is the only thing holding the SRAM contents, so lifting it erases whatever is retained on the spot. Inspect the holder and measure the cell with it in place. Pull the cell only to replace it, with the project backup ready, and expect a wipe on the swap.
Does a wiped project mean the panel hardware is faulty?
Usually no: the project image is data, and the panel reloads and runs normally once it is back. The hardware question is the retention path, and a one-off wipe is most often a holder or contact problem. Track the machine, memory type and battery voltage for each wipe; the panel that wipes with a fresh cell and a clean holder is the one that goes to the bench.
Planning information, not legal or engineering advice. Rules differ by place: check codes and permits with your local authority and your licensed trades.