![Xytronix Research & Design WebRelay-10 X-WR-10R12-I Скачать руководство пользователя страница 97](http://html1.mh-extra.com/html/xytronix-research-and-design/webrelay-10-x-wr-10r12-i/webrelay-10-x-wr-10r12-i_user-manual_3845233097.webp)
WebRelay-10 Users Manual
Appendix G: BASIC Scripts
'Status email sent to addresses listed under Network tab.
...or...
EMAIL relay2 'Sends state change message to emails setup in Relays tab.
...or...
EMAIL input1 'Input state change message to emails setup in Input tab.
...or...
EMAIL temp2
'Temp alarm message sent to recipients in the Sensors tab.
END
The END statement ends the main body of code.
CALL
The CALL statement is found within the main body of code, but requires the interpreter to skip to a
subroutine found at the end of the program. After the subroutine is finished, the interpreter returns to the
line immediately following the CALL statement. The format is:
CALL (name of subroutine)
SUB, END SUB
The SUB statement defines the beginning and name of a subroutine. The END SUB statement defines
the end of the respective subroutine. Subroutine names can be up to 20 characters long and are case
sensitive. The SUB and END SUB statements always must follow the END statement. The format is:
END
'*** Subroutines Go Here ***
SUB (name of subroutine)
(contents of subroutine)
END SUB
SUB (name of subroutine)
(contents of subroutine)
END SUB
REM or '
The REM or apostrophe ( ' ) statement designates remarks made by the programmer. The interpreter
will disregard any characters on the line following these statements.
The PRINT statement relays a variable or message to the display. The PRINT statement is only
available for the PC version of the BASIC interpreter. The device will not recognize the command since it
does not have an operator display. The format is:
PRINT (variable)
'relay variable value to screen
PRINT "(message)"
'relay '(message)' to screen
User-Defined Variables
Two types of variables are available for use in the ControlByWeb™ BASIC interpreter, user-defined
variables, and predefined variables.
Up to 10 user-defined variables are allowed to be used in scripts. Variables are represented by single,
lower-case characters ranging from the letter 'a' to the letter 'j'. They are always global and stored
internally as floating point numbers. Variables are defined using the LET statement.
Examples:
Xytronix Research & Design, Inc.
page 97
Содержание WebRelay-10 X-WR-10R12-I
Страница 1: ...WebRelay 10 Title Page Goes Here...