AdvancedHMI Software
General Category => Open Discussion => Topic started by: Neeh on September 22, 2017, 04:20:16 PM
-
What is the default UDP port no of the omronEthernetFINSCom? How can I change the port no?
-
The port is fixed at 9600. You can change it by making a change to the code:
- In Solution Explorer, expand down the AdvancedHMIDrivers project
- Expand down the Omron folder
- Expand down the FINS folder
- Right click OmronEthernetFINSCom.vb and select View Code
- Go to line 173 and look for this line of code:
DLL(MyDLLInstance) = New MfgControl.AdvancedHMI.Drivers.Omron.FinsEthernetDataLinkLayer(m_IPAddress)
- Add a line of code just below that:
DLL(MyDLLInstance).Port=9600
-
Thanks Archie, works great.