ReferenceDriverOPC UAWrite Task

OPC UA Write Task

Learn how to send commands to OPC UA servers with Synnax.

For the task lifecycle, see Task Basics.

Task Configuration Reference

ParameterTypeRequiredDefaultDescription
devicestringYes-Key of the OPC UA server device
channelsarrayYes-List of output channel configurations

Channel Configuration Reference

OPC UA Write Service Specification

Scalar Values

Writes scalar values to an OPC UA node. Suitable for control setpoints, configuration parameters, and single-value commands.

ParameterTypeRequiredDefaultDescription
cmd_channelnumberYes-Synnax command channel key
node_idstringYes-OPC UA NodeId (e.g., ns=2;s=Setpoint)
disabledbooleanNofalseExcludes the node from the task

NodeId Format Examples:

  • Numeric: ns=2;i=1000
  • String: ns=2;s=ControlSetpoint
  • GUID: ns=2;g=12345678-1234-1234-1234-123456789012
  • Opaque: ns=2;b=aGVsbG8=

Array Values

Writes array data to an OPC UA node in bulk. Used for batch control commands or multi-value setpoints.

ParameterTypeRequiredDefaultDescription
cmd_channelnumberYes-Synnax command channel key
node_idstringYes-OPC UA NodeId pointing to an array variable
disabledbooleanNofalseExcludes the node from the task

The channel data type must match the array element type on the server.

Important Rules

  • Node permissions -> The OPC UA server must allow write access to the specified nodes.
  • Data type matching -> Ensure Synnax channel data types match the OPC UA node data types.

How-To