Xylem STORM 3 Basic Programming manual Manuale Utente Pagina 17

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 48
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 16
15
Commands and Functions
Optionally used as part of an IF statement to indicate another condition to evaluate. The option is
evaluated if all previous options have resulted in FALSE. Multiple ELSEIF conditions may be tested
If the condition evaluates to TRUE, all following conditions will not be tested.
var = DATETIME(MINUTES)
sync = 0
IF (var == 0) THEN
sync = 1
ELSEIF (var == 15) THEN
sync = 2
ELSEIF (var == 30) THEN
sync = 3
ELSEIF (var == 45) THEN
sync = 4
ELSE
sync = -1
ENDIF
ELSEIF
Immediately ends the Basic program. Optional if used as the last statement.
var = DATETIME(MINUTES)
IF (var == 0) THEN
REM if top of the hour, end the program
END
Declares the end of a multi-line IF-THEN statement. Not required on single-line if statements.
var = DATETIME(MINUTES)
sync = 0
IF (var == 0) THEN
sync = 1
ELSEIF (var == 30) THEN
sync = 2
ELSE
sync = -1
ENDIF
ENDIF
Vedere la pagina 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 47 48

Commenti su questo manuale

Nessun commento