FactoryTalk View ME: Start-up Splash Screen With Macro

Have you ever wonder how to add a “start-up splash screen” to PanelView Plus that would display certain page or graphic (company logo) for a few seconds, before switching to the project's main menu?
Here we will use FactoryTalk View Macros 
without using PLC code.

Steps to be taken:

The steps we need to take to complete this object are as follows:
  1. We need to detect when the PanelView launches our project, and we can do this by setting our start-up splash screen as the default display, and giving that display a unique display number, which in our example is 99.
  2. After the set period of time has elapsed, we need to command the HMI to display our main screen, which in this example will have a display number of 1 (no other displays can have a display number of 1 or 99)
  3. Once the main screen is displayed, we need to release screen control to the operators so they navigate the HMI

Steps for Start-up Splash Screen:

  1. Our first step is to open the “HMI Tag Editor” and create two HMI memory tags, both of which I'll put into a new “Memory” HMI tag folder.

    The first tag is named “StartUpTime” with the settings shown below:


    The second tag is named “DisplayControl” with the settings shown below:

  2. Next, we close the “HMI Tag Editor” and open “Global Connections.” Then we set the “Remote Display Number” to our new “Display Control” tag, and click on “OK” to save our changes:

  3. Next, we open each of our project's Graphic Displays and insure they each have a unique “Display Number.” This setting is found in the “General” tab of “Display Settings” which is found in the “Edit” and “Right Click” menus when the “Graphic Display” is selected:

  4. Now that we've updated and saved all our graphic displays, we next open “Startup” and insure our start-up splash screen display is set as the initial graphic. In this example that screen is named “LOGO.” Once done we click on “OK” to save our settings:

  5. At this point we need to create our first new Macro:

  6. This macro will have a Tag of “Memory\StartupTime” and an expression of “system\DateAndTimeInteger,” as shown below:

  7. The we save this new Macro as “StartUpMacro::

  8. Now we return to “Startup” and select our new “StartUpMacro” as our “Startup Macro,” as shown below:

  9. From there we head over to Global Connections again, and this time we go to the “Macro” tab:

  10. Under “Remote Macro 1” we add the following expression as our trigger and click “OK” twice to save it:
    system\DateAndTimeInteger > Memory\StartUpTime + 10

  11. We now need to create two more Macros. The first has a tag of “Memory\DisplayControl” and a value of 1, and must be saved with a name of “Macro1”:

  12. The next has a tag of “Memory\DisplayControl” and a value of 0, and is saved as “StartUpDoneMacro”

  13. The last step is to open our “main” screen (with a display number of 1) and set the “Display Settings – Behavior” to use a Startup Macro of our new “StartUpDoneMacro,” as shown below:

  14. Now when we run our project, our “LOGO” start-up splash screen will be displayed for ten seconds. After which our “main” screen will be displayed, and the “Remote Display Number” will be reset to 0 to allow operator navigation control.

Comments

Popular Posts