4.4.Bridging Scenarios

Here are some of the most commonly used bridging scenarios.

4.4.1.Bridging Local Servers

The most common scenario for OPC bridging is connecting OPC servers on a single machine. This can be used to create connections over various fieldbus protocols. Any fieldbus connected to an OPC server can be bridged to any other.

The bridge is configured as a direct link, or it might incorporate linear transformations. It can have a forward or inverse direction, or be bidirectional.

4.4.2.Bridging Remote Servers

A special bridging application that the OPC DataHub makes possible is to bridge remote servers. This is effectively bridging combined with tunnelling.

You can use this to create a software bridge between remote pieces of hardware. For example, consider this situation:

Suppose you need to control a motor remotely. An on/off switch and status indicator light are connected to PLC "A" in one location. The motor itself and a rotational sensor are connected to PLC "B" in another location. Both PLCs have OPC servers connected to copies of the OPC DataHub

To make the connection, you would need to program the PLCs for these data points:

PointFunction
A.switch - Changes value to 1 when switch is on, 0 when switch is off.
A.indicator - Turns on light when value is 1, switches off light when value is 0.
B.motor - Starts motor when value is 1, switches off motor when value is 0.
B.sensor - Changes value to 1 when shaft is turning is on, 0 when shaft is not turning.

then bridge them in the DataHub like this:

As when bridging local servers, bridging remote servers can also bridge different fieldbus protocols.

4.4.3.Creating Data Sets

A third common application for OPC DataHub bridging is creating custom data sets. You can select certain data points from several OPC servers and group them into different data domains depending on the user. This has two advantages:

    It simplifies configuration and use.

    It reduces bandwidth across the network.

For example, suppose you needed to get OPC data to three sets of users: accounting department staff, executives on the road, and an OPC server at a remote plant. You could declare three new data domains, such as Accounting, Executive, and Remote. For each data domain, you would then create new points specific to the needs of those users. With this approach, you can limit the data set and customize it for each recipient.

4.4.4.Bridging to Excel

The OPC DataHub makes it easy bridge data from an Excel spreadsheet to an OPC server.

Simply connect the DataHub to Excel, then configure the bridges. To get Excel data into an OPC server without changing any names in Excel or any OPC point names, follow these steps:

  1. Define a DDE Item in the DataHub for the Excel point. For example, the cell A1 in a spreadsheet would become DDE Item r1c1 (Row 1, Column 1).
  2. Configure a point-to-point bridge using the Excel point as the source and the OPC point as the destination. If we used our OPC server A and the point name switch from the example above, the bridge would look like this:
    This bridge would allow you to turn the switch on and off (and thus control the motor) from an Excel spreadsheet.