23-2 XL-BASIC Programming Guide
XL™ SERIES
program includes all commands, comments, remarks, and spacing. If the size of the file becomes
too big then cut down on the remarks or the spacing, or break the tasks into two separate
programs.
Variables:
Since the system is limited on RAM, and to keep the operation of the BASIC programming
simple, only predefined variables will be used. All variables types will be double precision
floating point variables. All standard system variables will be accessible to the XL-BASIC
interpreter plus some generic variables used only by the XL-BASIC interpreter system. In the
program the variables may be upper or lower case, here they are shown in lower case.
Main BASIC Program Variables:
Variable
Name
Type
Description
basic1
basic2
basic3
basic4
basic5
Read / Write
These variables are used to return values from Basic program 1
to 5 to the menu option calling the BASIC program. These
variables are initialized to 0.0 when scanning is enabled, and
will retain any modifications between scans. On return the value
will depend on the users BASIC program.
The basicx Variable:
This is not a separate variable but is actually an indirect link to one of the normal basic variables,
1 to 5. A program can return a value using the variable associated to the location number where
the basic program is loaded. For example a program loaded into basic program location 1 must
use the variable basic1 as the return variable. Now a program can use the name basicx as the
return variable which allows the program to be loaded in any program location. If loaded into
program location three, then when the program updates the basicx variable it is actually updating
the variable basic3.
General Purpose Variables:
Variable
Name
Type
Description
a to z
Read / Write
26 General purpose variables initialized to 0.0 when scanning is
enabled. Any value changes will be retained between program
execution and between scans
Summary of Contents for H-350XL
Page 1: ...XL Series Models H 350XL H 500XL H 510XL H 522 H 522 Plus Owner s Manual ...
Page 30: ...2 16 Hardware Options and Installation XL Series ...
Page 42: ...3 12 Using The Built In Keypad Display XL Series ...
Page 46: ...4 4 PC Menu Interface Operation XL Series ...
Page 58: ...5 12 Miscellaneous System Setup XL Series ...
Page 66: ...6 8 Serial Port Options XL Series ...
Page 74: ...7 8 System Configuration Files XL Series ...
Page 84: ...8 10 System Status Menus Options XL Series ...
Page 88: ...9 4 Scanning Options XL Series ...
Page 156: ...15 12 Logging Options XL Series ...
Page 198: ...16 42 Operation with the GOES Radio XL Series ...
Page 216: ...19 6 Alarm Call Out XL Series ...
Page 234: ...21 8 Operation with the H 355 Smart Gas System XL Series ...
Page 246: ...22 12 Functions XL Series ...