Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Crestron SIMPL+
®
Software 
Language Reference Guide - DOC. 5797G
 SIMPL+
®
 
z 45
Declarations
Declarations Overview
Declarations control the name, type, and number of inputs and outputs on a SIMPL+ 
symbol. The name is shown as a cue on the symbol in SIMPL Windows and is used 
as the variable name in the body of the SIMPL+ program. When the symbol is drawn 
in SIMPL Windows, the inputs are shown in the order of DIGITAL_INPUTs, 
ANALOG_INPUTs, STRING_INPUTs. The outputs are shown in the order of 
DIGITAL_OUTPUTs, ANALOG_OUTPUTs, STRING_OUTPUTs. When 
specifying a declaration, several variable names can be put after a declaration or 
multiple declaration statements may be used.
For example:
ANALOG_INPUT val1, val2, val3;
is equivalent to:
ANALOG_INPUT val1, val2;
ANALOG_INPUT val3;
Allowable I/O List Combinations
SIMPL+ Version 2.00 and later gives the ability to define arrays in the Input/Output 
Lists. SIMPL+ version 3.01 and later introduced the ability to declare multiple fixed-
size arrays in the input/output lists, and a minimum expanded size to variable-size 
arrays.
The following are the allowable combinations:
•    
Zero or more DIGITAL_INPUTs 
•    
Zero or more DIGITAL_INPUT arrays, the last is variable-size, the others are 
fixed-size.
•    
Zero or more ANALOG_INPUTs, STRING_INPUTs, or BUFFER_INPUTs 
in any combination.
•    
Zero or more ANALOG_INPUT, STRING_INPUT, or BUFFER_INPUT 
array, the last is variable-size, the others are fixed-size.
•    
Zero or more DIGITAL_OUPUTs
•    
Zero or more DIGITAL_OUTPUT array, the last is variable-size, the others 
are fixed-size.
•    
Zero or more ANALOG_OUTPUTs, STRING_OUTPUTs in any 
combination.
•    
Zero or more ANALOG_OUTPUT or STRING_OUTPUT array, the last is 
variable-size, the others are fixed-size.