How can I optimize this pile of if/then statements?

NorthGuy

Joined Jun 28, 2014
611
You can fit the curve in the field. It's hard to imagine that the shape would be drastically different, so you only need to calculate coefficients. If the PLC cannot compute, you have Ethernet connection, so you always can build an interactive Java script which will do a user-friendly calibration in the browser.
 
Top