Micromod MOD: 30ML Functions Data Base Reference Manuale Utente Pagina 29

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 152
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 28
MOD 30ML Functions
DISPLAY BLOCK
13. Unary operations (unary_op) are:
Precedence Symbol Operation
1 + Unary Plus (for floating point constants only)
1 - Unary Minus (for floating point constants only)
3 SQRT Square Root
3 MOM Momentary
3 ! Logical NOT
3 ABS Absolute Value
3 EXP Exponential
3 NLOG Natural Log
3 LOG Log Base 10
3 INT Integer
14. Arguments to all unary operators (except ! and unary + and unary -) must appear in
parentheses (e.g. SQRT (I1)).
15. A constant can be:
count An integer between 0 and 65535.
discrete TRUE or FALSE.
short state An integer between 0 and 15, with the suffix S.
long state An integer between 0 and 255, with the suffix L.
date M,month/day/year (U.S. format), or
D,day/month/year (European format).
floating point A floating-point number.
millisecond time Hours:minutes:seconds (h:mm:ss.sss). Note that seconds
can be expressed with up to 3 decimal places.
hex A hexadecimal integer with the prefix $
ASCII An ASCII string enclosed in double quotes.
Examples of valid constants:
count 10224
discrete TRUE
short state 3S
long state 56L
date M,1/30/90 (U.S. format), D,30/1/90 (European format)
floating point 1.23E-10, -0.2546, 1.333333E12, 99.625, etc.
(Note that the exponent is optional.)
millisecond time 1:20:30.020
hex $aaff
ASCII "Abraham Lincoln"
16. A name must be unique and can be a 1 to 8 character string of letters, digits or
underscores, starting with a letter. This string represents an input name for identifying
variables or a local attribute name referenced by their standard mnemonics or display
state name.
2-21
Vedere la pagina 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 151 152

Commenti su questo manuale

Nessun commento