Questions tagged [open62541]

Used to tag questions related to the open62541 OPC UA stack.

79 questions
2
votes
1 answer

open62541 compatibility with c95

I want to write an application for an embedded platform that currently runs c95. Is open62541 backward compatible with c95 ? I am currently looking to work on an opc ua enabled hardware device and wanted to get some info before choosing to use…
salimsaid
  • 3,186
  • 4
  • 15
  • 20
1
vote
1 answer

How to correctly terminate a thread running an opcua server with open62541 so the server shuts down and can be cleaned up properly

I have an application in C that takes care of polling data form a OPCUA server and broadcasting them to Kafka. in addition to that some datapoints need to be made available to another OPCUA client. For this purpose the application also hosts a…
Sebastian
  • 63
  • 4
1
vote
1 answer

Adding method without input arguments in Open62541

I've been working for a long time with Python and the FreeOPCUA Stack, but I wanted to go into more low-level stuff, so I wanted to try the Open62541 Stack. My C skills are a bit rusted, but I understand the concepts and syntax. I am trying to…
1
vote
0 answers

Open62541 nodeset compiler [RuntimeError: Infinite loop detected or type not found while processing type]

I need help with the following. I am working on an application for OPC-UA that makes use of Safety Nodeset. But I run into an error while compiling the nodesets using the open62541 nodeset compiler. Can anyone help me with this. The details are as…
tue2017
  • 49
  • 7
1
vote
1 answer

Generating custom OPC-UA information model with open62541 and CMake using conan

How to generate custom information model using open62541 package build with conan and CMakeLists.txt? Currently I get "warning MSB8065: Custom build for item x succeeded, but specified output x has not been created." and no .c and .h files are…
kkivi
  • 11
  • 2
1
vote
0 answers

How to read structure field values from writecallback in open62541

Currently, I'm working on read and write callback in open62541, I created a structure variable XV type, It's fields are X and V in XML file X is a type of double and V is a type of float if I write the value using the client tool it's entering into…
1
vote
0 answers

"UA_decodeBinary" is not able to decode the ExtensionObject

I am referring to Custom Data Types. My Extension object is not being decoded correctly. I have validated through Wireshark and also in Visual Studio debug mode (i.e. breakpoint on my extension object). The Extension Object receives the byte String…
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
1
vote
1 answer

Using open62541 in winforms application (C#) to read and write data from OPC UA Server

I wrote a application with winform. my client application must be connect to an OPC UA server then write/read variables of OPC UA protocol. I choose open62541 for this situation, because open62541 is free and easy to use (if anyone have better…
ash vaaz
  • 47
  • 4
1
vote
0 answers

Reading an array structure with open62541 OPCUA

I am trying to read my Omron NX102 PLC OPCUA Server. I have a Data Structure in the PLC with fields as STRING and an DOUBLE array of length 4. I can read all the information correctly from UA Expert and my code as well. typedef struct { …
Gaurav K
  • 2,864
  • 9
  • 39
  • 68
1
vote
1 answer

How to add custom information model XML.file to server and run It?

I'm currently working on open62541. I created one object XML file. now I want to add the file to server and try to run server. when server runs the XML file contain objects should be show on opcua-client application.
1
vote
1 answer

Can open62541 pubsub objects, not only variables

The official open62541 example pubsub all use variables, and there is a macro UA_PUBSUB_DATASETFIELD_VARIABLE. If I have an object, and there are only variables in the object, can I pubsub the entire object? If not, is it a better way to change the…
1
vote
0 answers

how to delete all object Nodes in a specific namespace using open62541

I am writing an OPC server that needs to be configured dynamically at runtime. I want to delete all nodes in a namespace and then add some new ones upon request. Is there a way to delete all nodes in a namespace without having browse names of those…
Socrates
  • 335
  • 2
  • 3
  • 11
1
vote
0 answers

Why does CMAKE need two build runs to compile open625251 encryption correctly?

I am somewhat new to CMAKE and need your help. I am building a project that uses the OPCUA library open62541 and after including encryption, the build process is only successful after two runs, which is puzzling to me because the necessary build…
Jan
  • 11
  • 2
1
vote
1 answer

The OPC UA open62541 historical data reading client is not compiled

On the library's website, the documentation provides options for functions for accessing historical data reading. There is also an example of using historical data reading in the repository. I've simplified this example from the repository a bit,…
1
vote
0 answers

Use DI Nodeset instead of Standard Nodeset http://opcfoundation.org/UA/

I working with Open62541-Lib. When i Creat Objects with UA_Server_addObjectNode() or UA_Server_addVariableNode() they always get Namespace 0 and belongs to http://opcfoundation.org/UA/. Can i define another Namespace in the Code, so every created…
hfiazi
  • 11
  • 1