Example 1: Image update for a CX1020 via the TwinCAT Management Server

This example illustrates how to apply an image update for a CX1020 via the TwinCAT Management Server. Please read the Installation notes thoroughly. Correct installation on the server and client is a prerequisite for this example.

Step 1: Project creation

Example 1: Image update for a CX1020 via the TwinCAT Management Server 1:

First create a new project in the configurator. Enter a project name and a storage location for creating a .mscp (Management Server Config Project) file containing the individual project information.

Step 2: Update configuration

Example 1: Image update for a CX1020 via the TwinCAT Management Server 2:

To enable data exchange between the central server and the various devices create the NetShare folder and enter it in the Configuration Project under Groups. Confirm with Apply.

Step 3: Adding devices

Example 1: Image update for a CX1020 via the TwinCAT Management Server 3:

TwinCAT routes must be available for the devices with which you want to work. You can do this conventional via the TwinCAT System Manager or directly in the configurator by right-clicking on the selected device in the Network Environment. In the context menu that opens you can use the Add Route option and enter a route in the same way as in the System Manager. You can now copy the devices via drag and drop from the Network Environment into the window of the Devices subitem. Alternatively, you can use the Add button in the Devices window. If the Cab file has been installed correctly on the target device, an "X" will appear in column Connected after a few seconds. Once this "X" appears the target device is able to process the scripts created in the configurator.

Example 1: Image update for a CX1020 via the TwinCAT Management Server 4:

Further device information can be obtained by selecting a device in the Configuration Project.

Step 4: Adding actions

Under the Actions subitem of a group you can create script-based actions to be started on the devices.

For this example, two actions will be created. The first action updates the complete image of the previously selected CX1020 from HPS 3.21d to HPS 3.21h. The second action is a simple file copying process.

Example 1: Image update for a CX1020 via the TwinCAT Management Server 5:

Actions can be added by right-clicking on the subitem New in the context menu of the Configuration Project or via Add in the Actions window.

Example 1: Image update for a CX1020 via the TwinCAT Management Server 6:

For the first action you have to select the script Cx10xxImageUpdate. Enter the folder for the new image in the SourceFolder field via the browser button. Select "\Hard Disk" as the TargetFolder for an image update on the device. The preparations for the first action are now complete.

Example 1: Image update for a CX1020 via the TwinCAT Management Server 7:

For the second action please select the Copyfile script. The aim is to copy an important production file to the device. Under FileName you can navigate to the required file. Specify the target directory under TargetFolder and the copy option under CopyFlag. In this case copy option "0" is selected, which means a simple copy process.

Step 5: Start update

Example 1: Image update for a CX1020 via the TwinCAT Management Server 8:

The update can now be started from various places in the configurator. One option is the Play button in the configurator toolbar. This option would start all activated actions for all available groups. Alternatively you can select the respective device in the Configuration Project and start the configured actions for this device in the window that opens.

Example 1: Image update for a CX1020 via the TwinCAT Management Server 9:

Under Device Status you can monitor the progress of the operations. Once Finished appears under Update State, highlighted in green, the operations for the respective device have been completed successfully. More detailed information about the device-specific update can be obtained by clicking on the respective device in the Configuration Project.

Step 6: Final steps

The script Cx10xxImageUpdate.script replaces all system files on the CX and resets all settings and registry entries (except the routes information). The device is restarted to complete the image update. The routes information is stored to ensure that the device is immediately available again. This means the route to your server PC continues to be available and does not have to be refreshed manually.