OPCActivate

OPCActivate — activates or deactivates an OPC group.

Syntax

(OPCActivate 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 group is activated; if 0, it is deactivated.

Returns

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

Description

This command activates or deactivates the OPC group in the OPC server representing the connection specified by label. This sends a message to the OPC server to activate or deactivate the underlying group. The result of deactivating a group is that subsequent read and write attempts will fail until the group is activated again.