Click or drag to resize

OPC Viewer Connection Establishment

Home
Note Note

OPC Viewer is a free software tool that is very useful for developers, testers, integrators, and others using OPC. OPC Viewer has the functionality of saving current configuration in a file called session. This session file is compatible with the DataPorter configuration file, that’s why OPC Viewer is the recommended configuration tool for DataPorter. DataPorter package contains OPC Viewer application with a special license that enables the Processing Environment editor.

To start OPC Viewer select:

Start Menu -> All Programs -> CAS -> DataPorter -> OPC Viewer

The main window appears (See Main Window)

Connect to OPC Server

  1. To connect to OPC Server, select <Browse…> from the Server dropdown list.

    OPC Viewer connect
    Figure 1: OPC Viewer – main window
  2. Click the Add icon in menu ( OPC Server Add )

  3. The Select Server window appears (Figure 2); select OPC Server from a local or remote computer (e.g. CAS.CommServer.OPC.Da.Server):

    OPC Viewer – Select Server Window
    Figure 2: OPC Viewer – Select Server Window

    If you want to connect to a server on a remote computer, select the computer and check what servers are available (to check available servers click on “+” next to the computer name). If the requested computer is not on the list it is possible to connect to this computer using its IP address written in the input box on the address bar:

    opcda://computer_ip_address/progID_OPC_server

    Note Note

    Remember to configure DCOM properly before connecting to the other computer.

    The added OPC server is not connected ( Server OPC disconnect ).

    You can add a multiple OPC server to the configuration. It can be the same OPC server or any other OPC server.

    OPC Viewer – multiple OPC servers
    Figure 3: OPC Viewer – multiple OPC servers
  4. Click the right mouse button on the added server and select “Connect” or click “Connect to Server” icon ( OPC Start ) in the menu.

    OPC Viewer – Connect
    Figure 4: OPC Viewer – Connect

    After successful connection to the OPC server, the icon changes to Server OPC connected and we can create an online subscription.

    OPC Viewer – successful connection
    Figure 5: OPC Viewer – successful connection
    Note Note

    When we are not connected to the OPC server we can create an offline subscription.

  5. Now we can check the status of the connected OPC server. Click the right mouse button on the OPC server and select “View Status” or click icon ( OPC info ) on the toolbar.

    The Server Status window appears:

    OPC Viewer – Server Status
    Figure 6: OPC Viewer – Server Status