Can a macro call another macro after the HMI's boot sequence?

I have a macro that just runs when the HMI starts and I want to have a macro that I want to be continuously running after the start up macro finishes,
Is there a way I can have the first macro call or start the 2nd macro.

Thanks

1 Like

Hi @gary14,

Given this scenario, I would recommend that you use an “execution condition” to start the macro when the initialization macro is finished. Here is an example:

  1. Within the macro that will run continuously enable “Periodic execution”:
    image

  2. Enable “use execution condition”:
    image

  3. Configure the “condition” such that some LB register must be “On” in order for the macro to run:
    image

  4. Click “Ok” and “Save & Compile” when finished:
    image

  5. Within the “Initialization” macro use the “SetData()” function to set this LB bit on:

I hope this helps! Please let me know if you have any additional questions.

5 Likes