Topic: DMD0425 Backup and Restore using a micro-SD Card (BRX-only) |
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
The preferred method to create a backup image of the PLC contents on the BRX CPU's micro-SD Card is to use the System Backup (BACKUP) instruction, or using the Create PLC Image File utility in Do-more Designer. Image files are created on a micro-SD card with the intention of them being restored to a BRX PLC. Using a PLC image file on a micro-SD card this way allows a BRX CPU to be programmed without having to use Do-more Designer.
The PLC image file will minimally contain the Program section with all of the code-blocks, the complete System Configuration, and all of the user-supplied Documentation. It can optionally contain all of the memory blocks and heap items that are marked as retentive (except DST and ST memory). It can also optionally contain the PLC's current TCP/IP configuration. If this image will be restored to the same BRX CPU where the image is created, or a replacement CPU, then including the TCP/IP configuration is a reasonable choice. Using the System Backup (BACKUP) instructionThis method allows image creation without the need for rebooting the PLC - which is required by the manual method described below. Because of the potential to select large amount of data to add to the image file, this instruction will NOT run to completion in one PLC scan. The image creation process is broken into multiple file operations that will be executed on successive scans. While this instruction is running there will be an increase in the scan time during each scan required to complete the backup. One potential issue with processing the backup over multiple scans occurs if the contents of the PLC memory is changing while the backup operation is being processed. The image file will contain the memory values on whatever scan that section of memory was written to the image file. Simply said, the backup operation DOES NOT create a snapshot of the contents of the PLC at a given time. To minimize the impact we recommend that you execute the Backup at a point when the memory contents of the PLC will not change until the completion of the Backup instruction. Using the Create PLC Image File utility in Do-more DesignerThis method allows the image file to be created on the PC running Do-more Designer The image can be archived on the PC or transferred to a micro-SD card so the image can be restored to a BRX PLC without having to use Do-more Designer. Manually Create an Image File on a micro-SD Card Requires a PLC RebootThrough the use of a special system register: $ImageBackup (DST389), the BRX CPU can create an image file on the micro-SD card that contains some or all of the contents of the PLC on the next PLC reboot.
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
Process to Restore an Image File from a micro-SD Card (Requires an PLC Reboot)You can have the CPU automatically restore all of the contents from a previously built image file (image.bin) on the next PLC reboot. The process follows:
Insert the micro-SD containing desired the image file named "image.bin" in the root folder.
Set the PLC mode switch to STOP (or set $ImageRestore (DST390) to a value of 1).
Reboot the PLC.
The contents of the image file will be restored during the first phase of the reboot. During the restore, the LEDs will show a sweeping pattern down from the micro-SD card. Any error codes will be written to $ImageRestore (DST390).
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
Error Codes for PLC Image Backup and Restore
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
See Also:
Backup and Restore using micro-SD Card (BRX only)
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
Related Topics:
|
||||||||||||||||||||||||||||||
|