OPCConnect

OPCConnect — connects or disconnects from the OPC server.

Syntax

(OPCConnect label 0|1)
    

Arguments

label

The name for this connection, as displayed in the OPC option of the Properties window. If label is * then the command affects all currently configured connections.

0|1

If 1, connect; if 0, disconnect.

Returns

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

Description

This command causes the outgoing OPC connection specified by label to connect to or disconnect from the OPC server. If the connection is disconnected, it will reconnect again according to its connection polling cycle. If you wish to disconnect such that the connection will not automatically be retried, use OPCEnable.