PJ-600 Series Printer ESC/P Command Reference Version 1.00 Model Name: PJ-622/623/662/663 Brother Industries, Ltd. ©Copyright 2011 BROTHER INDUSTRIES, LTD.
Machine Model: PJ-622/623/662/663 IMPORTANT - PLEASE READ CAREFULLY This documentation (“Documentation”) gives you information that will assist you in controlling your Machine Model. You may use the Documentation only if you first agree to the following conditions. If you do not agree to the following conditions, you may not use the Documentation. Condition of Use You may use and reproduce the Documentation to the extent necessary for your own use of your Machine Model (“Purpose”).
Contents 1 ESC/P commands ......................................................................................................................4 1-1 Print area .............................................................................................................................4 1-2 Characters...........................................................................................................................6 1-3 Resolution ......................................................................
1 ESC/P commands 1-1 Print area [Paper types and sizes] ・ Thermal cut paper: A4/Letter/Legal sizes and any size ・ Thermal roll paper: 210 mm (width) * Any size is within a range of 210- to 216-mm wide and 25.4- to 567.3-mm long. [Print area] The printable area differs depending on the paper type; however, with any paper listed above, the top margin, left margin and page width of the print area are the same as with A4 paper.
・ 300 dpi (300 × 300) print area (dots) A4 Letter Paper width 2480 2550 Paper length 3507 3300 Top margin 30 30 Bottom margin 3330 3230 Left margin 40 40 Right margin 2440 2440 Page width 2400 2400 Page length 3300 3200 Legal 2550 4200 30 4130 40 2440 2400 4100 ・ 200 dpi (203 × 200) print area (dots) A4 Letter Paper width 1680 1727 Paper length 2338 2200 Top margin 20 20 Bottom margin 2220 2153 Left margin 27 27 Right margin 1651 1651 Page width 1624 1624 Page length 2200 2133 Legal 1727 2800 20 2753 27
1-2 Characters [Font specifications] Type ANK characters Font Courier, Sans Serif Size 10, 12, 15 CPI Proportional The conversions from CPI (characters per inch) to dots are shown below. 10 CPI 12 CPI 15 CPI 300 dpi (300 × 300) 30 × 45 dots 25 × 45 dots 20 × 45 dots 200 dpi (203 × 200) 20 × 45 dots 17 × 45 dots 14 × 45 dots 1-3 Resolution [Resolution conversion] With ESC/P, the basic resolution is 360 dpi. However, since the printer resolution is 200 or 300 dpi, the resolution is converted.
1-4 List of commands This printer supports the following ESC/P commands. 1. Paper feed commands Command Code Function CR 0Dh Carriage return FF 0Ch Form feed LF 0Ah Line feed ESC 0 1Bh 30h Specify line feed of 1/8 inch ESC 2 1Bh 32h Specify line feed of 1/6 inch ESC 3 n 1Bh 33h nnh Specify line feed of n/180 inch ESC A n 1Bh 41h nnh Specify line feed of n/60 inch ESC + n 1Bh 2Bh nnh Specify line feed of n/360 inch ESC J n 1Bh 4Ah nnh Specify forward paper feed of n/180 inch 2.
5. Character selection commands Command Code Function ESC k n 1Bh 6Bh nnh Select font ESC P 1Bh 50h 1Bh 4Dh Specify 10 cpi ESC M ESC g ESC p n 1Bh 67h 1Bh 70h nnh Specify 12 cpi Specify 15 cpi Apply/cancel proportional characters ESC S n 1Bh 53h nnh Apply superscript/subscript ESC T ESC t n 1Bh 54h 1Bh 74h nnh Cancel superscript/subscript Select character code table ESC R n 1Bh 52h nnh Select international character set 6.
8. Supplemental function commands Command Code Function ESC @ 1Bh 40h Initialize printer 9. Others Command Code Function ESC K n m ESC L n m ESC Y n m ESC Z n m ESC * m n1 n2.. ESC ? m n ESC / m ESC b m n...0 1Bh 4Bh nnh mmh 1Bh 4Ch nnh mmh 1Bh 59h nnh mmh 1Bh 5Ah nnh mmh 1Bh 2Ah mmh n1h n2h... 1Bh 3Fh mmh nnh 1Bh 2Fh mmh 1Bh 62h mmh nnh ...
1-5 Command details 1. Paper feed commands CR [Name] [Code] [Function] [D et a il s] FF [Name] [Code] [Function] [D et a il s] Carriage return 0Dh Returns the cursor position to the left edge. If automatic line feed has been specified with the utility, a line feed command (LF) is performed after a carriage return command (CR) is performed. Form feed 0Ch Feeds the paper to the next page separation. At this time, the SO and ESC SO commands are cancelled.
ESC J n [Name] [Code] [Function] [D et a il s] Specify forward paper feed of n/180 inch 1Bh 4Ah nnh Performs a print operation of n/180 inch. If a page separation is reached while feeding or if there is no more paper, the paper feed amount outside of the print area is not counted, and the remainder of the feed is performed after entering the next page. ©Copyright 2011 BROTHER INDUSTRIES, LTD.
2. Print area setting commands ESC C n [Name] [Code] [Function] [D et a il s] ESC C 0 n [Name] [Code] [Function] [D et a il s] ESC N n [Name] [Code] [Function] [D et a il s] ESC O [Name] [Code] [Function] Specify page length in lines 1Bh 43h nnh Specifies the page length as ((line feed amount when this command is specified) * (n in lines)) inches. Settings that exceed 22 inches or are less than the sum of the top space (top margin) and bottom space (page length – bottom margin) are ignored.
3. Tab setting commands ESC B n n...0 [ N a m e ] Specify vertical tab position [ C o d e ] 1Bh 42h nnh...00h [Function] Specifies a vertical tab position. [D et a il s] Specifies a vertical tab at the position where (line feed amount when this command is specified) * (specified number of lines n). A maximum of 16 tab positions can be specified. A tab setting that specifies a position extending past the bottom margin is ignored.
4. Print position setting commands ESC l n [Name] [Code] [Function] [D et a il s] ESC Q n [Name] [Code] [Function] [D et a il s] BS [Name] [Code] [Function] [D et a il s] ESC $ n m [Name] [Code] [Function] [D et a il s] Specify left margin 1Bh 6Ch nnh Specifies the left margin position as the position from the left edge where (character width when this command is specified) * n, and specifies the area to the left of this as an unprinted area.
This is not underlined. The dots that the cursor is moved is in units of 1/180 inch or 1/120 inch, and can be switched with the ESC x setting. (The default is 1/180 inch.) ©Copyright 2011 BROTHER INDUSTRIES, LTD.
5. Character selection commands ESC k n [Name] [Code] [Function] [D et a il s] ESC P [Name] [Code] [Function] [Det a ils] Select font 1Bh 6Bh nnh Switches the half-width alphanumeric font that is used between “Courier” and “Sans Serif”. n = 30h, 00h: Courier n = 31h, 01h: Sans Serif Specify 10 cpi 1Bh 50h Uses the character set at 10 cpi. ESC M [Name] [Code] [Function] [D et a il s] Specify 12 cpi 1Bh 4Dh Uses the character set at 12 cpi. (The default is 12 cpi.
ESC S n [Name] [Code] [Function] [D et a il s] ESC T [Name] [Code] [Function] ESC t n [Name] [Code] [Function] [D et a il s] Apply superscript/subscript 1Bh 53h nnh Applies superscript/subscript attributes to alphanumeric characters. n = 00h or 30h: Apply superscript attribute The script character is printed raised. n = 01h or 31h: Apply subscript attribute The script character is printed lowered. The character limitations are as described in the manual.
ESC R n [Name] [Code] [Function] [D et a il s] Select international character set 1Bh 52h nnh Changes a part of the alphanumeric character code table according to the value of n. 00h USA 01h France 02h Germany 03h UK 04h Denmark 05h Sweden 06h Italy 07h Spain 08h Japan 09h Norway 0Ah Denmark II 0Bh Spain II 0Ch Latin America 0Dh Korea 40h Legal ©Copyright 2011 BROTHER INDUSTRIES, LTD.
6. Character style commands ESC x n [Name] [Code] [Function] [D et a il s] SI, ESC SI [Name] [Code] [Function] [D et a il s] Select text quality 1Bh 78h nnh Selects draft or high quality for alphanumeric characters. n = 00h or 30h: Draft mode (1/120" movement amount) n = 01h or 31h: Letter mode (1/180" movement amount) Since this printer is not installed with a draft font, the text quality does not change.
ESC w n [Name] [Code] [Function] [D et a il s] Specify/cancel double-height characters 1Bh 77h nnh Specifies or cancels double-height enlargement for alphanumeric characters. n = 00h or 30h: Cancel double-height enlargement n = 01h or 31h: Specify double-height enlargement Double-height enlargement is valid with ANK characters. The baseline is lowered 24/180 inch, and the characters are lengthened vertically.
ESC SP n [Name] [Code] [Function] [D et a il s] ESC q n [Name] [Code] [Function] [D et a il s] ESC 4 [Name] [Code] [Function] [D et a il s] ESC 5 [Name] [Code] [Function] Specify character spacing 1Bh 20h nnh Specifies the amount of character spacing for alphanumeric characters. Since the spacing is the remainder from dividing n by 128, 0 to 127 is the normal range of parameters that are used. The default is 0. The units for the spacing are 1/180 inch.
ESC ! n [Name] [Code] [Function] [D et a il s] Global formatting 1Bh 21h nnh Specifies the print mode for alphanumeric characters. The individual settings are specified according to the description for each command. With the n values listed below for each of the commands, the added values only for global formatting are specified.
7. Character definition commands ESC & 0 n n... [ N a m e ] Define download characters [ C o d e ] 1Bh 26h 00h nnh.... [Function] Defines characters that are the same as alphanumeric characters as a download character set. [D et a il s] Converts the resolution of the character line buffer from 180 dpi to 300 dpi or 200 dpi when characters are defined as 32 dots wide at 300 dpi (21 dots at 200 dpi). Only high-quality characters can be defined; draft characters can also be defined as high-quality characters.
8. Supplemental function commands ESC @ [Name] [Code] [Function] [D et a il s] Initialize 1Bh 40h Initialize printer The settings that are stored depend on the setting. Other items are as listed below. Beginning of paper: The current paper position is considered as the beginning.
9. Others ESC K n m [Name] [Code] [Function] [D et a il s] ESC L n m [Name] [Code] [Function] [D et a il s] ESC Y n m [Name] [Code] [Function] [D et a il s] ESC Z n m [Name] [Code] [Function] [D et a il s] 8-bit single-density bit image 1Bh 4Bh nnh mmh With the initial settings, same as ESC * 0. 60 dpi bit image data, n = LSB, m = MSB 8-bit double-density bit image 1Bh 4Ch nnh mmh With the initial settings, same as ESC * 1.
ESC ? m n [Name] [Code] [Function] [D et a il s] ESC / m [Name] [Code] [Function] [D et a il s] Convert bit image 1Bh 3Fh mmh nnh Converts the bit images of ESC K, ESC L, ESC Y and ESC Z to the bit image of parameter n in ESC *. m refers to the bit image to be converted. n refers to the bit image to be converted into (m of ESC *). Select VFU channel 1Bh 2Fh mmh Selects the VFU channel. Subsequent VT depend on the vertical tab positions specified with channel m. ESC b m n...
2 Advanced commands 2-1 List of commands The following commands are advanced commands specific for this printer. Command ESC i a n ESC i S ESC ~ e F 1 n1 n2 Code 1Bh 69h 61h nnh 1Bh 69h 53h 1Bh 7Eh 65h 46h 01h n1h n2h ©Copyright 2011 BROTHER INDUSTRIES, LTD.
2-2 Command details ESC i a n [Name] [Code] [Function] [D et a il s] Switch command mode 1Bh 69h 61h nnh Switches the command mode. When setting nnh is: 00h or 30h: ESC/P mode/Raster mode (default) 03h or 33h: P-touch Template mode If a setting other than those listed above is specified, ESC/P mode or raster mode will be entered. Example: 1Bh 69h 61h 00h Specifies ESC/P mode. ESC i S [Name] [Code] [Function] [D et a il s] Request printer status 1Bh 69h 53h Requests the printer status.
3 Character code tables 1.
2.
3. International characters N Country 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 USA # $ @ [ \ ] ^ ` { ¦ } ~ 1 France # $ à ° Ç § ^ ` é ù é ø 2 Germany # $ § Ä Ö Ü ^ ` ä ö ü ß 3 UK £ $ @ [ \ ] ^ ` { ¦ } ~ 4 Denmark I # $ @ Æ Ø Å ^ ` æ ø å ~ 5 Sweden # ¤ É Ä Ö Å Ü é ä ö å ü 6 Italy # $ @ ° \ é ^ ù à ò è ì 7 Spain I ₧ $ @ ¡ Ñ ¿ ^ ` ø ñ } ~ 8 Japan # $ @ [ ¥ ] ^ ` { ¦ } ~ 9 Norway # ¤
4 Defferences with old machine model Main differences with PJ-500 series printers The following commands are new additions. ESC i a n ESC i S ESC ~ e F 1 n1 n2 :Switch command mode :Request printer status :Reverse feed Main differences with PocketBook 30i/30iB It is the same as the above-mentioned. 5 Notes Command not supported The command that has not been described for this command reference not supported.