Thanks guys!
Well... I guess the answer to my question is that there isn't really a way that's as easy as using "min" to limit the upper end.
The method that Charles posted is what I've been using. But I was hoping for something that was... simpler.
I guess I'd hoped there was some way as clean and easy as "MAX" but that worked all the way down to zero.
Darrels method using volume.15 is great, but it "wastes" half of a variable.
Most of the variables that I need to limit are declared as bytes, and I need the full 255 step range for some of them.
I *can* use it for my temperature setpoint because that needs a word anyway and I can afford to "lose" part of it.
I'm starting to run low on code space on this project so hoping to find more efficient ways to do a few things...
Thanks for the input!
Steve
Bookmarks