opc-ua

opc ua client to server

≯℡__Kan透↙ 提交于 2020-08-10 22:49:15
问题 I would like to know if I can send data from an OPC UA Client to Server. I have a Windows 10 PC with OPC UA Server set up and some Raspberry Pi as Clients. I already programmed Python code to send data from Server to Client. Now, I want to send data from the clients on Raspberry Pis to the Server on Windows 10 PC. Can this be done? Or will I have to set up the servers on Raspberry Pis, and clients on Windows 10 PC? This the server.py : from opcua import Server from random import randint

Build open62541 DLL with Visual Studio 2017

坚强是说给别人听的谎言 提交于 2020-08-05 18:29:25
问题 Hello community I would like to write UI for OPC UA server using open62541 lib. The input off software should read text file and cast data throe server to already available client. Stuck at stage where need compile dll file for further using it in windows forms project. There is some info mentioned that Davy Triponney compiled it with Visual C++ 2013 https://github.com/open62541/open62541/wiki/Using-open62541-from-C%23 But I have no luck with VS 2017. There is sequence of my progress: Already

XPath take element on double condition

风格不统一 提交于 2020-07-10 03:11:29
问题 I have an InformationModel from OPC-UA, written in xml (https://github.com/OPCFoundation/UA-Nodeset/blob/v1.04/Robotics/Opc.Ua.Robotics.NodeSet2.xml). From this model I want to: Look at the reference inside an UAObject and get the DisplayName only if the reference has 1)The nodeid I am looking for 2)Has a field IsRecursive="false" I tried this code for getting all object with a reference which point to my specified nodeid and it works. Here it is the code for it: var ObjectsName2 = select( "/

XPath take element on double condition

余生颓废 提交于 2020-07-10 03:11:14
问题 I have an InformationModel from OPC-UA, written in xml (https://github.com/OPCFoundation/UA-Nodeset/blob/v1.04/Robotics/Opc.Ua.Robotics.NodeSet2.xml). From this model I want to: Look at the reference inside an UAObject and get the DisplayName only if the reference has 1)The nodeid I am looking for 2)Has a field IsRecursive="false" I tried this code for getting all object with a reference which point to my specified nodeid and it works. Here it is the code for it: var ObjectsName2 = select( "/

Create a very simple OPC client in Unity3d with opc ua .net library

泄露秘密 提交于 2020-06-27 10:08:32
问题 I am getting these errors while trying to implement a simple OPC client in .Net with Unity3D.These errors are in Visual Studio: Severity Code Description Project File Line Suppression State Error CS0012 The type 'X509CertificateValidator' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceModel.Primitives, Version=4.5.0.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Test C:\Users\hidethepain\Documents\opc\Assets\main.cs 27 Severity

Adding an OPC UA Server to .NET application [closed]

蹲街弑〆低调 提交于 2020-02-18 05:35:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have a C# application that communicates with a process instrument over ethernet. I want to add an OPC UA server to my application so that any SCADA system with a built in OPC client can connect and read measurement data taken by the instrument. Does any one know of any 3rd party dll's that I can use? I'm not

How to update nodes in a OPC UA Server

房东的猫 提交于 2020-01-24 21:47:08
问题 I've a new question: How to update nodes in a OPC UA Server - C#? I've created the nodes in CreateAddressSpace of EmptyNodeManager.cs. All work fine, yet when the value changing on the real node, the client not observe the variation. Down there's code: PropertyState variableA = new PropertyState(i); variableA.NodeId = new NodeId("/System_Memory/I/A", NamespaceIndex); variableA.Description = "Sensore che individua la posizione iniziale del trapano"; variableA.TypeDefinitionId = VariableTypeIds

OpcUA Open62541 PubSub : How to publish value change?

会有一股神秘感。 提交于 2020-01-06 05:14:26
问题 This is my cross post at https://github.com/open62541/open62541/issues/3275 Hello, I'm trying to understand how PubSub work. My understanding is that publisher publishes the change to OPC UA middle ware, subscriber who subscribes to publisher will be notified by OPC UA middleware. I'm taking a look to this example : https://github.com/open62541/open62541/blob/v1.0/examples/pubsub/tutorial_pubsub_publish.c We can see that in publisher side we need to : addPubSubConnection(server,

node opc-ua - how do i discover a variable in a server?

前提是你 提交于 2020-01-03 18:39:40
问题 I am learning node opc-ua and have followed the example provided in the GitHub page for the sample_server.js and simple_client.js. In the sample_server I add a variable when constructing the address space of the server such as: //this code is in the server addressSpace.addVariable({ componentOf: device, nodeId: "ns=1;s=variable_1", browseName: "MyVariable1", dataType: "Double", value: { get: function () { return new opcua.Variant({ dataType: opcua.DataType.Double, value: variable1 }); } } });

Milo OPC UA Server with Historical Data Access

ⅰ亾dé卋堺 提交于 2020-01-03 04:19:04
问题 Hy, I’m new to milo (and OPC-UA) and try to implement an OPC-UA server with Historical Data Access. I reused the current milo server example and create a history node. On this node I can query (with the Prosys OPC UA Client) the empty history. I know that I have to implement the persistency of the history nodes by myself. So far so good – but I could not found any information about to handle the history read request and how to return the response. More precisely how to add the HistoryData to