st-one-io / node-red-contrib-cip-ethernet-ip

A Node-RED node to interact with Allen Bradley / Rockwell PLCs
GNU General Public License v3.0
49 stars 22 forks source link

TIMEOUT occurred while reading Controller Props #10

Closed dirkzp closed 4 years ago

dirkzp commented 4 years ago

Hi, I'm trying to connect to an OMRON NJ101 PLC. I get the error message: "Error connecting to PLC: Error: TIMEOUT occurred while reading Controller Props.". Any idea whats wrong? IP Address is correct :-)

Thanks. Dirk

gfcittolin commented 4 years ago

Hi, Never tried to connect to an Omron PLC. But from the error message, I'd say it could at least connect to the PLC, so that's good news. The underlying library we use tries to read the controller properties just after connection (we can't control that for now), and it looks like the Omron PLC is not undestanding this request.

Unfortunately I don't have an Omron PLC here. Could you then please do a test? Please comment the Line 125 on node_modules/ethernet-ip/src/controller/index.js and let me know if it works. If yes, then we can try talking fixing it upstream and have this properly fixed.

dirkzp commented 4 years ago

Hi,

thanks for your feedback. I've done your proposed solution. Now the connection is established. But now I'm getting the error: "Error communicating with the PLC: Error: TIMEOUT occurred while writing Reading Tag Group." But maybe it could be a configuration issue? Thanks.

dirkzp commented 4 years ago

You suggested changes in the index.js is working on Line 125. Now I configured the OMRON PLC with all tags. See attached file. Now I'm trying to read the data via Ethernet / IP with the error: Error communicating with the PLC: Error: TIMEOUT occurred while writing Reading Tag Group."

Any suggestions how to find out the problem? Thanks. Dirk

1 2 3 4

antoniobonora commented 4 years ago

Hi, You must modify ethernet-ip\src\enip\cip\unconnected-send\index.js search const build = (message_request, path, timeout = 2000) => { and correct to const build = (message_request, path, timeout = 5056) => {

Bye! Tony

dirkzp commented 4 years ago

Hey Tony,

sorry for the late reply. I've tried your solution and it is working! Thanks for your help!

BR, Dirk

NeltherGP commented 4 years ago

Hey Tony,

sorry for the late reply. I've tried your solution and it is working! Thanks for your help!

BR, Dirk

Hi, I see on the screenshot that you have tags configured as Outputs on Sysmac, I also have a variable configured as an output but I get this message when trying to read from node red "Error communicating with the PLC: {"generalStatusCode":30,"extendedStatus":[]}" did you keep that configuration or you change something?

antoniobonora commented 4 years ago

Hi, I have tags input/output and not only output. Bye!

Inviato da Libero Mail per Android venerdì, 19 giugno 2020, 00:13AM +02:00 da Nelther Galaz notifications@github.com :

Hey Tony, sorry for the late reply. I've tried your solution and it is working! Thanks for your help! BR, Dirk Hi, I see on the screenshot that you have tags configured as Outputs on Sysmac, I also have a variable configured as an output but I get this message when trying to read from node red "Error communicating with the PLC: {"generalStatusCode":30,"extendedStatus":[]}" did you keep that configuration or you change something? — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or unsubscribe .

Hehos12 commented 3 years ago

Hi, You must modify ethernet-ip\src\enip\cip\unconnected-send\index.js search const build = (message_request, path, timeout = 2000) => { and correct to const build = (message_request, path, timeout = 5056) => {

Bye! Tony

Hi,

I am trying your solution without succes on a Omron NX1P2. I am getting this error after modifying index.js

"Error communicating with the PLC: {"generalStatusCode":30,"extendedStatus":[]}"

Ballupp commented 2 years ago

Hey Tony, sorry for the late reply. I've tried your solution and it is working! Thanks for your help! BR, Dirk

Hi, I see on the screenshot that you have tags configured as Outputs on Sysmac, I also have a variable configured as an output but I get this message when trying to read from node red "Error communicating with the PLC: {"generalStatusCode":30,"extendedStatus":[]}" did you keep that configuration or you change something?

Hello, I have the same issue as you after trying all the fixes above. Have you managed to solve them? Thank you!

VanOrteppi commented 2 years ago

"Error communicating with the PLC: {"generalStatusCode":30,"extendedStatus":[]}"

Struggling with the same problem. Using Omron NX1P PLC I am able to read the data from the PLC, thanks for the good tips. However, sending Boolean does not work. I don't know of any other data types, have not tested them yet.

image

I have tried to check everything. Tried to change the variables in the PLC (input/output/publish) but the error still takes place. The tags works fine when reading them, but writing them seems to be impossible.