Issuing Receipts with Barcodes
Print Sample
shows the paper cut position.
|
Programming Example
'// ============================================================================ '// Issuing receipts with barcodes '// ============================================================================ '// --- Initial setting --->>> '// Initialize printer ESC "@" '// Set horizontal tab positions: 35th column ESC "D" 35 0 '// Set horizontal and vertical motion units: Horizontal motion unit = 0.141 mm '// (1/180 inch), vertical motion unit = 0.141 mm (1/180 inch) GS "P" 180 180 '// Set graphics data: [Function 83] Define the download graphics data '// (raster format) '// Define data that is 30*8 dots wide and 40 dots high with respect to key code '// "A1" '// GS ( L pL pH m fn a kc1/Kc2 b xL xH yL yH c GS "(L" 187 4 48 83 48 "A1" 1 240 0 40 0 49 '// 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 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x18 0x00 0x60 0x1F 0xE0 0x18 0x00 0x61 0xFF 0xF0 0x00 0x03 0xFF 0xE0 0x3F 0xFF 0xC0 0x3F 0xC0 0x3F 0xFF 0xC1 0xF0 0x7F 0xFC 0x07 0xFF 0xF8 0x03 0xC0 0x18 0x00 0x60 0x3F 0xF0 0x18 0x00 0x61 0xFF 0xF8 0x00 0x03 0xFF 0xF0 0x3F 0xFF 0xC0 0x7F 0xE0 0x3F 0xFF 0xC1 0xF0 0x7F 0xFE 0x07 0xFF 0xF8 0x03 0xC0 0x0C 0x00 0xC0 0x70 0x38 0x18 0x00 0x61 0x80 0x1C 0x00 0x03 0x00 0x38 0x30 0x00 0x00 0xE0 0x70 0x30 0x00 0x00 0xC0 0x60 0x07 0x00 0x0C 0x00 0x03 0xC0 0x0C 0x00 0xC0 0x60 0x18 0x18 0x00 0x61 0x80 0x0E 0x00 0x03 0x00 0x1C 0x30 0x00 0x00 0xC0 0x38 0x30 0x00 0x00 0xC0 0x60 0x03 0x80 0x0C 0x00 0x03 0xC0 0x06 0x01 0x80 0xE0 0x1C 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x01 0xC0 0x18 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x06 0x01 0x80 0xC0 0x0C 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x01 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x03 0x03 0x00 0xC0 0x0C 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x03 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x03 0x03 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x01 0x86 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x01 0x86 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x0E 0x00 0x03 0x00 0x1C 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x03 0x80 0x0C 0x00 0x03 0xC0 0x00 0xCC 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x1C 0x00 0x03 0x00 0x38 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x07 0x00 0x0C 0x00 0x03 0xC0 0x00 0xCC 0x01 0x80 0x06 0x18 0x00 0x61 0xFF 0xF8 0x00 0x03 0xFF 0xF0 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x7F 0xFE 0x00 0x0C 0x00 0x03 0xC0 0x00 0x78 0x01 0x80 0x06 0x18 0x00 0x61 0xFF 0xF0 0x00 0x03 0xFF 0xE0 0x3F 0xFF 0x83 0x00 0x00 0x3F 0xFF 0x80 0xC0 0x7F 0xFC 0x00 0x0C 0x00 0x03 0xC0 0x00 0x78 0x01 0x80 0x06 0x18 0x00 0x61 0x83 0x00 0x00 0x03 0x06 0x00 0x3F 0xFF 0x83 0x00 0x00 0x3F 0xFF 0x80 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x81 0x80 0x00 0x03 0x03 0x00 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x81 0x80 0x00 0x03 0x03 0x00 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0xC0 0x00 0x03 0x01 0x80 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0xC0 0x00 0x03 0x01 0x80 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x60 0x00 0x03 0x00 0xC0 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0xC0 0x0C 0x18 0x00 0x61 0x80 0x60 0x00 0x03 0x00 0xC0 0x30 0x00 0x01 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0xC0 0x0C 0x1C 0x00 0xE1 0x80 0x30 0x00 0x03 0x00 0x60 0x30 0x00 0x01 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0xE0 0x1C 0x0C 0x00 0xC1 0x80 0x30 0x00 0x03 0x00 0x60 0x30 0x00 0x01 0xC0 0x18 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x60 0x18 0x0E 0x01 0xC1 0x80 0x18 0x00 0x03 0x00 0x30 0x30 0x00 0x00 0xC0 0x38 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x70 0x38 0x07 0x03 0x81 0x80 0x1C 0x00 0x03 0x00 0x38 0x30 0x00 0x00 0xE0 0x70 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x3F 0xF0 0x03 0xFF 0x01 0x80 0x0E 0x00 0x03 0x00 0x1C 0x3F 0xFF 0xC0 0x7F 0xE0 0x3F 0xFF 0xC1 0xF0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x1F 0xE0 0x01 0xFE 0x01 0x80 0x0E 0x00 0x03 0x00 0x1C 0x3F 0xFF 0xC0 0x3F 0xC0 0x3F 0xFF 0xC1 0xF0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF '// --- Initial setting ---<<< '// --- Print stamp --->>> '// Select justification: Centering ESC "a" 1 '// Set graphics data: [Function 85] Print the specified download graphics data '// Print the download graphics that correspond to key code "A1" with same width '// and double-height characters '// GS ( L pL pH m fn Kc1/Kc2 x y GS "(L" 6 0 48 85 "A1" 1 2 '// Print and feed paper: Paper feeding amount = 1.13 mm (8/180 inches) ESC "J" 8 '// Text data and print and line feed "Thank you" LF "NOVEMBER 1, 2012 15:00" '// Print and feed n lines: Feed the paper three lines ESC "d" 3 '// --- Print stamp ---<<< '// --- Print details --->>> '// Select justification: Left justification ESC "a" 0 '// Detail text data and horizontal tab, print and line feed "TM-Hxxx" HT " 6.00" LF "PS-xxx" HT " 1.70" LF LF '// Select character size: (horizontal (times 1) x vertical (times 2)) GS "!" 0x01 '// Detail text data and horizontal tab, print and line feed "TOTAL" HT " 7.70" LF '// Select character size: Normal size GS "!" 0x00 '// Detail text data and horizontal tab, print and line feed "------------------------------------------" LF "PAID" HT " 10.00" LF "CHANGE" HT " 2.30" '// Print and feed n lines: Feed the paper three lines ESC "d" 3 '// --- Print details ---<<< '// --- Print barcode --->>> '// Select justification: Centering ESC "a" 1 "<< Bonus points : 14 >>" '// Print and feed paper: Paper feeding amount = 4.94 mm (35/180 inches) ESC "J" 35 '// Set barcode height: in case TM-T20, 6.25 mm (50/203 inches) GS "h" 50 '// Select print position of HRI characters: Print position, below the barcode GS "H" 2 '// Select font for HRI characters: Font B GS "f" 1 '// Print barcode: (A) format, barcode system = CODE39 GS "k" 4 "*00014*" 0 '// --- Print barcode ---<<< '// Select cut mode and cut paper: [Function B] Feed paper to '// (cutting position + 4.23 mm (30/203 inches)) and executes a partial cut '// (one point left uncut). GS "V" 66 30 '// ============================================================================ '// Issuing receipts with barcodes '// ============================================================================ '// --- Initial setting --->>> '// Initialize printer ESC "@" '// Set horizontal tab positions: 35th column ESC "D" 35 0 '// Set horizontal and vertical motion units: Horizontal motion unit = 0.141 mm '// (1/180 inch), vertical motion unit = 0.141 mm (1/180 inch) GS "P" 180 180 '// Set graphics data: [Function 83] Define the download graphics data '// (raster format) '// Define data that is 30*8 dots wide and 40 dots high with respect to key code '// "A1" '// GS ( L pL pH m fn a kc1/Kc2 b xL xH yL yH c GS "(L" 187 4 48 83 48 "A1" 1 240 0 40 0 49 '// 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 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x18 0x00 0x60 0x1F 0xE0 0x18 0x00 0x61 0xFF 0xF0 0x00 0x03 0xFF 0xE0 0x3F 0xFF 0xC0 0x3F 0xC0 0x3F 0xFF 0xC1 0xF0 0x7F 0xFC 0x07 0xFF 0xF8 0x03 0xC0 0x18 0x00 0x60 0x3F 0xF0 0x18 0x00 0x61 0xFF 0xF8 0x00 0x03 0xFF 0xF0 0x3F 0xFF 0xC0 0x7F 0xE0 0x3F 0xFF 0xC1 0xF0 0x7F 0xFE 0x07 0xFF 0xF8 0x03 0xC0 0x0C 0x00 0xC0 0x70 0x38 0x18 0x00 0x61 0x80 0x1C 0x00 0x03 0x00 0x38 0x30 0x00 0x00 0xE0 0x70 0x30 0x00 0x00 0xC0 0x60 0x07 0x00 0x0C 0x00 0x03 0xC0 0x0C 0x00 0xC0 0x60 0x18 0x18 0x00 0x61 0x80 0x0E 0x00 0x03 0x00 0x1C 0x30 0x00 0x00 0xC0 0x38 0x30 0x00 0x00 0xC0 0x60 0x03 0x80 0x0C 0x00 0x03 0xC0 0x06 0x01 0x80 0xE0 0x1C 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x01 0xC0 0x18 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x06 0x01 0x80 0xC0 0x0C 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x01 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x03 0x03 0x00 0xC0 0x0C 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x03 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x03 0x03 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x01 0x86 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x06 0x00 0x03 0x00 0x0C 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x01 0x80 0x0C 0x00 0x03 0xC0 0x01 0x86 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x0E 0x00 0x03 0x00 0x1C 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x03 0x80 0x0C 0x00 0x03 0xC0 0x00 0xCC 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x1C 0x00 0x03 0x00 0x38 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x07 0x00 0x0C 0x00 0x03 0xC0 0x00 0xCC 0x01 0x80 0x06 0x18 0x00 0x61 0xFF 0xF8 0x00 0x03 0xFF 0xF0 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x7F 0xFE 0x00 0x0C 0x00 0x03 0xC0 0x00 0x78 0x01 0x80 0x06 0x18 0x00 0x61 0xFF 0xF0 0x00 0x03 0xFF 0xE0 0x3F 0xFF 0x83 0x00 0x00 0x3F 0xFF 0x80 0xC0 0x7F 0xFC 0x00 0x0C 0x00 0x03 0xC0 0x00 0x78 0x01 0x80 0x06 0x18 0x00 0x61 0x83 0x00 0x00 0x03 0x06 0x00 0x3F 0xFF 0x83 0x00 0x00 0x3F 0xFF 0x80 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x81 0x80 0x00 0x03 0x03 0x00 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x81 0x80 0x00 0x03 0x03 0x00 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0xC0 0x00 0x03 0x01 0x80 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0xC0 0x00 0x03 0x01 0x80 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x01 0x80 0x06 0x18 0x00 0x61 0x80 0x60 0x00 0x03 0x00 0xC0 0x30 0x00 0x03 0x00 0x00 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0xC0 0x0C 0x18 0x00 0x61 0x80 0x60 0x00 0x03 0x00 0xC0 0x30 0x00 0x01 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0xC0 0x0C 0x1C 0x00 0xE1 0x80 0x30 0x00 0x03 0x00 0x60 0x30 0x00 0x01 0x80 0x0C 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0xE0 0x1C 0x0C 0x00 0xC1 0x80 0x30 0x00 0x03 0x00 0x60 0x30 0x00 0x01 0xC0 0x18 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x60 0x18 0x0E 0x01 0xC1 0x80 0x18 0x00 0x03 0x00 0x30 0x30 0x00 0x00 0xC0 0x38 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x70 0x38 0x07 0x03 0x81 0x80 0x1C 0x00 0x03 0x00 0x38 0x30 0x00 0x00 0xE0 0x70 0x30 0x00 0x00 0xC0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x3F 0xF0 0x03 0xFF 0x01 0x80 0x0E 0x00 0x03 0x00 0x1C 0x3F 0xFF 0xC0 0x7F 0xE0 0x3F 0xFF 0xC1 0xF0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x30 0x00 0x1F 0xE0 0x01 0xFE 0x01 0x80 0x0E 0x00 0x03 0x00 0x1C 0x3F 0xFF 0xC0 0x3F 0xC0 0x3F 0xFF 0xC1 0xF0 0x60 0x00 0x00 0x0C 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xC0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x03 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF '// --- Initial setting ---<<< '// --- Print stamp --->>> '// Select justification: Centering ESC "a" 1 '// Set graphics data: [Function 85] Print the specified download graphics data '// Print the download graphics that correspond to key code "A1" with same width '// and double-height characters '// GS ( L pL pH m fn Kc1/Kc2 x y GS "(L" 6 0 48 85 "A1" 1 2 '// Print and feed paper: Paper feeding amount = 1.13 mm (8/180 inches) ESC "J" 8 '// Text data and print and line feed "Thank you" LF "NOVEMBER 1, 2012 15:00" '// Print and feed n lines: Feed the paper three lines ESC "d" 3 '// --- Print stamp ---<<< '// --- Print details --->>> '// Select justification: Left justification ESC "a" 0 '// Detail text data and horizontal tab, print and line feed "TM-Hxxx" HT " 6.00" LF "PS-xxx" HT " 1.70" LF LF '// Select character size: (horizontal (times 1) x vertical (times 2)) GS "!" 0x01 '// Detail text data and horizontal tab, print and line feed "TOTAL" HT " 7.70" LF '// Select character size: Normal size GS "!" 0x00 '// Detail text data and horizontal tab, print and line feed "------------------------------------------" LF "PAID" HT " 10.00" LF "CHANGE" HT " 2.30" '// Print and feed n lines: Feed the paper three lines ESC "d" 3 '// --- Print details ---<<< '// --- Print barcode --->>> '// Select justification: Centering ESC "a" 1 "<< Bonus points : 14 >>" '// Print and feed paper: Paper feeding amount = 4.94 mm (35/180 inches) ESC "J" 35 '// Set barcode height: in case TM-T20, 6.25 mm (50/203 inches) GS "h" 50 '// Select print position of HRI characters: Print position, below the barcode GS "H" 2 '// Select font for HRI characters: Font B GS "f" 1 '// Print barcode: (A) format, barcode system = CODE39 GS "k" 4 "*00014*" 0 '// --- Print barcode ---<<< '// Select cut mode and cut paper: [Function B] Feed paper to '// (cutting position + 4.23 mm (30/203 inches)) and executes a partial cut '// (one point left uncut). GS "V" 66 30 |
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ESC/POS® includes patented or patent pending commands. The contents must not be disclosed
to third parties.
- Introduction
- Command Lists
- Commands in Code Order
- Applicable printers
- Command List by Model
- EU-m30
- TM-J2000, TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T100
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-U220
- TM-U220II
- TM-U230
- Obsolete Commands
- Commands Arranged by Function
- Print Commands
- Line Spacing Commands
- Character Commands
- Printing Paper Commands
- Label and black mark control
- Print Position Commands
- Paper Sensor Commands
- Mechanism Control Commands
- Bit Image Commands
- Bit Image
- GS ( L / GS 8 L
- GS D
- Graphics
- NV Graphics
- Download Graphics
- Panel Button Commands
- Status Commands
- Barcode Commands
- Two-dimensional Code Commands
- GS ( k
- PDF417
- QR Code
- MaxiCode
- 2-dimensional GS1 DataBar
- Composite Symbology
- Aztec Code
- DataMatrix
- Macro Function Commands
- Kanji Commands
- Miscellaneous Commands
- DLE ENQ
- DLE DC4 <fn=1>
- DLE DC4 <fn=2>
- DLE DC4 <fn=3>
- DLE DC4 <fn=7>
- DLE DC4 <fn=8>
- ESC ( Y
- ESC =
- ESC @
- ESC L
- ESC S
- ESC p
- GS ( A
- GS ( D
- GS I
- GS P
- GS g 0
- GS g 2
- GS z 0
- Response or status transmission
- Print control methods
- Beeper tone control
- Graphics drawing
- Receipt enhancement control
- Page mode control
- Customize Commands
- User setup
- GS ( E
- GS ( E <fn=1>
- GS ( E <fn=2>
- GS ( E <fn=3>
- GS ( E <fn=4>
- GS ( E <fn=5>
- GS ( E <fn=6>
- GS ( E <fn=7>
- GS ( E <fn=8>
- GS ( E <fn=9>
- GS ( E <fn=10>
- GS ( E <fn=11>
- GS ( E <fn=12>
- GS ( E <fn=13>
- GS ( E <fn=14>
- GS ( E <fn=15>
- GS ( E <fn=16>
- GS ( E <fn=48>
- GS ( E <fn=49>
- GS ( E <fn=50>
- GS ( E <fn=51>
- GS ( E <fn=52>
- GS ( E <fn=99>
- GS ( E <fn=100>
- Printer customization
- NV user memory
- User setup
- Counter Printing Commands
- Programming Examples
- Appendixes