Print – Remote Processing CAMBASIC User Manual
Page 133

Comm ands - 100
PRINT$
Statement
SYNTAX:
PRINT [#n, ] $ character [, character] . . .
PR [#n, ] $ character [, character] . . .
PURPOSE:
Used to se nd any char acter fr om 0 to 255 out a serial p ort.
REMARK S:
The statemen t is often used to send escape sequences to pr inters, displays, etc. It is the same as
P R I NT C H R $( n) ; C H R$ (n ); C H R $ (n ); . . .
n = valid port number. Port number s are 1 and 2 for serial; 9 for V F display; 10 for LC D display.
LCD and VF displays must be configured using the CONFIG D ISPLAY comm and before use.
The valid character values are:
number
prints numbers as a character
"string"
print the string constant within the quotes. You cannot use string
variables.
NOTE: Due to compiler limitations, the number of numeric parameters following the PRINT$ m ay
not exceed 24.
RELATED:
P R I N T , P R IN T U S IN G
EXAMPLE:
10 PRINT$ 27,71,33,"END"
replaces
10 PRINT CHR$(27) ; CHR$(71) ; CHR$(33) ; "END"
10 PRINT #2,$
27,72, 33
Prints to COM 2 port
ERROR:
< Data negative> – for character
< Data > 255> – for character
< Data out of range> – if n is not a valid serial port number