I am seeing a Divide by zero - $DivideByZero (ST141)
for a MATH Box Result to R112
IF(D112 != 0, 1.0 / D112, 0.0)
I also tried
IF (D112 > 0, 1.0 / D112, 0.0)
So it seems it is evaluating the second term even when the first term is false. If I do the comparison as an If Greater Than CONTACT, no problems, but I was wanting to keep it all in one rung after some previous branches massage some registers.
I have tried rearranging terms and conditions to no avail. This is somewhat annoying behavior.
I also could not use (D112 = 0, 0.0, 1.0 / D112) as it will not accept D112=0 ?? It will take D112<1 but still gives divide by zero if D112 is zero.