Skip to main content

OPC UA

Authentication & advanced configs

Authentication & advanced configs can be configured under the "Custom config" of your connection. (Settings icon)

Example

{
"ArraySearch": true,
"DataTypeCheck": true,
"PublishInterval": 1000,
"MaxNotificationsPerPublish": 65000,
"MonitoredItemQueueSize": 65000,
"AuthMode": "Basic",
"SecurityPolicy": "Sign",
"SecurityAlgorithm": "Auto",
"Username": "john.doe",
"Password": "secretpassword",
"CertPath": "/path/to/certificate.pem"
}

Properties

  • ArraySearch (bool): Indicates whether array search is enabled. (Default true)
  • DataTypeCheck (bool): Indicates whether data type checking is enabled. (Default true)
  • PublishInterval (int): Sets the publish interval. (Default 1000 = 1s)
  • MaxNotificationsPerPublish (int): Sets the max notifications per publish. (Default 65000)
  • MonitoredItemQueueSize (int): Sets or sets the max items in the monitoredItemQueue (Default 65000)
  • AuthMode (AuthMethod): Authentication method for OPC UA communication.
    • None (Default)
    • Basic
    • Certificate
  • SecurityPolicy (OpcSecurityMode): Security policy for OPC UA communication.
    • None (Default)
    • Sign
    • SignAndEncrypt.
  • SecurityAlgorithm (OpcSecurityAlgorithm): Security policy for OPC UA communication.
    • Auto (Default)
    • None
    • Basic128Rsa15
    • Basic256
    • Basic256Sha256
    • Https
  • Username (string): Username for authentication (if applicable).
  • Password (string): Password for authentication (if applicable).
  • CertPath (string): Path to the certificate file for certificate-based authentication (if applicable).

Collect settings

OPC UA is notification based. We support reading Structs, arrays and primitive type variables. The nodeId is used for the mapping. This id can be found on the opc ua server or with an opc ua client.

TypeExample mappingOutput database fieldnames
Single varns=6;s=::Test_OPC:Frame_OPC_Mach_1._02_Machine_RunningVariable name
Full arrayns=4;s=OpcUa.arArrayArrayVarname[0], Varname[x]
Full structns=4;s=OpcUa.stStructStructVarname_ElementName1, Varname_ElementNamex
Single element in structns=4;s=OpcUa.stStructStruct.elementNameVariable name