On timeout – Rockwell Automation GMLC Reference Manual User Manual
Page 362

Publication GMLC-5.2 - November 1999
On Timeout
325
If you select Wait for Timeout, program execution halts until the timer
times out. When it does, the program continues with the next block. If
other tasks are executing (multitasking), the task which contains this
block pauses but the other tasks continue to execute. In this way, a Wait
for Timeout selection in one task does not pause execution of any other
tasks or hang the task dispatcher.
If you do not select Wait for Timeout, the Set Timer block just sets up the
timer and the program continues with the subsequent blocks while the
timer counts down (or up) in the background.
Set Free Running Clock
The free-running clock runs up from set time. Use the free-running clock
for measuring the execution time of program events, and to reset the set
time (typically to zero) at the end of one event (or loop).
On Timeout
Use the On Timeout block to:
•
Pause the program until the selected count down timer has timed out.
•
Evaluate the selected count down timer to determine if it has timed
out.
The On Timeout block resides on the Main Palette.
If Timeout
The If Timeout type evaluates the selected count down timer to determine
if it has timed out. Program flow branches to the top (true) node if the
timer has timed out, and to the bottom (false) node if the timer is still
counting.
The selected timer must have been set up previously using a Set Timer
block. See Set Timer in this chapter for more information on setting up
timers.