Difference between revisions of "OPC-UA Client"

From ESS-WIKI
Jump to: navigation, search
Line 227: Line 227:
 
| style="width: 71px; text-align: center;" | <span style="font-size:larger;">x86_64 CPU</span><br/>
 
| style="width: 71px; text-align: center;" | <span style="font-size:larger;">x86_64 CPU</span><br/>
 
| style="width: 142px; text-align: center;" | <span style="font-size:larger;">Windows 10 x64</span><br/>
 
| style="width: 142px; text-align: center;" | <span style="font-size:larger;">Windows 10 x64</span><br/>
| style="width: 295px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/EdgeSense/Project/OPCUA_Client OPCUA_Client_ReleaseNote_2.0.1.txt]</span>
+
| style="width: 295px; text-align: center;" | <span style="font-size:larger;"></span>
 +
#<span style="font-size:medium;">Support Multiple OPCUA server.</span>
 +
#<span style="font-size:medium;">Support Anonymous, Username/Password</span><span style="font-size:medium;"></span><span style="font-size:medium;"></span><span style="font-size:medium;">security check.</span>
 +
#<span style="font-size:medium;">Support individual node access interval configuration.</span>
 +
#<span style="font-size:medium;">Configurable node alias.</span>
 +
 
 +
<span style="font-size:larger;">[file://eossfs/EdgeSense/Project/OPCUA_Client OPCUA_Client_ReleaseNote_2.0.1.txt]</span>
 +
 
 
| style="width: 316px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/EdgeSense/Project/OPCUA_Client device-opcua-client-2.0.1.exe]</span>
 
| style="width: 316px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/EdgeSense/Project/OPCUA_Client device-opcua-client-2.0.1.exe]</span>
 
|}
 
|}

Revision as of 03:51, 3 January 2020

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
  1. Support Multiple OPCUA server.
  2. Support Anonymous, Username/Passwordsecurity check.
  3. Support individual node access interval configuration.
  4. Configurable node alias.

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 )