OPCModify — modifies an existing OPC connection.


(OPCModify label machine_name interface_name server_pattern domain point_pattern
 deadband_msec flags pollmsec read_method write_method (filters...))



The name for this connection, as displayed in the OPC option of the Properties window.


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


Is currently ignored.


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


The data domain name.


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.


The maximum rate at which the server should send data to the client. In asynchronous advise mode, deadband_msec is transmitted to the server. The server limits the data rate to no more often than the deadband_msec. In polling modes, deadband_msec determines the polling rate.


Any combination of:

    0x00000001 - PROPERTIES - Attempt to load item properties as items.

    0x00000002 - ENABLED - This connection is enabled.

    0x00000004 - AUTOITEMS - Tells the OPC DataHub to read the entire data set from the server.

    0x00000008 - READ_ONLY - Marks the connection as read-only. Data will not be transmitted from the OPC DataHub to the server.

    0x00000010 - MANUAL_ITEMS - Tells the OPC DataHub to connect to any manually configured items from the server.

    0x00000020 - OVERRIDE_TIME - Force the time stamp on incoming data from the server to the local time on the OPC DataHub's computer.


The number of milliseconds between reconnection attempts when trying to connect to a server.


The method to use to read data from the OPC server. This can be one of:

    1 - Asynchronous Advise (DA2.0)

    2 - Synchronous Cache Read (DA2.0)

    3 - Asynchronous Read (DA2.0)

    7 - Synchronous Device Read (DA2.0)


The method to use to read data from the OPC server. This can be one of:

    1 - Synchronous Write (DA2.0)

    2 - Asynchronous Write (DA2.0)


A space-separated list of filters, each one as a string, such as are entered in the Define OPC Server dialog of the OPC option of the Properties window. For example, here is what you would enter if you have:

    zero filters:()

    one filter:("filter1")

    two filters:("filter1" "filter2")



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


This command is identical to OPCAttach2, except that it applies its settings to an existing connection instead of creating a new connection.