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

Not automatically connect to Q series PLC in node red #19

Open
vikrimg opened this issue Dec 15, 2022 · 4 comments
Open

Not automatically connect to Q series PLC in node red #19

vikrimg opened this issue Dec 15, 2022 · 4 comments
Labels
question Further information is requested

Comments

@vikrimg
Copy link

vikrimg commented Dec 15, 2022

when the plc is lost connection to the node red, it won't automatically reconnect to the plc, it must be re deploy the flow or fully restart the node red.

is there any other way to fix this problem?

@Steve-Mcl
Copy link
Owner

What protocol are you using?

As stated in the readme, UDP 4E is the most reliable (In my previous job, I had years of problems with the TCP connections on Mitsubishi PLCs)

Regarding auto reconnect, you can also watch the status of the node or the output of the node and determine if a reconnect is necessary & issue a disconnect/connect.

The built in help states...

INFO: To open / close the MC Protocol connection, send boolean true in msg.connect , msg.disconnect or msg.reinitialize. Alternatively, send string connect, disconnect or reinitialize in msg.topic to the any mc read / mc write node.

@Steve-Mcl Steve-Mcl added the question Further information is requested label Dec 30, 2022
@CA1458
Copy link

CA1458 commented Oct 17, 2024

@vikrimg how do you solve this problem?
I have the same...

@framatech
Copy link

how do you solve this problem?
I have the same :-(

@Steve-Mcl
Copy link
Owner

Steve-Mcl commented Dec 7, 2024

This thread has a working demo flow that automates the previously mentioned msg.disconnect/msg.connect operations:

https://discourse.nodered.org/t/how-to-reload-nodered-flow-or-tab-using-function-node-or-else/93171/18?u=steve-mcl

Note everyone's configuration will be unique so you will need to adapt it to suit.
I will also reiterate the point:, where possible , use UDP. This will provide the most stable connection (with 4E is even better)

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

No branches or pull requests

4 participants