Control Edge Builder OPC UA Server For OPC
Control. Edge Builder OPC UA Server For OPC UA Server, there are several key parameters which are required in the configuration in OPC UA Client side to establish the communication between OPC UA Sever and OPC UA client. Server Endpoint URL The URL of Control. Edge PLC OPC UA Server defined as follows: <Control. Edge PLC OPC Server URL>: = “opc. tcp: //” <IP>”: ”<Port> “opc. tcp: //” is the protocol string portion of the URL. This string is constant since the protocol used by the Control. Edge PLC OPC UA Server is TCP. <IP> is the IP address of ETH 1 or ETH 2 on the Control. Edge PLC. <Port> is the port number for the transport protocol. Port number 4840 is the default for OPC UA. Example: opc. tcp: // 192. 168. 1. 50: 4840 Namespace OPC UA uses namespaces to uniquely differentiate between the names and IDs it defines and those defined by companion specifications or the local server. Namespace for Node. Ids and Browse Names of nodes used to access the underlying Control. Edge PLC data. Namespace Uri is used for OPC UA client to get the Name. Space. Index. . 1 Honeywell Internal
Control. Edge Builder OPC UA Client 1. On the Home Page, clicks “Configure Ethernet Ports” to set the IP address of the Ethernet ports through which OPC UA communication is carried out. (Assuming ETH 1 will be used for Modbus communication) 3. Select the native OPC UA library and confirm to have it inserted in the project. 2. Switch to programing workspace, insert the native OPC UA lient Function block library. 2 Honeywell Internal
Control. Edge Builder OPC UA Client Configuration based on Honeywell Provider Function Blocks To import Native OPC UA Library 1. In IEC Programming Workspace, from the project tree window, right click Libraries and select Insert> Firmware Library. The Include library dialog appears. 2. Open OPCUA folder and select opcua. fwl, then click Include. To import Data Types of Hon. Ua. Fb. Helper. Types 1. In IEC Programming Workspace, from the project tree window, select Data Types, click File> Import. The Import / Export dialog appears. 2. Select Extended IEC 61131 -3 Import, and click OK. the Object types dialog appears. 3. Select Datatypesand click OK. The Extended IEC 61131 -3 dialog appears. 4. Browse to UsersPublicDocumentsControl. Edge BuilderLibraries OPCUAFBHelpers”, and select the target data type. Click OK. To import OPC UA POU 1. In IEC Programming Workspace, from the project tree window, select Logical POUs, and click File> Import. The Import / Export dialog appears. 2. Select Extended IEC 61131 -3 Import, and click OK. the Object types dialog appears. 3. Select POU and click OK. The Extended IEC 61131 -3 dialog appears. 4. Browse to UsersPublicDocumentsControl. Edge BuilderLibraries OPCUAFBHelpers”, and select the target POU. Click OK. Compile the project. 3 Honeywell Internal
Control. Edge Builder OPC UA Client Create a POU and open the worksheet of the POU to configure logic for OPC UA Client. Below logic is for reading/writing the data from/to OPC UA server which is a kind a sequence logic. 1. Establish the connection between OPC UA Client and OPC UA Server; Assign the Server Endpoint URL of OPC UA Server to related OPC UA Client function block to establish the connection between Server and Client. 2. Get the namespace index of OPC UA Server once the connection is successfully established; We can get the namespace index directly from OPC UA server or we can get the namespace index through a specific function block based on the Namespace Uri got from OPC UA Server. 3. Get the Node handle; 4. Read the value of or write a value to a variable. The following diagram presents the data access workflow: 4 Honeywell Internal
Control. Edge Builder OPC UA Client Logic For establishing the connection between OPC UA Client and OPC UA Server. Function Blocks Required: Hon. Ua. Handle. Detector: To monitor the connection status, the function will initiate the establishment of connection between Server and Client in case of connection is broken. Hon. Ua. Connect. Security. None: Establish the connection between OPC UA Server and Client; Release an existing connection. Parameters need to be configured: Server. Endpoint. URL: Refer to page 52 for detail Session. Name: The name defined here normally will be shown in diagnostic page in OPC UA server side. 5 Honeywell Internal
Control. Edge Builder OPC UA Client Logic For establishing the connection between OPC UA Client and OPC UA Server. Function Blocks Required: Hon. Ua. Handle. Detector: Hon. Ua. Connect. Security. None: Parameters need to be configured: Server. Endpoint. URL: Session. Name: 6 Honeywell Internal
Control. Edge Builder OPC UA Client The Control. Edge PLC OPC UA server maps all IEC 61131 -3 elementary data types supported on the Control. Edge PLC to an OPC UA built in data type. The table below shows how the elementary data types defined by IEC 61131 -3 map to OPC UA Built in data types. 7 Honeywell Internal
- Slides: 7