OPCAttach

OPCAttach — is deprecated in favor of OPCAttach2.

Syntax

(OPCAttach label machine_name interface_name server_pattern domain point_pattern [deadband_msec])
    

Arguments

label

A name for this connection, as a string.

machine_name

The name or IP address of the computer running the DataHub.

interface_name

Is either: "OPC Data Access 2.0" or "OPC Data Access 3.0" Currently only "OPC Data Access 2.0" is supported.

server_pattern

The name or IP address of the server computer. Wildcard characters are allowed.

domain

The data domain name.

point_pattern

A point name filter. Wildcard characters are allowed. Only leaf items that match this pattern will be visible in the DataHub. Normally you should specify * as the pattern.

deadband_msec

The maximum rate at which the server should send data to the client.

Returns

A message indicating success or error. Please refer to Return Syntax for details.

Description

This command is deprecated in favor of OPCAttach2, but is available to facilitate upgrading from earlier versions of the OPC DataHub. It lets you set up an OPC connection. It corresponds roughly to the Define OPC Server dialog box that you get when you click the Add button in the OPC option of the Properties window.