10-23-2007 11:19 AM
10-23-2007 11:29 AM
10-24-2007 04:22 PM
Thanks!
I moved the case statement outside the while loop and moved the index to the outside loop. The dwell time now works for the first dwell time period only but boolean control for the case statement doesn't pass outside the loop to set the setpoint. how do I pass a boolean condition outside a while loop to enable the case statement?
10-24-2007 04:30 PM
10-24-2007 05:14 PM
Thanks Matthew,
I've done as you said and the program works for the first setpoint/dwell setting then halts. Why doesn't it jump to the next setpoint/dwell setting after the completing the first. Please excuse my ingorance, this is all new to me.
Thanks again, nglabrat
10-24-2007 05:23 PM
10-25-2007 10:53 AM
10-26-2007 03:34 PM
Hi nglabrat,
Instead of having your Dwell Time (as you've currently called it) determine whether the inner loop continues iterating, compare the Actual Temp. to the Set Temp. If Actual > Set, stop the inner loop. After that, use a Wait function to determine the Dwell Time. Then proceed to the next setpoint. This application would work well with a state machine architecture, by the way.