Why the M221 PLC is not automatically booting at the end of the Clone operation from SD Card?
A script (script.cmd file) can be generated with SoMachine/Machine Expert Basic (Commissioning >> Memory Management) to create a SD card image within the application (with/without the firmware).
The script.cmd file has such below content (in this case, both firmware and application are selected):
Delete "/usr/cfg"
Delete "/usr/app"
Delete "/sys/os"
Download "/sys/os"
Download "/usr/app"
Download "/usr/cfg"
Reboot
When inserting a SD card into a M221 with the above script file, at the end of the application download, the script executes a “Reboot” command to make the PLC booting and starting with this new application. The M221 PLC behavior would depend on the Boot version it has (Boot is included during manufacturing process, and not updated during a firmware update).
-If the PLC was manufactured with Boot version (it can be read within %SW13) < 28, then the PLC will manage this command. It will reboot and start with this new downloaded application.
-If the PLC was manufactured with a more recent Boot version >=28, then the PLC will reject the "Reboot" command, with an error into the script.log reporting “Reboot - Invalid Command “ and it’s only removing the SD card from the PLC, which will make the M221 automatically reboot.