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
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
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:
Within the macro that will run continuously enable “Periodic execution”:
Enable “use execution condition”:
Configure the “condition” such that some LB register must be “On” in order for the macro to run:
Click “Ok” and “Save & Compile” when finished:
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.