
Commands - 100
PRINT$
Statement
SYNTAX: PRINT [#n,] $ character [,character]...
PR [#n,] $ character [,character]...
PURPOSE: Used to send any char acter fr om 0 to 255 out a serial port.
REMARK S: The statement is often used to send escape sequences to printers, displays, etc. It is the same as
PRINT CHR$(n);CHR$(n);CHR$(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 DISPLAY 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$ may
not exceed 24.
RELATED: PRINT,PRINT USING
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
Comentarios a estos manuales