Transferring Scripts and Files

Before Transferring Scripts and Files

You can transfer scripts and files from and to the controller using an SD card.

The Modicon M262 Logic/Motion Controller accepts only SD cards formatted in FAT or FAT32.

The SD card must have a label. To add a label:

1.Insert the SD card in your PC.

2.Right-click on the drive in Windows Explorer.

3.Choose Properties.

Warning_Color.gifWARNING

UNINTENDED EQUIPMENT OPERATION

oYou must have operational knowledge of your machine or process before connecting this device to your controller.

oEnsure that guards are in place so that any potential unintended equipment operation will not cause injury to personnel or damage to equipment.

Failure to follow these instructions can result in death, serious injury, or equipment damage.

When an SD card is inserted into the SD card slot of the controller, the firmware searches and executes the script contained in the SD card (/sys/cmd/Script.cmd).

NOTE: The controller operation is not modified during file transfer.

NOTICE

LOSS OF APPLICATION DATA

oPerform a backup of the application program to the hard disk of the PC before attempting a firmware update.

oRestore the application program to the device after a successful firmware update.

Failure to follow these instructions can result in equipment damage.

If you remove power to the device, or there is a power outage or communication interruption during the transfer of the application, your device may become inoperative. If a communication interruption or a power outage occurs, reattempt the transfer. If there is a power outage or communication interruption during a firmware update, or if an invalid firmware is used, your device will become inoperative. In this case, use a valid firmware and reattempt the firmware update.

NOTICE

INOPERABLE EQUIPMENT

oDo not interrupt the transfer of the application program or a firmware change once the transfer has begun.

oRe-initiate the transfer if the transfer is interrupted for any reason.

oDo not attempt to place the device into service until the file transfer has completed successfully.

Failure to follow these instructions can result in equipment damage.

Transferring

Step

Action

1

Create the script with the Mass Storage (USB or SDCard) editor. If necessary, refer to Creating a Script.

2

Click Generate... and select the SD card root directory.

Result: The script and files are transferred on the SD card.

3

Insert the SD card into the controller.

Result: The transfer procedure starts and the SD LED is flashing during this procedure.

4

Wait until the end of the download:

oIf the SD LED (green) is ON, the download ended successfully.

oIf the SD LED (green) is OFF, and the ERR and I/O  LEDs (red) flash regularly, an error is detected.

5

Remove the SD card from the controller.

NOTE: Changes are applied after next restart.

When the controller has executed the script, the result is logged on the SD card (file /sys/cmd/script.log).