Author Topic: Can I specify port in Ethernet Comm Control?  (Read 2920 times)

usapatriotforlife

  • Newbie
  • *
  • Posts: 39
    • View Profile
Can I specify port in Ethernet Comm Control?
« on: August 01, 2013, 02:44:03 PM »
Hi, is it possible to specify the port number that an ethernet comm control uses when connecting to a PLC?

I looked at the control, but couldn't see how to do this.  I tried adding ":" and the alternate port to the end of the IP address and that did not work.

Thanks!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Can I specify port in Ethernet Comm Control?
« Reply #1 on: August 01, 2013, 03:30:08 PM »
The port number is fixed to port 0xAF12 as specified in the Ethernet/IP specifications.

usapatriotforlife

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Can I specify port in Ethernet Comm Control?
« Reply #2 on: August 01, 2013, 04:36:34 PM »
Hi Archie, 

Thanks for the quick response!  So by fixed, are you saying that it can't be changed somehow in AdvancedHMI? 


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Can I specify port in Ethernet Comm Control?
« Reply #3 on: August 01, 2013, 04:41:53 PM »
No, it can't be changed because it's hard coded in the Data Link Layer. What scenario would you need to change it?

usapatriotforlife

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Can I specify port in Ethernet Comm Control?
« Reply #4 on: August 01, 2013, 04:49:57 PM »
That's unfortunate.  I'm involved in a very common scenario (I feel).  I'm surprised this hasn't come up before.

We have PLCS running behind cellular modems in vending machines located in remote rural areas.   Port forwarding is used to translate incoming requests to the cellular modem's public IP to a private non routable IP on the LAN side network. 

We recently added a second vending machine at one of the remote sites.  We want both machines serviced from the same cellular modem.  Therefore, due to the way port forwarding works, we need to connect to another port other than the standard 44818 to signify to the modem's router that the traffic needs to be routed internally to another IP/PLC.