I was going to ask for MATH IF THEN ELSE nesting that allowed for comparisons that were equations along with results that were equations because I could not get that to work a couple of days ago. But I just tried it again and it works very, very fine.
So instead, I would like to humbly request that MATH IFs get some type of nice formatting so I can figure out just what I am trying to do. I really like not having to have scratch values as required with comparison instructions (which won't take equations, hint, hint.) along with the multiple rungs needed, but without some kind of clean formatting it seems like a bad idea for me to get into that kind of complexity.
This is what I tried (Bogus Stuff)
MATH
Result R0
IF((R1 + R2) > (R3 + 3.0), IF((R4 + 1.0) <
(R5 + 5.0), 1.0 + R3, 0.89), 2.0 + R6)
It works, but is kind of hard to follow, especially with nicknames or PID_Control1.Output added in liberally and broken up randomly. Maybe different colors or true IF THEN ELSE or something.
Or MAYBE I am looking for a decision tree instruction! Hang it off the left rail and branch off from the results to the right. Wait, this sounds like a flow chart, huh, maybe not.
But I would love Function Block Diagrams for analog type stuff.