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

Add support for specifying non standard EtherNet/IP port number

Open jhenson29 opened this issue 5 years ago • 5 comments

Add support for being able to add port number to IP address in Controller connect method.

Current Behavior

Port number is set to 44818 and cannot be changed.

Expected Behavior

Optionally specify port after IP address in connect method. e.g. plc.connect('192.168.1.100:5000');

Possible Solution (Optional)

Parse connect IP address string and check for port number. Use port number passed for eip connect. Default to 44818 if no port provided (no change to current operation).

Context

Mapping different ports on a WAN to different PLCs on a LAN.

Steps to Reproduce (for bugs only)

Your Environment

  • Package version (Use npm list - e.g. 1.0.6):
  • Node Version (Use node --version - e.g. 9.8.0):
  • Operating System and version:
  • Controller Type (eg 1756-L83E/B):
  • Controller Firmware (eg 30.11):

jhenson29 avatar Oct 02 '18 16:10 jhenson29

This would be really beneficial.

patrickjmcd avatar Oct 02 '18 16:10 patrickjmcd

It's just for the node end. I'm not aware of any way to change the port on the processor. So this is just for the specific use case of mapping ports on a router. But, yes, I've wanted to do this exact thing with other software numerous times and was not able to.

jhenson29 avatar Oct 02 '18 16:10 jhenson29

I've had MANY conversations with rockwell support and firmware developers who all believe you should be able to change the port from 44818, but none who are willing to push it forward.

patrickjmcd avatar Oct 02 '18 16:10 patrickjmcd

They believe correctly.

jhenson29 avatar Oct 02 '18 16:10 jhenson29

just FYI there's many other PLCs with Ethernet/IP support that allow changing the port. Version 2.4 (April 2019) of Koyo Click PLCs now support Ethernet/IP and support changing the port.

nikmartin avatar May 07 '19 18:05 nikmartin