Samsung SRP-275CEPG Operation Manual - Page 45

ESC ?, ESC D

Page 45 highlights

CHAPTER 5 CONTROL COMMANDS LIST ESC ? [Name] Cancel user-defined characters [Format] ASCII ESC ? n Hex 1B 3F n Decimal 27 63 n [Range] 32 ≤ n ≤ 126 [Default] None [Description] Cancels the user-defined characters defined for the character code n. [Notes] After the user-defined characters are canceled, the resident character set is printed. This command can cancel user-defined characters for each font independently. To select a font, use ESC ! or ESC M. ESC @ [Name] Initialize printer [Format] ASCII ESC @ Hex 1B 40 Decimal 27 64 [Range] None [Default] None [Description] The data in the print buffer is cleared, and the printer mode(s) is reset to the mode that was in effect when the power was turned on. - Any macro definitions are not cleared. - Contents of user NV memory are not cleared. - NV bit image is not cleared. [Notes] The DIP switch settings are not checked again. The data in the receive buffer is not cleared. This command can cancel all the settings, such as print mode and line feed, at the same time. 5-20 ESC D [Name] Set horizontal tab positions [Format] ASCII ESC D n1 ... nk NUL Hex 1B 44 n1 ... nk 00 Decimal 27 68 n1 ... nk 0 [Range] 0 ≤ n ≤ 255 0 ≤ k ≤ 32 [Default] n = 8, 16, 24, 32, ... (Every eight characters for the default font set by ESC ! or ESC M) [Description] Sets a horizontal tab to n columns from the beginning of the line. k indicates the number of horizontal tab positions to be set. [Notes] The horizontal tab position is stored as a value of [character width x n] measured from the beginning of the line. The character width includes the right-side character spacing, and double-width characters are selected with twice the width of normal characters. The character width should be set before using this command. Settings of character fonts, space width, and enlargement affect the setting of character width. A maximum of 32 horizontal tab positions can be set. Data exceeding 32 horizontal tab positions is processed as normal data. This command cancels any previous horizontal tab settings. Transmit [n] k in ascending order and place a NUL code at the end. ESC D NUL cancels all horizontal tab positions. When [n] is less than or equal to the preceding value [n] k-1, horizontal tab setting is finished, and the following data is processed as normal data. k is not transmission data to the printer. Even if the character width is changed after setting the horizontal tab positions, the setting of the horizontal tab positions will not be changed. Horizontal tab position settings are effective until ESC @ is executed, the printer is reset, or the power is turned off. Print position can be changed by HT. When the left margin setting is changed, the horizontal tab position is also changed. 5-21

  • 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-20
ESC ?
[Name]
Cancel user-defined characters
[Format]
ASCII
ESC
?
n
Hex
1B
3F
n
Decimal
27
63
n
[Range]
32
n
126
[Default]
None
[Description]
Cancels the user-defined characters defined for the character code n.
[Notes]
After the user-defined characters are canceled, the resident character set
is printed.
This command can cancel user-defined characters for each font independently.
To select a font, use ESC ! or ESC M.
ESC @
[Name]
Initialize printer
[Format]
ASCII
ESC
@
Hex
1B
40
Decimal
27
64
[Range]
None
[Default]
None
[Description]
The data in the print buffer is cleared, and the printer mode(s) is reset to the
mode that was in effect when the power was turned on.
-
Any macro definitions are not cleared.
-
Contents of user NV memory are not cleared.
-
NV bit image is not cleared.
[Notes]
The DIP switch settings are not checked again.
The data in the receive buffer is not cleared.
This command can cancel all the settings, such as print mode and line feed,
at the same time.
5-21
ESC D
[Name]
Set horizontal tab positions
[Format]
ASCII
ESC
D
n1 ... nk NUL
Hex
1B
44
n1 ... nk 00
Decimal
27
68
n1 ... nk 0
[Range]
0
n
255
0
k
32
[Default]
n = 8, 16, 24, 32, ...
(Every eight characters for the default font set by ESC ! or ESC M)
[Description]
Sets a horizontal tab to n columns from the beginning of the line.
k indicates the number of horizontal tab positions to be set.
[Notes]
The horizontal tab position is stored as a value of [character width x n]
measured from the beginning of the line. The character width includes the
right-side character spacing, and double-width characters are selected with
twice the width of normal characters.
The character width should be set before using this command.
Settings of character fonts, space width, and enlargement affect the setting
of character width.
A maximum of 32 horizontal tab positions can be set. Data exceeding
32 horizontal tab positions is processed as normal data.
This command cancels any previous horizontal tab settings.
Transmit [n] k in ascending order and place a NUL code at the end.
ESC D NUL cancels all horizontal tab positions.
When [n] is less than or equal to the preceding value [n] k-1, horizontal tab
setting is finished, and the following data is processed as normal data.
k is not transmission data to the printer.
Even if the character width is changed after setting the horizontal tab
positions, the setting of the horizontal tab positions will not be changed.
Horizontal tab position settings are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
Print position can be changed by HT.
When the left margin setting is changed, the horizontal tab position is also
changed.
CONTROL COMMANDS LIST
CHAPTER 5