Questions tagged [node-opcua]

Node OPC/UA is an implementation of an OPC UA stack fully written in JavaScript and Node.js

Node-OPCUA, is an implementation of an stack fully written in and

High Quality

According to their website, has been developed using TDD and benefits from more than 2500 unit tests and 90% code coverage. uses Travis as a continuous integration service.

Link to continuous integration (CI) page here.

Also available on TypeScript

can be use in as well as in .

Platforms

runs on all the platforms that supports (ie: , and ). It also supports resource constrained, low cost, low power single-board computers such as .

Documentation

will benefit from a comprehensive SDK API documentation, numerous end-to-end functional tests, and a set of practical examples to help you learn how to use it.

The documentation directory can be viewed here, or you can view the documentation for version 2.0.0.

Useful Links

121 questions
55
votes
3 answers

Create variable in Kepserver with Node-OPCUA

I have a Siemens 1200 PLC. Using node-opcua client and Kepserver I am able to read the variables and to change the values. Now I would like to create a new variable in the PLC from Node-OPCUA in KepServer. I've tried to use node-opcua server…
mram888
  • 4,899
  • 5
  • 33
  • 59
6
votes
1 answer

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

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…
bulho
  • 81
  • 1
  • 4
5
votes
0 answers

Node OPC-UA: Cannot find dataType Definitions

Node v16.14.2 Node-OPC-UA v2.75.0 Hi, I'm currently running into a problem when reading large ExtensionObjects from a S7-1500 with Custom DataTypes. At the first read process of those ExtensionObjects I'm getting a lot of error messages, telling me…
David
  • 1,084
  • 12
  • 36
5
votes
1 answer

How to connect to an OPC-UA server which requires certificate based user authentication using node-opcua based client

I am using the node-opcua library to build an OPC UA client. I have use the basic example to connect to an OPC-UA server (prosys OPC-UA simulation server), but now I would like to make my client support various authentication methods. I am able to…
bruceceng
  • 1,844
  • 18
  • 23
5
votes
2 answers

What is a node in OPC-UA?

I have been reading around the internet for a good explanation of what a node is in OPC-UA. It seems there are libraries out there for it, but none actually explain nodes. What is the purpose of nodes in OPC-UA? Note: OPC and OPC-UA noob here
Intrastellar Explorer
  • 3,005
  • 9
  • 52
  • 119
5
votes
2 answers

node-opcua how to write to variables

A very basic question I'm sure. I have made the client and the server from the examples on http://node-opcua.github.io/. The example demonstrates reading the variables but not how to write. Thanks for the help
uprightcarrion
  • 121
  • 2
  • 9
5
votes
2 answers

node.js opc ua many monitored items

I use node-opcua module and I would like to monitor many opc ua nodes with subscription I see result like: user in html UI choose what nodes to monitor, then click Monitor button that sent these nodeIds as parameters and then for every nodeid will…
leonas5555
  • 83
  • 1
  • 9
4
votes
2 answers

How can I change value from a node when having a server instance (node-opcua)

I'm using node-opcua library. I have instance of OPCUAServer. How can I get node value and edit it? I assume OPC client should be able to do it, but I want to interact with OPC server since I'm responding to an internal event. Should I maybe use…
Astrowie
  • 195
  • 2
  • 17
4
votes
3 answers

OPC UA unique ID

I'm trying to build a OPC UA client application. I'd like to be able to identify a UA node uniquely in the OPC tree. I know that in OPC DA, a standard node id is a string with a '.' as a delimeter that I can use in order to identify a node. In OPC…
Idov
  • 5,006
  • 17
  • 69
  • 106
3
votes
0 answers

Way to transfer object with type via IPC

I'm developing an Electron app with React and Typescript. The logic which the app requires is in the main.ts and passes the object to the renderer via IPC. How I learned does IPC serialize the objects and therefore lose it's functions and…
Robin Aegerter
  • 457
  • 3
  • 16
3
votes
1 answer

Getting "Invalid channel" error with Node-OPCUA when connecting with user/pass/encryption

I am trying to connect to a server with node-opcua, but having a bit of trouble. Connecting to the same server with the Prosys OPC UA Browser software works just fine. const client = OPCUAClient.create({ endpointMustExist: false, …
Solsiden
  • 673
  • 1
  • 7
  • 22
3
votes
1 answer

How to add new Variable dynamically after OPC-UA has started from client side

I have an OPC-UA server up and running with some pre-configured tags, now I want to add a new Variable from my NodeJS OPC-UA client when my certain tag changes. For e.g. import { OPCUAClient, MessageSecurityMode, SecurityPolicy, …
Mayank Pathela
  • 453
  • 1
  • 6
  • 15
3
votes
1 answer

How to import node-opcua to project?

I just want to import 'node-opcua' to my project but it gives me error as follow: WARNING in ./node_modules/node-opcua-pki/node_modules/yargs/index.js 11:37-44 Critical dependency: require function is used in a way in which dependencies cannot be…
3
votes
0 answers

"Uncaught TypeError: this._socket.write is not a function" on client.connect

I am trying to create a OPCUA Client in nw.js with the node-opcua package. I got an error in the client.connect function. It says there is no socket.write function. Since I am using the newest nw.js and therefore node.js 11.6, it should be there,…
Nils A
  • 31
  • 3
3
votes
2 answers

Should/Can you run Node-OPCUA Server running on Azure?

I deployed my OPC Server (made with Node.js node-opcua) on Azure as a WebApp and its running. I also got the opc.tcp address (eg. opc.tcp://somenumbers:4840/UA/INDUSTRIE4.0) . When I try to connect to it with UaExpert I get this error: Discovery…
Suisse
  • 3,467
  • 5
  • 36
  • 59
1
2 3 4 5 6 7 8