OPCEnable

OPCEnable — enables or disables outgoing OPC connections.

Syntax

(OPCEnable 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, the connection is enabled; if 0, it is disabled.

Returns

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

Description

If the argument is 1, the outgoing OPC connection specified by the label is enabled. This is equivalent to checking the check-box for the specified OPC connection in the OPC option of the Properties window. If the argument is 0, the specified connection is disabled.