Line Thermal Printer DEP-50
34
35
User’s Manual
ESC $ n1 n2
Specifying the Absolute Positions
[Code]
[1Bh] + [24h] + n1 + n2
[Range]
{0 <= n1 <= FFh}
{0 <= n2 <= 2}
{0 <= n1+n2*256 <= 384}
[Outline]
The printing start position is specified in the number of dots
(1/203 inch unit) from the beginning of line.
•
The number of dots is divided by 256, whose quotient is taken as
n2 and the residual as n1.
•
Therefore, the printing start position is equal to n1 + n2 x 256 from
the beginning of line.
[Caution]
•
Specifying beyond the line end is ignored.
[Default]
•
The initial value is not specified.
[See Also]
ESC \
[Sample Program]
LPRINT CHR$ (&H1B) + “$”;
LPRINT CHR$ (0) + CHR$ (0) + “A”;
LPRINT CHR$ (&H1B) + “$”;
LPRINT CHR$ (50) + CHR$ (0) + “B”;
LPRINT CHR$ (&H1B) + “$”;
LPRINT CHR$ (0) + CHR$ (1) + “C”;
LPRINT CHR$ (&HA);
LPRINT CHR$ (&H1B) + “$”;
LPRINT CHR$ (100) + CHR$ (0) + “A”;
LPRINT CHR$ (&H1B) + “¥”;
LPRINT CHR$ (&HC2) + CHR$ (&HFF) + “B”;
LPRINT CHR$ (&HA);
[Print Results]
ESC % n
Select/cancel user defined characters
[Code]
[1Bh] + [25h] + n
• Only bit 0 of n is defined
Value 0: Selected
Value 1: Not selected
[See also]
ESC &
ESC & s n1 n2 [a [d] s x a] k
ESC & m n1 n2 [ d ] k
Define user characters
There are two different types of this command selected by switch 5’s position.
If switch 5 is
OFF
:
[Code]
[1Bh] + [26h] + s + n + m + [a
1
+ D
1
] + … + [ a
m-n+1
+D
m-n+1
]
[Range]
{ s = 3 }
{ 20h <= n <= FFh }
{ n <= m <= FFh }
{ 0 <= a <= 12 }
{ 0 <= D
i
<= FFh}
[Outline]
Defines a group of downloaded characters where:
„
s
“ is the number of bytes in vertical direction – always three.
„
n
“ indicates the start character code and „m“ indicates the end
character code. To define only one character set n=m.
„
a
“ is the number of dots in horizontal direction.
„
D
i
“ is the data to be defined. The number of data for each symbol is
s x a. Each symbol defines with three bytes of data in vertical
direction followed by the next three bytes that define the next
one-dot column, etc.
The downloaded font is cleared by ESC @ and ESC _ commands
and when the printer is switched off.
[Default]
The default downloaded font is equal to the default character set.
However the downloaded font is not reset when the code page is
chaged, thus it remains the same as the previous code page.