opc-ua

Java OPC-UA Client Eclipse Milo endpoint URL changes to localhost

非 Y 不嫁゛ 提交于 2019-12-05 08:13:24
I am using Java OPC-UA client Eclipse Milo . Whenever I create a session using endpoint URL of server, method UaTcpStackClient.getEndpoints() changes URL to localhost . String endpointUrl = "opc.tcp://10.8.0.104:48809"; EndpointDescription[] endpoints = UaTcpStackClient.getEndpoints(endpointUrl).get(); EndpointDescription endpoint = Arrays.stream(endpoints) .filter(e -> e.getSecurityPolicyUri().equals(securityPolicy.getSecurityPolicyUri())) .findFirst().orElseThrow(() -> new Exception("no desired endpoints returned")); However value of endpoint.getEndpointUrl() returns opc.tcp://127.0.0.1:4880

Alternative to OPC-UA

核能气质少年 提交于 2019-12-03 12:18:45
问题 Is there any decent alternative to OPC-UA as a solution for accessing process data of a system composed of various PLCs? Something that is platform independent and can "speak" with products of different brands ? I've heard of MQTT but it seems to be much more like a transport protocol, and only that. It does not have all the higher level stuff like the information modeling, etc. Thanks for your help! 回答1: OPC is the only standard way for communicating with PLCs. OPC DA is the old alternative.

Alternative to OPC-UA

前提是你 提交于 2019-12-03 05:12:37
Is there any decent alternative to OPC-UA as a solution for accessing process data of a system composed of various PLCs? Something that is platform independent and can "speak" with products of different brands ? I've heard of MQTT but it seems to be much more like a transport protocol, and only that. It does not have all the higher level stuff like the information modeling, etc. Thanks for your help! OPC is the only standard way for communicating with PLCs. OPC DA is the old alternative. OPC UA is the new one and recommended, nowadays. Before OPC there was just proprietary protocols and shared

OPC UA : minimal code that browses the root node of a server

十年热恋 提交于 2019-11-28 17:40:57
I am using the OPC UA Foundation SDK to develop a small client. What would be the minimal C# code to: Connect to a server Browse the root node Print the immediate children's BrowseNames Quit? I am given the server endpoint (no discovery), security None. The code should make no use of config files, nor require a STA. Any help on this would be more than appreciated. Edit 4/2018: The OPC UA .Net Standard Library is going asynchronous. See the updated sample. Edit 9/2016: Everyone should see the new OPC UA .Net Standard Library . You can develop apps that run on all common platforms available

OPC UA : minimal code that browses the root node of a server

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 20:07:48
问题 I am using the OPC UA Foundation SDK to develop a small client. What would be the minimal C# code to: Connect to a server Browse the root node Print the immediate children's BrowseNames Quit? I am given the server endpoint (no discovery), security None. The code should make no use of config files, nor require a STA. Any help on this would be more than appreciated. 回答1: Edit 4/2018: The OPC UA .Net Standard Library is going asynchronous. See the updated sample. Edit 9/2016: Everyone should see