I'm currently setting up a central OA server that is connecting to all PLCs and handling the data transfer. There are multiple HMIs running Desktop UI to interface with the machines. I want each HMI to display only the tags specific to the Machine that the HMI is interfacing with. The tags are instantiated with the HMI's hostname.
I'm having an issue uniquely identifying each hostname through the desktop UI app. Does anyone know how I could uniquely identify each HMI? I'm going to test getHostName() or getHostByAddr() soon, but I have my doubts and I'd like to know if anyone had a better method?
Note: I could have the user select the machine, but I'd like to do this automatically in a start-up/initialization script.
MY SOLUTION -> use getHostname();
Identify hostname over DesktopUI
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Identify hostname over DesktopUI
A similar question is in the Client Scope Data points topic