beautypg.com

Micromod MOD: 30ML Functions Data Base Reference User Manual

Page 28

background image

MOD 30ML Functions

DISPLAY BLOCK

8. Assignment to display resources:

Line1 - Line6

can be assigned values of any type.

Bars & Segments

can only be assigned values 0 to 50.

LED & Beeper

can only be assigned values 0 or 1 or 8 (Short State - On=1,
Off=0, or System Use=8).

UPDN

can only be assigned values 0 to 8 (Short State 0 to 8).
Bit 0 = up arrow on,
bit 1 = slash on,
bit 2 = dn arrow on,
value 8 is System Use.

Note: If LED, Beeper or UPDN is set to a value other than system use, it will be
unavailable for normal system functions until it is set back to 8.

9. An expression takes the form:.(parentheses can be used to control the order of

evaluation)

expression binary_op expression
unary_op expression
- float
+ float
id (input name or local attribute name or display state name)
constant

10. Expressions cannot exceed 255 bytes after being compiled. Expressions can appear in

the conditional part of IF and CASE statements and on the right side of assignments.

11. The assignment expression is defined so that HEX or ASCII data can appear on the right

side as a single operand but cannot appear in an expression. Expressions having more
than one operand follow the same rules as in the expression block.

12. Binary operations (binary_op) are:


Precedence Symbol Operation
2

**

Raised To The Power

4 *

Times

4 /

Divide

5 +

Plus

5 -

Minus

6 <

Less

Than

6

<=

Less Than Or Equal

6 >

Greater

Than

6

>=

Greater Than Or Equal

7 ==

Equals

7 !=

Unequal

8 &&

Logical

AND

9 ||

Logical

OR

2-20