我们今天能为您提供什么帮助?
Why does the M221 controller not start automatically after a Clone operation using an SD card?
A script (script.cmd file) can be generated via SoMachine/Machine Expert Basic (Commissioning >> Memory Management) to create an SD card image containing the application (with or without the firmware).
The script.cmd file appears as follows (in this example, both the firmware and the application are selected):
Delete "/usr/cfg"
Delete "/usr/app"
Delete "/sys/os"
Download "/sys/os"
Download "/usr/app"
Download "/usr/cfg"
Reboot
When an SD card containing this script is inserted into an M221 logic controller, a "Reboot" command is executed once the application has been loaded, causing the controller to restart and launch the new application. The behavior of the M221 controller then depends on its "Boot" version (this version is embedded during manufacturing and is not altered by firmware updates):
- If the controller was manufactured with a "Boot" version (which can be checked via register %SW13) lower than 28, it will process this command: it will restart and launch the newly loaded application.
- If the controller was manufactured with a more recent "Boot" version (28 or higher), it will reject the "Reboot" command. A "Reboot - Invalid Command" error will be recorded in the script.log file; in this case, the M221 will only restart automatically once the SD card is removed from the controller.
發佈於: 施耐德電機Taiwan