Difference between revisions of "OPC-UA Client"
Line 11: | Line 11: | ||
Feature: | Feature: | ||
− | * | + | *Connection with multiple OPC-UA server and multiple Node ID. |
*Support anonymous authentication, username/password authentication. | *Support anonymous authentication, username/password authentication. | ||
+ | *Support individual node subucribe interval. | ||
+ | *Configurable node alias. | ||
*Currently support up-link OPC-UA data to WISE-PaaS , not support down-link from WISE-PaaS. | *Currently support up-link OPC-UA data to WISE-PaaS , not support down-link from WISE-PaaS. | ||
*Detailed features, please see [https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669 https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669] | *Detailed features, please see [https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669 https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669] | ||
− | |||
− | |||
= How to = | = How to = |
Revision as of 03:26, 3 January 2020
Contents
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:
- Connection with multiple OPC-UA server and multiple Node ID.
- Support anonymous authentication, username/password authentication.
- Support individual node subucribe interval.
- Configurable node alias.
- Currently support up-link OPC-UA data to WISE-PaaS , not support down-link from WISE-PaaS.
- Detailed features, please see https://docs.google.com/spreadsheets/d/1hxUJgHvcPYq8f44gmVVmwUCddHhOPBflSRkSKR0H9Q4/edit?ts=5ca2bfc9#gid=348272669
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.
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 |
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> |
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 )