Difference between revisions of "OPC-UA Client"

From ESS-WIKI
Jump to: navigation, search
Line 240: Line 240:
 
| style="width: 259px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Windows/2.0.1 device-opcua-client-2.0.1.exe]</span>
 
| style="width: 259px; text-align: center;" | <span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Windows/2.0.1 device-opcua-client-2.0.1.exe]</span>
 
|-
 
|-
| style="width: 47px; text-align: center;" | <span style="font-size:larger;">1</span>
+
| style="width: 47px; text-align: center;" | <span style="font-size: 15.6px;">2</span>
 
| style="width: 63px; text-align: center;" | <span style="font-size:larger;">v2.0.1</span>
 
| style="width: 63px; text-align: center;" | <span style="font-size:larger;">v2.0.1</span>
 
| style="width: 85px; text-align: center;" |  
 
| style="width: 85px; text-align: center;" |  
Line 252: Line 252:
 
| style="width: 109px; text-align: center;" | <span style="font-size: 15.6px;">Debian</span>
 
| style="width: 109px; text-align: center;" | <span style="font-size: 15.6px;">Debian</span>
 
| style="width: 353px; text-align: center;" |  
 
| style="width: 353px; text-align: center;" |  
<span style="font-size:medium;">1. Support Multiple OPCUA server.</span>
+
1. Support Multiple OPCUA server.</span>
 
+
2. Support Anonymous, Username/Password&lt;/span&gt;security check.</span>
<span style="font-size:medium;">2. Support Anonymous, Username/Password&lt;/span&gt;security check.</span>
+
3. Support individual node access interval configuration.</span>
 
+
4. Configurable node alias.&lt;/span&gt;</span>
<span style="font-size:medium;">3. Support individual node access interval configuration.</span>
 
 
 
<span style="font-size:medium;">4. Configurable node alias.&lt;/span&gt;</span>
 
 
 
 
<span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Debian OPCUA_Client_ReleaseNote_2.0.1.txt]</span>
 
<span style="font-size:larger;">[file://eossfs/ESS-Release/EdgeSense/Software/OPCUA_Client/Debian OPCUA_Client_ReleaseNote_2.0.1.txt]</span>
  

Revision as of 11:02, 16 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 OPC-UA Service versions and some stats and numbers for each release.

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

2020/1/03

x86_64 CPU
Windows

1. Support Multiple OPCUA server.

2. Support Anonymous, Username/Password</span>security check.

3. Support individual node access interval configuration.

4. Configurable node alias.</span>

OPCUA_Client_ReleaseNote_2.0.1.txt

device-opcua-client-2.0.1.exe
2 v2.0.1

Coming soon

ARM

CPU

Debian

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