OPC UA

Last modified by Devin Chen on 2025/12/05 09:18

OPC UA Client

This document describes the communication between Wecon HMI PI8150ig and LX6C-0808MT-DB Ethernet OPC UA, the PLC as Server and the HMI as Client.

OPC UA Server Setting

1)Add [Symbol Configuration]

1718694163624-376.png

2)The option [Support OPC UA features] is enabled by default, do not change it, and then click [Add];

1718694187203-702.png

3)Click [Build] to compile the project; 

1718694206493-877.png

4)Tick the boxes for POU node to make all variables are accessible from OPC clients;

1718694223959-314.png

HMI Settings

ItemsSettingsNote
ProtocolOPC_UA_Client 
ConnectionEthernet 
Port No.4840 
PLC station No.1 

Note: Only 8000ig Series support OPC UA Client.

1)[New]→[setting]→[communication device]:[communication]Ethernet, [Protocol]Ethernet1, [Device type]OPCUA,[Protocol]OPC_UA_Client→[OK]

1718692090272-964.png

2)Set the  [Device IP] as Server IP:[Server IP]192.168.8.8,[Porta]4840.If you set the account of server,you need enter the [Username] and [Password] in the appropriate places.

1718692350491-886.png

3)Enter [Labels manage],click[Get Tags From Device]

1718692618961-813.png

Choose the tags we need:[Root]-[Objects]-[DeviceSet]-[LX6C-0808MT-DD]-[Resources]-[Application]-[Programs].Then click[Add],and[Save].

123.png

 4)Then you can use these tags in the HMI.

1718692728268-946.png

OPC UA Server

HMI Settings

1) [FUNCTION CONFIGURATION] →[OPC UA server] →Enable OPC UA Server

Picture1.png

2) After enabling the OPC UA server, a configuration interface for the OPC UA server-related properties will pop up.

Picture2.png

Description: Enter a description or remarks about the OPC

OPC TCP: Set the server's URL address

Port: Set the port number for client interaction, default is 4840

Server Name: Enter the name of the server, which can be left blank

Security Strategy: This refers to the security policies provided by OPC UA. The OPC UA server offers four security policies and three authentication methods, allowing different encryption approaches through various combinations

Information

The settings and delete options only apply to newly added tags and groups, not to the default groups.

3) Authentication:

Picture3.png

Anonymous: Select the permissions for client interaction when using anonymous login, including three types: browse, read, and write

Username_Password: The username and password here are equivalent to those set on the [Project Configuration\User Permission] page. When a client logs into the server using a username and password, if the user’s group level matches the server configuration, they will have the corresponding permissions

4) Tag configuration

1764897460407-402.png

 Tag: Displays the defined tags

Add Group: Add a new group to manage tags

Add Tag: Add the address tags you want to monitor; the name cannot be empty

Setting: When a tag is selected, clicking this will navigate to the tag configuration interface. When a group is selected, clicking this will configure the group name

Delete: Can delete added tags or groups

Name: Tag Name

Type: Indicates the Readable/Writable attributes of the tag, with "Readable" selected by default

Address: Configures the address the tag is intended to monitor

Data Type: Indicates the data type of the tag

Array Length: When set to a value greater than 1, it indicates that the tag is an array, with a valid range of 1~255

1764897518846-171.png