©Copyright 2010 BROTHER INDUSTRIES, LTD. Version 1.20 Model Name Specifications Study: TD-4000/4100N <Written By>
Print area The printing media are die-cut labels and continuous length label. The area that can physically be printed on depends on the size and type
ESC iX32 Specify default line feed [ASCII] ESC i X 3 2 n1 n2 n3 n4 [Decimal] 27 105 88 51 50 n1 n2 n3 n4 [Hexadecimal] 1B 6
ESC iX31 Retrieve default line feed [ASCII] ESC i X 3 1 n1 n2 [Decimal] 27 105 88 51 49 n1 n2 [Hexadecimal] 1B 69 58 33 31
ESC iXA2 Select default alignment [ASCII] ESC i X A 2 n1 n2 n3 [Decimal] 27 105 88 65 50 n1 n2 n3 [Hexadecimal] 1B 69 58 41
ESC iXA1 Retrieve default alignment [ASCII] ESC i X A 1 n1 n2 [Decimal] 27 105 88 65 49 n1 n2 [Hexadecimal] 1B 69 58 41 31
ESC iX(2 Specify default page length [ASCII] ESC i X ( 2 n1 n2 n3 n4 [Decimal] 27 105 88 40 50 n1 n2 n3 n4 [Hexadecimal] 1B
ESC iX(1 Retrieve default page length [ASCII] ESC i X ( 1 n1 n2 [Decimal] 27 105 88 40 49 n1 n2 [Hexadecimal] 1B 69 58 28 3
ESC iXL2 Select default landscape orientation [ASCII] ESC i X L 2 n1 n2 n3 [Decimal] 27 105 88 76 50 n1 n2 n3 [Hexadecimal] 1B
ESC iXL1 Retrieve default landscape orientation [ASCII] ESC i X L 1 n1 n2 [Decimal] 27 105 88 76 49 n1 n2 [Hexadecimal] 1B 69
ESC iXj2 Select default international character set [ASCII] ESC i X j 2 n1 n2 n3 [Decimal] 27 105 88 106 50 n1 n2 n3 [Hexadecima
ESC iXj1 Retrieve default international character set [ASCII] ESC i X j 1 n1 n2 [Decimal] 27 105 88 106 49 n1 n2 [Hexadecimal] 1
Below are the print areas for each media Print area Media ID. ○1 ○2 ○3○4 ○5○6○7 ○8 ○9 Drive head No..1 RD 51mm×26mm 01A6 50.8mm
ESC iXm2 Select default character code table [ASCII] ESC i X m 2 n1 n2 n3 [Decimal] 27 105 88 109 50 n1 n2 n3 [Hexadecimal] 1B
ESC iXm1 Retrieve default character code table [ASCII] ESC i X m 1 n1 n2 [Decimal] 27 105 88 109 49 n1 n2 [Hexadecimal] 1B 69
Character codes Standard character code table for ESC/P codes 0 1 2 3 4 5 6 7 8 9 A B C D E F0 SP 0 @ P ` p Ç É á ░ └ α 1 !
Eastern European character code table (Windows-1250) 0 1 2 3 4 5 6 7 8 9 A B C D E F0 SP 0 @ P ` p € tˇ ° Ŕ Đ ŕ đ 1 ! 1 A Q a q À ‘ ˇ ±
Western European character code table (Windows 1252) 0 1 2 3 4 5 6 7 8 9 A B C D E F0 SP 0 @ P ` p € ° À Ð à ð 1 ! 1 A Q a q ~ ‘ ¡ ± Á Ñ
115 International character set Compatible characters in each language when the international character set is switched n 23 24 40 5B 5C 5D 5E 60 7
Characters This system uses single-byte character codes and is installed with five bit-map fonts (Brougham, Letter Gothic bold, Brussels, Helsinki,
Character sizes Each font is available in full size, reduced size (half width), double width, double height and half width, double height, and quadr
Pitch Pitch refers to the spacing between neighboring characters. When characters are arranged with a fixed pitch, they will be evenly spaced. If ch
Print position The print position is the standard position for printing characters, bitmaps, and bar codes. There is a horizontal print position and
Bitmaps, bar codes, downloaded images These types of image data are treated in the same way as characters and are printed with the bottom edge of th
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 li
Document creation flow Below is an explanation of the flow for creating documents. ddd 18 A Switch command mode (ESC i
19 E Bit image (ESC *, ESC K, ESC L, ESC Y, ESC Z) Bar code (ESC i B) 2D bar code (ESC i Q, ESC i V, ESC i D,
Machine Model: TD-4000/TD-4100N IMPORTANT - PLEASE READ CAREFULLY This documentation (“Documentation”) gives you in
Control command details Character/style selection commands ESC R Select international character set [ASCII] ESC R n [Decimal] 27 82
ESC q Select character style [ASCII] ESC q n [Decimal] 27 113 n [Hexadecimal] 1B 71 n [Parameters] 0 ≤ n ≤ 3 [Description]
ESC k Select font [ASCII] ESC k n [Decimal] 27 107 n [Hexadecimal] 1B 6B n [Parameters] 0 ≤ n ≤ 4, 9 ≤ n ≤ 11 [Descript
Text printing commands ESC 4 Apply italic style [ASCII] ESC 4 [Decimal] 27 52 [Hexadecimal] 1B 34 [Parameters] None [Descrip
ESC E Apply bold style [ASCII] ESC E [Decimal] 27 69 [Hexadecimal] 1B 45 [Parameters] None [Description] ・Prints subsequent
ESC G Apply double-strike printing [ASCII] ESC G [Decimal] 27 71 [Hexadecimal] 1B 47 [Parameters] None [Description] ・Prints s
ESC P Specify pica pitch [ASCII] ESC P [Decimal] 27 80 [Hexadecimal] 1B 50 [Parameters] None [Description] ・Prints subseq
ESC M Specify elite pitch [ASCII] ESC M [Decimal] 27 77 [Hexadecimal] 1B 4D [Parameters] None [Description] ・Prints subse
ESC g Specify micron pitch [ASCII] ESC g [Decimal] 27 103 [Hexadecimal] 1B 67 [Parameters] None [Description] ・Prints subse
ESC p Specify proportional characters [ASCII] ESC p n [Decimal] 27 112 n [Hexadecimal] 1B 70 n [Parameters] n=0,1,48(“0”),49
[Contents] Control Code List ...7 Prin
ESC W Specify double width characters [ASCII] ESC W n [Decimal] 27 87 n [Hexadecimal] 1B 57 n [Parameters] n=0,1 or 48(“0”),49
SO Specify auto-cancelling enlarged characters [ASCII] SO [Decimal] 14 [Hexadecimal] 0E [Parameters] None [Description] ・Prints
SI Specify reduced characters [ASCII] SI [Decimal] 15 [Hexadecimal] 0F [Parameters] None [Description] ・ Prints subsequent data
DC 4 Cancel auto-cancelling double-width characters [ASCII] DC4 [Decimal] 20 [Hexadecimal] 14 [Parameters] None [Description] ・Canc
ESC – Applies/cancels underlining [ASCII] ESC - n [Decimal] 27 45 n [Hexadecimal] 1B 2D n [Parameters] n=0,1,2,3,4 or 48(“0”),49
[Example] Code ABC ESC - 1 ABC ESC - 0 ABC FF Print result ABCABCABC 35
ESC ! Global formatting [ASCII] ESC ! n [Decimal] 27 33 n [Hexadecimal] 1B 21 n [Parameters] 0 ≤ n ≤ 255 [Description] ・Sp
ESC SP Specify character spacing [ASCII] ESC SP n [Decimal] 27 32 n [Hexadecimal] 1B 20 n [Parameters] 0 ≤ n ≤ 127 [Descripti
ESC X Specify character size [ASCII] ESC X m nL nH [Decimal] 27 88 m nL nH [Hexadecimal] 1B 58 m nL nH [Parameters] Characte
Line feed commands ESC 0 Specify line feed of 1/8 inch [ASCII] ESC 0 [Decimal] 27 48 [Hexadecimal] 1B 30 [Parameters] None [
・ ...39 Line feed commandsESC 0 Specify line feed of 1/8
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 [Descrip
Horizontal direction movement commands ESC l Specify left margin [ASCII] ESC l n [Decimal] 27 108 n [Hexadecimal] 1B 6C
・ ・ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Left edge Left margin positionRight margin position15 16Print areaUnprinted area Unprinted are
・The horizontal direction print position is moved to the left margin position. ・If the left margin setting is not at the beginning of the line, the l
ESC Q Specify right margin [ASCII] ESC Q n [Decimal] 27 81 n [Hexadecimal] 1B 51 n [Parameters] 1≤n≤255 L
・When proportional pitch is specified with the ESC p command, a character width of 10 cpi (= 30 dot) is applied. ・If the print media is continuous len
CR Carriage return [ASCII] CR [Decimal] 13 [Hexadecimal] 0D [Parameters] None [Description] ・Finalizes the input of a line and waits
ESC D Specify horizontal tab position [ASCII] ESC D [n]k NUL [Decimal] 27 68 [n]k 0 [Hexadecimal] 1B 44 [n]k 00h [Parameters]
・ Left edge Left margin position Tab position Tab position Right margin position ・ ・ HT Apply horizontal tab [ASCII] HT [D
ESC $ Specify absolute horizontal position [ASCII] ESC $ n1 n2 [Decimal] 27 36 n1 n2 [Hexadecimal] 1B 24 n1 n2 [Paramete
ESC i V 2D bar code PDF417 ...77 ESC i D 2D bar code DataMatrix control...
ESC a Specify alignment [ASCII] ESC a n [Decimal] 27 97 n [Hexadecimal] 1B 61 n [Parameters] 0≤n≤3 or “0”≤n≤“3” [Description
Vertical movement commands LF Line feed [ASCII] LF [Decimal] 10 [Hexadecimal] 0A [Parameters] None [Description] ・Feeds the paper b
ESC J Forward paper feed [ASCII] ESC J n [Decimal] 27 74 n [Hexadecimal] 1B 4A n [Parameters] 0≤n≤255 [Description]
ESC B Specify vertical tab position [ASCII] ESC B [n]k NUL [Decimal] 27 66 [n]k 0 [Hexadecimal] 1B 42 [n]k 00h [Parameters] 1≤
VT Apply vertical tab [ASCII] VT [Decimal] 11 [Hexadecimal] 0B [Parameters] None [Description] ・Moves the print position to the nearest vertical t
ESC (V Specify absolute vertical position [ASCII] ESC ( V nL nH mL mH [Decimal] 27 40 86 nL nH mL mH [Hexadecimal]
ESC (v Specify relative vertical position [ASCII] ESC ( v nL nH mL mH [Decimal] 27 40 118 nL nH mL mH [Hexadecimal] 1B 28
Paper formatting ESC (c Specify page format [ASCII] ESC ( c nL nH tL tH BL BH [Decimal] 27 40 99 nL nH tL tH BL BH [Hexadecim
ESC (C 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
Printer control commands ESC @ Initialize [ASCII] ESC @ [Decimal] 27 64 [Hexadecimal] 1B 40 [Parameters] None [Description]
Introduction This material provides the necessary information for directly controlling TD-4000/4100N. This information is provided assuming that the
Graphics commands ESC * Select bit image [ASCII] ESC * m n1 n2 Data [Decimal] 27 42 m n1 n2 Data [Hexadecimal] 1B 2A m n
When m=0, 1, 2, 3, 4, 6 ・n1 and n2 indicate the number of dot positions. n1: the remainder from dividing the number of dot positions by 256
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
. One dot of the image data is enlarged as follows according to the value of m. ・As a result, the image is sized depending on the value of m as fol
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:
・First, the data is lined up in three rows as follows: . One dot of the image data is enlarged as follows according to the value of m
n1: the remainder from dividing the number of dot positions by 256 n2: the quotient from dividing the number of dot positions by 256
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 [Param
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
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
Control Code List Character/style selection ESC R 1B 52 Select international character set ESC q 1B 71 Select character style ESC k 1B 6B S
62 ≤ height ≤ 1296 (RSS Limited) 134 ≤ height ≤ 1296 (RSS Expanded) If height < min., height = min. If height > max., height = max. (A bar code
・The parameter “parentheses deletion” is available only when GS1-128(UCC/EAN-128) is selected. ・The parameter “ratio between thick and thin bars” is a
ESC i [Parameter] B or b [Bar code data] \\\ [Description] ・This specifies a bar code image. ・Any data exceeding the right margin is ignored. ・S
ESC i Q 2D Bar code QR codes [ASCII] ESC i Q or q Data [Decimal] 27 105 81 or 113 Data [Hexadecimal] 1B
<> Supplement What is the QR code linkage setting? With QR codes, there are linkage settings. A long character string can be partitioned into
・With linkage. [Three partitions] (The parity for the character string “123456789" is 0x31.) ESC i Q 0x04 0x02 0x01 0x01 0x03 0x31 0x
ESC i P QR code version setting [ASCII] ESC i P n [Decimal] 27 105 80 n [Hexadecimal] 1B 69 50 n [Parameters] 0≤n≤40 [Descript
ESC i V 2D bar code PDF417 [ASCII] ESC i V or v Data [Decimal] 27 105 86 or 118 Data [Hexadecimal] 1B 69
8. Aspect value [Decimal 2 bytes] 1–1000 Inputs the aspect value. Actually, this is 0.01–10.0, but since the decimal point can not be entered, 1
[With symbol type MicroPDF417] Maximum of 250 alphanumeric characters, maximum of 366 numbers, maximum of 150 bytes of binary data However, the follo
Horizontal direction movement ESC l 1B 6C Specify left margin. ESC Q 1B 51 Specify right margin. CR 0D Carriage return ESC D 1B 44 Specify hori
ESC i D 2D bar code DataMatrix control [ASCII] ESC I D or d data [Decimal] 27 105 68 or 100 data [Hexadecimal] 1B 69 44 or 6
[Decimal 1 byte] 104 [Decimal 1 byte] 120 [Decimal 1 byte] 132 [Decimal 1 byte] 144 [Decimal 1 byte] 0 [Decimal 1 byte] 8 [Decimal 1 byte] 12 [Decim
*Note: The numbers of characters that can be entered (as listed above) are for the maximum vertical × horizontal cell settings (144 cells × 144 cells
ESC i M 2D bar code MaxiCode control [ASCII] ESC i M or m data [Decimal] 27 105 77 or 109 data [Hexadecimal] 1B 69 4D or 6D data • Forma
separated by a backslash and comma (\,), immediately before the normal data. <postal_code>\,<country_code>\,<service_class>\,<no
ESC i F Print downloaded data [ASCII] ESC i F P n [Decimal] 27 105 70 80 n [Hexadecimal] 1B 69 46 50 n [Parameters] n :fil
・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
・If the result of pasting in the downloaded image exceeds the bottom margin position, it is pasted in after a page feed. However, if the downloaded im
・There are limits on the amount of image data that can be stored in the main unit. The size of the storage area is 2048 KB. However, bitmap data is no
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
Advanced commands ESC i B 1B 69 42 Bar code ESC i Q 1B 69 51 2D bar code QR codes ESC i P 1B 69 50 QR code version setting ESC i V 1B 69 56 2
ESC i S Request printer status [ASCII] ESC i S [Decimal] 27 105 83 [Hexadecimal] 1B 69 53 [Parameters] None [Description] ・R
Error information 1 Flag Mask Meaning Bit 0 0x01 No media error Bit 1 0x02 Media end error Bit 2 0x04 Cutter jam error Bit 3 0x08 Not used
ESC i L Select landscape orientation [ASCII] ESC i L n [Decimal] 27 105 76 n [Hexadecimal] 1B 69 4C n [Parameters] n=0,
ESC i C Specify cutting [ASCII] ESC i C n [Decimal] 27 105 67 n [Hexadecimal] 1B 69 43 n [Parameters] n=0,1 or 48,49 [De
ESC iXQ2 Select default character style [ASCII] ESC i X Q 2 n1 n2 n3 [Decimal] 27 105 88 81 50 n1 n2 n3 [Hexadecimal] 1B 69
ESC iXQ1 Retrieve default character style [ASCII] ESC i X Q 1 n1 n2 [Decimal] 27 105 88 81 49 n1 n2 [Hexadecimal] 1B 69 58 5
ESC iXk2 Select default font [ASCII] ESC i X k 2 n1 n2 n3 [Decimal] 27 105 88 107 50 n1 n2 n3 [Hexadecimal] 1B 69 58 6B 32
ESC iXk1 Retrieve default font [ASCII] ESC i X k 1 n1 n2 [Decimal] 27 105 88 107 49 n1 n2 [Hexadecimal] 1B 69 58 6B 31 n1
ESC iXX2 Specify default character size [ASCII] ESC i X X 2 n1 n2 n3 n4 [Decimal] 27 105 88 88 50 n1 n2 n3 n4 [Hexadecimal]
ESC iXX1 Retrieve default character size [ASCII] ESC i X X 1 n1 n2 [Decimal] 27 105 88 88 49 n1 n2 [Hexadecimal] 1B 69 58 58
Commentaires sur ces manuels