Software Developer's Manual ESC/P Command Reference RJ-4230B/4250WB RJ-3230B/3250WB RJ-2030/2050/2140/2150 TD-4410D/4420DN/4510D/4520DN/4550DNWB/4210D TD-2020/2120N/2130N TD-2020A/2030A/2125N/2125NWB/2135N/2135NWB Version 3.
The Brother logo is a registered trademark of Brother Industries, Ltd. Brother is a registered trademark of Brother Industries, Ltd. © 2022 Brother Industries, Ltd. All rights reserved. The Bluetooth word mark and logos are owned by the Bluetooth SIG, Inc. and, any use of such marks by Brother Industries, Ltd. is under license. Zebra, ZPL and ZPL II are registered trademarks of ZIH Corporation.
IMPORTANT - PLEASE READ CAREFULLY Note This documentation (“Documentation”) provides information that will assist you in controlling your Printer (Please refer to “Appendix A: Supported Printers”). 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 Printer Model (“Purpose”).
ESC/P Command Reference Contents Introduction ···························································································· 1 What is ESC/P? ······················································································· 2 1. Using ESC/P Commands ······································································ 3 2. Examples of Using ESC/P Commands··················································· 5 3.
ESC/P Command Reference CR ESC D HT ESC $ ESC \ ESC a Carriage return ................................................................................46 Specify horizontal tab position ........................................................47 Perform horizontal tab.....................................................................48 Specify absolute horizontal position ...............................................49 Specify relative horizontal position ................................................
ESC/P Command Reference ESC iXL2 Select default landscape orientation ............................................. 111 ESC iXL1 Retrieve default landscape orientation ......................................... 111 ESC iXj2 Select default international character set...................................... 112 ESC iXj1 Retrieve default international character set .................................. 113 ESC iXm2 Select default character code set .................................................
ESC/P Command Reference Introduction This material provides the necessary information for directly controlling your printer. This information is provided assuming that the user has full understanding of the operating system being used and basic mastery of communication interfaces in a developer's environment. Read the model names that appear in the screens in this manual as the name of your printer.
ESC/P Command Reference What is ESC/P? ESC/P is one type of control codes used for printers. With the codes introduced in this document, various labels can be created and printed. In this document, ESC/P codes are provided as both ASCII and binary codes. When sending codes to the printer, make sure that the binary codes are used, otherwise the printer cannot parse the codes.
ESC/P Command Reference 1. Using ESC/P Commands Below is a description of the flow for creating documents. Also refer to “2. Examples of Using ESC/P Commands”. (1) Start ESC/P 1. Switch the command mode. 2. Initialize - Switch command mode (ESC i a 0) Note: ESC/P mode - Initialize (ESC @) (2) Format settings 1. Select the orientation. - Specify landscape orientation (ESC i L) 2. Specify the page size. - Specify page length (ESC ( C) 3. Specify print area.
ESC/P Command Reference (4) Text operations 1. Specify the character set. - Select font (ESC k) - Select character code (ESC t) - Select international character set (ESC R) - Specify character size (ESC X) - Specify the character spacing (ESC P, ESC M, ESC SP) 2. Specify the character style. - Specify character style (ESC 4, ESC 5, ESC E, ESC F, ESC G, ESC H, ESC W, SO, ESC SO, SI, ESC SI, DC2, DC4, ESC -, ESC !) 3. Specify character codes. Repeat 1–3 above as necessary.
ESC/P Command Reference 2. Examples of Using ESC/P Commands Set Basic setup first. Basic setup 1) Register a media to be used. 2) Specify ESC/P command mode. Basic set up 1: Register a media to be used Register a media with the Custom Label tool. Note: The media size to be used is also able to be output and saved as a command file with the Custom Label Tool. Basic set up 2: Specify ESC/P command mode Entered Command ESC i a 00h -5- 2.
ESC/P Command Reference This is the label that will be made. Step 2: 5 inches Step 1: Page length Landscape 1 inch Step 4: Vertical position 1 inch Step 5: Step 3: Font type: Helsinki Horizontal position (proportional pitch) Step 6: Character size: 100 dots In order to make this label, the following six steps are required. Step 1. Select the landscape orientation 2. Specify the page length 3. Specify the horizontal position 4. Specify the vertical position 5. Select the font type 6.
ESC/P Command Reference Step 2: Specify the page length. ESC (C 5inches Specify page length ASCII: ESC ( C nL nH mL mH Decimal: 27 40 67 nL nH mL mH Hexadecimal: 1B 28 43 nL nH mL mH Parameters nL=2, nH=0 0≤(mL+mH*256)<8192(for 203dpi printers) 0≤(mL+mH*256)<12000(for 300dpi printers) Description Specifies the page length. * A page length 0 indicates the Auto setting. The unit is 1 dot. Page length=mL+mH*256 The current paper position is the TOF.
ESC/P Command Reference Step 4: Specify the vertical position. 1 inch 1 inch=203 dots Entered command Vertical position=mL+mH*256=203 = = = = 109 nL nH ESC ( V 02h 00h 0 mL CBh mH 00h CBh 00h Example: A case 203dpi printer is used Step 5: Select the font type. Font type: Helsinki Outline Fonts Entered command n=11=0Bh n ESC k 0Bh -8- 2.
ESC/P Command Reference Step 6: Specify the character size. Character size: 100 dots Entered command Character size=nL+nH*256=100 dots = = = = 100 ESC X m nL nH 00h 64h 00h 0 64h 00h Example: A case 203dpi printer is used -9- 2.
ESC/P Command Reference All commands together will make the example label shown below.
ESC/P Command Reference 3. ESC/P Command Limitations 3.1 Print area The printing media are continuous, die-cut labels and media with marks. The area that can physically be printed on depends on the paper settings. Die-cut labels Top margin Bottom margin Unprintable area Unprinted area Print area Top margin position (TOF position) Left margin Right margin Unprintable area - 11 - 3.
ESC/P Command Reference Print area Label width Label Printable Height Top margin Left margin Printable width Right margin Bottom margin Label spacing Thermal head * To specify media settings, use the Custom Label Tool. Note: The maximum length of printable area is 3m when a continuous label is used. - 12 - 3.
ESC/P Command Reference 3.2 Characters This system uses single-byte character codes and is installed with 6 bitmap fonts (Letter Gothic Bold, Helsinki, Gothic, Brussels, San Diego and Brougham) and 4 outline fonts (Letter Gothic, Brussels, Helsinki and Gothic). Fixed pitch or proportional pitch can be specified for any of the fonts. However, there are fonts that are better with a fixed pitch and fonts that are better with a proportional pitch.
ESC/P Command Reference 3.2.2 Character pitches Pitch refers to the spacing between neighboring characters. When characters are arranged with a fixed pitch, they will be evenly spaced. If characters extend over several lines, they will align in straight rows. abc a Fixed spacing b c Fixed spacing When characters are arranged with a proportional pitch, the spacing will vary depending on the character. (For example, “W” is wide but “I” is narrow.
ESC/P Command Reference 3.3 Print position The print position is the standard position for printing characters, bitmaps, and barcodes. There is a horizontal print position and vertical print position, which are the reference points for vertical position movement and horizontal position movement. 3.3.1 Characters Characters are arranged with their top edges aligned with the print position. The baseline of each character is the bottom edge of the character, regardless of size, font, etc.
ESC/P Command Reference 3.4 Line feed amount The amount of line feed is the amount of vertical movement from the print position of one line to the print position of the next line. HHHHHHHHHHHHH Line feed amount HHHHHHHHHHHHH HHHHHHHHHHHHH The line feed amount is specified with ESC 0, ESC 2, ESC A, and ESC 3. Within a single line of text, the tallest character is determined, and the baseline is moved so that the top edge of that character is at the vertical print position.
ESC/P Command Reference 4. Control Code List Character/style selection commands (Refer to section 5.1 Character/style selection commands.) Commands Description ESC R Select international character set ESC q Select character style ESC k Select font ESC t Select character code set Note Text printing commands (Refer to section 5.2 Text printing commands.
ESC/P Command Reference Line feed commands (Refer to section 5.3 Line feed commands.) Commands Description ESC 0 Specify line feed of 1/8 inch ESC 2 Specify line feed of 1/6 inch ESC 3 Specify minimum line feed ESC A Specify line feed of n/60 inch Note Horizontal movement commands (Refer to section 5.4 Horizontal movement commands.
ESC/P Command Reference Printer control commands (Refer to section 5.7 Printer control commands.) Commands Description ESC @ Initialize (defaults) ESC iUx Reboot Note Graphics commands (Refer to section 5.8 Graphics commands.) Commands Description ESC * Select bit image. ESC K 8-dot single-density bit image ESC L 8-dot double-density bit image ESC Y 8-dot double-speed double-density bit image ESC Z 8-dot quadruple-density bit image Advanced commands Note (Refer to section 5.
ESC/P Command Reference Advanced static commands (Refer to section 5.10 Advanced static commands.
ESC/P Command Reference 5. Control Command Details 5.1 Character/style selection commands ESC R Select international character set ASCII: ESC Hexadecimal: 1B R n 52 n Parameters 0≤n≤13, 64 Description Selects the character set, and switches some of the character codes in the code table according to the value of n. n=0: U.S.A. n=1: France n=2: Germany n=3: U.K.
ESC/P Command Reference ESC q Select character style ASCII: ESC Hexadecimal: 1B q n 71 n Parameters 0≤n≤3 Description Selects the character style. n=0: None (normal characters) n=1: Outline n=2: Shadow n=3: Shadow and outline Example Code: ABC ESC q 02h ABC ESC q 00h ABC FF Print result: ABC ABC - 22 - 5.
ESC/P Command Reference ESC k Select font ASCII: ESC Hexadecimal: 1B k n 6B n Parameters 0≤n≤5, 8≤n≤11 Description Selects the font.
ESC/P Command Reference Font sample - 24 - 5.
ESC/P Command Reference ESC t Select character code set ASCII: ESC Hexadecimal: 1B t n 74 n Parameters 0≤n≤4 Description From the four built-in character code sets, selects the character code set used. n=0: Standard character code set n=1: Eastern European character code set n=2: Western European character code set n=3: Reserved n=4: Japanese character code set The default setting is n=0. Invalid if n is a value outside of the allowable range. - 25 - 5.
ESC/P Command Reference 5.2 Text printing commands ESC 4 ASCII: Apply italic style ESC Hexadecimal: 1B 4 34 Parameters None Description Prints the subsequent text in italics. This command is valid anywhere in a text line. ESC 5 ASCII: Cancel italic style ESC Hexadecimal: 1B 5 35 Parameters None Description Cancels the italic character style. This command is valid anywhere in a text line. Example Code: ABC ESC 4 DEF ESC 5 GHI FF Print result: ABCDEFGHI - 26 - 5.
ESC/P Command Reference ESC E ASCII: Apply bold style ESC Hexadecimal: 1B E 45 Parameters None Description Prints the subsequent text in bold. This command is valid anywhere in a text line. ESC F ASCII: Cancel bold style ESC Hexadecimal: 1B F 46 Parameters None Description Cancels the bold style. This command is valid anywhere in a text line. Example Code: ABC ESC E DEF ESC F GHI FF Print result: ABCDEFGHI - 27 - 5.
ESC/P Command Reference ESC G ASCII: Apply double-strike printing ESC Hexadecimal: 1B G 47 Parameters None Description Prints the subsequent text in bold. This command is valid anywhere in a text line. ESC H ASCII: Cancel double-strike printing ESC Hexadecimal: 1B H 48 Parameters None Description Cancels the bold style. This command is valid anywhere in a text line. Example Code: ABC ESC G DEF ESC H GHI FF Print result: ABCDEFGHI - 28 - 5.
ESC/P Command Reference ESC P Apply pica pitch (10 cpi) ASCII: ESC Hexadecimal: 1B P 50 Parameters None Description Prints the subsequent text with the pica pitch (10 characters/inch). The character spacing is 20 dots (30 dots for 300dpi printers). If the character width is 20(or 30) dots or less, the character spacing is specified as 20(or 30) minus the character width. If the character width exceeds 20(or 30) dots, the character spacing is specified as the character width.
ESC/P Command Reference Example For a 15-dot font at full width: Full width Double width 15 dots A 30 dots B A 5 dots B 10 dots - 30 - 5.
ESC/P Command Reference ESC M Apply elite pitch (12 cpi) ASCII: ESC Hexadecimal: 1B M 4D Parameters None Description Prints the subsequent text with the elite pitch (12 characters/inch). The character spacing is 16 dots (25 dots for 300dpi printers). If the character width is 16(or 25) dots or less, the character spacing is specified as 16(or 25) minus the character width. If the character width exceeds 16(or 25) dots, the character spacing is specified as the character width.
ESC/P Command Reference ESC g Apply micron pitch (15 cpi) ASCII: ESC Hexadecimal: 1B g 67 Parameters None Description Prints the subsequent text with the micron pitch (15 characters/inch). This command is not applied to 203dpi printers. The character spacing is 20 dots. If the character width is 20 dots or less, the character spacing is specified as 20 minus the character width. If the character width exceeds 20 dots, the character spacing is specified as the character width.
ESC/P Command Reference ESC p ASCII: Specify proportional characters ESC Hexadecimal: 1B p n 70 n Parameters n=0, 1, 48 (“0”), 49 (“1”) Description Specifies proportional characters. n=1 or 49 (“1”): Specifies proportional characters. n=0 or 48 (“0”): Cancels proportional characters. If proportional characters are specified, the character spacing specified with ESC SP is maintained as is.
ESC/P Command Reference SO Specify auto-canceling stretched characters ASCII: SO Hexadecimal: 0E Parameters None Description Prints the subsequent text at double width. This command is canceled with DC4, CR, LF, VT, FF, ESC J, or an automatic line feed. This command is canceled with ESC $, ESC \, ESC ( V or ESC ( v. This command can also be canceled with ESC W0.
ESC/P Command Reference SI Specify compressed characters ASCII: SI Hexadecimal: 0F Parameters None Description Prints the subsequent text at half width. ESC SI Specify compressed characters ASCII: ESC Hexadecimal: 1B SI 0F Parameters None Description Same as SI - 35 - 5.
ESC/P Command Reference DC2 Cancel compressed characters ASCII: DC2 Hexadecimal: 12 Parameters None Description Cancels compressed characters specified with SI. DC4 Cancel auto-canceling double-width characters ASCII: DC4 Hexadecimal: 14 Parameters None Description Cancels double-width characters specified with ESC SO or SO. Does not cancel the ESC W command. Example Code: ABC ESC SO ABCDEF DC4 GHIJK FF Print result: ABCABCDEFGHIJK - 36 - 5.
ESC/P Command Reference ESC – Apply/cancel underlining ASCII: ESC Hexadecimal: 1B - n 2D n Parameters n=0, 1, 2, 3, 4 or 48 (“0”), 49 (“1”), 50 (“2”), 51 (“3”), 52 (“4”) Description Applies or cancels underlining. n=4 or 52 (“4”): Applies underlining with a width of 4 dots. n=3 or 51 (“3”): Applies underlining with a width of 3 dots. n=2 or 50 (“2”): Applies underlining with a width of 2 dots. n=1 or 49 (“1”): Applies underlining with a width of 1 dot. n=0 or 48 (“0”): Cancels underlining.
ESC/P Command Reference ESC ! Global formatting ASCII: ESC Hexadecimal: 1B ! n 21 n Parameters 0≤n≤255 Description Specifies a combination of print modes. Specifies modes depending on the bit value of n. When the ESC ! code is used, a combination of multiple print modes can be specified at one time. The priority order is from Bit 5 to Bit 2. Bit 0 is available only if Bit 1 is 0. Selected character styles are canceled, and the characters return to the normal style.
ESC/P Command Reference ESC SP Specify character spacing ASCII: ESC Hexadecimal: 1B SP n 20 n Parameters 0≤n≤127 Description Specifies the character spacing. n indicates the number of dots. The default setting is 0 dot. With double-width characters, the character spacing is doubled; with half-width characters, it is halved. - 39 - 5.
ESC/P Command Reference ESC X Specify character size ASCII: ESC Hexadecimal: 1B X m nL nH 58 m nL nH Parameters Character width: The value of m is irrelevant. Character size: Valid only with: nL=16, 24, 32, 48 dots nH=0 The maximum is: nL=144 nH=1 Description This command is used only to change the size. Outline must not be specified. The character width cannot be specified. The character size is specified as n=nL+nH*256 dots.
ESC/P Command Reference 5.3 Line feed commands ESC 0 ASCII: Specify line feed of 1/8 inch ESC Hexadecimal: 1B 0 30 Parameters None Description Specifies a line feed of 1/8 inch (about 0.32 cm). ESC 2 ASCII: Specify line feed of 1/6 inch ESC Hexadecimal: 1B 2 32 Parameters None Description Specifies a line feed of 1/6 inch (about 0.42 cm). - 41 - 5.
ESC/P Command Reference ESC 3 Specify minimum line feed ASCII: ESC Hexadecimal: 1B 3 n 33 n Parameters 0≤n≤255 Description Specifies a line feed of n dots per line. ESC A Specify line feed of n/60 inch ASCII: ESC Hexadecimal: 1B A n 41 n Parameters 0≤n≤255 Description Specifies a line feed of n/60 inch. - 42 - 5.
ESC/P Command Reference 5.4 Horizontal movement commands ESC l Specify left margin ASCII: ESC Hexadecimal: 1B l n 6C n Parameters 0≤n≤255 0≤left margin
ESC/P Command Reference The horizontal print position is moved to the left margin position. If the left margin setting is not at the beginning of the line, the left margin is specified after a line feed. The beginning of the line indicates the left margin position for left alignment; for right and center alignment, it means that no image or character is entered on the line. Even if the character width is changed after the left margin has been specified, the left margin position does not change.
ESC/P Command Reference ESC Q Specify right margin ASCII: ESC Hexadecimal: 1B Q n 51 n Parameters 1≤n≤255 Left margin
ESC/P Command Reference CR Carriage return ASCII: CR Hexadecimal: 0D Parameters None Description Ends input of a line, and waits for input of the next line. The next print position becomes the beginning of the next line. A line feed command immediately after the carriage return is ignored. Auto-canceling double-width characters specified with SO or ESC SO are canceled. Same process as LF - 46 - 5.
ESC/P Command Reference ESC D Specify horizontal tab position ASCII: ESC Hexadecimal: 1B D [n]k NUL 44 [n]k 00h Parameters 1≤n≤255, 0≤k≤32 Description The horizontal tab position is the character width (when the command was specified)*n from the left margin. Enter n values in ascending order and end the settings with NUL. If an n value is smaller than a previous one, tab setting is ended.
ESC/P Command Reference HT Perform horizontal tab ASCII: HT Hexadecimal: 09 Parameters None Description Moves the horizontal print position to the nearest horizontal tab position to the right of the input position. If there is no horizontal tab position to the right of the input position, or if the next horizontal tab position is beyond the right margin, the HT command is ignored.
ESC/P Command Reference ESC $ ASCII: Specify absolute horizontal position ESC Hexadecimal: 1B $ n1 n2 24 n1 n2 Parameters 0≤n1≤255, 0≤n2≤255 Description Specifies the absolute print position (in dots) for the next data. An absolute print position specifies the next print position as a number of dots from the left margin. n1 and n2 indicate the number of dots from the left margin.
ESC/P Command Reference ESC a ASCII: Specify alignment ESC Hexadecimal: 1B a n 61 n Parameters 0≤n≤3 or “0”≤n≤“3” Description Prints the subsequent text with the alignment described below, according to the value of n. n=0 or 48 (“0”): Applies left alignment. n=1 or 49 (“1”): Applies center alignment. n=2 or 50 (“2”): Applies right alignment. n=3 or 51 (“3”): Applies nothing. The default setting is n=0.
ESC/P Command Reference 5.5 Vertical movement commands LF Line feed ASCII: LF Hexadecimal: 0A Parameters None Description Feeds the paper by the amount specified by a line feed command (ESC 0, ESC 2, ESC 3, ESC A). The print position becomes the beginning of the next line. The default value is a line feed of 32 dots. A carriage return immediately after a line feed is ignored. Auto-canceling double-width characters specified with SO or ESC SO are canceled.
ESC/P Command Reference ESC J Forward paper feed ASCII: ESC Hexadecimal: 1B J n 4A n Parameters 0≤n≤255 Description Ends input for the current line and moves the vertical print position forward by n dot. If the bottom margin setting is exceeded, printing starts. With left alignment, the print position for the next line becomes the end position of the current line. (The horizontal position does not move to the left margin.
ESC/P Command Reference ESC B Specify vertical tab position ASCII: ESC Hexadecimal: 1B B [n]k NUL 42 [n]k 00h Parameters 1≤n≤255 0≤k≤16 Description The vertical tab position is the line feed amount (when this command was specified)*n from the top margin. Enter n values in ascending order and end the settings with NUL. If an n value is smaller than a previous one, tab setting is ended. Up to 16 vertical tabs can be specified. ESC B NUL cancels all vertical tab positions.
ESC/P Command Reference VT Perform vertical tab ASCII: VT Hexadecimal: 0B Parameters None Description Moves the print position to the nearest vertical tab position down from the input position. The next horizontal print position becomes the beginning of the line. If the next vertical tab position extends beyond the bottom margin, or if there is no vertical tab position specified below the current position, VT is performed as if it is (moves to the TOF position of the next page).
ESC/P Command Reference ESC (V Specify absolute vertical position ASCII: ESC Hexadecimal: 1B ( V nL nH mL mH 28 56 nL nH mL mH Parameters nL=2 nH=0 0≤mL≤255 0≤mH≤127 Description Specifies the vertical print position as an absolute position from the top margin position. Vertical position=mL+mH*256+top margin The absolute vertical position is measured from the top margin position when this command was specified.
ESC/P Command Reference ESC (v Specify relative vertical position ASCII: ESC Hexadecimal: 1B ( v nL nH mL mH 28 76 nL nH mL mH Parameters nL=2 nH=0 0≤mL≤255 0≤mH≤63, 192≤mH≤255 -16384≤(mL+mH*256)≤16383 Description Specifies the vertical print position as a relative position from the current position. Vertical position after movement=mL+mH*256+current position When moving upwards, the specified value is expressed as a two's complement. It is determined by the following equation.
ESC/P Command Reference 5.6 Paper formatting commands ESC (c Specify page format ASCII: ESC Hexadecimal: 1B ( c nL nH tL tH BL BH 28 63 nL nH tL tH BL BH Parameters nL=4, nH=0 (tL+tH*256)<(BL+BH*256) Top margin
ESC/P Command Reference ESC (C Specify page length ASCII: ESC Hexadecimal: 1B ( C nL nH mL mH 28 43 nL nH mL mH Parameters nL=2, nH=0 0≤(mL+mH*256)<27575(for 203dpi printers) 0≤(mL+mH*256)<35999(for 300dpi printers) Description Specifies the page length. * A page length 0 indicates the Auto setting. The unit is 1 dot. Page length=mL+mH*256 The current paper position is the TOF. The top and bottom margins are canceled with ESC ( c. All previously entered text is cleared.
ESC/P Command Reference 5.7 Printer control commands ESC @ Initialize ASCII: ESC Hexadecimal: 1B @ 40 Parameters None Description Returns all commands to their default settings. (See below.
ESC/P Command Reference ESC i U x Reboot ASCII: ESC Hexadecimal: 1B i U x 69 55 78 Parameters None Description Reboot the printer. This is a raster command. Please change the mode before sending this command. Please refer to ESC i a Switch command mode. - 60 - 5.
ESC/P Command Reference 5.8 Graphics commands ESC * Select bit image ASCII: ESC Hexadecimal: 1B * m n1 n2 Data 2A m n1 n2 Data Parameters m=0, 1, 2, 3, 4, 6, 32, 33, 38, 39 The image data is as follows: - n1+n2*256 bytes when m=0, 1, 2, 3, 4, 6 - (n1+n2*256)*3 bytes when m=32, 33, 38, 39 Description Refer to “ESC * Select bit image ” for 300dpi printers. Selects and outputs a bit image according to the value of m.
ESC/P Command Reference When m=0, 1, 2, 3, 4, 6 n1 and n2 indicate the number of dot positions.
ESC/P Command Reference When m=32, 33, 38, 39 n1 and n2 indicate the number of dot positions. n1: The remainder from dividing the number of dot positions by 256 n2: The quotient from dividing the number of dot positions by 256 st nd 1 byte B 7 B 6 B 5 B 4 B 3 rd 2 byte B 2 B 1 B 0 B 7 B 6 B 5 B 4 B 3 3 byte B 2 B 1 B 0 B 7 B 6 B 5 B 4 B 3 B 2 B 1 B 0 . . . . . . . . . . . . . . . .
ESC/P Command Reference One dot of the image data is enlarged as follows, according to the value of m. m=32 m=33 m=38 m=39 As a result, the image is sized depending on the value of m, as follows: m=32 24 dots vertically×(n1+n2*256)*4 dots horizontally m=33 24 dots vertically×(n1+n2*256)*2 dots horizontally m=38 24 dots vertically×(n1+n2*256)*3 dots horizontally m=39 24 dots vertically×(n1+n2*256)*1 dots horizontally - 64 - 5.
ESC/P Command Reference ESC * Select bit image ASCII: ESC Hexadecimal: 1B * m n1 n2 Data 2A m n1 n2 Data Parameters m=0, 1, 2, 3, 4, 6, 32, 33, 38, 39, 40, 71, 72, 73 The image data is as follows: - n1+n2*256 bytes when m=0, 1, 2, 3, 4, 6 - (n1+n2*256)*3 bytes when m=32, 33, 38, 39, 40 - (n1+n2*256)*6 bytes when m=71, 72, 73 Description Refer to “ESC * Select bit image ” for 203dpi printers.
ESC/P Command Reference When m=0, 1, 2, 3, 4, 6 n1 and n2 indicate the number of dot positions.
ESC/P Command Reference When m=32, 33, 38, 39, 40 n1 and n2 indicate the number of dot positions. n1: The remainder from dividing the number of dot positions by 256 n2: The quotient from dividing the number of dot positions by 256 st nd 1 byte B 7 B 6 B 5 B 4 B 3 rd 2 byte B 2 B 1 B 0 B 7 B 6 B 5 B 4 B 3 3 byte B 2 B 1 B 0 B 7 B 6 B 5 B 4 B 3 B 2 B 1 B 0 . . . . . . . . . . . . . . . .
ESC/P Command Reference One dot of the image data is enlarged as follows, according to the value of m. m=32 m=33 m=38 m=39 m=40 As a result, the image is sized depending on the value of m, as follows: m=32 48 dots vertically×(n1+n2*256)*6 dots horizontally m=33 48 dots vertically×(n1+n2*256)*3 dots horizontally m=38 48 dots vertically×(n1+n2*256)*4 dots horizontally m=39 48 dots vertically×(n1+n2*256)*2 dots horizontally m=40 48 dots vertically×(n1+n2*256)*1 dot horizontally - 68 - 5.
ESC/P Command Reference When m=71, 72, 73 n1 and n2 indicate the number of dot positions. n1: The remainder from dividing the number of dot positions by 256 n2: The quotient from dividing the number of dot positions by 256 st 1 byte B 7 B 6 B 5 B 4 B 3 nd th B 4 B 3 th 2 - 5 byte B 2 B 1 B 0 B 7 B 6 B 5 B 2 6 byte B 1 B 0 B 7 B 6 B 5 B 4 B 3 B 2 B 1 B 0 . . . . . . . . . . . . . . . . Relationship between the image data and the dots - 69 - 5.
ESC/P Command Reference First, the data is lined up in six rows as follows: 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte 1byte … 1byte 1byte … 1byte LSB … 1byte MSB 1byte LSB 1byte MSB 1byte LSB 1byte MSB … 1byte LSB 1byte MSB … 1byte LSB 1byte MSB … 1byte LSB 1byte MSB (n1+n2*256)*6 bytes One dot of the image data is enlarged as follows, according to the value of m.
ESC/P Command Reference ESC K ASCII: 8-dot single-density bit image ESC Hexadecimal: 1B K n1 n2 Data 4B n1 n2 Data Parameters 0≤n1≤255, 0≤n2≤3 The data contains n1+n2*256 bytes of image data. Description Specifies that an 8-dot single-density bit image is printed with the number of dot positions indicated by n1 and n2. Same behavior as m=0 specified in ESC *.
ESC/P Command Reference ESC Y ASCII: 8-dot double-speed double-density bit image ESC Hexadecimal: 1B Y n1 n2 Data 59 n1 n2 Data Parameters 0≤n1≤255, 0≤n2≤3 The data contains n1+n2*256 bytes of image data. Description Same as for an 8-dot double-density bit image. Horizontally neighboring dots are not omitted. ESC Z ASCII: 8-dot quadruple-density bit image ESC Hexadecimal: 1B Z n1 n2 Data 5A n1 n2 Data Parameters 0≤n1≤255, 0≤n2≤7 The data contains n1+n2*256 bytes of image data.
ESC/P Command Reference 5.
ESC/P Command Reference h (height) h n1 n2 Height=n1+n2*256 (dots) 48≤height≤480 If height<48, height=48. If height>480, height=480. However, the height is as shown below with tc. 131≤height≤Maximum width (GS1 Databar Standard) 71≤height≤Maximum width (GS1 Databar Truncated) 71≤height≤Maximum width (GS1 Databar Stacked) 239≤height≤Maximum width (GS1 Databar Stacked Omni) 62≤height≤Maximum width (GS1 Databar Limited) 134≤height≤Maximum width (GS1 Databar Expanded) If heightmax.
ESC/P Command Reference (A barcode with a large number of stacked rows may be considered out of specifications and unreadable by the reader.) - 75 - 5.
ESC/P Command Reference Note * For parameter numerals 0–9, both 00h–09h and 30h–39h are recognized. * For parameter type, both ‘a’-‘h’ and ‘A’-‘H’ are recognized. * The parameter “parentheses deletion” is available only when GS1-128 (UCC/EAN-128) is selected. * The parameter “ratio between thick and thin bars” is available only when t0, t1 or t9 is selected. * The parameter “equalize bar lengths” is available only when t5 or t6 is selected. * If any other type is selected, these parameters are ignored.
ESC/P Command Reference (4) [Backslash]: End of barcode Barcode Type Command POSTNET, UPC/EAN EXTENTION, CODE39, ITF(I-2/5), EAN-8, EAN-13, UPC-A, UPC-E, CODABAR, GS1 Databar , MSI/Plessey, Intelligent Mail Barcode ESC i [Parameter] B or b [Barcode data] \ CODE93, CODE128, GS1-128 (UCC/EAN-128) ESC i [Parameter] B or b [Barcode data] \\\ Description Specifies a barcode image. Any data extending beyond the right margin is ignored.
ESC/P Command Reference ESC i Q 2D barcode (QR Code) ASCII: ESC i Q or q Data Hexadecimal: 1B 69 51 or 71 Data Format: i Q or q [Parameters] ESC [Barcode data] (1) (2) \\\ (3) Parameters (1) [Parameters] Unlike with 1D barcodes, all parameters must be specified in order, starting from the top. If a value other than those listed is entered for a parameter, that parameter is specified with its default value. 1. Cell size [1-byte decimal] 1–32 Specifies the dot size per cell side.
ESC/P Command Reference (*1) With Micro QR, the Structured Append setting is invalid, and the default setting is used. (*2) With Micro QR, error correction level 4 is invalid, and the default setting is used. (*3) Some barcode readers cannot recognize a barcode with the cell size specified as 1 dot or 2 dots. What is the QR Code Structured Append setting? QR Codes have Structured Append settings. A long character string can be partitioned into 2 to 16 partitions and printed.
ESC/P Command Reference Summary Printing the character string “123456789” with a cell size of 4 dots, Model 2, standard error correction level, and automatic data input Without Structured Append ESC i Q 04h 02h 00h 00h 00h 00h 02h 00h “123456789” \\\ With Structured Append [Three partitions] ESC i Q 04h 02h 01h 01h ESC i Q 04h 02h 01h 02h ESC i Q 04h 02h 01h 03h (The parity for the character string (2) [Barcode data]: 03h 31h 02h 00h “123” \\\ 03h 31h 02h 00h “456” \\\ 03h 31h 02h 00h “789” \\\ “12345
ESC/P Command Reference (3) \\\: End of barcode There must be three backslashes to end 2D barcode. Example Refer to the section “Summary”. ESC i P QR Code version ASCII: ESC Hexadecimal: 1B i P n 69 50 n Parameters 0≤n≤40 Description The barcode size can be fixed. The default value is 0 (auto). The available versions differ depending on the symbol type used. If a setting other than those listed is specified, the setting returns to its default.
ESC/P Command Reference ESC i V 2D barcode (PDF417) ASCII: ESC i V or v Data Hexadecimal: 1B 69 56 or 76 Data Format: i V or v [Parameters] [Barcode data] \\\ (1) (2) (3) ESC Parameters (1) [Parameters] Unlike with 1D barcodes, all parameters must be specified in order, starting from the top. If a value other than those listed is entered for a parameter, that parameter is specified with its default value. 1.
ESC/P Command Reference 8. Aspect value [2-byte decimal] 1–1000 Specifies the aspect value. Actually, this is 0.01–10.0, but since the decimal point cannot be entered, a value multiplied by 100 is entered. The default value is 50. (The actual value is 0.5.) Note * Some barcode readers cannot recognize a barcode with the cell size specified as 1 dot or 2 dots. * If a setting for the symbol size (X direction) or symbol size (Y direction) has been specified manually, the aspect value setting is ignored.
ESC/P Command Reference [With symbol type MicroPDF417] Maximum of 250 alphanumeric characters, maximum of 366 numbers, maximum of 150 bytes of binary data However, the following table shows the maximum amount of information allowed according to the settings for symbol size (X direction) and symbol size (Y direction). Maximum Amount of Information Allowed (3) \\\: X Y Alphanumeric Characters Numbers Binary 1 1 1 1 1 1 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 11 14 17 20 24 28 8 11 14
ESC/P Command Reference ESC i D 2D barcode (DataMatrix) ASCII: ESC i D or d data Hexadecimal: 1B 69 44 or 64 data Format: i D or d [Parameters] ESC (1) [Barcode data] (2) \\\ (3) Parameters (1) [Parameters] Unlike with 1D barcodes, all parameters must be specified in order, starting from the top. If a value other than those listed is entered for a parameter, that parameter is specified with its default value. 1. Cell size 2. Symbol type 3.
ESC/P Command Reference 3. Vertical size (continued) 4. Horizontal size (continued from the previous page) [1-byte decimal] 104 [1-byte decimal] 120 [1-byte decimal] 132 [1-byte decimal] 144 Vertical no. of cells: 104 cells Vertical no. of cells: 120 cells Vertical no. of cells: 132 cells Vertical no. of cells: 144 cells [1-byte decimal] 0 [1-byte decimal] 8 [1-byte decimal] 12 [1-byte decimal] 16 [ECC200 rectangular] Vertical no. of cells: AUTO Vertical no. of cells: 8 cells Vertical no.
ESC/P Command Reference (3) \\\: End of barcode There must be three backslashes to end 2D barcodes. Example For data “12345” with symbol type ECC square at 40 × 40 with a 3-dot cell size, the command will be as shown below. ESC i D 03h 00h 28h(40d) 28h 00h 00h 00h 00h 00h “12345” \\\ - 87 - 5.
ESC/P Command Reference ESC i M 2D barcode (MaxiCode) ASCII: ESC i M or m data Hexadecimal: 1B 69 4D or 6D data Format: i M or m [Parameters] \ [Barcode data] \\\ (1) (2) (3) (4) ESC Parameters (1) [Parameters] If a value other than those listed is entered for a parameter, that parameter is specified with its default value. 1. Symbol type 2.
ESC/P Command Reference When the symbol type is the structured carrier message, the service class, country code and postal code can be specified separately from the normal data. Specify each value, separated by a backslash and comma (\,), immediately before the normal data. \,\,\, When “\,” is not used three times, the data is written as shown in the following example. \,\, Service class=default value Country
ESC/P Command Reference ESC i J 2D barcode (Aztec) ASCII: ESC i J or j data Hexadecimal: 1B 69 4A or 6A data Format: i J or j [Parameters] ESC [Barcode data] (1) (2) \\\ (3) Parameters (1) [Parameters] If a value other than those listed is entered for a parameter, that parameter is specified with its default value. 1. Cell size 2. Symbol type 3. Error correction capacity 4.
ESC/P Command Reference (2) [Barcode data]: Barcode data The maximum number of barcode data characters that can be entered is listed below. 3067 alphanumeric characters, 3832 numbers, 1914 bytes of binary data Note The number of characters shown above is only for the Full-Range mode and varies depending on setting. (3) \\\: End of barcode There must be three backslashes to end 2D barcodes. - 91 - 5.
ESC/P Command Reference ESC i G Specify font ASCII: ESC Hexadecimal: 1B i G 00h n1 data 69 47 00 n1 data Parameters 1≤n1≤16 Description Specify font n1: Specify the length of character string of specified font name. Data: Character string of font name. Example For specifying “HelOb.FNT”. ESC i G 00h 09h HelOb.FNT - 92 - 5.
ESC/P Command Reference ESC i F P Print downloaded data ASCII: ESC Hexadecimal: 1B i F P n 69 46 50 n Parameters n: Minus 1 from the key number assigned when transport the data. 0≤n≤254 Description Print a transferred image on a current print position. If there is no image data, this command is ignored. Must be downloaded beforehand Image file Use P-touch Transfer Manager. (.bmp) This printer PC Abcdefg ABCDEFG HIJK Example: Combination of text and downloaded image - 93 - 5.
ESC/P Command Reference As with text, if the image data does not all fit on the current line, an automatic line feed is performed, and the data is placed at the beginning of the next line. At that time, the any data that does not fit in the print area is deleted. Abcdefg Abcdefg 1. The text is entered. Abcdefg 2. The downloaded image is entered. 3. Since the image does not fit, it is pasted in after an automatic line feed. Example: Normal size Abc Abc Abc 1. The text is entered. 2.
ESC/P Command Reference If the result of pasting in the downloaded image extends beyond the bottom margin position, the image is pasted in after a page feed. At that time, the any data that does not fit in the print area is deleted. Abcdefg Abcdefg Abcdefg WLMBGOr WLMBGOr Dabfdifpdzra Dabfdifpdzra BGHJgmfg BGHJgmfg gfdslrt gfdslrt 1. The text is entered. 2. The downloaded image is entered. 3. Since the image does not fit, it is pasted in after an automatic page feed.
ESC/P Command Reference An image data used by “ESC i F P” has to be registered into a printer first. Use P-touch Transfer Manager for transferring the BMP file to a printer for image data registration. A maximum size of memory is different from each model. Please refer to Appendix B: Specifications for model-specific information. Image data larger than the media size is handled by deleting the portion of the image that does not fit within the size of the media.
ESC/P Command Reference ESC i a Switch command mode ASCII: ESC Hexadecimal: 1B i a n 69 61 n Parameters n: Command mode 00h or 30h (‘0’): ESC/P standard mode 01h or 31h (‘1’): Raster graphics mode 03h or 33h (‘3’): P-touch Template mode 04h or 34h (‘4’): CPCL Page Print mode 05h or 35h (‘5’): CPCL Line Print mode 07h or 37h (‘7’): EPL emulation mode 08h or 38h (‘8’): DPL emulation mode FFh: Switch to the initial mode (power-on default) Description Switches the command execution mode.
ESC/P Command Reference ESC i S Status information request ASCII: ESC Hexadecimal: 1B i S 69 53 Parameters None Description Returns the printer status. The printer status consists of 32 bytes. The printer does not return status during the printing operation. Offset Name Value/Standard 0 Print head mark Fixed at 80h 1 Size Fixed at 20h 2 Brother code Fixed at “B” (42h) 3 Series code Refer to table (6) below. 4 Model code Refer to table (7) below.
ESC/P Command Reference (1) Error information 1 Flag Mask Meaning Bit 0 01h Not used Bit 1 02h “End of media” error/”Out of paper” error Bit 2 04h Not used Bit 3 08h Battery weak/”Charge needed” error Bit 4 10h Not used Bit 5 20h Printer turned off Bit 6 40h Not used Bit 7 80h Not used (2) Error information 2 Flag Mask Meaning Bit 0 01h Not used Bit 1 02h “Expansion buffer full” error Bit 2 04h Communication error Bit 3 08h Not used Bit 4 10h “Cover open” error
ESC/P Command Reference (5) Power status (RJ-4XXX, RJ-3XXX) Value Battery level AC adapter 20h Full Not connected 21h High Not connected 22h Half Not connected 23h Low Not connected 24h Charging required Not connected 30h Full Connected 31h High Connected 32h Half Connected 33h Low Connected 34h Charging required Connected 37h No battery Connected Other Undefined Undefined (TD-4XXX) Value Meaning 37h AC adapter in use (RJ-3XXX, RJ-2XXX, TD-2XXX) Value Meaning 00
ESC/P Command Reference (7) Model code Model Value RJ-4230B “C”(43h) RJ-4250WB “D”(44h) RJ-3230B “E” (45h) RJ-3250WB “F” (46h) RJ-2030 “6” (36h) RJ-2050 “7” (37h) RJ-2140 “8” (38h) RJ-2150 “9” (39h) TD-4410D “7”(37h) TD-4420DN “8”(38h) TD-4510D “9”(39h) TD-4520DN “A”(41h) TD-4550DNWB “B”(42h) TD-4210D “C” (43h) TD-2020 “3” (33h) TD-2120N “5” (35h) TD-2130N “6” (36h) TD-2020A “3” (33h) TD-2030A “D” (44h) TD-2125N “E” (45h) TD-2125NWB “F” (46h) TD-2135N “G” (47h)
ESC/P Command Reference ESC i L ASCII: Specify landscape orientation ESC Hexadecimal: 1B i L n 69 4C n Parameters n=0, 1 or 48, 49 Description Applies or cancels the landscape orientation n=1 or 49 (“1”): Applies the landscape orientation. n=0 or 48 (“0”): Cancels the landscape orientation. Using this command clears all text. Before entering text, specify the paper orientation with this command.
ESC/P Command Reference ESC i C Specify cutting ASCII: ESC Hexadecimal: 1B i C n 69 43 n Parameters n=0, 1 or 48, 49 Description Specifies cutting after printing. n=1 or 49 (“1”): Specifies cutting. n=0 or 48 (“0”): Cancels cutting. This command is applied to only a printer with auto cutter. The default auto cut setting can be changed with the P-touch Template Settings Tool (P-touch Template Settings.exe).
ESC/P Command Reference 5.10 Advanced static commands ESC iXQ2 Select default character style ASCII: ESC Hexadecimal: 1B i X Q 2 01h 00h n1 69 58 51 32 01 n1 00 Parameters 00h≤n1≤04h Description Selects the default character style. n1=00h: None (normal characters) (*Manufacturer’s default) n1=01h: Bold n1=02h: Outline n1=03h: Shadow n1=04h: Shadow and outline This command is a static command.
ESC/P Command Reference ESC iXk2 Select default font ASCII: ESC Hexadecimal: 1B i X k 2 01h 00h n1 69 58 6B 32 01 n1 00 Parameters 00h≤n1≤05h, 08h≤n1≤0Bh Description Selects the default font.
ESC/P Command Reference ESC iXk1 ASCII: Retrieve default font ESC Hexadecimal: 1B i X k 1 00h 00h 69 58 6B 31 00 00 Parameters None Description The default font setting is returned as 3-byte data.
ESC/P Command Reference ESC iXX2 Specify default character size ASCII: ESC Hexadecimal: 1B i X X 2 02h 00h n1 n2 69 58 58 32 02 n2 00 n1 Parameters 00h≤n1≤FFh, 00h≤n2≤01h Description Specifies the default character size. n1+(n2*256): Default character size (dots) The following settings (dots) are valid. The maximum valid setting is n=400. *The manufacturer’s default is 24. This command is a static command.
ESC/P Command Reference ESC iX32 Specify default line feed ASCII: ESC Hexadecimal: 1B i X 3 2 02h 00h n1 n2 69 58 33 32 02 n2 00 n1 Parameters 00h≤n1≤FFh, 00h≤n2≤02h Description Specifies the default line feed. n1+(n2*256): Default line feed (dots) *The manufacturer’s default is 32. Specified length is from 0 to 2 inches. This command is a static command.
ESC/P Command Reference ESC iXA2 Select default alignment ASCII: ESC Hexadecimal: 1B i X A 2 01h 00h n1 69 58 41 32 01 00 n1 Parameters 00h≤n1≤02h Description Selects the default alignment. n1=00h: Left alignment (*Manufacturer’s default) n1=01h: Center alignment n1=02h: Right alignment This command is a static command.
ESC/P Command Reference ESC iX(2 Specify default page length ASCII: ESC Hexadecimal: 1B i X ( 2 02h 00h n1 n2 69 58 28 32 02 n2 00 n1 Parameters 00h≤n1≤FFh, 00h≤n2≤6Bh (for 203dpi printers) 00h≤n1≤FFh, 00h≤n2≤8Ch (for 300dpi printers) Description Specifies the default page length. n1+(n2*256): Default page length (dots) *A default page length 0 indicates the Auto setting. *The manufacturer’s default is 0. Specified length is from 1 to 120 inches. This command is a static command.
ESC/P Command Reference ESC iXL2 Select default landscape orientation ASCII: ESC Hexadecimal: 1B i X L 2 01h 00h n1 69 58 4C 32 01 00 n1 Parameters 00h≤n1≤01h Description Selects the default landscape orientation setting. n1=00h: Cancel landscape orientation (*Manufacturer’s default) n1=01h: Apply landscape orientation This command is a static command.
ESC/P Command Reference ESC iXj2 Select default international character set ASCII: ESC Hexadecimal: 1B i X j 2 01h 00h n1 69 58 6A 32 01 00 n1 Parameters 00h≤n1≤0Dh, 40h Description Selects the default international character set. n1=00h: U.S.A. (*Manufacturer’s default) n1=01h: France n1=02h: Germany n1=03h: U.K.
ESC/P Command Reference ESC iXj1 ASCII: Retrieve default international character set ESC Hexadecimal: 1B i X j 1 00h 00h 69 58 6A 31 00 00 Parameters None Description The default international character set setting is returned as 3-byte data. [1] 01h (Fixed) [2] 00h (Fixed) [3] Setting 00h: U.S.A. 01h: France 02h: Germany 03h: U.K.
ESC/P Command Reference ESC iXm2 Select default character code set ASCII: ESC Hexadecimal: 1B i X m 2 01h 00h n1 69 58 6D 32 01 00 n1 Parameters 00h≤n1≤04h Description Selects the default character code set. n1=00h: Standard character code set (*Manufacturer’s default) n1=01h: Eastern European character code set n1=02h: Western European character code set n1=03h: Reserved n1=04h: Japanese character code set This command is a static command.
ESC/P Command Reference ESC iXd2 Specify recovery setting ASCII: ESC Hexadecimal: 1B i X d 2 01h 00h n1 69 58 64 32 01 00 n1 Parameters 00h≤n1≤01h Description Select enable or disable of recovery print. n1=00h: Disable recovery print n1=01h: Enable recovery print This command is a static command.
ESC/P Command Reference ESC iXv2 (0Ch) Specify recovery count ASCII: ESC i Hexadecimal: 1B 69 X v 2 03h 00h 00h 0Ch n1 58 76 32 03 00 0C n1 00 Parameters n1: 00h, 01h Description Select the recovery print count. n1=00h: Recovery count: 1 n1=01h: Recovery count: Unlimited The default value is 00h (1). This command is a static command. Command example For specifying the recovery print count to unlimited. Since the value will be n1=01h, the command will be as follows.
ESC/P Command Reference ESC iXv1 (0Ch) Retrieve recovery count ASCII: ESC i Hexadecimal: 1B 69 X v 1 03h 00h 00h 0Ch 00h 58 76 31 03 00 00 0C 00 Parameters None Description Retrieve a recovery count setting value. 3 bytes of data are returned from the main unit. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting values 00h: Recovery count: 1 01h: Recovery count: Unlimited The retrieved value is a value set by a static command.
ESC/P Command Reference ESC iXE2 Specify barcode margin setting ASCII: ESC Hexadecimal: 1B i X E 2 01h 00h n1 69 58 45 32 01 00 n1 Parameters 00h≤n1≤01h Description Select an existence of barcode margin. n1=00h: No margin n1=01h: Add margin (*Manufacturer’s default) This command is a static command.
ESC/P Command Reference ESC iX_2 (00h) Specify line print setting ASCII: ESC Hexadecimal: 1B i X _ 2 03h 00h 00h 00h n1 69 58 5F 32 03 00 00 n1 00 Parameters 00h≤n1≤FFh Description Select a line print enable/disable setting. n1=00h: Enable line print (default) n1=01h~FFh: Disable line print This command is a static command. This command is available only with continuous length tape.
ESC/P Command Reference ESC iX_2 (01h) Specify line print timeout setting ASCII: ESC Hexadecimal: 1B i X _ 2 03h 00h 00h 01h n1 69 58 5F 32 03 00 01 n1 00 Parameters 00h≤n1≤FFh Description Set a time for print start after receiving line feed command.. n1=00h: 1000msec (default) n1=01h~FFh: Specified value X 100msec This command only works when line print is enabled. This command is a static command.
ESC/P Command Reference ESC i DC1 SQ(01h) ASCII: Specify self-printing QR code content ESC Hexadecimal: 1B i DC1 S Q 01h n1 n2 data 69 11 53 51 01 n1 n2 data Parameters 00h≦n1≦5Ah n2: 00h Description Set the QR code content included in self-printing. n1: length of the content set in the QR code (up to 90 bytes) data: content set in the QR code This command is a static command.
ESC/P Command Reference ESC i DC1 SR(01h) ASCII: Select setting change lock ESC Hexadecimal: 1B i DC1 S Q 01h n1 n2 n3 69 11 53 52 01 n1 n2 n3 Parameters n1: 01h n2: 00h n3: 00h or FFh Description Prohibit changing settings and rewriting transfer data. n3=00h: Cancel the prohibition of setting change n3=FFh: Prohibit setting change This command is a static command.
ESC/P Command Reference Appendix A: Supported Printers Series RJ-4XXX RJ-3XXX Model RJ-4230B RJ-4250WB RJ-3230B RJ-3250WB RJ-2030 RJ-2XXX RJ-2050 RJ-2140 RJ-2150 TD-4410D TD-4420DN TD-4XXX TD-4510D TD-4520DN TD-4550DNWB TD-4210D TD-2020 TD-2120N TD-2130N TD-2020A TD-2XXX TD-2030A TD-2125N TD-2125NWB TD-2135N TD-2135NWB - 123 - Appendix A: Supported Printers
ESC/P Command Reference Appendix B: Specifications RJ-4XXX series: Printing Model RJ-4230B RJ-4250WB Printing method Raster ESC/P P-touch Template CPCL Page Print emulation CPCL Line Print emulation Maximum print length 3m Resolution (dpi) 203 dpi × 203 dpi Maximum width (in dots) 832 dots Text Barcode Bitmap Fonts Letter Gothic Bold(16/24/32 dots), Helsinki(16/24/32 dots), Gothic(16/24/32 dots) Outline Fonts Letter Gothic, Brussels, Helsinki, Gothic (Maximum 400 dots) Character style N
ESC/P Command Reference RJ-3XXX series: Printing Model RJ-3230B RJ-3250WB Printing method Raster ESC/P P-touch Template CPCL Page Print emulation CPCL Line Print emulation Maximum print length 3m Resolution (dpi) 203 dpi × 203 dpi Maximum width (in dots) 576 dots Text Barcode Bitmap Fonts Gothic(16/24/32 dots), Letter Gothic Bold(16/24/32/48 dots), Helsinki(16/24/32/48 dots), Brussels(24/32/48 dots), San Diego(24/32/48 dots), Brougham(24/32/48 dots) Outline Fonts Gothic, Letter Gothic, Br
ESC/P Command Reference RJ-2XXX series: Printing Model RJ-2030 RJ-2050 Printing method Raster ESC/P P-touch Template CPCL Page Print emulation CPCL Line Print emulation Maximum print length 1m Resolution (dpi) 203 dpi × 203 dpi Maximum width (in dots) 432 dots Text Barcode RJ-2140 RJ-2150 Bitmap Fonts Gothic(16/24/32 dots), Letter Gothic Bold(16/24/32 dots), Helsinki(16/24/32 dots) Outline Fonts Gothic, Letter Gothic, Brussels, Helsinki (Maximum 400 dots) Character style None, Italic,
ESC/P Command Reference TD-4XXX series: Printing Model TD-4410D TD-4420D N TD-4210D Printing method Raster ESC/P P-touch Template CPCL Page Print emulation CPCL Line Print emulation EPL emulation DPL emulation Maximum print length 3m Resolution (dpi) 203 dpi × 203 dpi Maximum width (in dots) 1280 dots Text Barcode TD-4510D TD-4520D N 300 dpi × 300 dpi Bitmap Fonts Gothic(16/24/32 dots), Letter Gothic Bold(16/24/32/48 dots), Helsinki(16/24/32/48 dots), Brussels(24/32/48 dots), San Diego(
ESC/P Command Reference TD-2XXX series: Printing Model TD-2020 TD-2120N TD-2130N Printing method Raster ESC/P P-touch Template CPCL Page Print emulation CPCL Line Print emulation Maximum print length 1m Resolution (dpi) 203 dpi × 203 dpi 300 dpi x 300 dpi Maximum width (in dots) 448 dots 672 dots Text Barcode Bitmap Fonts Gothic(16/24/32 dots), Letter Gothic Bold(16/24/32 dots), Helsinki(16/24/32 dots) Outline Fonts Gothic, Letter Gothic, Brussels, Helsinki (Maximum 400 dots) Characte
ESC/P Command Reference Printing Model TD-2020A TD-2125 N TD-2125 NWB TD-2030A TD-2135N Printing method Raster ESC/P P-touch Template CPCL Page Print emulation CPCL Line Print emulation Maximum print length 3m Resolution (dpi) 203 dpi × 203 dpi 300 dpi x 300 dpi Maximum width (in dots) 448 dots 672 dots Text Barcode Bitmap Fonts Gothic(16/24/32 dots), Letter Gothic Bold(16/24/32/48 dots), Helsinki(16/24/32/48 dots), Brussels(24/32/48 dots), San Diego(24/32/48 dots), Brougham(24/32/48 do
ESC/P Command Reference Appendix C: Character Code Tables Character code tables (1) Windows1252 (Western Europe) 0 1 2 3 4 5 6 7 8 B C D E F 0 SP 0 @ P ` p € ° À Ð à ð 1 ! 1 A Q a q ~ ‘ ¡ ± Á Ñ á ñ 2 ” 2 B R b r , ’ ¢ ² Â Ò â ò 3 # 3 C S c s ƒ “ £ ³ Ã Ó ã ó 4 $ 4 D T d t „ ” ¤ ´ Ä Ô ä ô 5 % 5 E U e u … • ¥ µ Å Õ å õ 6 & 6 F V f v † - | ¶ Æ Ö æ ö 7 ’ 7 G W g w ‡ — § · Ç × ç ÷
ESC/P Command Reference (2) Windows1250 (Eastern Europe) 0 1 2 3 4 5 6 7 8 9 0 SP 0 @ P ` p € tˇ 1 ! 1 A Q a q À ‘ 2 " 2 B R b r , 3 # 3 C S c s B C D E F ° Ŕ Đ ŕ đ ˇ ± Á Ń á ń ’ ˘ ˛ Â Ň â ň ˇ “ Ł ł Ă Ó ă ó 4 $ 4 D T d t „ ” ¤ ´ Ä Ô ä ô 5 % 5 E U e u … • Ą µ Ĺ Ő ĺ ő 6 & 6 F V f v † – | ¶ Ć Ö ć ö 7 ’ 7 G W g w ‡ — § · Ç × ç ÷ 8 ( 8 H X h x ľ ¨ ¸ Č Ř č ř 9 ) 9
ESC/P Command Reference (3) Brother standard 0 1 2 3 4 5 6 7 8 9 A B C D E 0 SP 0 @ P ` p Ç É á ░ └ α 1 ! 1 A Q a q ü æ í ▒ ┴ β 2 ” 2 B R b r é Æ ó ▓ ┬ 3 # 3 C S c s â ô ú │ ├ 4 $ 4 D T d t ä ö ñ ┤ ─ 5 % 5 E U e u à ò Ñ 6 & 6 F V f v å û 7 ’ 7 G W g w ç ù 8 ( 8 H X h x ê ÿ ¿ © ╚ 9 ) 9 I Y i y ë Ö ® ╣ ╔ ┘ A * : J Z j z è Ü € ║ ╩ ┌ Ω B + ; K [ k { ï ¢ ½ ╗
ESC/P Command Reference (4) Japanese character code set 0 1 2 3 4 5 6 7 0 SP 0 @ P ` 1 ! 1 A Q 2 " 2 B 3 # 3 4 $ 5 8 9 A B C D E F p ┴ SP ー タ ミ ═ × a Q ┬ 。 ア チ ム ╞ 円 R b R ┤ 「 イ ツ メ ╪ 年 C S c S ├ 」 ウ テ モ ╡ 月 4 D T d T  ̄ 、 エ ト ヤ ◢ 日 % 5 E U e u ─ ・ オ ナ ユ ◣ 時 6 & 6 F V f v │ ヲ カ ニ ヨ ◥ 分 7 ’ 7 G W g w ▕ ァ キ ヌ ラ ◤ 秒 8 ( 8 H X h x ┌ ィ ク ネ リ 〒 9 ) 9 I Y i y ┐ ゥ ケ
ESC/P Command Reference International character set table Corresponding characters that switch in each language when the international character set is changed n 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 United States (U.S.A) # $ @ [ \ ] ^ ` { ¦ } ˜ 1 France # $ à ° ç § ^ ` é ù è ¨ 2 Germany # $ § Ä Ö Ü ^ ` ä ö ü ß 3 Britain (U.K.) £ $ @ [ \ ] ^ ` { ¦ } ˜ 4 Denmark I # $ @ Æ Ø Å ^ ` æ ø å ˜ 5 Sweden # ¤ É Ä Ö Å Ü é ä ö å ü
ESC/P Command Reference Appendix D: Introducing the Brother Developer Center Useful information for developers, such as applications, tools, SDKs as well as FAQs, are provided in the Brother Developer Center. https://support.brother.com/g/s/es/dev/en/index.