A script command file named script.cmd, present into the SD card and having the line Download â/usr/mem" make possible a transfer into the M221 PLC of %MW and %M values (see Modicon M221 Logic Controller - Programming Guide, section Memory Management: Backing Up and Restoring Controller Memory).

Nevertheless, there are some conditions to make this process being successfully achieved :
1) The script.cmd file should not include any other transfer command like application transfer command (Download â/usr/app") or firmware download (âDownload "/sys/os") which can be present into a script file automatically generated when doing:
2) The SD card has to be inserted into the M221 controller while it is already powered as the script "Download â/usr/memâ is not executed during the boot up, but read and executed by the firmware only when detecting the event of inserting the SD card.
Note: Those two mandatory conditions have to be kept in mind also for a memory upload operation, managed by the command line Upload â/usr/memâ
Nevertheless, there are some conditions to make this process being successfully achieved :
1) The script.cmd file should not include any other transfer command like application transfer command (Download â/usr/app") or firmware download (âDownload "/sys/os") which can be present into a script file automatically generated when doing:
- a clone operation (using an empty SD card)
- a âBackup from Controllerâ operation command (commissioning Tab in SoMachine/Machine Expert - Basic)
2) The SD card has to be inserted into the M221 controller while it is already powered as the script "Download â/usr/memâ is not executed during the boot up, but read and executed by the firmware only when detecting the event of inserting the SD card.
Note: Those two mandatory conditions have to be kept in mind also for a memory upload operation, managed by the command line Upload â/usr/memâ
Released for:Schneider Electric India

