
Sample Printing
B e l l
3) Device control 3 (DC 3)
Format • LPRINT CHR$(19); or LPRINT CHR$(&H13);
Funct ion • When this code is sent to the printer, it cannot receive data from
the computer until the DC 1 code is sent to the printer.
Sample Program and Sample Printing Refer to item 4) Device control 1.
4) Device control 1 (DC 1)
1 0 0
110
1 20
1 3 0
140
150
160
170
Format
LPRINT CHR$(17); or LPRINT CHR$(&H11);
Function • This code enables the printer to receive data from the computer
after the printer has been disabled by the DC 3 code.
Sample Program
REM
Device Contro l 3
(DC 3 )
and Device
Contro l 1
(DC 1 )
LPRINT
CHR$ ( 27 ) ; CHR$ ( 2 6 ) ; "I " ; : REM RESET
REM
DC 3
LPRINT CHR$
(
19 )
;
LPRINT
"George" ;
REM
DC 1
LPRINT CHR$ ( 1 7 ) ;
LPRINT
" 3 2 1 -654-5148" ;
Sample Print ing
3 2 1- 6 54- 5 148
5) Escape (ESC)
Format • LPRINT CHR$(27); or LPRINT CH R$(& H1 B);
Function · This code is used to prepare the printer to receive control codes
(escape sequences).
6) Print suppression (ESC 7)
Format • LPRINT CHR$(27) ; " 7" , or LPRINT CHR$(&H1 B); " 7" ;
Function • This code replaces all characters with a space. Escape
sequence codes and other control codes are not affected by this
code.
This mode is cancelled by a CR code.
Sample Program
1 0 0 REM
1 1 0 LPRINT
1 2 0 LPRINT
130 LPRINT
140 LPRINT
Print S uppre s s ion (ESC 7 )
CHR$
(
2 7 ) ; CHR$
(
2 6 ) ; " I" ; : REM RESET
"Print Mode" ;
CHR$ ( 2 7 ) ; " 7" ; "Print Suppre s s ion" ;
CHR$ ( 1 3 ) ;
1 5 0 LPRINT "Print Mode"
Sample Printing
P r int Mode
Print Mode