Transcription of ESC/POS Command Manual - aures-support.fr
1 ESC/POS Command Manual No. Command Function 1 HT Horizontal tab 2 LF Print and line feed 3 CR Print and carriage return 4 FF Print end position label to start printing 5 CAN Cancel print data in page mode 6 DLE EOT Real-time status transmission 7 DLE ENQ Real-time request to printer 8 DLE DC4 Generate pulse at real-time 9 ESC FF Print data in page mode 10 ESC SP Set character right-side spacing 11 ESC ! Set print mode 12 ESC $ Set absolute print position 13 ESC % Select/cancel user-defined character set 14 ESC & Define user-defined characters 15 ESC * Set bit image mode 16 ESC - Turn underline mode on/off 17 ESC 2 Set 1/6 inch line spacing 18 ESC 3 Set line spacing using minimum units 19 ESC = Select peripheral device 20 ESC ?
2 Cancel user-defined characters 21 ESC @ Initialize printer 22 ESC D Set horizontal tab positions 23 ESC E Select emphasized mode 24 ESC G Select double-strike mode 25 ESC J Print end feed paper using minimum units 26 ESC L Select page mode 27 ESC M Select character font 28 ESC R Select international character set 29 ESC S Select standard mode 30 ESC T Select print direction in page mode 31 ESC V Set/cancel 90 cw rotated character 32 ESC W Set printing area in page mode 33 ESC Set relative position 34 ESC a Align position 35 ESC c 3 Select paper sensor(s) to output paper-end signals 36 ESC c 4 Select paper sensor(s) to stop printing 37 ESC c 5 Enable/disable panel buttons 38 ESC d Print and feed paper n lines 39 ESC p General pulse 40 ESC t Select character code table 41 ESC { Set/cancel upside-down character printing 42 FS p Print NV bit image 43 FS q Define NV bit image 44 GS !}
3 Select character size 45 GS $ Set absolute vertical print position in page mode 46 GS * Define downloaded bit image 47 GS / Print down-loaded bit image 48 GS : Start/end macro definition Not avalible 49 GS B Turn white/black reverse printing mode on/off 50 GS H Select printing position of HRI characters 51 GS I Transmit printer ID ESC/POS Command Manual 2 52 GS L Set left margin 53 GS P Set horizontal and vertical motion units 54 GS V Cut paper 55 GS W Set printing area width 56 GS Set relative vertical print position in page mode 57 GS ^ Execute macro Not avalible 58 GS a Enable/disable Automatic Status Back(ASB)
4 59 GS b Turn smooting mode on/off Not avalible 60 GS f Select font for HRI characters 61 GS h Set bar code height 62 GS k Print bar code 63 GS r Transmit status 64 GS v 0 Print raster bit image 65 GS w Set bar code width < Add > 1 ESC i Full cut 2 ESC m Partial cut 3 GS ( k pL pH cn fn n1 n2(fn=65) Select the QR Code model. 4 GS ( k pL pH cn fn n(fn=67) Set the QR Code size of module 5 GS ( k pL pH cn fn n(fn=69) Select the QR Code error correction level 6 GS ( k pL pH cn fn m (fn=80) Store the QR Code data in the symbol storage area 7 GS ( k pL pH cn fn m (fn=81) Print the QR Code symbol data in the symbol storage area 8 GS ( k pL pH cn fn n (fn=65) Sets the number of columns of the data area for PDF417 9 GS ( k pL pH cn fn n (fn=66) Sets the number of rows of data area for PDF417 10 GS ( k pL pH cn fn n (fn=67)))))))))
5 Sets the module width of one PDF417 symbol to n dots 11 GS ( k pL pH cn fn n (fn=68) Sets the PDF417 module height 12 GS ( k pL pH cn fn n (fn=69) Sets the error correction level for PDF417 symbols 13 GS ( k pL pH cn fn n (fn=80) Stores symbol data in the PDF417 symbol storage area. 14 GS ( k pL pH cn fn n (fn=81) Prints the PDF417 symbol data in the symbol storage area. ESC/POS Command Manual 3 Command Descriptions Command Notation [Name] The name of the control Command . [Format] The code sequence.))))
6 In this description, < > H denotes hexadecimal numbers, < >denotes decimal numbers and < > B denotes binary numbers. [ ] k indicates the contents of the [ ] should be repeated k times. [Range] The allowable range for the arguments. [Description] Description of the Command function. [Details] If necessary provides important information on setting and using the printer Command . [Default] The default values for the commands.
7 [Reference] List related commands. [Example] Example of using the commands. The numbers denoted by <>H is hexadecimal. The numbers denoted by <>B is binary. Print Commands The WTP series supports the following commands for printing characters and advancing paper. HT [Name] Horizontal tab [Format] ASCII HT Hex 09 Decimal 9 [Description] Moves the print position to the next tab position. ESC/POS Command Manual 4 [Details] This Command is ignored unless the next tab position has been set. If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1].
8 Horizontal tab positions are set using ESC D . If this Command is received when the printing position is at [printing area width +1], the printer executes print buffer-full printing of the current line and horizontal tab processing from the beginning of the next line. The default setting of the horizontal tab position for the paper roll is font A (12 x 24) every 8th character (9th, 17th, 25th, .. column). [Reference] ESC D LF [Name] Print and line feed [Format] ASCII LF Hex 0A Decimal 10 [Description] Prints the data in the print buffer and feeds one line based on the current line spacing.
9 [Details] This Command sets the print position to the beginning of the line. [Reference] ESC 2, ESC 3 CR [Name] Print and carriage return. [Format] ASCII CR Hex 0D Decimal 13 [Description] When automatic line feed is enabled, this Command functions the same as LF; when automatic line feed is disabled, this Command is ignored. [Details] Sets the print starting position to the beginning of the line. The automatic line feed is ignored. [Reference] LF FF [Name] Print and return to standard mode in page mode. [Format] ASCII FF Hex 0C Decimal 12 [Description] Prints the data in the print buffer and returns to standard mode.
10 ESC/POS Command Manual 5 [Details] The buffer data is deleted after being printed. The printing area set by ESC W is reset to the default setting. The printer does not execute paper cutting. This Command sets the print position to the beginning of the line. This Command is enabled only in page mode. [Reference] ESC FF, ESC L, ESC S CAN [Name] Cancel print data in page mode [Format] ASCII CAN Hex 18 Decimal 24 [Description] In page mode, delete all the print data in the current printable area. [Details] This Command is enabled only in page mode.