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

Error connecting to PLC: Error: TIMEOUT occurred while reading Controller Props. #81

Open
ksar-ksar opened this issue Feb 23, 2021 · 4 comments

Comments

@ksar-ksar
Copy link

Hello,

I try to connect to a PLC that has a Duagon CIP Stack embedded.

When I use Schneider PLC, everything works.
Then I tried with Node-Red ethernet-ip and get a : "Error connecting to PLC: Error: TIMEOUT occurred while reading Controller Props."

Doing a bit of Wireshark on it, and below the extract of a working Schneider Communication :
image

Then the Node-Red one :
image

So the main difference between the two is that node-red request for a service Code 0x52 instead of 0x54 for the Schneider one.
Wireshark identifies this two services as :

  • Schneider : 0x54 : Service: Forward Open (Request)
  • Node-Red : 0x52 : Service: Unconnected Send (0x52)

Do you know why node-red is using this 0x52 instead of 0x54 ?
And is it possible to change it ?

Thanks for your help !

@SerafinTech
Copy link

Looks like Node-red is using a version of ethernet-ip that only has unconnected messaging. Schneider PLC looks like it is using connected messaging. You could try updating the ethernet-ip library to the latest commit on GitHub. That should support connected messaging.

@ksar-ksar
Copy link
Author

ksar-ksar commented Feb 23, 2021

Hi,

Thanks for your answer.
npm view ethernet-ip version gives 1.2.5, that seems to be the last one

Anyway I don't see where I can configure to use unconnected or connected messaging ?

@alex-controlx
Copy link

Look at line 148 at src/controller/index.js. It's still in TODOs.

If you would like to contribute and develop a connected-send module similar to unconnected-send that would be great.

@kevinjjjjj
Copy link

image

I am having similar issue here with Omron PLC although in my case the message is saying malformed packet..? I am using the example code provided to get the tag list.

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

4 participants