Olivetti 900X Operating Instructions Manual page 62

Electronic typewriter
Table of Contents

Advertisement

Sam ple Program
1 0 0
REM
1 1 0
LPRINT
1 2 0
REM
1 3 0
LPRINT
1 4 0
LPRINT
1 5 0
LPRINT
1 6 0
END
1 7 0 LPRINT
1 8 0 REM
1 9 0
LPRINT
2 0 0
RETURN
Sam ple P rinting
11.8.5 Paper Feed Commands
1) Line feed ( LF)
LPRlNT CH R$(1 O); or LPRlNT CH R$(& H A) ;
Format •
Fun ction
The L F code p rints
paper one l ine. (The line- feed pitch is set with ESC RS n. )
Sam ple Program
1 0 0
REM
1 1 0 LPRINT
LPRINT
1 2 0
1 3 0
REM
1 40
LPRINT
1 5 0
LPRINT CHR$ ( 1 0 ) ;
1 6 0
LPRINT
1 7 0
END
Sam ple Printing
2 ) Form feed (FF)
Format .
L P Rl NT CH R$(12); or L P Rl NT CH R$(&HC);
Funct ion • This FF code prints all data i n the p rinter buffer and feeds the
paper t o the top of the next page Th,e top of the current page is
automatically set when the typew r i te r is turned on or reset, or
when the page length is set with ESC FF n.
Sam ple Program
1 0 0
REM
1 1 0
LPRINT
1 2 0
REM
1 3 0
LPRINT
LPRINT
1 40
1 5 0
LPRINT
1 6 0
REM
1 7 0
LPRINT
1 8 0
LPRINT
1
1
Nega t ive 1 / 2 L i ne F e e d ( E S C D )
CHR$ ( 2 7 ) ; CHR$ ( 2 6 ) ; " I " ; : REM RESET
Nega t ive 1 / 2 L i ne F e e d
( X+Y ) " ; : G0SUB 1 7 0
1 1
"=X" ; :
G0SUB 1 7 0
"+2XY+Y" ; : G0SUB 1 7 0
C HR$ ( 2 7 ) ; "D" ;
2 " ;
1 1
1 / 2 L in e F e e d
CHR$ ( 2 7 ) ; "U" ;
2
2
2
( X+Y ) =X +2XY+Y
all
data i n the printer buffer and advances the
L ine F e e d
( L F )
CHR$ ( 2 7 ) ; CHR$ ( 2 6 ) ; " I " ; : REM
- - - - -'' ·
I I
L in e F e e d ( 5 - 1 ) / 4 8 i n c h
CHR$ ( 2 7 ) ; CHR$ ( 3 0 ) ; CH R$ ( 5 ) ;
- - - - - 1 / 1 2 i nch L i n e F e ed"
I I
- - - - - 1 / 1 2 i nch L i n e F e e d
F o rm
F e e d
( F F )
CHR$ ( 2 7 ) ; CHR$ ( 2 6 ) ;
S e t s
P a g e
L eng th
to
CHR$ ( 2 7 ) ; CHR$ ( 1 2 ) ; CHR$ ( 4 ) ;
.., , : .., ' : -k -; ' :
' '
T o p
o f
P a g e
1
.., • :-; ' :..., • :.., • :.., • :..., ' :-1:-,':..., ' :·· k · · k;':-k;'o':-; ' :--; ' :..., • :-; ' :-;':..., • :;':..., • :
1 1
F o rm
F e e d
CHR$ ( 1 2 ) ;
;'
' :
'
' :
;
-;
:-;
T o p
o f
P a g e
2
I f
,:
1 1
;
RESET
I
: REM
RESET
4
L in e s
1
.., • :,'c k ;':'
1 1
; ' : · · k; ':'i ' :
I t
56

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents