Change Startup Window # programmattically

Change Startup Window # programmattically
none 0.0 0
  • HMI Model: cmt-3162X
  • EasyBuilder Pro Version: 6.10.02.300

I have an All-In-One program I have created for 5 different HMI’s in the same plant and would like to have the main startup window change for respective HMI on HMI-startup.

After the initial download, I open a configuration screen to assign the respective HMI location. This value is retained and I want the Startup window to be updated on the next restart.

Is this even possible? I’ve tried macros and Google AI can’t seem to get the local system addresses right.

TIA!

Hi @tdcolumbia ,

Thank you for your question!

Yes, this is possible. For this approach, we recommend creating a macro that reads the HMI’s local IP address, compare it against the known IP addresses of the other HMIs, and assigns the appropriate start up window number based on the result.

You can use the GetData function to read the IP address from the appropriate system registers, then use the SetData function to write the corresponding window number to an LW register. A PLC Control object can then use that LW value to change to the correct startup window for that HMI.

The macro can then be configured to run at project startup or execute once when the HMI initializes.

Would this approach work for your application set up?