hopperpop / node-red-contrib-nvl Goto Github PK
View Code? Open in Web Editor NEWCodesys network variable list parser for node-red.
Home Page: https://flows.nodered.org/node/node-red-contrib-nvl
License: Other
Codesys network variable list parser for node-red.
Home Page: https://flows.nodered.org/node/node-red-contrib-nvl
License: Other
Hello,
if I transfer a real value, the conversion works not exactly. For example -9,2 in the PLC becomes -9.199999809265137 in NodeRed. I have also tested this with positive values. 3.1 becomes 3.0999999046325684. Is this normal?
Best regards
Michael
When using NVL-send with variables declared in the structure we only see NaN (Not a Number) in the debug Window of
node-red.
Real show up as NaN in debug window
Int show up as 0 in debug window
Strings remain empty
Is there any example available for NVL-send because we can only find example of NVL-receive?
node-red-contrib-nvl/src/nvl-helper.js
Line 21 in 4a09cb3
Is it nessecary to limit the NVLs to 256 bytes? Because of technical reasons? If true, are they easy to fix?
I need to communicate with a struct, thats alone bigger than this. It would be cool, if it worked without changing the struct.
Using NVL-send after 65535 messages the block fails with the following message {"message":"RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 65535. Received 65536","source":{"id":"5824328a90dffe3e","type":"nvl-send","name":"NVL_Send_13","count":1},"stack":"RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 65535. Received 65536\n at checkInt (internal/buffer.js:69:11)\n at writeU_Int16LE (internal/buffer.js:719:3)\n at Buffer.writeUInt16LE (internal/buffer.js:727:10)\n at nvlSender._inputCallback ....
I think the problem is that the send counter is never reset
I have an implementation of Codesys and node red on a CM4 pi module. Everything works well for some time but after 6-10 hours of 500ms updates the NVL-receive node stops responding to what appears to be valid UDP packets. No errors are thrown. I've tried changing the list ID and the node responds with invalid ID so it is working on some level. Restarting the flow, restarting the service and restarting the Codesys PLC have no impact. I have to reboot the system for it the flow to start to work properly. The attached file shows two UPD debug payloads. The first when the node isn't working. The second after rebooting the system when the node is working.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.