Symptom
After a power cycle, a download, or a processor replacement, setpoints read zero or default, totalizers and run hours have reset, alternation starts from the first pump, and operators are re-entering values from memory.
The short answer
Retentive Data Lost
Retained data is lost when the backup that holds it fails, or when something writes over it. A dead battery or a discharged energy storage module leaves nothing after an outage; a download loads the values saved in the project; a memory card set to load on power-up restores the day it was written. Recover from the most recent upload of the controller, then find which of those happened, because the same cause will do it again at the next outage.
Key points
- A low battery indicator that was lit for months is the usual story. Check it first and check the battery date.
- A download replaces the data table with the values in the project file. If the project is old, so are the values.
- A nonvolatile card configured to load on power-up restores whatever it held, however stale.
- Recovery is from the last upload; if there is none, the values come from operator memory and the narrative.
- Prevent the next one: replace the battery on schedule, upload after every change, and hold setpoints in SCADA as a second copy.
Possible causes and what to check
| Possible cause | What to check |
|---|---|
| Battery dead | The battery indicator is lit, and the battery date on the module or in the log is years old. A power cycle with a dead battery clears the retained data. |
| Energy storage module discharged | The controller was unpowered for longer than the module holds, days to weeks, or the module has aged and holds less than it did. |
| Download from a stale project | Someone downloaded. The project file on the laptop carried the tag values from the day it was saved. |
| Memory card restore | The card is set to load on power-up, and it was written at commissioning. Everything since then is gone after every power cycle. |
| Processor replaced or firmware updated | A new processor has an empty data table, and a firmware update clears it on most platforms. Was an upload taken first? |
| Tags not retentive | On a platform where retention is per tag or per area, the tags were never marked. This shows up at the first real power cycle after commissioning. |
| First-scan logic clearing values | A routine on the first-scan bit that initializes tags, written for commissioning and left in. It runs on every power-up. |
| Corrupted memory | A fault code naming memory, after a lightning event or a hardware failure. The data is gone and the processor may be suspect. |
Get the plant running first
A plant with zero setpoints is a plant that is not controlling. Before finding the cause, restore operation: load the last upload if there is one, or enter the setpoints from the control narrative and the operators, and check every one against its range before putting anything in auto. Totals and run hours can be reconstructed later from the historian; setpoints cannot wait.
Which one was it
- 1
Look at the battery indicator and the fault log.
A lit battery light, a low battery entry in the log, or a battery date years past its replacement interval settles it.
- 2
Ask what happened just before.
A power outage, a download, a processor swap, a firmware update, a card inserted. Each has its own signature, and someone knows.
- 3
Check the memory card setting.
If a card is installed, read its load configuration and the date it was written. A card set to load on power-up with an old date is the cause, and it will be the cause again.
- 4
Compare the values you have to what was lost.
Values reset to the project defaults point to a download or a card. Values reset to zero point to a lost data table.
- 5
Check retention configuration.
On platforms that mark retention per tag or area, confirm the lost tags were marked. If not, the data was never retained and this was the first power cycle to show it.
Recovering the data
- From an upload
- The best case. An upload taken from the running controller, with its data table, restores everything to the moment it was taken. Restore it and reconcile the setpoints changed since.
- From SCADA
- Setpoints entered from the HMI are often stored in the SCADA database as well as the controller, and the historian holds the last value of every logged tag. Read them back from there.
- From the narrative and the operators
- The control narrative lists initial setpoints; the operators know what they changed and why. Slower, and it works.
- Totals and run hours
- Reconstruct from the historian, from the last report, or from the equipment’s own hour meters. Note the date of the reset on the record so that a future reviewer understands the step in the trend.
Keeping it from happening again
- Replace the battery on a schedule, with the controller powered, and write the date on it and on the rack drawing. Alarm the low battery bit in SCADA so it cannot be ignored.
- Upload the controller, including the data table, after every change and on a schedule, and keep the copies somewhere that is not in the panel.
- Set the memory card to load only on a lost memory, not on every power-up, and rewrite it after every change if it is relied on at all.
- Before any download, upload first and compare. Before any processor swap or firmware update, upload first.
- Hold setpoints in SCADA as well, and write them back to the controller on first scan or on operator command, so that a controller that comes up empty is refilled from the host.
- Remove commissioning initialization logic from the first-scan routine, or guard it so it runs once and never again.
Frequently asked questions
- Can I get the setpoints back after the battery died?
- From the last upload of the controller, from the SCADA database or historian, or from the control narrative and the operators. The controller itself has nothing to give back.
- Why did a download reset my setpoints?
- A download writes the whole project, including the tag values saved in the project file, and those are the values from the day it was saved. Upload before you download, and either merge the current values into the project or restore them afterward.
- How do I know if my controller has a battery or a capacitor module?
- From the processor manual and the module on the front of it. Newer processors mostly use an energy storage module with no replacement; older ones use a lithium battery with a replacement interval. Either way the controller reports its status.
- Should setpoints be stored in SCADA as well as the PLC?
- Yes. The controller is the authority while running, and SCADA is the backup that refills it after a loss. Write-back on first scan or on an operator command, with the operator confirming, is the usual arrangement.
Related topics
- Retentive MemoryWhat survives a power cycle in a controller and what does not, how retention is backed up by battery, capacitor, or nonvolatile storage, what should be retentive, and how retained data gets lost.
- Processor FaultedA PLC with its fault light on and no logic running. How to read what it is telling you, the causes in order of likelihood, and how to restart it without repeating the fault.
- Program Will Not DownloadThe software refuses to download, or the download starts and fails. The version, path, mode, memory, and protection problems behind it, and the order to check them in.
- The PLC ProcessorWhat the processor module does on every scan, how its memory is organized, what the mode switch and status lights mean, and how it faults and recovers.
- Outputs Not EnergizingThe program says the output is on and the equipment is not running. Where the signal gets lost between the output image and the field device, and how to find the point in a few measurements.
- Inputs Not ReadingA switch closes in the field and the program never sees it. How the wetting voltage, the common, sinking and sourcing, and the wiring each lose the signal, and how to find which one did.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.