Crestron simpl plus language ref 사용자 설명서
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G
SIMPL+
®
z 77
EVENT
Name:
EVENT
Syntax:
EVENT
{
[Local Variable Definitions]
<statements>
}
Description:
Executes the defined <statements> anytime one of the inputs to the SIMPL+ symbol
changes. It is similar to having a CHANGE statement listed for every input, and each
change is set up to execute a common block of code. Refer to “Stacked Events” on
changes. It is similar to having a CHANGE statement listed for every input, and each
change is set up to execute a common block of code. Refer to “Stacked Events” on
.
Example:
ANALOG_INPUT level1, level2, level3;
STRING_INPUT extra$[2][20];
STRING_OUTPUT OUT$;
EVENT
{
OUT$=extra$[0]+extra$[1]+CHR(level1)+CHR(level2)+CHR(level3)
;
}
In this example, when the ANALOG_INPUTs level1, level2, level3, or level4 have
any change or the STRING_INPUT array extra$ has changed, the
STRING_OUTPUT OUT$ will be recomputed and reissued.
any change or the STRING_INPUT array extra$ has changed, the
STRING_OUTPUT OUT$ will be recomputed and reissued.
Version:
SIMPL+ Version 3.00 - Local variables are allowed within EVENT statements.
SIMPL+ Version 1.00