Comments (5)
Hi!
The ads-client libray handles one subscription for each variable, so yes you need one for each. Unless if there is some Node-RED method for making this easier.
In node.js it would be simple to call it for an array or so, but I don't know what is the best solution in Node-RED.
Could you perhaps create a STRUCT that contains all and subcribe with single fast-enough cycle time?
from node-red-contrib-ads-client.
ok, thanks for the clarification.
The reason for asking is mainly because we are looking for a more performant way of communication between a beckhoff plc and the edge device. So unfortunately grouping all in a single struct is not really a solution in that context. (mix of low and high cycling rates needed).
The Node-Red workaround could be something like "hiding" things in a subflow (with an array of variables as input), but that still doesn't make it very flexible to changing variablesets, cycling rates, differents machine configs etc...
Anyhow, first thing to check would be to monitor the performance of such a number of notifications. Making this flexible in a multi-subscription node is only 2nd priority.
Be interesting though to know if there's anyone else in need for this feature.
from node-red-contrib-ads-client.
I see.
If possible, please use the ads-client (https://github.com/jisotalo/ads-client) directly in node.js and skip Node-RED so you can test these things easier.
However of course you could develop a node that supports multiple variables and subscribes them all.
from node-red-contrib-ads-client.
ok, I'll consider both options.
btw, impressively well documented this ads-client! nice work!
from node-red-contrib-ads-client.
Thanks! :)
from node-red-contrib-ads-client.
Related Issues (12)
- Discussion of first versions HOT 11
- Connection loop HOT 19
- Uncaught error HOT 9
- ClientException: Connection to localhost:48898 failed (socket error -4077) (read ECONNRESET) HOT 6
- Connection issues to CX8090 (Twincat2) HOT 1
- Subscribe not working without input HOT 1
- Real number in PLC but INT in node-red HOT 5
- Control subscribe node parameters with msg.subscribe HOT 1
- Problem connecting to Beckhoff PLC HOT 7
- no connection to Beckhoff PLC Simulation HOT 11
- problem with reconnection after redeployment HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-ads-client.