29
The BASIC programs for this example are as
below:
LPRINT
CHR$ (27); “W”; CHR$ (4);
’Enlarge the width and height 4 times
LPRINT
CHR$ (27); “K”; CHR$ (15); CHR$ (0);
’ESC
K
command LPRINT
CHR$ (&H7C);
CHR$
(&H44);
CHR$
(&H44);
CHR$
(&HFF);
LPRINT
CHR$ (&H44); CHR$ (&H44); CHR$ (&H7C); CHR$ (&H0);
LPRINT
CHR$
(&H41);
CHR$
(&H62);
CHR$
(&H54);
CHR$ (&HC8); LPRINT
CHR$
(&H54);
CHR$ (&H62); CHR$ (&H41);
LPRINT CHR$(10); CHR$ (&H13);
‘enter to print text
The print result is as following:
ESC ’
Print Curve I
Format: ASCII
:
ESC
‘
mL mH n1L n1H n2L n2H……nIL nIH CR
Decimal:
27 39
mL mH n1L
n1H n2L n2H……nIL nIh 13
Hexadecimal:
1B
27 mL
mH n1L
n1H
n2L
n2H……nIL nIh
OD
Explanation:
This command is used to print curve along the paper-feeding direction. The value of
m is the number of curves to be printed, m=0~255.
There are m dots of curve in one horizontal line. n1L n1H n2L n2H……nIL nIH
presents the positions of these m curves. The numbers of nIL or nIH should equal to
m. Each dot should be within the largest dots numbers of printer. The last CR
(“enter”) is used to print out this dot line. The whole m curves are printed out through
each dot line by n1L n1H n2L n2H……nIL nIH data.
Remark: The dot whose position is beyond the paper width won’t be printed out.
This command is valid no matter there is OD or not.
Содержание SP-RMD12
Страница 39: ...37 n 2 Off line status n 3 Error status n 4 paper feeding status...
Страница 47: ...45 Characters Set 2...
Страница 48: ...46...