Why doesn't the recipe refresh when making changes via macro

Why doesn't the recipe refresh when making changes via macro
none 0.0 0
  • HMI Model: MCT-FHDX-820
  • EasyBuilder Pro Version: 6.10.01.510

Making changes to recipes through macro and i have noticed the recipe view object doesn’t refresh once the changes have been implemented.

Is there a way to refresh or increase the rate so this is more one to one scale?

Thanks…

Hi @outbound6,

Thank you for your question.

Could share your macro that updates the recipe as well any other images of your project that might be helpful for our understanding.

Thank you!

I have multiple macros updating various recipes. It’s not always repeatable with any given macro. Knowing this if you want to see one i can provide it….

Hi @outbound6 ,

Can you confirm that your macro looks similar to the example below?

In this example, I am updating the Name value within my Temperature recipe database and then writing the value 2 to the recipe database command register.

If it does not, could you please send snippets of what your macro looks like?

Also, could you confirm that this is not a specific macro failing to update the recipe view by manually executing the macro using a function key and verifying that the values update correctly?

Please let me know if you have any other questions.

macro_command main()
short update_cmd = 2
char name[4] = "Test"


SetData(name[0], "Local HMI", RECIPE, "Temperature.Name")
SetData(update_cmd, "Local HMI", RECIPE, "Temperature.Command")

end macro_command

Yes, the macro are similar if not the same as above example.

Hi @outbound6 ,

Next to your Recipe View object, could you place the Count and Result registers into numeric display objects? While monitoring those two registers, can you confirm that the count is incrementing properly and that the result indicates success?

If the count is incrementing properly and the result is successful, could you share the relevant parts of your macro so we can check for any delays?

Thank you.