iX Talk

Getting IP address from system
Page 2 of 2

Author:  AMitchneck [ Fri Nov 10, 2017 8:44 am ]
Post subject:  Re: Getting IP address from system

Depending on the specific panel and port I have seen the default set to dynamic or My guess if you are getting the loop back IP is it is set to dynamic. You can determine this from the IP shown on the bottom left of the screen while panel is loading project. You can change the IP from the service menu by pressing and holding the screen from when the hourglass appears until the screen goes gray stating something along the lines of "entering calibration in xx seconds." Once the gray screen appears, let go of screen then press again to open service menu; click set IP and to confirm/change IP settings.

Author:  AMitchneck [ Fri Nov 10, 2017 8:47 am ]
Post subject:  Re: Getting IP address from system

Forgot to mention - the hourglass I'm referring to for entering the service menu is the hourglass that appears right after you power the panel. So, to enter the service menu you will need to power cycle the panel.

Author:  wlederer [ Tue Nov 14, 2017 3:33 am ]
Post subject:  Re: Getting IP address from system

Thank You Adam. The IP address is set as static (I checked). But the method offered shows the correct address if HMI connected to a network or laptop only. If the HMI Ethernet port is disconnected, the IP address shown is different. In this case it is: "No 192.*.*.* IP".

Author:  AMitchneck [ Tue Nov 14, 2017 7:38 am ]
Post subject:  Re: Getting IP address from system

Curious. I've never tried getting the IP address of a panel, but I have used C# to get a computer's IP address using similar method as here https://stackoverflow.com/questions/6803073/get-local-ip-address. It was a while ago, but, if I remember correctly, this method returned only "active" IP addresses (aka usable). I would take it since the static IP is unusable with the network cable unplugged that it does not show up in the list. One IP that I know always shows up in the list is so my take at this point is the code you are using on the panel probably returns the first usable IP and thus returns when no physical connections are available.

Author:  wlederer [ Wed Nov 15, 2017 4:52 am ]
Post subject:  Re: Getting IP address from system

Thank You Adam for the link, it is very interesting information. Original task was to check, if the HMI configured as OPC server or client. But, it is not clear, how to check by script, if a controller (OPC client) active or not.
Anyway, the problem is solved, because we know now what IP address is shown when the HMI is not connected to Ethernet and the IP address is shown correct when the HMI is connected to Ethernet network or PC.

Page 2 of 2 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group