Giter VIP home page Giter VIP logo

node-red-contrib-nvl's People

Contributors

hopperpop avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

luiskoo

node-red-contrib-nvl's Issues

Configure NVL-Send

When using NVL-send with variables declared in the structure we only see NaN (Not a Number) in the debug Window of
node-red.

  1. How we supply the correct "msg.payload" for NVL-send so the output will be correct?
  2. We did see some strange variable in the source code of NVL-send named "coutner" instead of "counter".

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?

Did I miss ?

Hi !

I've just tested your package, can't figure why it does not work :( !
Can you help me ?

On Codesys, created a NVL_Sender:
image

On Node-Red, created a Receiver:
image

But there is nothing happening

I am missing something ?
Thanks

Conversion of REAL values work not exactly

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

NVL stops parsing data

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.

UDP debug.txt

Error after 65535 messages

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

lImitation to 256 Bytes

if (nvl.byteLength > 256){

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.