Skip to main content
Version: 5.6

Create Instances from a File

If you want to create many instances from a template, you can import the values for the template variables in bulk. To do this, you can

  • import a prepared Excel or CSV file
  • or fill out a corresponding table directly in OPC Router

The names of the template variables in the file and the template must match exactly. The columns in the CSV file can be separated by semicolons or commas.

Structure of the Import File

The CSV file has the following structure:

InstanceNameVariable1Variable2...
ConnectionName1ValueValueValue
ConnectionName2ValueValueValue
<unterordner>\ConnectionName3ValueValueValue
...ValueValueValue

Specifying a subfolder is optional. You can distribute the connections across multiple folders and subfolders in this way.

Time Values in Template Variables

The following time offsets apply to time values:

  • 1ms for milliseconds
  • 1s for seconds
  • 1m for minutes
  • 1h for hours
  • 1d for days

There must be no space between the number and the unit.

Create Multiple Instances from a File

Dialog for creating multiple instances from a file with template selection, destination folder, and CSV import

  1. In the “Templates” or “Connections” snap-in, select the “Create Instance” drop-down button, then select “Create Multiple Instances.”
  2. Select the template you want to use.
  3. Select the destination folder.
  4. Enter the values directly or open your CSV or Excel file using the “Import” button (“Import” button).
  5. Specify whether to keep or overwrite existing connections.
  6. Click the “Create Instances” button.
  7. Put the new instances into production.
note

Note: If you change the template later, all instances will be updated.