Skip to main content

Design Flow

Flows require at least three transfer objects: a data source, a data destination, and a trigger that initiates the transfer. You can add as many sources and destinations as you like to the flow, which can also be accessed in multiple steps. It is also possible to define multiple triggers. The triggers can be linked using AND or OR, meaning they initiate the transfer if either one or all conditions are met.

The required transfer objects (“Sources and Destinations,” “Triggers”) can be found in the tool palette on the right side of the window.

Within the design area, you can edit, rename, and delete transfer objects using the context menu (right-click).

note

To define the flow, all required plug-ins must be configured.

If you need many flows with similar structures, it’s best to create them using templates and instances rather than designing each flow from scratch.

  1. Create a new flow.

  2. Give your flow an appropriate name.

  3. In the tool palette Transfer Objects, select the type of your source (e.g., “OPC UA/DA” if you want to read data from an OPC server).

  4. Place the source in the configuration area using drag-and-drop.

  5. Double-click to open the source.

  6. Enter the required properties. The properties of the individual transfer objects are explained in the following sections.

    1. Selecting the OPC Connection
    2. Alternatively: Type in the data points or open the tag browser
    3. Add data points to the transfer object by double-clicking them.

    Configuring an OPC Data Source

  7. Click OK to confirm.

  8. Create a data destination (e.g., a database) and define its properties (detailed instructions).

    1. Select the DB object from the tool palette Transfer Objects.
    2. Place it in the configuration area.
    3. Double-click to open the transfer object.
    4. Select the database connection.
    5. Select the type of transfer object. Since the database serves as the transfer destination here, choose either “Insert” or “Update” (of an existing record). Now: Insert.
    6. Select the table you want to write to.
    7. Select the columns you want to write to. Sort using “Ascending” and “Descending” to maintain an overview during configuration.
    8. Confirm by clicking OK.

    Tip: Copy/paste is possible in the transfer object view.

    Configure a database object

  9. Now simply drag Item Links between the entries in the source and those in the destination. To do this, click on the entry in the source, hold down the mouse button, and drag it over the destination entry. Then release the mouse button (drag & drop).

    Completed flow in which Item Links establish connections between the entries for constants, variables, and OPC data sources and the columns of the DB Insert transfer object

  10. You can delete an Item Link by right-clicking on it and selecting Delete.” At this point, you also have the option to delete multiple Item Links at once. To do so, go to the entry Delete multiple and select an option.

  11. Finally, create the trigger that initiates the transfer.

    1. Select a trigger from the tool palette Transfer Objects.
    2. Place the trigger in the configuration area.
    3. Double-click to open the trigger.
    4. Configure the trigger.

    Datachange trigger

  12. Publish the engineering so that the runtime executes the flow. For instructions on how to select the pending changes and put them into production, see “Publishing.”

tip

Press Shift to drag all columns from one transfer object to a single column in another transfer object.

An item link does not establish a connection between two transfer objects as a whole, but rather two of their elements—for example, a data point from the source with a column in the destination. It thus specifies which value is transferred from where to where.

The OPC Router also uses the item links to calculate the order in which it processes the flow’s transfer objects: how a flow is executed.

You can drag item links one at a time or several at once. For information on the three modes offered by the Draw Item Links button and how automatic item sorting works, see “Creating a Flow.”