Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
46 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
Fixed and Variable Size Arrays
Although SIMPL+ symbols can only handle one variable size DIGITAL_INPUT 
array, one variable-size DIGITAL_OUTPUT array, one variable-size ANALOG/
STRING/BUFFER input array, and one variable size ANALOG/STRING/OUTPUT 
array, it is convenient to be able to refer to other inputs and outputs with array 
notation. Therefore, SIMPL+ allows an unlimited number of fixed-size input or 
output arrays, that are essentially single input or output values but array notation can 
be used. Every member of these fixed-size arrays is always shown in the symbol. All 
arrays, except the last one of each kind, are fixed-size arrays. The last one is variable-
size, meaning that the symbol initially shows the first array value. The user can press 
ALT+ to expand the symbol to its maximum number of array inputs or outputs. In 
addition, a minimum size can be declared in all variable-size arrays, meaning that the 
minimum number of array members is always shown, not just the first one, and the 
array can be expanded from there. 
Example:
DIGITAL_INPUT YesVotes[10]
DIGITAL_INPUT NoVotes[10}
DIGITAL_INPUT AbstainVotes[10,5];
The symbol will show 10 digital inputs labelled: YesVotes[1], YesVotes[2] 
...YesVotes[10], followed by 10 more labelled: NoVotes[1], NoVotes[2] 
...NoVotes[10], followed by 5 labelled: AbstainVotes[1], AbstainVotes[2] 
...AbstainVotes[5]. You can continue to expand the last one up to AbstainVotes[10].
Predefined Names:
The names "on" and "off" are reserved. Assigning "on" to a variable sets the variable 
to 1, assigning "off" sets that variable to 0.
The following shows equivalent, given that VALUE is a DIGITAL_OUTPUT:
VALUE = 1;   and   VALUE = on;
VALUE = 0;   and   VALUE = off;
NOTE: The minimum array size number must be from 1 to the size of the array. If a 
minimum array size is specified on any array, but it is the last one within any type, it 
will be a compile error.