Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plc is not automatically reconnected #39

Open
bombjackit opened this issue Jun 29, 2023 · 5 comments
Open

Plc is not automatically reconnected #39

bombjackit opened this issue Jun 29, 2023 · 5 comments

Comments

@bombjackit
Copy link

Describe the bug

When a plc, for a known reason (like maintenance, firmware upgrade or software upload), is disconnected from the lan, sometimes it does not automatically reconnect : I have to restart flow manually.

Expected behavior

I expect that the plc is reconnected, in all case, automatically

Logs

This is the log (after this plc is disconnected)
26 Jun 08:03:27 - [error] [eth-ip endpoint:Plc] Error communicating with the PLC: {"generalStatusCode":4,"extendedStatus":[0]}

Environment

  • node-red-contrib-cip-st-ethernet-ip 2.0.0-beta.3
  • Node red 2.2.2
  • Node.JS 14.21.1
  • Plc Rockwell 1756L81ES
  • Windows 10 professional 21H2
@r4nd0wn
Copy link

r4nd0wn commented Jul 3, 2023

same on a linux machine. This error occurs every time there is a download on the plc side and is elimited as soon as I redeploy (probably because of the forced reconnect).

@cgraun
Copy link

cgraun commented Aug 3, 2023

Same here.

Describe the bug

After a network interruption (unplugging PLC network cable) or going to STOP and RUN it automatically reconnects. However, after downloading the program, it doesn't, throwing the following error on console.
The only way to get it back working I've found is restarting node-red.

Logs

3 Aug 10:48:12 - [error] [eth-ip endpoint:myPLC] Error communicating with the PLC: {"generalStatusCode":4,"extendedStatus":[0]}

Environment

  • node-red-contrib-cip-st-ethernet-ip 2.0.0-beta.3
  • Node red 2.2.2
  • Node.JS 16.15.1
  • Plc Rockwell 1756L62S
  • Windows 10 Enterprise 2016 LTSB

@bombjackit
Copy link
Author

Reposted in the right place SerafinTech#5

@bombjackit
Copy link
Author

@cgraun and @r4nd0wn there is a new version of node-red-contrib-cip-st-ethernet-ip (2.0.2, see https://www.npmjs.com/package/node-red-contrib-cip-st-ethernet-ip) that may resolve this issue (I try thid new version and works well but actually I haven't try if auto reconnect in case of download really works).

@bombjackit
Copy link
Author

bombjackit commented Mar 4, 2024

I tried automatic reconnect after download to plc (with node-red-contrib-cip-st-ethernet-ip 2.0.2) and all go well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants