Hilscher / node-red-contrib-s7comm

A Node-RED node to communicate with Siemens S7 PLCs.
MIT License
34 stars 11 forks source link

Error status incorrect #2

Closed yonas124 closed 6 years ago

yonas124 commented 7 years ago

I got it working easily so kudos to you but the payload.error is 0 even though I disconnected the plc. It becomes -1 only if I put non-existent address.

sembaye commented 7 years ago

Hi, that's weird. I have done extensive testing with a non-existent PLC. What system do you use? (Windows /Linux) I have observed once that the TCP stack of node. js reacts differently to the systems. However, this was the case with an earlier version of node. js.

yonas124 commented 7 years ago

So my setup is:

The node actually shows 'disconnected' but the payload.error is still 0 with array of last good values, not null. I left my raspi at home so I cannot attach the screenshot. I will later.

sembaye commented 7 years ago

In version 1.0.2 there is an error when reading an array of values. The error will be fixed in the next version (release date is Friday). I suggest that you run the test again with the new version.

sembaye commented 7 years ago

Hi, a new version is relesed. Is the issue fixed with this version or still available?

sembaye commented 6 years ago

close due to inactivity