Skip to main content

Clone a Device Connection

Overview​

Emerson ROC Device Connections can be cloned using the Emerson ROC APIs with scripts that can be executed in the Ignition Designer Script Console.

⚠️ This action requires EFM Emerson ROC Driver v4.0.19 or newer.

Once you have configured and tested the base device connection to be cloned, use the scripts below to clone device connections either on the same Edge device or on a clean Edge device.

Five scripts are available to help manage Emerson ROC device connection replication. Clicking a script file name opens the script in a new browser tab.


Download Scripts​

File Name 📥Description
EmersonROCCloneDevice.pyClones a device connection to multiple new device connections. You will set the unique configuration parameters for each new device in this script.
EmersonROCSaveBaseDeviceToFile.pySaves a device connection configuration to a file, including its TLP Templates and Poll Groups.
EmersonROCCreateDeviceFromFile.pyCreates and configures a device connection from file configurations. You will set the file paths to each required configuration file in this script.
EmersonROCRemoveDevice.pyRemoves device connections.
EmersonROCDisableEnableDevice.pyEnables or disables device connections.

The Cirrus Link Utilities file is not required, but may be downloaded to assist with managing Emerson ROC device connections in Ignition Designer.

File Name 📥Description
EmersonROCUtils.zipA collection of utility functions for managing Emerson ROC device connections in Ignition Designer.

Run Scripts​

  1. In Ignition Designer, navigate to File > Import and select the EmersonROCUtils.zip file.
  2. You will see the script under Scripting > Project Library > CirrusLink.
  1. Open the Tools > Script Console and copy the script from each file as needed. Set the configuration parameters required within each script.
  2. Select Execute.

This example shows the EmersonROCSaveBaseDeviceToFile script.

✅ After the script finishes, verify that the cloned device connections are configured correctly and can connect successfully.