You're looking for a deadband control, which can also be done this way in addition to sgull's suggestion-   You can put MIs in place of the #400 and #600 which will allow you to adjust your control from screen variables. If you're feeling brave post your program.  I'm curious to see how you've progressed. Joe T.