Skip to main content
Version: 5.5

Working with templates

The template function is the best way to design many similar connections. A typical example is the recording of meter readings in a database, which differ only in terms of the data point and the ID of the measurement series. To work with templates, proceed as follows:

  1. Create a template using the "Templates" snap-in, in which you project all unchangeable parts of the connection. Define template variables at the variable points. These can be data points, table names or columns, connection names, or constants. The examples in the following sections illustrate the possibilities. Note: To avoid errors in the configuration, the template variables are type-safe. A combination of several template variables or template variables with characters (e.g., g_atDBDataBlock\[{Variable})] is only possible in the "String" type.
  • Either you create a single instance after the other. Simply enter the values of the template variables and you're done.
  • Or you have created a list of template variables and their values in a CSV file. Then all you need to do is import the CSV file. OPC Router 4 offers a simple table editor to create the list without an external program.
  1. Switch instances to productive mode.