Auxiliary Operations
XW-210 WiFi™ Users Manual
The EMAIL statement causes the device to send an email of the same format as that generated by other
status change and alarm conditions. The event that triggered the email is given, followed by the I/O or
Sensor that you want to email. The format is:
EMAIL (feature state – relay1, input1, tempX) 'X represents the feature number such as temp2
Examples:
'Status email sent to addresses listed under Network tab.
...or...
EMAIL relay1 'Sends state change message to emails setup in I/O tab.
...or...
EMAIL input1 'Input state change message to emails setup in I/O 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 displays 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) 'show variable value to screen
PRINT "(message)"
'show '(message)' to screen
Page 78
Xytronix Research & Design, Inc.
Содержание WebRelay Wireless XW-210I
Страница 1: ......