TMOut Statement
Specifies the number of seconds to wait for the condition specified with the Wait instruction to come true before issuing a timeout error (error 2280).
Syntax
TMOut seconds
Parameters
- seconds
- Specify the timeout period as an integer value. Valid values are 0 to 2147483. (Unit: seconds)
Description
TMOut sets the amount of time to wait (when using the Wait instruction) until a timeout error is issued. If a timeout of 0 seconds is specified, then the timeout is effectively turned off. In this case the Wait instruction waits indefinitely for the specified condition to be satisfied.
The default initial value for TMOut is 0.
See Also
In, MemSw, OnErr, Sw, TW, Wait
TMOut Statement Example
TMOut 5
Wait MemSw(0) = On