OPC UA Client

This function block enables communication with OPC UA servers, allowing for data exchange and interaction with different industrial devices.

πŸ“₯ Inputs

This function block does not have any inputs.

πŸ“€ Outputs

Client This output represents the established OPC UA client connection, allowing you to interact with the connected server.

πŸ•ΉοΈ Controls

Username An optional field to input your username for the OPC UA server.

Password An optional field to input your password for the OPC UA server.

Address Enter the server's IP address and port number in the format: xxx.xxx.xxx.xxx:Port. For example, 192.168.1.1:4840.

View Nodes-IDs A button that opens a configuration window showing the nodes available in the connected OPC UA server.

Connect A button that initiates a connection to the specified OPC UA server.

Disconnect A button that disconnects the client from the currently connected OPC UA server.

🎨 Features

Server Interaction Establishes a connection with OPC UA servers to facilitate communication with devices in industrial settings.

Dynamic Connection Management Allows connecting and disconnecting from OPC UA servers based on user input.

Configuration Accessibility Provides a button to view and manage nodes available on the connected server.

πŸ“ Usage Instructions

  1. Enter Server Address: Fill out the Address field with the OPC UA server's IP address and port.

  2. Set Credentials (if needed): Optionally enter your Username and Password for authentication.

  3. Connect to Server: Click the Connect button to establish a connection to the server.

  4. View Nodes: After connecting, click the View Nodes-IDs button to inspect available nodes on the server.

  5. Disconnect: If needed, click the Disconnect button to close the connection to the server.

πŸ“Š Evaluation

This function block provides a client instance connected to an OPC UA server. You can utilize this client output to further interact with the server based on your requirements.

πŸ› οΈ Troubleshooting

Connection Issues

If you experience issues connecting to the server, double-check the server address format. Ensure that the IP address and port are correct and that the server is reachable on your network.

Authentication Errors

If you receive authentication errors, verify your username and password, ensuring they have been entered correctly. Some servers may allow connections without credentials, while others require them.

Node Visibility Issues

If you are unable to view nodes in the server after a successful connection, make sure the server is configured to expose nodes and that the necessary permissions are granted for your user.

Last updated