Restore data

This function allows you to restore the PLC runtime system (firmware) and the project data. Data recovery can be carried out either by power switching the controller or via a device parameter.
 
–
You can also restore an older data backup. To do this, copy the corresponding data backup on the USB stick from the "firmware\archive__" to "firmware\active" directory. However, the directory "firmware\active" may only contain one file at a time.
 
–
Only use suitable USB sticks for the controller!
Due to their shape, some USB sticks may not be able to be inserted deep enough into the USB socket of the controller. This can cause problems that do not always suggest the USB stick as the cause.
 
–
Do not switch off the device during data backup and do not remove the USB stick from the device!
Observe the status display of the yellow LED "STA". Status LEDs 
 
 
 
Data recovery by power switching
Preconditions
–
USB stick with valid data backup from the same type of controller.
 
–
Parameter 0x5902:001 must be set to "Activated [1]".
 
–
With this setting, the USB stick is only mounted once at the next restart.
 
–
If the device command "Save user data" (0x2022:003) is also executed, the USB stick is backed up permanently (over several boot processes).
 
 
How to carry out a data recovery by power switching:
1.
Insert the USB stick into the USB port of the controller (X61).
 
2.
Restart the controller by power switching to start the restore process.
 
3.
Remove the USB stick when the charging process is complete.
 
4.
Restart controller.
 
Data recovery by power switching is complete.
 
Data recovery using device parameters
With this procedure, the inserted USB stick is mounted automatically, regardless of the setting in 0x5902:001.
Preconditions
–
USB stick with valid data backup from the same type of controller.
 
How to perform data recovery using device parameters:
1.
Insert the USB stick into the USB port of the controller (X61).
 
2.
Execute the "Restore" device command, e.g. with »PLC Designer«: Set 0x2022:043 to "1: On / Start".
The selected data backup is loaded into the controller regardless of the version. The data recovery progress is shown in 0x2022:043. When the update is complete, the status "0: off / ready" is shown in 0x2022:043.
 
3.
Remove the USB stick when the charging process is complete.
 
4.
Restart controller.
 
Data recovery using device parameters is complete.
 
Parameter
Address
Name / setting range / [default setting]
Information
0x2022:043
Device commands: Device command: Restore
–
Settings can only be changed if the PLC application is not in the "Running" status.
 
–
For further possible settings, see parameter 0x2022:040.
 
–
Setting can only be changed if application status (displayed in 0x5810:001) is not equal to "1: Running".
 
–
When the device command has been executed successfully, the value 0 is shown.
 
–
Do not switch off the supply voltage or remove the SD card from the controller while the data recovery is being executed!
 
0
Off / ready
Only status feedback
101
No SD card connected
102
SD card is write protected
103
SD card is full
104
USB stick not mounted
105
Backup file on USB stick wrong, double or in the wrong path
106
USB stick is full
107
Device no memory space left
108
Firmware size too large
109
User data size too large
110
Up/Downgrade successful - remove USB stick and restart the device
111
Application is still running - stop application first
112
Other device command active - wait for end of execution
113
Error - see Logbook for details