OPC UA Write

This function block allows you to send data to an OPC UA server. It facilitates the writing of values to a specified node address on the server, making it useful for communicating control commands or updating parameters.

📥 Inputs

Client The OPC UA client instance that has already been connected to a server.

Node Address The specific address of the node on the OPC UA server where the value needs to be written.

Value The actual value you want to send to the specified node.

📤 Outputs

This function block does not produce any outputs.

🕹️ Controls

Data Type A dropdown menu from which users can select the type of data being written, such as Float, Boolean, UInt16, etc. The type must match the expected data format at the specified node address.

🎨 Features

Data Type Selection Users can specify the data type of the value being sent, ensuring compatibility with the server's expectations.

Simple Communication The block provides a straightforward way to write values to an OPC UA server, facilitating easy data integration and control.

📝 Usage Instructions

  1. Connect OPC UA Client: Connect your pre-configured OPC UA client to the Client input.

  2. Specify Node Address: Enter the address of the node you wish to write to in the Node Address input.

  3. Input Value: Specify the value you want to send through the Value input.

  4. Select Data Type: Use the dropdown to specify the data type of the value you are sending.

  5. Execute: Evaluate the block to send the value to the specified OPC UA node.

📊 Evaluation

Upon evaluation, this block will execute the write operation to the specified node address using the input value and data type defined by the user.

🛠️ Troubleshooting

Connection Errors

Ensure that the OPC UA client is correctly configured and connected to an active OPC UA server. Verify network connections and the validity of the server address.

Invalid Node Address

If the specified node address is invalid, check that you are using the correct syntax and that the node exists on the server. Consult the server's documentation to verify node addresses.

Data Type Mismatch

Ensure that the data type selected corresponds with the expected data type at the node address on the OPC UA server. A mismatch could prevent the successful writing of the value.

Last updated