OpcdaConnection

host (string, required)

Hostname or IP of the OPC DA server

Example: "192.168.0.1"

port (integer)

Port of the OPC DA server

Default: 135

domain (string)

Microsoft Windows domain of the OPC DA server

Default: "WORKGROUP"

username (string, required)

Username for OPC DA server (usually a user on the Windows computer of the OPC DA server)

Example: "user"

password (string, required)

Password for the user on the OPC DA server (usually the password of the Windows user)

Example: "user"

classId (string, required)

Microsoft Windows DCOM class ID of the OPC DA server

Default: "F8582CF2-88FB-11D0-B850-00C0F0104305"

Example: "F8582CF2-88FB-11D0-B850-00C0F0104305"

group (string)

OPC DA group name for the tags that will be accessed

Default: "Connectware Group"

Example: "Some Name"

timeout (integer)

Timeout, in milliseconds

Default: 5000

Examples: 2000, 5000, 10000

comVersionMinor (integer)

The minor part of the DCOM protocol version. The major protocol version is fixed at 5, but the minor version can be configured to choose between 5.7 (default) or the older 5.4.

Default: 7

Examples: 4, 7

connectionStrategy (object)

If a connection attempt fails, retries will be performed with increasing delay (waiting time) in between. The following parameters control how these delays behave.

Properties of the connectionStrategy object:

initialDelay (integer)

Delay (waiting time) of the first connection retry (in milliseconds). For subsequent retries, the delay will be increased according to the parameter incrementFactor which has a default value of 2.

Default: 1000

Additional restrictions:

  • Minimum: 1000

maxDelay (integer)

Maximum delay (waiting time) to wait until the next retry (in milliseconds). The delay (waiting time) for any subsequent connection retry will not be larger than this value. Must be strictly greater than initialDelay.

Default: 30000

incrementFactor (integer)

The factor used to increment initialDelay up to maxDelay. For example if initialDelay is set to 1000 and maxDelay to 5000 the values for the delay would be 1000, 2000, 4000, 5000.

Default: 2

Additional restrictions:

  • Minimum: 2

Last updated

Logo

© Copyright 2024, Cybus GmbH