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

Controller Manager not auto-reconnecting #56

Open
skykep opened this issue Jan 17, 2024 · 5 comments
Open

Controller Manager not auto-reconnecting #56

skykep opened this issue Jan 17, 2024 · 5 comments

Comments

@skykep
Copy link

skykep commented Jan 17, 2024

Controller Manager does not auto-reconnect to a PLC. When reading a value, it retains the value from before the download and will not update.

Current Behavior

After a download to a PLC, tags are no longer read from that PLC.

Expected Behavior

Tags should resume polling from that PLC.

Possible Solution (Optional)

Context

Steps to Reproduce (for bugs only)

Your Environment

  • Package version (Use npm list - e.g. 1.0.6): 2.6.7
  • Node Version (Use node --version - e.g. 9.8.0):
  • Operating System and version:
  • Controller Type (eg 1756-L83E/B): 1756-L63 / 1756-L73
  • Controller Firmware (eg 30.11): 16.23 / 30.11
@skykep
Copy link
Author

skykep commented Jan 18, 2024

My temporary workaround:

setInterval(async function () {
let tagValues = cm.getAllValues();
let heartbeat = cont.tags.find(o => o.tagname === 'Heartbeat').tag.state.tag;
console.log(heartbeat.value);
if (heartbeat.value == false) {
console.log("Restarting connection...");
cont.connect();
}
heartbeat.value = false;
}, 5000);

In the PLC, I just have a single rung for 'OTE(Heartbeat);'

@SerafinTech
Copy link
Owner

I was able to duplicate the issue. After power cycling it will reconnect, but after download it doesn't. I will see if I can figure out a fix.

@skykep
Copy link
Author

skykep commented Jan 21, 2024

Thanks Jason. Glad I was able to find a way to break it. Haha

@SerafinTech
Copy link
Owner

New version should fix

@skykep
Copy link
Author

skykep commented Jan 27, 2024

Thanks Jason. I'll give it a shot tomorrow.

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

2 participants