Crestron simpl plus language ref 사용자 설명서
Software Crestron
SIMPL+
®
258
z SIMPL+
®
Language Reference Guide - DOC. 5797G
CancelAllWait
Name:
CancelAllWait
Syntax:
CancelAllWait();
Description:
Cancels all WAIT events for the current SIMPL+ program. When an event is
cancelled, it is removed from the wait list and will not activate. There is no effect on
wait events that have finished running.
cancelled, it is removed from the wait list and will not activate. There is no effect on
wait events that have finished running.
Parameters:
None.
Return Value:
None.
Example:
DIGITAL_INPUT Trig, KillWaits;
PUSH Trig
{
WAIT(1000, FirstWait)
}
PRINT(“Wait 1 Triggered!\n”);
{
WAIT(2000, SecondWait)
}
PRINT(“Wait 2 Triggered!\n”);
}
}
PUSH KillWaits
{
CancelAllWait();
}
In this example, when Trig is pushed, a 10-second and 20-second event are
scheduled. Whichever wait events are still running when KillWaits is
triggered, will be removed from the Wait list and will not get activated.
scheduled. Whichever wait events are still running when KillWaits is
triggered, will be removed from the Wait list and will not get activated.
Version:
SIMPL+ Version 1.00