Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Crestron SIMPL+
®
Software 
Language Reference Guide - DOC. 5797G
 SIMPL+
®
 
z 261
PauseWait
Name:
PauseWait
Syntax:
PauseWait(NAME);
Description:
Pauses a specified named WAIT event in 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.
Parameters:
NAME is a name of a previously defined and named WAIT event.
Return Value:
None.
Example:
DIGITAL_INPUT Trig, PauseWait;
 
PUSH Trig
{
WAIT(1000, FirstWait)
}
PRINT(“Wait 1 Triggered!\n”);
WAIT(2000, SecondWait)
}
PRINT(“Wait 2 Triggered!\n”;
}
}
PUSH PauseWait
{
PauseWait(SecondWait);
}
In this example, when Trig is pushed, a 10-second and 20-second event is scheduled. 
When PauseWait is triggered, the SecondWait event will be paused if it has not 
already run to completion. It may be later cancelled, resumed, or retimed.
Version:
SIMPL+ Version 1.00