User`s manual
1 DATECS EP-50
36 37
User’s Manual
If switch 5 is ON:
[Code] [1Bh] + [26h] + a + n1 + n2 + D1
1
+ … + D
(m-n+1)k
[Range] { m = 0-3 Subcommand}
{20h <= n1 <= FFh }
{n1 <= n2 <= FFh }
{k = (n2-n1+1)*48 for m=2 and k = (n2-n1+1)*16 for m=3 }
[Outline] Defines a group of user characters.
m=0: Copy internal character set A to user character set A
(Parameters n1, n2 and d are omitted)
m=1: Copy internal character set B to user character set B
(Parameters n1, n2 and d are omitted)
m=2: Define character group with ASCII codes between >=n1 and
<=n2 for character set A (12×24). Every character is 48 bytes,
two bytes for each line. Only the first nibble of the second
byte is used.
m=3: Define character group with ASCII codes between >=n1 and
<=n2 for character set B (9×16). Every character is 16 bytes.
n1 is the ASCII code of the first and n2 is the ASCII code of the last
of (n2-n1+1) consecutive symbols. To define a single symbol n1=n2.
d is the data that defines the symbols. Every Font A symbol consists
of 48 bytes while every Font B symbol consists of 16 bytes.
A Font A symbol is defined left to right, top to bottom, two bytes for
each horizontal line, as only the four most significant bits of the
second byte are used. Every bit denotes one dot. A bit set to ‘1’
means black dot. The most significant bit is the starting.
Every horizontal line of Font B symbol consists of one byte, as the
ninth point is always white. The most significant bit is the starting.
The user-defined characters are kept after printer off.
[See Also] ESC %
11. ESC ! n
Collective Specifying Printing Mode
[Code] [1Bh] + [21h] + n
[Range] {0 <= n <= FFh}
[Outline] Printing mode is assigned. Each n bit indicates the following:
9. 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 &
10. 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.