Epson TM-U220 TM-U220 Technical Reference Guide - Page 97

ESC/POS command

Page 97 highlights

TM-U220 Technical Reference Guide The available NVRAM size for the TM-U220 is 128KB. 5.4.2.2 LetterQuality It is possible to change the speed and quality of a bitmap by using the XXXLetterQuality property. RecLetterQuality = TRUE 'print Receipt's bitmap in quality mode. RecLetterQuality = FALSE 'print Receipt's bitmap in speed mode. 5.4.2.3 Setting of printing position by escape sequence POS Printers support escape sequences that can be treated as printing data. The following commands are the escape sequence command for setting of printing position. Name Center Right justify Normal Data ESC |cA ESC |rA ESC |N Remarks Aligns following text in the center. Aligns following text at the right. Restores printer characteristics to normal condition. Note1: manner of "ESC |cA" and "ESC |rA" Characteristics are reset at the end of each print method or by a "Normal" sequence, so these escape sequences cannot be used in the following manner. OPOSPOSPrinter1.PrintNormal PTR_S_RECEIPT, Chr(&H1B) + "|cA" + "123" OPOSPOSPrinter1.PrintNormal PTR_S_RECEIPT, "456" + Chr(13) + Chr(10) The "123" characters will be printed in the center, but not under "456". When using a new method to print characters, it is necessary to add the desired escape sequence again. Note2 : limitation of "ESC |cA" and "ESC |rA" *During rotated printing mode (Left90, right90), these escape sequences will not work. *These will not work if they are not the first character of a line. *It is not possible to use these on PrintBitmap method. 5.4.2.4 Printable bitmap format in OPOS The printable bitmap formats are formats that meet all the following conditions. ❏ BMP files ❏ Monochrome, 16-color (4 bit), 256-color (8 bit) ❏ Uncompressed 5.4.3 ESC/POS command See "ESC/POS Application Programming Guide" about the method. Rev. H Application Development Information 5-9

  • 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
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154

Rev. H
Application Development Information
5-9
TM-U220 Technical Reference Guide
The available NVRAM size for the TM-U220 is 128KB.
5.4.2.2
LetterQuality
It is possible to change the speed and quality of a bitmap by using the XXXLetterQuality
property.
RecLetterQuality = TRUE ‘print Receipt’s bitmap in quality mode.
RecLetterQuality = FALSE ‘print Receipt’s bitmap in speed mode.
5.4.2.3
Setting of printing position by escape sequence
POS Printers support escape sequences that can be treated as printing data. The following
commands are the escape sequence command for setting of printing position.
Note1: manner of ”ESC |cA” and “ESC |rA”
Characteristics are reset at the end of each print method or by a “Normal” sequence, so these escape
sequences cannot be used in the following manner.
OPOSPOSPrinter1.PrintNormal PTR_S_RECEIPT, Chr(&H1B) + ”|cA” + ”123”
OPOSPOSPrinter1.PrintNormal PTR_S_RECEIPT, “456” + Chr(13) + Chr(10)
The “123” characters will be printed in the center, but not under “456”. When using a new method to
print characters, it is necessary to add the desired escape sequence again.
Note2 : limitation of ”ESC |cA” and “ESC |rA”
*During rotated printing mode (Left90, right90), these escape sequences will not work.
*These will not work if they are not the first character of a line.
*It is not possible to use these on PrintBitmap method.
5.4.2.4
Printable bitmap format in OPOS
The printable bitmap formats are formats that meet all the following conditions.
BMP files
Monochrome, 16-color (4 bit), 256-color (8 bit)
Uncompressed
5.4.3
ESC/POS command
See “ESC/POS Application Programming Guide“ about the method.
Name
Data
Remarks
Center
ESC |cA
Aligns following text in the center.
Right justify
ESC |rA
Aligns following text at the right.
Normal
ESC |N
Restores printer characteristics to
normal condition.