
1 DATECS
EP-50
72
73
User’s Manual
58. GS / m
Printing the downloaded bit image
[Code]
[1Dh] + [2Fh] + m
[Range]
{0 <= m <= 3}
[Outline]
Prints download bit image in a mode specified by m.
If switch 5 is ON:
[Code]
[1Dh] + [2Ah] + n1 + n2 { + n21 + n22 } + D
1
+ … + D
N
[Range]
{0 <= n1 <= 7Fh}
{0 <= n2 <= F8h}
{0 <= D
i
<= FFh}
{1 <= n21+256*n22 <= 544}
[Outline]
If n2 is 0 two more bytes are read. These two bytes then determine
the vertical size of the bit image. The vertical size then is
N= n21+256*n22 rows.
If N is the vertical size of the bit image, N=n2 or N= n21+256*n22.
D
i
is the bit image’s data. The number of data bytes is n1*N.
There are n1 bytes in the first row then n1 bytes in the second, etc.
There are N rows in the bit image, and the number of dots in the bit
image is n1*N*8. Each data bit defines one dot, value of “1”
corresponds to black.
If n1 is 0 the downloaded bit image is cleared.
The downloaded bit image remains effective even if the printer is
switched off.
[See Also] GS /
[Sample Program]
GOSUB IMG
LPRINT CHR$ (&H1D) + “/” + CHR$ (0);
LPRINT CHR$ (&H1D) + “/” + CHR$ (1);
LPRINT CHR$ (&H1D) + “/” + CHR$ (2);
LPRINT CHR$ (&H1D) + “/” + CHR$ (3);
END
IMG:
n 1 = 10 : n 2= 5
LPRINT CHR$ (&H1D) + “*”;
LPRINT CHR$ (n1) + CHR$ (n2);
FOR J=1 TO n1*8
FOR I=1 TO n2
LPRINT CHR$ (J);
NEXT I
NEXT J
RETURN
[Print Results]
Normal Mode
Double Width Mode
Double Height Mode
Quadruple Mode
m
Mode Name
Dots in Vertical
Dots in Horizontal
Direction
Direction
0
Normal mode
203 DPI
203 DPI
1
Double wide mode
203 DPI
101 DPI
2
Double high mode
101 DPI
203 DPI
3
DW / DH mode
101 DPI
101 DPI
[Caution]
•
When data exist inside the print buffer, this command is ignored.
•
When a download bit image has not been defined, this command is
ignored.
•
A portion of a download bit image exceeding one line length is not
printed.
[Default]
•
The initial value is not specified.
[See Also] GS *
59. GS :
Starting / Ending Macro Definition
[Code]
[1Dh] + [3Ah]
[Outline]
Specifying starting / ending macro definition. Means termination when
received while defining a macro.
[Caution]
Maximum content available for macro definition is 3823 bytes.
A portion exceeding 3823 bytes is not defined.
•
Even with ESC @ (initialization of the printer) having been executed,
defined content is not cleared. Therefore, it is possible to include
ESC @ into the content of macro definition.
•
Normal printing operation is carried out even while in macro definition
[Default]
•
Initially, Macro is not specified.
[See Also] GS ^