OPCAttach — is deprecated in favor of OPCAttach2.
(OPCAttach label machine_name interface_name server_pattern domain
point_pattern [deadband_msec])
label
A name for this connection, as a string.
machine_name
The name or IP address of the computer running the DataHub instance.
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 instance.
Normally you should specify * as the
pattern.
deadband_msec
The maximum rate at which the server should send data to the client.
A message indicating success or error. Please refer to Return Syntax for details.
This command is deprecated in favor of OPCAttach2, but is available to facilitate upgrading from earlier versions of the DataHub program. 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 button in the OPC option of the Properties window.