25 UP-PN-
II
v0.8
•
ESC ' m n
1
n
2
.. n
m-1
n
m
(1B 27 Hex=27 39 Dec)
Printing graphic curves.
This command allows for easy printing of curves along the
paper (vertically).
- The m value represents the number of curves (points) to be
printed for the current graphic line, and must be included
beetween 1 and the maximum number of printable points per
line (240).
- The n
1
.. n
m
values represent the position of these m curves;
the number of points (n
1
.. n
m
) must be equal to m.
Each point must be included between 1 and the maximum number of
printable points per line (240), otherwise it will not be printed.
As horizontal lines printing progresses, the vertical curves will show on the
paper. The vertical lengthening (ESC 'w' n) act on the graphic curves..
Example: Basic software to print 4 curves and a central axis.
y = 72 + e-0,1x
y = 72 - e-0,1x
y = 72 + e-0,1x * sin (x/10)
y = 72 + e-0,1x * sin (x/10)
y = 72
10 OPEN "COM1:9600, N, 8, 1, CS60000, DS, CD" AS #1
20 FOR X=0 TO 200
30 PRINT #1, CHR$(27); CHR$(39); CHR$(5);
40 Y=INT(72*EXP(-.01*X)): YY=INT(Y*SIN(X/10))
50 PRINT #1, CHR$(72-YY);
60 PRINT #1, CHR$(72-Y);
70 PRINT #1, CHR$(72);
80 PRINT #1, CHR$(72+Y);
90 PRINT #1, CHR$(72+YY);
100 NEXT X
110 CLOSE #1
120 END
each dot is then printed on 1 column, 2 columns or 4 columns. This menu can
adapt the small graphic to the paper width.
For new application, we suggest to not use the zoom to keep the best
resolution.
•
ESC * m n
1
n
2
x
1
...x
(n1+256xn2)
(1B 4B ... Hex = 27 75 ... Dec)
Bit-image graphic printing
This ESC/P graphic printing command is similar to the previous ones with an
additional parameter m which selects the graphic mode between 8, 24 or 48
dots by column. Only the 8 dots by columns is implemented, so the range for
m character must be 0 to 3.
Other modes are NOT supported and a warning message "ESC * <###>
Unknow graphic mode !" will be printed in replacement of the graphic.
.