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.
