Crestron simpl plus language ref 사용자 설명서
Software Crestron
SIMPL+
®
260
z SIMPL+
®
Language Reference Guide - DOC. 5797G
PauseAllWait
Name:
PauseAllWait
Syntax:
PauseAllWait();
Description:
Pauses all WAIT events for the current SIMPL+ program. When an event is paused,
the timer for it freezes and may later be resumed, retimed, or cancelled. When a wait
is resumed, it executes the remaining time from when it was paused until the defined
wait time.
the timer for it freezes and may later be resumed, retimed, or cancelled. When a wait
is resumed, it executes the remaining time from when it was paused until the defined
wait time.
Parameters:
None.
Return Value:
None.
Example:
DIGITAL_INPUT Trig, PauseWaits;
PUSH Trig
{
WAIT(1000, FirstWait)
}
PRINT(“Wait 1 Triggered!\n”);
{
WAIT(2000, SecondWait)
}
PRINT(“Wait 2 Triggered!\n”;
}
}
PUSH PauseWaits
{
PauseAllWaits();
}
In this example, when Trig is pushed, a 10-second and 20-second event is scheduled.
When PauseWaits is triggered, any of the running WAIT events will be halted, but
may later be resumed, cancelled, or retimed.
When PauseWaits is triggered, any of the running WAIT events will be halted, but
may later be resumed, cancelled, or retimed.
Version:
SIMPL+ Version 1.00