Olivetti 900X Operating Instructions Manual page 64

Electronic typewriter
Table of Contents

Advertisement

Sample Printing
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 f rom
the computer until the DC 1 code i s sent to the p r i nter.
Sample Program and Sample Printing Refer to item 4) Device control 1.
4) Device control 1 (DC 1)
LPRINT CHR$(17) ; or LPRINT CHR$(& H11);
Format
Funct ion • This code enables the pr inter to receive data from the computer
after the printer has been disabled by the DC 3 code.
Sample Program
REM
D e v i c e Con t r o l 3
1 0 0
1 1 0
LPRINT
CHR $ ( 2 7 ) ; CHR$ ( 2 6 ) ; " I " ; : REM RESET
REM
DC 3
1 2 0
(
1 3 0
LPRINT CHR$
1 9 )
1 4 0
LPRINT
" G e o rg e " ;
REM
D C 1
1 5 0
LPRINT CHR$ ( 1 7 ) ;
1 6 0
1 7 0
LPRINT
" 3 2 1 - 6 5 4 - 5 14 8 " ;
Sample Print ing
5) Escape (ESC)
Format •
LPRINT CHR$(2 7); or LPRINT C H R$(& H1 B) ;
Function · This code is used to prepare the printer to receive control codes
(escape sequences).
6) Print suppression (ESC 7)
Format •
LPR I NT CHR$(27) ; " 7" , or LPRINT CHR$(& H1 B); " 7" ;
Function • Thi s 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
1 3 0 LPRINT
1 4 0 LPRINT
1 5 0 LPRINT " P r i n t M o d e "
Sample Print i ng
B e l l
and D e v i c e
( DC 3 )
;
3 2 1 - 6 5 4 - 5 1 48
P r i n t S up p r e s s i on ( E S C 7 )
(
(
CHR $
2 7 ) ; CHR$
2 6 ) ; " I " ; : REM RESET
" P r in t M o d e " ;
CHR$ ( 2 7 ) ; " 7 " ; " P r i n t S u p p r e s s i on" ;
CHR$ ( 1 3 ) ;
P r in t M o d e
P r i n t M o d e
( D C 1 )
Contro l 1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents