23-12 XL-BASIC Programming Guide
XL™ SERIES
--- Com Port Commands —
OPENCOM1
Turn on the RS232 drivers for com port 1, initialize I/O buffers
making it available for the ‘print’ and ‘input’ commands.
CLOSECOM1
Turn off the RS232 drivers for com port 1.
FLUSHCOM1
Clear out the input buffer for Com 1.
OPENCOM2
Turn on the RS232 drivers for com port 2 and enable it to work
with the print2 command.
CLOSECOM2
Turn off the RS232 drivers for com port 2.
FLUSHCOM2
Clear out the input buffer for Com 2.
OPENCOM3
Turn on the RS232 drivers for com port 3 and enable it to work
with the print3 command.
CLOSECOM3
Turn off the RS232 drivers for com port 3.
FLUSHCOM3
Clear out the input buffer for Com 3.
Print text or data to the standard output which is com port 1. Any text listed
between quotes will be sent directly to the serial port.
Example:
print “this is a test”
This sends the test message out the serial port and terminates the message with a
carriage return and a line feed. To suppress the carriage return and line feed use a
comma ‘,’ at the end of the message.
Example:
print “this is a test”,
Data may also be printed on the same line using the comma ‘,’or the semicolon ‘;’
as follows:
Example:
print “stage = “,stage
rem line 1
print “stage = “,stage,” temp = “,PtTemp
rem line 2
print “stage = “;stage,” temp = “,PtTemp,
rem line 3
The first line is terminated with the carriage return line feed. This is because there
is no comma or semicolon formatting character after the variable stage.
In the second example the two data values are separate based on the spaces inside
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 ...