OPC-UA Client

From ESS-WIKI
Revision as of 08:52, 26 December 2019 by Hank.peng (talk | contribs)
Jump to: navigation, search

Introduction

OPC Unified Architecture (OPC UA) is a machine to machine communication protocol for industrial automation developed by the OPC Foundation.


Features

EdgeSense OPC-UA Client aims to collect data from OPC-UA Server and control.

Feature:


How to

Software Requirements

  • MQTT broker
  • Node.js
  • .NET Framework 3.5 or above

Installation

Windows:

1. Download OPC-UA Client for Windows from Release Table.

2. Double click the installer to launch the installer to install it to the machine.


Linux:

1. Download OPC-UA Client for Linux from Release Table.

2. Launch the installer to install it to the machine.

Configuration

EdgeSense OPC-UA client can manage multi OPC-UA setting and multi NodeID, below settings are default after OPC-UA client installation.


{
    "OPCUA_Server":[
        {
            "Name": "opcua-server-1",
            "endpointUrl":"opc.tcp://opcua-server-1:66666",
            "userIdentity": {
                "userName": "admin",
                "password": ""
            },            
            "NodeIDList":[{"NodeId":"node-id-1","Name":"node-name-1", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-2","Name":"node-name-2", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-3","Name":"node-name-3", "Type":"v", "Interval":2}
                        ]

        },
        {
            "Name": "opcua-server-2",
            "endpointUrl":"opc.tcp://opcua-server-2:66666",
            "userIdentity": {
                "userName": "admin",
                "password": ""
            },            
            "NodeIDList":[{"NodeId":"node-id-4","Name":"node-name-4", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-5","Name":"node-name-5", "Type":"v", "Interval":2},
                          {"NodeId":"node-id-6","Name":"node-name-6", "Type":"v", "Interval":2}
                        ]

        }
    ]
}


Name

  • Assign name for OPC-UA server.

endpointUrl

  • Assign OPC-UA Server Endpoint URL , format is opc:tcp://hostname:Port/  , hostname also can use ip address.

userIdentity

  • Assign username and password for OPC-UA server security check.

NodeIDList

  • NodeId: Assign node ID you'd like to monitor.
  • Name: Assign node name you'd like to show for the node.
  • Type: Assign node type: "v" is Number, "bv" is Boolean, "sv" is String.


v Number
bv Boolean
sv String


  • Interval: Assign node data subscribe/update interval in seconds.



Demonstration

Connect a Unified Automation C++ Demo Server

1. Download Unified Automation C++ Demo Server from https://www.unified-automation.com/downloads/opc-ua-servers.html and install it to the server machine.

2. Launch UaCppServer from Windows Start Menu.

Uacpp-demo-server-01.png


3. Config OPC-UA Client to connect to the Unified Automation C++ Demo Server, Username/Password, Endpoint URL and Node IDs are shown in below.


Username Password
root secret


Endpoint URL Format opc.tcp://<Mancine Name or IP>:<Port>
Endpoint URL for this Demo
opc.tcp://Protocol-Converter-GW:48010


Node Nmae Node ID
AirConditioner_1.Humidity
ns=3;s=AirConditioner_1.Humidity
AirConditioner_1.Temperature
ns=3;s=AirConditioner_1.Temperature
AirConditioner_2.Humidity
ns=3;s=AirConditioner_2.Humidity
AirConditioner_2.Temperature
ns=3;s=AirConditioner_2.Temperature



4. Edit opcua-client.json to set up client configuration, for example:

{
    "OPCUA_Server":[
        {
            "Name": "OPCUA-UACPP-SERVER",
            "endpointUrl":"opc.tcp://Protocol-Converter-GW:48010",
            "userIdentity": {
                "userName": "root",
                "password": "secret"
            },            
            "NodeIDList":[{"NodeId":"ns=3;s=AirConditioner_1.Humidity","Name":"AirConditioner_1.Humidity", "Type":"v", "Interval":2},
                          {"NodeId":"ns=3;s=AirConditioner_1.Temperature","Name":"AirConditioner_1.Temperature", "Type":"v", "Interval":2},
                          {"NodeId":"ns=3;s=AirConditioner_2.Humidity","Name":"AirConditioner_2.Humidity", "Type":"v", "Interval":2},
                          {"NodeId":"ns=3;s=AirConditioner_2.Temperature","Name":"AirConditioner_2.Temperature", "Type":"v", "Interval":2}
                        ]

        }
    ]
}

5. Restart device-opcua-client service from Windows Task Manager.


Release

This is an overview that displays Modbus Service versions and some stats and numbers for each release.

Index Version Date Platform OS Release Note Installer
1 v2.0.1

coming soon

x86_64 CPU
Windows 10 x64
OPCUA_Client_ReleaseNote_2.0.1.txt device-opcua-client-2.0.1.exe

Above files are available at local server, please paste file's url in File Explorer to copy file. (How to access to EOSSFS file server )