WOLFRAM SYSTEM MODELER

Client

Client for connecting to an OPC UA server

Diagram

Wolfram Language

In[1]:=
SystemModel["OPCUA.Client"]
Out[1]:=

Information

The OPCUA.Client provides a simplified client (compared to OPCUA.Components.Core.Client) that comes with a built-in WriteNodeList and ReadNodeList. To enable reading or writing, set the corresponding enableRead or enableWrite to true. The Clock of the read or write request can be externally provided with the corresponding readClock/writeClock input or inferred from the connected components by setting the corresponding inferReadClock/inferWriteClock to true.

Client configuration

  • endpointUrl: URL to the OPC UA server endpoint
  • applicationUri: Globally unique identifier for this application instance, if secured communication is enabled it must match the URI provided in the application instance certificate subjectAltName
  • SecurityConfiguration: Replaceable block that defines the security configuration; see the Secured block for how to configure secure communication with the server
  • AuthenticationConfiguration: Replaceable block that defines the authentication configuration

Parameters (8)

endpointUrl

Value: "opc.tcp://localhost:16664"

Type: String

Description: URL to the OPC UA server endpoint

applicationUri

Value: "urn:unconfigured:application"

Type: String

Description: The globally unique identifier for this application instance

logLevel

Value: Types.LogLevel.Warning

Type: LogLevel

Description: Log level for the OPCUA communication

enableRead

Value: true

Type: Boolean

Description: Enable the readList connector

enableWrite

Value: true

Type: Boolean

Description: Enable the writeList connector

errorHandling

Value:

Type: ErrorHandling

Description: Error handling for request errors

inferReadClock

Value: false

Type: Boolean

Description: Infer read clock instead of using an input Clock

inferWriteClock

Value: false

Type: Boolean

Description: Infer write clock instead of using an input Clock

Connectors (6)

readList

Type: List_b

Description: Connector providing a NodeList for registering nodes

readClock

Type: ClockInput

Description: 'input Clock' as connector

writeList

Type: List_b

Description: Connector providing a NodeList for registering nodes

writeClock

Type: ClockInput

Description: 'input Clock' as connector

writeSeverity

Type: SeverityOutput

Description: 'output UAStatusSeverity' as connector

readSeverity

Type: SeverityOutput

Description: 'output UAStatusSeverity' as connector

Components (3)

readNodeList

Type: ReadNodeList

Description: Read the values of a list of nodes in a single OPC UA request

writeNodeList

Type: WriteNodeList

Description: Write the values of a list of nodes in a single OPC UA request

client

Type: Client

Description: Client for connecting to an OPC UA server

Used in Examples (9)

ReadAndWrite

OPCUA.Examples

Demonstrates how to write to and read from nodes on an OPC UA server

AuthenticationAndEncryption

OPCUA.Examples

Demonstrates how to enable authentication and encryption

ClockedAndUnclocked

OPCUA.Examples

Demonstrates the difference between the Clocked and Unclocked components

ClockInference

OPCUA.Examples

Demonstrates how the write clock can be inferred

Fallback

OPCUA.Examples

Demonstrates how to switch to a fallback value after a period of Uncertain or Bad status severity

MultipleServers

OPCUA.Examples

Demonstrates a possible use of multiple OPC UA servers

TankSystem

OPCUA.Examples

A tank system model where height data is written to and read from an OPC UA node on an OPC UA server

TriggeredSampling

OPCUA.Examples

Demonstrates how to sample data from an OPC UA node irregularly

RPiInteraction

OPCUA.Examples

Demonstrates the interaction with an OPC UA server on a Raspberry Pi