WaitSig Statement
Waits for a signal from another task.
Syntax
WaitSig signalNumber [, timeOut]
Parameters
- signalNumber
- Specifies the signal number to be received as an integer value (0 to 63).
- timeOut
- Specifies the maximum wait time (s) as a real number. Optional.
Description
Use WaitSig to wait for a signal from another task. The signal will only be received after WaitSig has started. Previous signals are ignored.
See Also
Wait Statement, WaitPos Statement, Signal Statement
WaitSig Statement Example
Function Main
Xqt SubTask
Wait 1
Signal 1
.
.
Fend
Function SubTask
WaitSig 1
Print "signal received"
.
Fend