How can we help you today?

You are currently viewing the content available in Vietnam. If you are looking for information for another region, please select the correct country from the top-left dropdown in the page and 'Navigate to Browse FAQs' in the Support menu.

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.

Schneider Electric Vietnam

Explore more

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more

Explore more

Need help?

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Start your sales enquiry online and an expert will connect with you.

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Centre

Find support resources for all your needs, in one place.