AdvancedHMI Software

General Category => Support Questions => Topic started by: Noe on October 30, 2015, 11:20:21 AM

Title: Getting PLC IP address when using CLX.ini as address
Post by: Noe on October 30, 2015, 11:20:21 AM
Hi Archie. I used the CLX.ini file option to set the PLC IP in a settings file to store and change my driver IP, but I want to display in a label the IP address, if I set the "EthernetIPforCLXCom1.IPAddress" I would get "CLX.ini". Is there another way to read IP value?
Title: Re: Getting PLC IP address when using CLX.ini as address
Post by: Archie on October 30, 2015, 12:15:21 PM
Your easiest option is probably to edit EthernetIPForCLXCom.vb and go to line 209, which should be this:

    Private m_IPAddress As String = "192.168.0.10"

and change it to:

    Public m_IPAddress As String = "192.168.0.10"

You can now access:

  EthernetIPforCLXCom1.m_IPAddress
Title: Re: Getting PLC IP address when using CLX.ini as address
Post by: Noe on October 30, 2015, 12:50:07 PM
Thanks Archie! Great response as usual!