node-ethernet-ip icon indicating copy to clipboard operation
node-ethernet-ip copied to clipboard

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

Open ksar-ksar opened this issue 3 years ago • 4 comments

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 !

ksar-ksar avatar Feb 23 '21 14:02 ksar-ksar

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.

SerafinTech avatar Feb 23 '21 15:02 SerafinTech

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 ?

ksar-ksar avatar Feb 23 '21 16:02 ksar-ksar

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.

alex-controlx avatar Mar 25 '21 05:03 alex-controlx

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.

kevinjjjjj avatar Jun 01 '22 21:06 kevinjjjjj