cmseaton42 / node-ethernet-ip

A Lightweight Ethernet/IP API written to interface with Rockwell ControlLogix/CompactLogix Controllers.
MIT License
265 stars 106 forks source link

AB CompactLogix 5069-L310ERS2/B connection via VPN fails #104

Open baravovan opened 4 months ago

baravovan commented 4 months ago

Problem description

Hi

Have to mention that It works fine if I am staying in the same subnetwork with a PLC (tried Node-Red with the same PLC locally).

The problem occurs if I am trying to connect to the PLC using a VPN. At start I received "Error connecting to PLC: Error: TIMEOUT occurred while reading Controller Props.".

I tried to fix It using the steps provided here - issue 10. After commenting the line 125 in the file "....node-red\node_modules\ethernet-ip\src\controller\index.js" It was changed to the "_Error communicating with the PLC: Error: TIMEOUT occurred while writing Reading Tag Group._".

Changing timeout to 5056 in the file "....node-red\node_modules\ethernet-ip\src\enip\cip\unconnected-send\index.js" line 54 doesn't solve the problem.

Environment