Skip to main content
Version: 5.2

Working with templates

Many congenial connections are at best be projected with the template function. A typical example is the collection of dial count in a database, wich e. g. only differ by OPC item and the ID of the collection of data. With templates you work as follows:

  1. You create a template using the snap-in “Templates”, in which you configure all immutable parts of the connection. At the adjustable parts define template variables. That can be OPC items, names or columns of tables, names of access data, constants or just parts of these names. The examples in the following parts illustrate your possibilities.
info

Note: To avoid errors in the configuration, the template variables are type-safe. A combination of multiple template variables or template variables with characters (e.g. g\_atDBDataBlock\[{Variable})] is only in type “string” possible.

  1. From this template you create connections by going to the snap-in “Connections” and selecting the button “Create instance”.
    • Either you create a single instance after another. You only fill in the value of the template variables and you are done.
    • Or you have a list of template variables and their values created in a CSV data. In that case you only have to import the CSV data. The OPC Router 4 offers a simple table editor to create the list without external program.
  2. Make instances productive.