Micromod MOD: 30ML Functions Data Base Reference User Manual
Page 27

MOD 30ML Functions
DISPLAY BLOCK
Display Language Grammar
The grammar rules that follow describe the display language.
1. The display language can be empty (no states) or have 1 to 255 states (not including the
optional DEFAULTS state).
2. A state can be just empty brackets { } or include event (key and display) scripts.
3. An event script can be just empty brackets { } or a list of statements
4. A statement can be empty brackets { } or any of the following:
CASE expression OF statement
integer case label: statement
BREAK ;
DEFAULT : statement
IF expression THEN statement
IF expression THEN statement ELSE statement
id = expression;
TUNE ;
RETURN ;
;
5. Statements labeled by an integer or the keyword DEFAULT and BREAK statements
cannot appear outside the body of a case statement.
6. Assignment statements take the form
id = expression
resource_id = expression
Examples of assignments:
Setting a display field to a constant value:
#RBAR = sourcename or constant or expression
Connecting a display line to a source:
#RBAR.SRC = sourcename
Setting an input or local attribute to a constant (if the input is remote, the actual
source variable will be changed):
destname = sourcename or constant or expression
7. The right side of an assignment statement must be an input name or local attribute name
when the left side is one of the predefined names with the suffix .SRC.
2-19