AdvancedHMI Software

General Category => Open Discussion => Topic started by: Neeh on September 22, 2017, 04:20:16 PM

Title: Omron CJ2M FINS
Post 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?
Title: Re: Omron CJ2M FINS
Post by: Archie on September 22, 2017, 08:58:20 PM
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
Title: Re: Omron CJ2M FINS
Post by: Neeh on September 26, 2017, 04:42:37 PM
Thanks Archie, works great.