Chapter 3. Making Connections

Table of Contents

3.1. Mirroring Connections
3.1.1. Configure the master DataHub
3.1.2. Configure the slave DataHub
3.2. DDE Connections
3.2.1. DDE Poke and DDE Request
3.2.2. DDE Advise
3.3. OPC Connections
3.3.1. Connecting an OPC Server
3.3.2. Connecting an OPC Client

3.1. Mirroring Connections

Mirroring is how two or more Cascade DataHubs link over a network or the Internet to maintain identical data sets. For every mirroring connection, you must assign one participant to be the master, and the other to be the slave. This determines which program initiates communication. Once communication is established, the data is identical. Generally it is recommended that the DataHub on the server or the machine least likely to shut down act as the master, while the slave be on the client machine.

[Note]

This kind of mirroring connection can be used to connect to Cascade DataHub running in Linux. Please refer to the Mirroring Data section of the Cascade DataHub for Linux and QNX manual for details.

To connect two Cascade DataHubs, first decide which DataHub is to be the master, and which the slave. Then follow these steps:

3.1.1. Configure the master DataHub

  1. On the machine where the master DataHub will run, start the Cascade DataHub, right click on the DataHub system-tray icon and choose Properties.
  2. In the Properties window, select Mirroring .
  3. In the Mirroring Master section, check the box Act as a master for mirroring....
  4. Determine which service or port number you wish to use, and if necessary, change the default entry in ...on service/port from 4600 to your choice.
  5. Click OK to close the Mirror Master window.
  6. Click OK to close the Properties Window.

You are now ready to configure the slave DataHub.

3.1.2. Configure the slave DataHub

  1. With the Cascade DataHub running, right click on the DataHub system-tray icon and choose Properties.
  2. In the Properties window, select Mirroring .
  3. Check the box Act as a mirroring slave to these masters.
  4. Click the Add Master... button. This opens the Mirror Master window.
  5. Type in the following information:
    • Host Name: the name or IP address of the computer running the master Cascade DataHub.
    • Service/Port: the port number or service name that is entered in the Master service/port entry box of the master DataHub. The system provides a default number which you can change if necessary.
    • Local domain: The domain in which you plan to receive data.
    • Remote domain: the master Cascade DataHub domain from which you plan to receive data. Point names will be mapped from the remote domain (on the master DataHub) into the local domain (on this DataHub), and vice versa.
  6. Click OK to close the Mirror Master window. The fields in the Mirroring Slave table of the Properties Window should now be filled in.
  7. Click OK to close the Properties Window.

Open the Data Browser and select the domain you requested to mirror. If the master Cascade DataHub has been correctly configured, you should now see all the master DataHub data for that domain.