Samsung SRP-275CEPG Operation Manual - Page 42

ESC &amp

Page 42 highlights

CHAPTER 5 CONTROL COMMANDS LIST [Notes] - Functions for each bit can also be executed by the following commands: - Bit 0 (character font): ESC M - Bit 3 (Emphasized mode): ESC E - Bit 7 (underline mode): ESC - When some characters in a line are double-height, all characters on the line are aligned at the baseline. When double-width mode is turned on, the characters are enlarged to the right, based on the left side of the character. When both double-height and double-width modes are turned on, quadruple size characters are printed. The character is enlarged in the paper feed direction when double-height mode is selected, and it is enlarged perpendicular to the paper feed direction when double-width mode is selected. The underline thickness is that specified by ESC -, regardless of the character size. The underline is the same color as the printed character. The printer cannot underline the space set by HT. ESC % [Name] Select/cancel user-defined character set [Format] ASCII ESC % n Hex 1B 25 n Decimal 27 37 n [Range] 0 ≤ n ≤ 255 [Default] n = 0 [Description] Selects or cancels the user-defined character set. - When the LSB of n is 0, the user-defined character set is canceled. - When the LSB of n is 1, the user-defined character set is selected. [Notes] When the user-defined character set is canceled, the resident character set is automatically selected. Settings of this command are effective until ESC @ is executed, the printer is reset, or the power is turned off. 5-14 ESC & [Name] Define user-defined characters [Format] ASCII ESC & y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)] Hex 1B 26 y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)] Decimal 27 38 y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)] [Range] y = 2 32 ≤ c1 ≤ c2 ≤ 126 0 ≤ x ≤ 12 (Font A (9 x 9)) 0 ≤ x ≤ 10 (Font B (7 x 9)) 0 ≤ d ≤ 255 k = c2 - c1 + 1 [Default] None [Description] Defines user-defined characters from character code check c1 to c2. - y specifies the number of bytes in the vertical direction. - x specifies the number of dots in the horizontal direction. - d is the dot data for the user-defined characters. [Notes] Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined. Data (d) specifies a bit printed to 1 and not printed to 0. The dot pattern is in the horizontal direction from the left side. Any remaining dots on the right side are blank. The data to define a user-defined character is (y x x) bytes. When the value of y, c1, c2, or x is out of the range, this command is canceled, and the following data is processed as normal data. This command can define user-defined characters for each font independently. To select a font, use ESC ! or ESC M. Once the user-defined characters have been defined, they are available until ESC ? or ESC @ is executed; the user-defined characters are redefined; the power is turned off; or the printer is reset. The user-defined characters are not defined at the default, and the resident characters are printed. The relationship between the definition data and printing result is as follows. Example: Downloaded character definition consists of 9 x 7 dots. MSB d1 d3 d5 d7 d9 d11 d13 LSB MSB d2 d4 d6 d8 d10 d12 d14 LSB 5-15

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110

5-15
5-14
ESC &
[Name]
Define user-defined characters
[Format]
ASCII
ESC
&
y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)]
Hex
1B
26
y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)]
Decimal
27
38
y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)]
[Range]
y = 2
32
c1
c2
126
0
x
12 (Font A (9 x 9))
0
x
10 (Font B (7 x 9))
0
d
255
k = c2 - c1 + 1
[Default]
None
[Description]
Defines user-defined characters from character code check c1 to c2.
-
y specifies the number of bytes in the vertical direction.
-
x specifies the number of dots in the horizontal direction.
-
d is the dot data for the user-defined characters.
[Notes]
Character codes from the alphanumeric characters (20H (decimal 32) to
7EH (decimal 126)) can be defined.
Data (d) specifies a bit printed to 1 and not printed to 0. The dot pattern is in
the horizontal direction from the left side. Any remaining dots on the right
side are blank.
The data to define a user-defined character is (y x x) bytes.
When the value of y, c1, c2, or x is out of the range, this command is
canceled, and the following data is processed as normal data.
This command can define user-defined characters for each font
independently. To select a font, use ESC ! or ESC M.
Once the user-defined characters have been defined, they are available until
ESC ? or ESC @ is executed; the user-defined characters are redefined;
the power is turned off; or the printer is reset.
The user-defined characters are not defined at the default, and the resident
characters are printed.
The relationship between the definition data and printing result is as follows.
Example: Downloaded character definition consists of 9 x 7 dots.
ESC %
[Name]
Select/cancel user-defined character set
[Format]
ASCII
ESC
%
n
Hex
1B
25
n
Decimal
27
37
n
[Range]
0
n
255
[Default]
n = 0
[Description]
Selects or cancels the user-defined character set.
-
When the LSB of n is 0, the user-defined character set is canceled.
-
When the LSB of n is 1, the user-defined character set is selected.
[Notes]
When the user-defined character set is canceled, the resident character
set is automatically selected.
Settings of this command are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
[Notes]
Functions for each bit can also be executed by the following commands:
- Bit 0 (character font): ESC M
- Bit 3 (Emphasized mode): ESC E
- Bit 7 (underline mode): ESC —
-
When some characters in a line are double-height, all characters on the line
are aligned at the baseline.
When double-width mode is turned on, the characters are enlarged to the
right, based on the left side of the character.
When both double-height and double-width modes are turned on,
quadruple size characters are printed.
The character is enlarged in the paper feed direction when double-height
mode is selected, and it is enlarged perpendicular to the paper feed direction
when double-width mode is selected.
The underline thickness is that specified by ESC —, regardless of the
character size. The underline is the same color as the printed character.
The printer cannot underline the space set by HT.
d1
d2
d3
d4
d5
d6
d7
d8
d9
d10
d11
d12
d13
d14
MSB
LSB
MSB
LSB
CONTROL COMMANDS LIST
CHAPTER 5