ReferenceDriverOPC UAWrite Task

OPC UA write task

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

This task follows the standard task lifecycle.

Task configuration reference

Table

Parameter Type Required Default Description
device string Yes - Key of the OPC UA server device
channels array Yes - 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.

Table

Parameter Type Required Default Description
cmd_channel number Yes - Synnax command channel key
node_id string Yes - OPC UA NodeId (e.g., ns=2;s=Setpoint)
disabled boolean No false Excludes 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.

Table

Parameter Type Required Default Description
cmd_channel number Yes - Synnax command channel key
node_id string Yes - OPC UA NodeId pointing to an array variable
disabled boolean No false Excludes 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