Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Crestron SIMPL+
®
Software 
Language Reference Guide - DOC. 5797G
 SIMPL+
®
 
z 79
Release
Name:
RELEASE 
Syntax:
RELEASE <variable_name1> [, <variable_name2> ...]
{
[Local Variable Definitions]
<statements>
Description:
<variable_name> is a DIGITAL_INPUT type. On the trailing 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 RELEASE statements for readability. Refer to “Stacked 
Events” on 
Example:
DIGITAL_INPUT trigger;
STRING_OUTPUT output$;
 
RELEASE trigger
{
output$ = “Hello, World!”;
}
In this example, when the DIGITAL_INPUT trigger transitions from high to low, the 
STRING_OUTPUT output$ will have the string “Hello, World!” put into it.
Version:
SIMPL+ Version 3.00 - local variables are allowed within RELEASE statements. 
SIMPL+ Version 2.00 for DIGITAL_INPUT arrays as <variable_name>. 
SIMPL+ Version 1.00 for everything else.