Author Topic: Omron CJ2M FINS  (Read 1866 times)

Neeh

  • Newbie
  • *
  • Posts: 21
    • View Profile
Omron CJ2M FINS
« 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Omron CJ2M FINS
« Reply #1 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

Neeh

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Omron CJ2M FINS
« Reply #2 on: September 26, 2017, 04:42:37 PM »
Thanks Archie, works great.