Recipe Data Display

Recipe Data Display https://forum.weintekusa.com/uploads/db0776/optimized/2X/8/815de62f9468742059d5e3b13c1e62da614cee2d_2_1024x487.jpeg
none 0.0 0
  • HMI Model: CMT3162X V2
  • EasyBuilder Pro Version: 6.10.01.510

First off, please forgive my poor macro writing skills, if you have any suggestions on how to clean it up I would appreciate it.

My goal to change the Setpoint or Gradient step type images (circled) to red when the corresponding line in the recipe viewer is selected and 1 or 2 is displayed in the numeric box.

The macro I wrote does that. However, when I add numbers in the other parameters it stops working. In the diagnoser window you can see that the macro returns 1 or 2 in the Temp_Step_Type only if the Type in the recipe viewer is 1 or 2 and all other parameters are zero, otherwise it returns some other value. I don’t understand what’s happening? I have the numeric box addressed to the recipe type.

Thank you.

Hi @leadfoote ,

Thank you for your question and your macro looks great actually.

I did want to ask what data type is your Temp_Step_Type. As within macros ints are 32 bit signed. If the data types don’t match up it may lead to your problem.

Below is a image and resource related to macro arithmetic.

Please let us know of your findings.

Macro Arithmetic’s Post

2 Likes

You were exactly right! Temp_Step_Type was a 16 bit unsigned integer. I changed the declaration in the macro to unsigned short and it works great now. Your a miracle worker! Thank you again!

2 Likes