©Copyright 2011 BROTHER INDUSTRIES, LTD. ESC/P Command Reference Version 1.03 Model Name: PT-9800PCN/PT-9700PC Created by: Brother Industries, Ltd.
Machine Model: PT-9800PCN/PT-9700PC 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] Control code list .................................................................................................................... 6 Print area .............................................................................................................................. 9 Characters .......................................................................................................................... 10 Print position ........................................................................
CR Carriage return........................................................................................... 27 ESC $ Specify absolute horizontal position ....................................................... 27 ESC \ Specify relative horizontal position ......................................................... 28 ESC a Specify alignment ................................................................................... 28 Vertical movement commands ...............................................
ESC i U B Specify baud rate ............................................................................. 69 ESC i U b Specify bit length .............................................................................. 69 ESC i U P Specify parity setting ........................................................................ 70 ESC i U C Specify busy control ......................................................................... 70 Character code ....................................................
Control code list Character/style selection ESC R ESC k ESC t 1B 52 1B 6B 1B 74 Select international character set Select font Select character code table 1B 34 1B 35 1B 45 1B 46 1B 47 1B 48 1B 57 0F 1B 0F 12 1B 2D 1B 21 1B 58 1B 69 66 18 7F 1B 0D Apply italic style Cancel italic style Apply bold style Cancel bold style Apply double-strike printing Cancel double-strike printing Specify double-width characters Specify compressed characters Specify compressed characters Cancel compressed characters Apply
Vertical movement LF FF ESC J 0A 0C 1B 4A Line feed Page feed Forward paper feed 1B 69 6C 1B 69 6D Specify label length Specify margin width 1B 40 Initialize ESC * ESC K ESC L ESC Y 1B 2A 1B 4B 1B 4C 1B 59 ESC Z 1B 5A Select bit image 8-dot single-density bit image 8-dot double-density bit image 8-dot double-speed double-density bit image 8-dot quadruple-density bit image 1C 59 1C 2D 1C 0F 1C 12 1C 6B Specify kanji size Apply kanji underlining Specify half-width characters Cancel half-width cha
Advanced commands ESC i B ESC i Q ESC i P ESC i V ESC i D ESC i M ESC i F ESC i a ESC i S ESC i L ESC i C ESC i U B ESC i U b ESC i U P ESC i U C 1B 69 42 1B 69 51 1B 69 50 1B 69 56 1B 69 44 1B 69 4D 1B 69 46 1B 69 61 1B 69 53 1B 69 4C 1B 69 43 1B 69 55 42 1B 69 55 62 1B 69 55 50 1B 69 55 43 Bar code 2D bar code (QR Code) Specify QR Code version 2D bar code (PDF417) 2D bar code (DataMatrix) 2D bar code (MaxiCode) Print transferred data Switch command mode Request printer status Apply/cancel rotated printi
Print area The print area for each tape width is listed below. Length (④) (label length) Width (①) (tape width) Printable area ② ⑤ Type ① 36 24 18 12 9 6 3.5 *1 Bottom margin (③) Right margin (⑥) Left margin (⑥) Width (mm) Top margin (③) Printable Printable Top/bottom Left/right area Length area margins margins Dot position Max. no. (vertical) (mm) (horizontal) of printed *1 (mm) (mm) (mm/dots) mm/dots lines ② ③ ④ ⑤ ⑥ 36 27.1/384 4.45 1 ~ 384 24 22.6/320 0.71 33 ~ 352 18 16.5/234 0.
Characters This system uses single-byte character codes and is installed with two bitmap fonts (Letter Gothic and Helsinki). Each font has six sizes: 21 dots, 28 dots, 44 dots, 56 dots, 88 dots and 120 dots. Character size Each font is available in full size, compressed (half width) and double width.
Print position The print position is the standard position for printing characters, bitmaps and bar codes. With the print position, there is a horizontal print position, which is the reference point for vertical position movement. Each character is arranged so that their top edge aligns with the print position. The baseline of each character is the bottom edge of the character, regardless of size, font, etc.
Line feed amount The line feed amount is the amount of vertical movement from the print position of one line to the print of the next line. HHHHHHHHHHHHH HHHHHHHHHHHHH Line feed amount HHHHHHHHHHHHH The line feed amount is specified using ESC 0, ESC 2, ESC A and ESC 3.
Document creation flow The flow for creating documents is shown below. A Switch command mode (ESC i a) and Initialize (ESC @) B Format settings 1. Apply/cancel rotated printing (ESC i L) 2. Specify line feed amount (ESC 0, ESC 2, ESC 3 and ESC A) C Print operations 1. Specify print position Specify vertical position (ESC J) Specify horizontal position (ESC $, ESC \ and ESC a) 2.
D Text operations 1. Select character set Select font (ESC k) Select character code (ESC t) Select international character set (ESC R) Specify character size (ESC X) 2. Character style (ESC 4, ESC 5, ESC E, ESC F, ESC G, ESC H, ESC W, SI, ESC SI, DC2, ESC – and ESC !) 3. Character code *Repeat steps 1 through 3, as necessary.
Control command details Character/style selection commands ESC R Select international character set [ASCII] ESC R n [Decimal] 27 82 n [Hexadecimal] 1B 52 n [Parameters] 0≤n≤13, 64 [Description] ・Selects the character set for the country, and switches some character codes in the code table according to the value of n.
[Example] Code 5Ch ESC R 08h 5Ch FF Print result \¥ 16
ESC k Select font [ASCII] ESC k n [Decimal] 27 107 n [Hexadecimal] 1B 6B n [Parameters] 0≤n≤1 [Description] ・Selects the font. Bitmap fonts n=0 Helsinki n=1 Letter Gothic ・The default value is n=0 (Helsinki). ESC t Select character code table [ASCII] ESC tn [Decimal] 27 116 n [Hexadecimal] 1B 74 n [Parameters] n=0, 1, 2 [Description] ・From the three built-in character code tables, select the character code table to be used.
Text printing commands ESC 4 Apply italic style [ASCII] ESC 4 [Decimal] 27 52 [Hexadecimal] 1B 34 [Parameters] None [Description] ・Applies the italic style to the following text. ESC 5 Cancel italic style [ASCII] ESC 5 [Decimal] 27 53 [Hexadecimal] 1B 35 [Parameters] None [Description] ・Cancels the italic style.
ESC F Cancel bold style [ASCII] ESC F [Decimal] 27 70 [Hexadecimal] 1B 46 [Parameters] None [Description] ・Cancels the bold style. [Example] Code ABC ESC E DEF ESC F GHI FF Print result ABCDEFGHI ESC G Apply double-strike printing [ASCII] ESC G [Decimal] 27 71 [Hexadecimal] 1B 47 [Parameters] None [Description] ・Prints the following text in bold.
ESC W Specify double-width characters [ASCII] ESC W n [Decimal] 27 87 n [Hexadecimal] 1B 57 n [Parameters] n=0 and 1 or 48 and 49 [Description] ・Specifies double-width characters. ・If n=1 or 49 (“1”), double-width characters are specified. ・If n=0 or 48 (“0”), double-width characters are cancelled.
DC2 Cancel compressed characters [ASCII] DC2 [Decimal] 18 [Hexadecimal] 12 [Parameters] None [Description] ・Cancels compressed characters specified with SI. ESC - Apply/cancel underlining [ASCII] ESC - n [Decimal] 27 45 n [Hexadecimal] 1B 2D n [Parameters] n=0 and 1 or 48 and 49 [Description] Applies or cancels underlining. ・If n=1, underlining is applied. ・If n=0, underlining is cancelled. ・The underlining specified by this code is a continuous line.
ESC ! Global formatting [ASCII] ESC ! n [Decimal] 27 33 n [Hexadecimal] 1B 21 n [Parameters] 0≤n≤255 [Description] ・Specifies a combination of the various print modes. ・Specifies modes according to the bit value of n. ・A combination of multiple print modes can be specified at one time.
ESC X Specify character size [ASCII] ESC X n [Decimal] 27 88 n [Hexadecimal] 1B 58 n [Parameters] 0≤n≤6 or 30h≤n≤36h [Description] ・Specifies the character size. ・The character size can be set to AUTO or a fixed size (six sizes). If n=0 (or 30h), the AUTO size is applied. If n=1 (or 31h), the 4-point size is applied. (21 dots) If n=2 (or 32h), the 6-point size is applied. (28 dots) If n=3 (or 33h), the 9-point size is applied. (44 dots) If n=4 (or 34h), the 12-point size is applied.
DEL Delete one character [ASCII] DEL [Decimal] 127 [Hexadecimal] 7F [Parameters] None [Description] ・The immediately preceding character within the same line is deleted. ・If the immediately preceding data is a bar code, the bar code is deleted. ・Image data is not deleted. ESC CR Not available [ASCII] ESC CR n [Decimal] 27 13 n [Hexadecimal] 1B 0D n [Parameters] 0≤n≤255 [Description] ・Does nothing.
Line feed commands ESC 0 Specify line feed of 1/8 inch [ASCII] ESC 0 [Decimal] 27 48 [Hexadecimal] 1B 30 [Parameters] None [Description] ・Specifies a line feed of 1/8 inch (approximately 0.32 cm). ESC 2 Specify line feed of 1/6 inch [ASCII] ESC 2 [Decimal] 27 50 [Hexadecimal] 1B 32 [Parameters] None [Description] ・Specifies a line feed of 1/6 inch (approximately 0.42 cm).
ESC A Specify line feed of n/60 inch [ASCII] ESC A n [Decimal] 27 65 n [Hexadecimal] 1B 41 n [Parameters] 0≤n≤255 [Description] ・Specifies a line feed of n/60 inch per text line. ・If n is less than 8, the line feed amount is set to 8/60 inch (approximately 0.34 cm).
Horizontal movement commands CR Carriage return [ASCII] CR [Decimal] 13 [Hexadecimal] 0D [Parameters] None [Description] ・Performs a line feed of the amount specified by a line feed command (ESC 0, ESC 2, ESC 3 and ESC A). ・If no line feed amount has been specified, it is automatically specified depending on the width of the tape. ・The next print position is the beginning of the next line. ・A line feed command immediately after a carriage return is ignored.
ESC \ Specify relative horizontal position [ASCII] ESC \ n1 n2 [Decimal] 27 92 n1 n2 [Hexadecimal] 1B 5C n1 n2 [Parameters] 0≤n1≤255, 0≤n2≤255 [Description] ・Specifies a relative print position (in units of 1/180 inch) for the next data. ・A relative print position specifies the horizontal print position based on the current position. ・The next character is printed at a position (n1 + 256 * n2) / 180 inch from the current position.
Vertical movement commands LF Line feed [ASCII] LF [Decimal] 10 [Hexadecimal] 0A [Parameters] None [Description] ・Performs the same line feed operation as CR. ・A carriage return command immediately after a line feed is ignored. FF Page feed [ASCII] FF [Decimal] 12 [Hexadecimal] 0C [Parameters] None [Description] ・Starts printing. ・Clears the text, image data and bar codes after printing.
Paper formatting ESC i l Specify label length [ASCII] ESC i l n1 n2 [Decimal] 27 105 108 n1 n2 [Hexadecimal] 1B [Parameters] len=n1+n2×256 69 6C n1 n2 (len=0 or 36≤len≤7200) [Description] ・Specifies the label length (len) in units of 1/180 inch. ・The range in which the label length can be set is 0.2 to 40 inches. ・len=0 specifies the AUTO setting.
Printer control commands ESC @ Initialize [ASCII] ESC @ [Decimal] 27 64 [Hexadecimal] 1B 40 [Parameters] None [Description] ・Resets all parameters to their default settings. (See below.
Graphics commands ESC * Select bit image [ASCII] ESC * m n1 n2 data [Decimal] 27 42 m n1 n2 data [Hexadecimal] 1B 2A m n1 n2 data [Parameters] m=0, 1, 2, 3, 4, 6, 32, 33, 38, 39, 40, 71, 72 or 73 0≤n1≤255, 0≤n2≤255 The data contains image data that is n1 + n2 * 256 bytes when m=0, 1, 2, 3, 4 or 6, (n1 + n2 * 256) * 3 bytes when m=32, 33, 38, 39 or 40, or (n1 + n2 * 256) * 6 bytes when m=71, 72 or 73. [Description] ・Selects and outputs a bit image according to the value of m.
When m=0, 1, 2, 3, 4 or 6 ・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 B7 B6 B5 B4 B3 B2 B1 B0 Relationship between the image data and the dots ・First, the data is lined up in one row as shown below. 1 byte … 1 byte 1 byte 1 byte 1 byte 1 byte MSB LSM n1+n2*256 byte ・One dot of the image data is enlarged according to the value of m, as shown below.
When m=32, 33, 38, 39 or 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 1st byte B 7 B 6 B 5 B 4 B 3 2nd byte B 2 B 1 B 0 B 7 B 6 B 5 • B 4 • 3rd byte B 3 • B 2 • B 1 B 0 B 7 B 6 • • • • • Relationship between the image data and the dots ・First, the data is lined up in three rows as shown below.
・One dot of the image data is enlarged according to the value of m, as shown below. m=32 m=33 m=38 m=39 m=40 ・As a result, the image is sized depending on the value of m, as shown below.
・First, the data is lined up in six rows as shown below.
ESC K 8-dot single-density bit image [ASCII] ESC K n1 n2 data [Decimal] 27 75 n1 n2 data [Hexadecimal] 1B 4B n1 n2 data [Parameters] 0≤n1≤255, 0≤n2≤255 The data contains image data that is n1 + n2 * 256 bytes. [Description] Specifies that an 8-dot standard-density bit image will be printed with the number of dot positions defined by n1 and n2. ・n1 and n2 indicate the number of dot positions.
ESC L 8-dot double-density bit image [ASCII] ESC L n1 n2 data [Decimal] 27 76 n1 n2 data [Hexadecimal] 1B 4C n1 n2 data [Parameters] 0≤n1≤255, 0≤n2≤255 The data contains image data that is n1 + n2 * 256 bytes. [Description] Specifies that an 8-dot double-density bit image will be printed with the number of dot positions defined by n1 and n2. ・Specify n1 and n2 in the same way as with ESC K. ・First, the data is lined up in one row as shown below.
ESC Y 8-dot double-speed double-density bit image [ASCII] ESC Y n1 n2 data [Decimal] 27 89 n1 n2 data [Hexadecimal] 1B 59 n1 n2 data [Parameters] 0≤n1≤255, 0≤n2≤255 The data contains image data that is n1 + n2 * 256 bytes. [Description] ・Specifies that an 8-dot double-speed double-density bit image will be printed with the number of dot positions defined by n1 and n2. ・Specify n1 and n2 in the same way as with ESC K.
Kanji commands FS Y Specify kanji size [ASCII] FS Y n [Decimal] 28 89 n [Hexadecimal] 1C 59 n [Parameters] 0≤n≤6 or 30h≤n≤36h [Description] ・Specifies the character size. ・The character size can be set to AUTO or a fixed size (six sizes). If n=0 (or 30h), the AUTO size is applied. If n=1 (or 31h), the 4-point size is applied. (21 dots) If n=2 (or 32h), the 6-point size is applied. (28 dots) If n=3 (or 33h), the 9-point size is applied. (44 dots) If n=4 (or 34h), the 12-point size is applied.
FS SI Specify half-width characters [ASCII] FS SI [Decimal] 28 15 [Hexadecimal] 1C 0F [Parameters] None [Description] ・Same as SI FS DC2 Cancel half-width characters [ASCII] FS DC2 [Decimal] 28 18 [Hexadecimal] 1C 12 [Parameters] None [Description] ・Same as DC2 FS k Select font [ASCII] FS k n [Decimal] 28 107 n [Hexadecimal] 1C 6B n [Parameters] 0≤n≤1 or 30h≤n≤31h [Description] ・Selects the font.
Advanced commands ESC i B Bar code [ASCII] ESC i [parameters] B or b [bar code data] backslash [Decimal] 27 105 [parameters] 66 or 98 [bar code data] 92 [Hexadecimal] 1B 69 [parameters] 42 or 62 [bar code data] 5C [Parameters] ① [Parameters]: Bar code parameters T or t (type) t0: CODE39 t1: ITF (I-2/5) t2: EAN-13 t3: EAN-8 t4: UPC-A t5: EAN-8 (when the bar code data contains 7 characters) UPC-A (when the bar code data contains 11 characters) EAN-13 (when the bar code data contains
48 ≤ height ≤ 384 If height < 48, height = 48. If height > 384, height = 384. However, with tc, the height is as described below. 141 ≤ height ≤ 384 (RSS-14 Standard) 81 ≤ height ≤ 384 (RSS-14 Truncated) 81 ≤ height ≤ 384 (RSS-14 Stacked) 249 ≤ height ≤ 384 (RSS-14 Stacked Omni) 72 ≤ height ≤ 384 (RSS Limited) 144 ≤ height ≤ 384 (RSS Expanded) If height < min., height = min. If height > max., height = max.
* Note: ・ Both 00H through 09H and 30H through 39H are recognized as the parameter numbers 0 through 9. ・ Parameter types a and b are recognized, even if they are uppercase letters. ・ The parameter "parentheses removed" 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. ・ If there is no type command or if an invalid type command has been specified, Code 39 is specified.
If “?” is entered, "?” is treated as bar code data. ④ Backslash: End of bar code data [With protocols CODE39, ITF (I-2/5), EAN-8, EAN-13, UPC-A, UPC-E, CODABAR and RSS symbols] ESC i [parameters] B or b [bar code data] \ [With protocols CODE128 and GS1-128 (UCC/EAN-128)] ESC i [parameters] B or b [bar code data] \\\ [Description] ・Specifies a bar code image. ・Since the check digit is automatically generated from the bar code data, the check digit is not sent as bar code data.
ESC i Q 2D bar code (QR Code) [ASCII] ESC i Q data [Decimal] 27 105 81 data [Hexadecimal] 1B 69 51 data ・Format ESC i Q [parameters] [bar code data] ① ② \\\ ③ ① Parameters Unlike with 1D bar codes, 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 set to its default value. 1. Cell size [1-byte decimal] 4 [1-byte decimal] 6 [1-byte decimal] 8 [1-byte decimal] 10 [1-byte decimal] 12 2.
(*2) With Micro QR, error correction level 4 is invalid, and the default setting is used. ◆ Supplement: About QR Code linkage setting QR Codes have a linkage setting. A long character string can be divided into 2 to 16 partitions and printed. With ESC/P commands, it is necessary to enter only the number of partitions. For example, enter the bar code data as shown below when the print data is separated into three partitions.
・No linkage ESC i Q 0x04 0x02 0x00 0x00 0x00 0x00 0x02 0x00 “123456789”\\\ ・With linkage (separated into three partitions) (The parity for character string “123456789” is “0x31”.) ESC i Q 0x04 0x02 0x01 0x01 0x03 0x31 0x02 0x00 “123”\\\ ESC i Q 0x04 0x02 0x01 0x02 0x03 0x31 0x02 0x00 “456”\\\ ESC i Q 0x04 0x02 0x01 0x03 0x03 0x31 0x02 0x00 “789”\\\ ② [Bar code data]: Data for the bar code If manual input is selected for parameter 8.
characters * Note: The number of characters that can be entered (listed above) is for an error correction level at a high-density level of L 7%. If the standard level or higher is set, the number of characters that can be entered may decrease. In addition, even if the characters are entered with a high-density level (L) specified, the number of characters that can be entered may decrease due to compression. ③ \\\: End of bar code There must be three backslashes at the end of 2D bar codes.
ESC i P Specify QR Code version [ASCII] ESC i P n [Decimal] 27 105 80 n [Hexadecimal] 1B 69 50 n [Parameters] 0≤n≤40 [Description] ・The barcode size can be fixed. ・The default value is “0”. ・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. The following settings are available for each symbol type.
ESC i V 2D bar code (PDF417) [ASCII] ESC i V data [Decimal] 27 105 86 data [Hexadecimal] 1B 69 56 data ・Format ESC i V [parameters] ① [bar code data] \\\ ② ③ ① Parameters Unlike with 1D bar codes, 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 set to its default value. 1. Cell size [1-byte decimal] 4 [1-byte decimal] 6 [1-byte decimal] 8 [1-byte decimal] 10 [1-byte decimal] 12 2.
* 0 and 1 to 4 with Micro PDF417 7. Symbol size in Y direction [1-byte decimal] 0 [1-byte decimal] 3 to 90 Auto setting (default value) Manual setting * 0 and 4 to 44 with MicroPDF417 8. Aspect value [2-byte decimal] 1 to 1000 Enter the aspect value. Actually, this is between 0.01 and 10.0. However, since a decimal point cannot be entered, a value multiplied by 100 is entered. The default is “50”. (The actual value is 0.5.
capacity is set to the lowest level. The number of characters that can be entered may decrease, depending on the error correction capacity value. In addition, even if the characters are entered with the lowest density level specified, the number of characters that can be entered may decrease due to compression.
[With symbol type Micro PDF417] Maximum of 250 alphanumeric characters, maximum of 366 numerals, maximum of 150 bytes of binary data However, the following table shows the maximum amount of information allowed according to the symbol size in the X and Y directions.
ESC i D 2D bar code (DataMatrix) [ASCII] ESC i D data [Decimal] 27 105 68 data [Hexadecimal] 1B 69 44 data ・ Format ESC i D [parameters] [bar code data] ① ① \\\ ② ③ Parameters Unlike with 1D bar codes, 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 set to its default value. 1. Cell size [1-byte decimal] [1-byte decimal] [1-byte decimal] [1-byte decimal] [1-byte decimal] 2.
[1-byte decimal] [1-byte decimal] [1-byte decimal] [1-byte decimal] [1-byte decimal] [1-byte decimal] [1-byte decimal] [1-byte decimal] 72 80 88 96 104 120 132 144 Vertical no. of cells: 72 cells Vertical no. of cells: 80 cells Vertical no. of cells: 88 cells Vertical no. of cells: 96 cells 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] [1-byte decimal] [1-byte decimal] [1-byte decimal] 4.
* Note: The number of characters that can be entered (as listed above) is for the maximum vertical × horizontal cell settings (144 cells × 144 cells). The number of characters that can be entered may decrease, depending on the specified settings. ③ \\\: End of bar code There must be three backslashes at the end of 2D bar codes. Sample input For data “12345” with symbol type ECC square at 40 × 40 with a 4-dot cell size, the command will be as shown below.
ESC i M 2D bar code (MaxiCode) [ASCII] ESC i M data [Decimal] 27 105 77 [Hexadecimal] 1B 69 data 4D data ・Format ESC i M [parameters] \ [bar code data] ① ② ③ \\\ ④ ① Parameters If a value other than those listed is entered for a parameter, that parameter is set to its default value. 1. Symbol type [1-byte decimal] [1-byte decimal] [1-byte decimal] 2.
characters that can be entered may decrease, depending on the characters that are used. 2 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.
ESC i F Print transferred data [ASCII] ESC i F P n [Decimal] 27 105 70 80 n [Hexadecimal] 1B 69 46 50 n [Parameters] n: File header index 0≤n≤98 [Description] Expands transferred data as image data in the print buffer. ・Expands transferred image data from the print position. ・Ignored if there is no image data. Must transferred advance be in Image (.
・As with text, if the image data does not all fit in the current line, an error occurs. Abcdefg 1. Enter text. Abcdefg 2. Enter image. Abcdefg transferred 3. Since the image does not fit, it is pasted in after an automatic line feed. Example: Image at a normal size Abc Abc Abc 3. Since the image does not fit, it is pasted in after an automatic line feed and trimmed to fit between the left and right Example: Image larger than distance between left and right margins margins. 1. Enter text. 2.
・If the result of pasting the transferred image exceeds the bottom margin position, the image is pasted in after a page feed. However, if the transferred image is larger than the entire area between the top and bottom margins, the entire image is ignored. Abcdefg Abcdefg Abcdefg WLMBGOr WLMBGOr Dabfdifpdzra Dabfdifpdzra BGHJgmfg BGHJgmfg gfdslrt gfdslrt 1. Enter text. 2. Enter image. transferred 3. Since the image does not fit, it is pasted in after an automatic page feed.
・There are limits on the amount of image data that can be stored on the main unit. The storage capacity for PT-9800PCN is 6,784 KB, and the capacity for PT-9700PC is 2,048 KB. However, bitmap data is not stored as is, but is converted into the printer storage format by Transfer Manager. ・Image data larger than the media size is handled by deleting the portion of the image that does not fit within the media.
ESC i a Switch command mode [ASCII] ESC i a n [Decimal] 27 105 97 n [Hexadecimal] 1B 69 61 n [Parameters] n: Command mode 0=ESC/P 1=Raster graphics 3=P-touch Template [Description] ・Sets the command mode to ESC/P, PTCBP (raster graphics) or P-touch Template. ・Dynamically switches between the three modes.
ESC i S Request printer status [ASCII] ESC i S [Decimal] 27 105 83 [Hexadecimal] 1B 69 53 [Parameters] None [Description] ・Requests the printer status. The printer status consists of 32 bytes.
(number of bytes) 25 24 8 Spare Fixed at 00H (*1) With PT-9800PCN (*2) With PT-9700PC Error information 1 Flag Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Mask 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 Definition "No media” error “End of media” error “Cutter jam” error Not used Not used Machine turned off Not used Not used Error information 2 Flag Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Mask 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 Definition “Replace media” error Not used Communication er
Non-laminated tape 03H HG tape 09H Incompatible tape FFH Status type Status type Reply to status request Printing completed Error occurred Not used Not used Notification Phase change Not used Send advanced data Not used Value 00H 01H 02H 03H 04H 05H 06H 07H to EFH F0H F1H to FFH Phase type Phase type Reception possible Printing Value 00H 01H 67
ESC i L Apply/cancel rotated printing [ASCII] ESC i L n [Decimal] 27 105 76 n [Hexadecimal] 1B 69 4C n [Parameters] n=0 and 1 or 48 and 49 [Description] ・Applies rotated printing to the text. If n=0 (or 30h), rotated printing is cancelled. If n=1 (or 31h), rotated printing is applied. ESC i C Specify cut setting [ASCII] ESC i C n [Decimal] 27 105 67 n [Hexadecimal] 1B 69 43 n [Parameters] 0≤n≤255 [Description] ・Specifies full cut, half cut, chain printing or special tape.
ESC i U B [ASCII] ESC i Specify baud rate U Bn [Decimal] 27 105 85 66 n [Hexadecimal] 1B 69 55 42 n [Parameters] 0≤n≤12 [Description] ・As an RS-232C communication setting, the baud rate is specified as listed below.
ESC i U P [ASCII] ESC i Specify parity setting U Pn [Decimal] 27 105 85 80 n [Hexadecimal] 1B 69 55 50 n [Parameters] 0≤n≤2 [Description] ・As an RS-232C communication setting, the parity is specified as listed below. If n=0 None If n=1 ODD If n=2 EVEN ・The setting is applied the next time that the machine is turned on.
Character code Appendix CG list (for overseas) Standard character code table for ESC/P codes 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 å û a ¯ 7 ’ 7 G W g w ç ù o ¯ 8 ( 8 H X h x ê ÿ ¿ © ╚ 9 ) 9 I Y i y ë Ö ® ╣ ╔ ┘ A * : J Z j z
Eastern European character code table (Windows 1250) 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 4 $ 4 D T d 5 % 5 E U 6 & 6 F 7 ’ 7 8 ( 9 A B C D E F ° Ŕ Đ ŕ đ ˇ ± Á Ń á ń ’ ˘ ˛ Â Ň â ň Ľ “ Ł ł Ă Ó ă ó t „ ” ¤ ´ Ä Ô ä ô e u … • Ą µ Ĺ Ő ĺ ő V f v † – | ¶ Ć Ö ć ö G W g w ‡ — § · Ç × ç ÷ 8 H X h x ľ ¨ ¸ Č Ř č ř ) 9 I
Western European character code table (Windows 1252) 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 ‡ — § · Ç × ç ÷ 8 ( 8 H X h x ^ ˜ ¨ ¸ È Ø è ø 9 ) 9 I Y i
International character set Compatible characters in each language when the international character set is switched n 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 United States # $ @ [ \ ] ^ ` { ¦ } ~ ^ ` # $ ° ç § é ù è ¨ à 1 France ^ ` # $ Ä Ö Ü ä ö ü ß § 2 Germany \ $ @ [ ] ^ ` { } ~ ¦ £ 3 Britain # $ @ Æ Ø Å ^ ` ~ æ ø å 4 Denmark I # é ä ö å ü ¤ É Ä Ö Å Ü 5 Sweden \ ^ # $ @ ° é ù à ò è ì 6 Italy ^ ` } ~ Pt $ @ ¡ Ñ ¿ ¨ ñ 7 Spain I # $ @ [ ] ^ ` { } ~ ¦ ¥ 8 Japan # é æ ø å ü ¤ É Æ Ø Å Ü 9 Norway # $ É Æ Ø Å Ü é
BROTHER PT-9800PCN/9700PC ESC/P specifications Print mode Maximum printing length Resolution (dpi) Text Fonts Printing Size (dots) Character style Underline Character width Horizontal alignment Rotate Protocols Bar code Transfer RS Raster (PCBP mode) ESC/P mode P-touch Template mode 1m 360dpi × 360dpi Bitmap fonts: Helsinki, Letter Gothic Bitmap fonts: 21 × 21, 28 × 28, 44 × 44, 56 × 56, 88 × 88, 120 × 120 (dots) None, Bold, Italics Off, On Half-width, Normal, Double-width Left, C