Appendix G: BASIC Scripts
Example:
Do
If extvar1 = 1 Then
Let relay1 = 1
Else
Let relay1 = 0
End If
Loop
End
Extvar1 can be set and cleared by entering the following requests into a web browser or by configuring
on and off buttons to appear on the Control Page for extvar0:
http://192.168.1.2/state.xml?extvar1=1
http://192.168.1.2/state.xml?extvar1=0
Testing and Debugging
A copy of the BASIC interpreter for Windows is also available on our website for the use of testing and
debugging. The WebRelay-10 will only acknowledge errors as it runs. This means that if a path of the
script is not encountered, errors may still exist. The Windows version of the interpreter, however, will
check for errors before the script is run.
The PRINT function is available for use with the Windows version of the BASIC interpreter. The
interpreter on the device, however, will not recognize this command.
Note: The script will be restarted by submitting any of the setup pages or by power cycling the unit.
page 100
WebRelay-10 Users Manual
Xytronix Research & Design, Inc.
Need help?
Do you have a question about the WebRelay-10 X-WR-10R12-I and is the answer not in the manual?
Questions and answers