&XUUHQWGDWD
.HUQHOGDWD
5HWDLQGDWD
2SHUDWLQJV\VWHP
6,027,21b3
)LUPZDUH
6,027,21b3
6WRUDJHPHGLD
6WRUDJHPHGLXP
LQWHUQDO
66'
&)DVWFDUG
&)DVWFDUG
6WRUDJHPHGLXP
H[WHUQDO
%DFNXSV
8VHUGDWD
6,027,213
65$0
5$0
Figure 10-8 SRAM restore at startup
Further information
can be found in the section Non-volatile data and SRAM handling (Page 189).
10.8.4.3
Backing up non-volatile SIMOTION data (retain data)
The non-volatile SIMOTION data (retain data) can be backed up from the user program and
via SIMOTION SCOUT.
You can use the backup to restore the retain data independent of the version after an update
or a hardware replacement (SIMOTION P320‑4) or to create a current backup to use in the
event of an inadvertent deletion.
You can save the retain data as follows:
● From the user program with the _savePersistentMemoryData() system function
The contents are saved to the "PMEMORY.XML" backup file in the "USER\SIMOTION"
directory.
The data is saved in the PMEMORY.XML file on the external CFast card.
● To back up the retain data via SIMOTION SCOUT , go online and in the context menu of
a created source, execute Save variables....
The data is saved in the unitdata.xml file on the computer with SIMOTION SCOUT .
● Alternatively, the retain data is saved via the SIMOTION P State application, via the
SIMOTION P > Set Diagnostic Switch menu.
The contents are saved to the "PMEMORY.XML" backup file in the "USER\SIMOTION\HMI
\SYSLOG\DIAG" directory.
● To restore the retain data via SIMOTION SCOUT, go online and execute Restore
variables... in the menu.
Restores the saved variables, also over different versions.
On the system side, the _savePersistentMemoryData() system function ensures that a
consistent overall image of the non-volatile SIMOTION data is always available the next time
the device is switched on, even if there is a power failure during backup.
An already existing backup file is renamed to "PMEMORY.BAK" before a new backup file is
generated. If the save operation to the new backup file fails (e.g. because the capacity of the
external CFast card is insufficient), this backup copy of the backup file is used the next time
Commissioning (software)
10.8 Data storage concept
SIMOTION P320-4 E / P320-4 S
166
Commissioning and Hardware Installation Manual, 11/2016