TW Function

Returns the status of the Wait, WaitNet, and WaitSig commands.

Syntax
TW

Return Values
Returns False if Wait condition is satisfied within the time interval.

Returns True if the time interval has elapsed.

Description
The Timer Wait function TW returns the status of the preceding Wait condition with time interval with a False (Wait condition was satisfied) or a True (time interval has elapsed).

See Also
TMOut, Wait, Hand_TW

For details of Hand control commands, refer to the following manual:
"Hand Function"

TW Function Example

Wait Sw(0) = On, 5    'Waits up to 5 seconds for input bit 0 On
If TW = True Then
    Print "Time Up"   'Displays "Time UP" after 5 seconds
EndIf