When updating a PLC—whether upgrading the operating system or deploying a new application project—preserving all critical data is essential to ensure a smooth restart and avoid unexpected machine behavior.
This guideline summarizes the key areas that must be secured before performing any update on a B&R system.
1. Backup of Retentive Variables (PV)
Retentive variables store essential runtime information such as counters, production values, calibration offsets, and machine states.
In B&R systems, backing up PVs depends on the mechanisms provided by the application and the runtime environment.
Before performing the update:
-
Check whether the application includes a dedicated PV backup/restore routine (e.g., exporting PV sets to files).
-
If no application-level backup exists, a fallback strategy can be used:
restart the PLC in Service Mode and export all PVs whose value is different from zero.
This captures meaningful runtime data while avoiding default‑initialized values. -
Verify that the exported PV file is complete and readable.
-
If the update introduces structural changes to PVs, validate compatibility before restoring.
This ensures that the machine can resume operation with the correct internal state after the update.
2. Backup of NON_VOLATILE Retentive Configuration
In B&R systems, NON_VOLATILE data areas do not have a built‑in system-level backup function.
A backup is only possible if the application explicitly implements a mechanism to export, store, and restore these data blocks.
Typical NON_VOLATILE data include:
-
Machine configuration parameters (such as Ethernet settings)
-
Calibration or tuning values
-
User-defined settings
-
Persistent configuration structures
Before performing the update:
-
Verify that the application provides a method to export NON_VOLATILE data (file storage, service commands, custom routines).
-
Use the application’s backup function to generate a complete and up‑to‑date copy of all NON_VOLATILE data.
-
Confirm compatibility with the target software version, especially if data structures have changed.
-
Ensure that the restore procedure is documented and validated.
This prevents misconfigurations or unexpected behavior after the upgrade.
3. Backup of CompactFlash (CF) Content
The CompactFlash card often contains essential runtime components, including:
-
System files
-
Application data
-
Logging directories
-
Custom configuration files
-
Additional software modules
To avoid accidental data loss:
-
Perform a complete CF image backup before starting the update.
-
Validate the integrity of the backup (e.g., checksum or file comparison).
-
Document the CF structure to support accurate manual restoration if needed.
A CF backup is especially important when updating the operating system or when the update procedure involves formatting or replacing the storage media.
4. Data Objects Modified in Retentive Areas but Not Yet Saved to CF
Many applications use Data Objects to store structured configuration data, recipes, or calibration sets.
When these Data Objects reside in retentive memory, runtime modifications may not be immediately written to CF.
During an update, any unsaved changes stored only in RAM will be lost.
Before performing the update:
-
Check whether the application provides an explicit save mechanism for Data Objects.
-
Ensure that all modified Data Objects are saved before shutting down the system (e.g., via a “Save All” or “Commit Changes” function).
-
If no save mechanism exists, consider a fallback approach:
-
Restart the PLC in Service Mode.
-
Export the Data Objects directly from the runtime environment, if supported.
-
Verify that the exported files reflect the latest runtime modifications.
-
-
Document which Data Objects are expected to be persistent and confirm that their save logic is correctly implemented.
This step ensures that no runtime modifications are lost simply because they were never committed to non‑volatile storage.
Final Recommendations
To minimize risks and ensure a safe update process:
-
Always perform all four backup steps before updating the PLC.
-
Store backups in a secure, versioned repository.
-
Validate restore procedures in a controlled environment whenever possible.
-
Maintain clear documentation of the system configuration and backup strategy.
Following these guidelines helps ensure predictable, reversible, and safe update procedures for B&R systems.
__________________________________________________
Additional content and resources, both directly and indirectly related to this topic, can be found in the following Community posts:
-
General PLC Backup:
-
How to take Backup from PLC X20CP1584 – Discusses using Runtime Utility Center to upload global/local PVs for backup. [community…mation.com]
-
Can I get backup image from PLC with internal memory? – Mentions using MpBackup for project backup and restore. [community…mation.com]
-
-
Retain Variables & Runtime Settings:
-
How to save a variable value after controller power off inquiry – Covers issues with RETAIN variables not persisting after power cycles. [community…mation.com]
-
Easy and quick way to save/restore values of permanent variables – Suggests using Runtime Utility Center and variable lists for saving/restoring permanent variables. [community…mation.com]
-
Retain Tag and Remanent Memory Usage – Discusses remanent memory and retain tag behavior. [community…mation.com]
-
__________________________________________________
Consider this an evolving resource: your feedback, suggestions, and shared experiences will help shape and enrich it over time.