Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
78 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
PUSH
Name:
PUSH
Syntax:
PUSH <variable_name1> [, <variable_name2> ...]
{
[Local Variable Definitions]
<statements>
}
Description:
<variable_name> is a DIGITAL_INPUT type. On the rising edge of 
<variable_name>, the statements between the opening { and closing } are executed.
When using DIGITAL_INPUT arrays, only a change in the entire array can be 
detected, not an individual element. Refer to “GetLastModifiedArrayIndex” on 
 for a method of detecting a change to an individual element.
When listing multiple variable names, the names can be put on the same line or 
broken up into several PUSH statements for readability. Refer to “Stacked Events” 
on 
Example:
DIGITAL_INPUT trigger;
STRING_OUTPUT output$;
 
PUSH trigger
{
output$ = “Hello, World!”;
}
In this example, when the DIGITAL_INPUT trigger transitions from low to high, the 
STRING_OUTPUT output$ will have the string “Hello, World!” put into it.
Version:
SIMPL+ Version 3.00 - local variables are allowed within PUSH statements. 
SIMPL+ Version 2.00 for DIGITAL_INPUT arrays as <variable_name>. 
SIMPL+ Version 1.00 for everything else.