Brother International TD-2020 P-touch Template Manual/ Command Reference
Brother International TD-2020 Manual
View all Brother International TD-2020 manuals
Add to My Manuals
Save this manual to your list of manuals |
Brother International TD-2020 manual content summary:
- Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 1
Software Developer's Manual P-touch Template 2.0 Command Reference TD-2020/2120N/2130N Version 1.02 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 2
is a registered trademark of Brother Industries, Ltd. Brother is a registered trademark of Brother Industries, Ltd. © 2013 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 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 3
("Documentation") gives you information that will assist you in controlling your Printer TD-2XXX (where "2XXX" is the model name). You may use the or alteration of the Documentation or Printer Model will be performed at the sole discretion of Brother. Brother may not respond to any request or - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 4
Using P-touch Template 2.0 3 2. P-touch Template Settings Tool User's Guide 4 3. Examples for Using Commands 9 3.1 Example for using P-touch 27 5.1 Notes for printers with Bluetooth interface 27 5.2 Relationship between the P-touch Editor settings and the printer image 28 5.3 Making - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 5
prefix character 65 Select printer settings (cut options 66 Select printer settings (cut options-specifying number of labels) ...... 67 Select character print setting 97 8. ZPL II supported by TD-2020/2120N/2130N 98 9. CPCL supported by TD-2020/2120N/2130N 101 Appendix A: Specifications 110 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 6
P-touch Template 2.0 Command Reference Appendix B: Character Code Tables 111 Character code tables 111 International character set table 115 Appendix C: Troubleshooting 116 If printing does not begin (main most frequent cause 116 If a template linked to a database is not printed 116 Appendix - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 7
manual as the name of your printer. We accept no responsibility for any problems caused by programs that you develop using the information provided in this material, affecting software, data or hardware, including the TD-2XXX, and any problems - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 8
and a two-character text string. When the prefix character is sent, the printer begins the analysis of the P-touch Template 2.0 command, and performs the specified process an interface to transfer the data. *ZPL II emulation is supported by P-touch Template 2.0. - 2 What is P-touch Template 2.0? - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 9
host that the printer is connected to. (Please refer to "2. P-touch Template Settings Tool User's Guide" on page 4.) The printer driver must first be Transfer Manager, transfer the templates to the printer. (Please refer to the TD Series Software User's Guide.) (4) Program using P-touch Template 2.0 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 10
2.0 Command Reference 2. P-touch Template Settings Tool User's Guide (1) Command mode setting (2) Template number setting (3) Delimiter setting (16) Communication settings Applies settings for (1) through (15) to the printer. Closes the tool. Returns (1) through (15) to their default settings. - - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 11
selected as the default when the printer is turned on. However, if any template has been set to not be transferred to the printer, the number of that template cannot "Appendix B: Character Code Tables". - Windows1252 - Windows1250 - Brother standard - 5 2. P-touch Template Settings Tool User's Guide - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 12
can be selected, or 1 to 20 characters can be specified as the line feed code. 1. ^CR 2. \0D\0A 3. \0A 4. \0D - 6 2. P-touch Template Settings Tool User's Guide - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 13
length (bits) 8 bits, 7 bits Parity None, Odd, Even Busy control DTR, XON/XOFF Closes the Communication Settings dialog box. Applies the four settings to the printer. Returns the four parameters to their default settings. - 7 2. P-touch Template Settings Tool User - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 14
)\App Data\Roaming\Brother \Printer Settings\ptsXX35.ini Note: A name of file "ptsXX35.ini" varies depending on printers like below. - TD-2020 pts3335.ini - TD-2120N pts3535.ini - TD-2130N pts3635.ini code \09 Line feed control code \0D \ \\ - 8 2. P-touch Template Settings Tool User's Guide - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 15
P-touch Editor. 2. Transfer the template to Transfer Manager. 3. Transfer the template from Transfer Manager to the printer. 4. Use P-touch Template 2.0 commands for printing. Step 1: Make a template with P-touch Editor. Start the P-touch Editor and make a label. - 9 3. Examples for Using Commands - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 16
template sent in step 2 is stored in Transfer Manager, as shown below. Stored template Assigned number Step 3: Transfer the template from Transfer Manager to the printer. Click [Transfer] button. - 10 - 3. Examples for Using Commands - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 17
communication setting is always bidirectional communication when Transfer Manager is used. When the template is transferred to the printer, the following message appears. Step 4: Use P-touch Template 2.0 commands for printing. When using P-touch Template 2.0 commands, at least these four commands - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 18
(3) Initialize P-touch Template 2.0 P-touch Template 2.0 Command Reference (4) Print Start When the printer receives the command above, the label below is printed. - 12 - 3. Examples for Using Commands - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 19
P-touch Template 2.0 Command Reference 3.2 Example for using ZPL II in P-touch Template 2.0 Here is the label that will be made. 406 dots (2 inches) 190 dots Example: A case 203dpi printer is used 110 dots 406 dots (2 inches) Font is outline font, and size is 50, 50 dots. Steps 1. Change the - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 20
your side." Entered command ^FO110,190 ^A0N,50,50 ^FDAt your side P-touch Template 2.0 Command Reference Summary -all commands to be sent to make the label^XA ^LL406 ^PW406 ^FO110,190 ^A0N,50,50 ^FDAt your side ^XZ Note "^XZ" is the command required at the end of format with ZPL - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 21
With those commands above, the label below is printed. P-touch Template 2.0 Command Reference - 15 - 3. Examples for Using Commands - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 22
P-touch Template 2.0 Command Reference 3.3 Example for printing logo/external characters in P-touch Template 2.0 Here is the label to be printed. Steps 1. Make a template and transfer it to the printer. 2. Store the logo/external characters as a bitmap file, and drag & drop it to Transfer Manager. - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 23
Transfer Manager. Assigned number Stored the logo/external character as a bitmap Step 3: Transfer the bitmap file from Transfer Manager to the printer. Click [Transfer] button. Step 4: In the P-touch Template Settings tool, select the assigned number for the stored template. (1) Select the P-touch - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 24
Template Settings tool in Step 4, the remaining three commands must be sent to the printer. (1) Initialize P-touch Template (2) Select the bitmap file to be printed. In (3) Start printing. When the printer receives the command above, the label below is printed. - 18 - 3. Examples for Using Commands - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 25
. Character sizes specified in P-touch Editor are converted to the closest built-in character size when the data is sent to the printer. Character sizes specified in P-touch Editor are all made the same size within an object. Depending on the language of the computer used for transferring - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 26
dots. A negative line spacing setting cannot be used in P-touch Editor. In addition, since there is an upper limit for the line width with the printer, a line spacing setting larger than this limit specified in P-touch Editor will not be applied on the - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 27
text size may become extremely small if the wrapping feature is no longer applied, we recommend that "Fixed Frame Size" be selected when die-cut labels or a fixed length is specified in P-touch Editor, or that "Automatic Length" be selected when an automatic media length is specified. Shrink to Fit - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 28
, an error will occur while transferring and the template cannot be transferred to the printer. The following barcodes are compatible with the TD-2XXX. 1D barcodes CODE39, ITF(I-2/5), UPC-A, UPC-E, EAN-13, EAN-8, CODABAR, CODE128, GS1-128(UCC/EAN-128) , RSS, POSTNET 2D barcodes PDF417, QR Code - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 29
P-touch Template 2.0 Command Reference 4.2.2 1D barcodes A barcode wider than 22.5 cm will not be printed. A 1D barcode taller than 1164 dots is converted to 1164dots. The number of characters that can be entered for each protocol is shown below. CODE39 1 to 50 characters (not including - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 30
for PDF417 specified in P-touch Editor are inconsistent with those on the printer, the size of the barcode may change when it is printed with partitioned when too much data is entered. When specifying the country code and service class with P-touch Editor, the number is entered at the beginning if - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 31
P-touch Template 2.0 Command Reference 4.3 Relating to images If a template containing overlapping images is transferred with P-touch Editor, all image data will be overlapping. (P-touch Editor displays the image created last on top.) 4.4 Relating to Numbering A single object contains a single - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 32
, the command mode should be the P-touch Template mode. When a template is transferred to the printer, all values specified with dynamic commands are initialized. This is not compatible with split labels. After printing from P-touch Editor, the command mode changes to raster mode. In order to - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 33
P-touch Template 2.0 Command Reference 5. Precautions 5.1 Notes for printers with Bluetooth interface If the printer is connected using Bluetooth, the printer may not be ready immediately after the port is opened. When sending print data, wait at least 500 msec after the port has been opened - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 34
P-touch Template 2.0 Command Reference 5.2 Relationship between the P-touch Editor settings and the printer image P-touch Editor setting Text options (Text Layout settings) Width Printer image Height Text Layout DetailsOptions Wrap Text Frame Size Text Size Frame Size Text Size Clip - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 35
P-touch Template 2.0 Command Reference 5.3 Making a template in order to save time before starting to print Perform the following operation to convert permanent objects into images. - In the Text Properties dialog box, select the Expanded tab, and then select the "Text Cannot Be Edited" check box. - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 36
TS 5E 54 53 Dynamic Select template ^CO 5E 43 4F Dynamic Specify printer settings (cut options) ^LS 5E 4C 53 Dynamic Specify line spacing FNC1 replacement setting ^II 5E 49 49 Initialize ^OP 5E 4F 50 Perform printer operation (feed) ^SR 5E 53 52 Status request ^VR 5E 56 52 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 37
Specify non-printed text strings Select command mode Select template Change prefix character Specify printer settings (cut options) Specify printer settings (cut options-specifying number of labels) Select character code set Select international character set Specify line feed command text string - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 38
P-touch Template 2.0 Command Reference (continued from the previous page) ASCII Code Binary Code Static/Dynamic Description ESC iXR1 1B 69 58 52 31 Retrieve line feed command setting text string ESC iXC1 1B 69 58 43 31 Retrieve number of copies setting ESC iXN1 1B 69 58 4E 31 Retrieve - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 39
7. Control Command Details ^PT Select print start trigger ASCII: ^ Decimal: 94 Hexadecimal: 5E P T n 80 84 nd 50 54 nh Parameters 1≤n≤3 Description Selects the type of print start trigger. n=1: When the specified text string is received (default) n=2: When all objects are filled (Prints - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 40
P-touch Template 2.0 Command Reference ^FF Start printing ASCII: ^ FF Decimal: 94 70 70 Hexadecimal: 5E 46 46 Parameters None Description Starts printing. However, the print start trigger must be "when the specified text string is received". (Refer to "^PT" and "ESC iXT2".) The text - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 41
P-touch Template 2.0 Command Reference ^PS Specify print start command text string ASCII: ^ P S n1 n2 Decimal: 94 80 83 nd1 nd2 Hexadecimal: 5E 50 53 nh1 nh2 data datad datah Parameters 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh Description Specifies the text string for the print start command. (n1* - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 42
P-touch Template 2.0 Command Reference ^PC Specify print start received character count ASCII: ^ P C n1 n2 n3 Decimal: 94 80 67 nd1 nd2 nd3 Hexadecimal: 5E 50 43 nh1 nh2 nh3 Parameters 0≤n1≤9 0≤n2≤9 0≤n3≤9 Description Specifies the number of characters to be received in order to start - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 43
P-touch Template 2.0 Command Reference ^SS Specify delimiter ASCII: ^ S S n1 n2 Decimal: 94 83 83 nd1 nd2 Hexadecimal: 5E 53 53 nh1 nh2 data datad datah Parameters 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh Description The delimiter is used to indicate when to move to the next object in data that is - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 44
becomes invalid if any other value has been specified or if the number that has been specified is for a template not transferred to the printer. Example To select template number 99: Since n2=9 and n3=9, the command will be as follows. ^ T S 0 9 9 (5Eh 54h 53h 30h 39h 39h) - 38 - 7. Control - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 45
n4: Cut at end setting (ON: 1 (default); OFF: 0) This command is a dynamic command. This command is applied to only a printer with auto cutter. Remarks The auto cut label number setting can be between 1 and 99. This command becomes invalid if any other value has been specified. Example - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 46
P-touch Template 2.0 Command Reference ^LS Specify line spacing with line feed ASCII: ^ L S n1 n2 n3 Decimal: 94 76 83 nd1 nd2 nd3 Hexadecimal: 5E 4C 53 nh1 nh2 nh3 Parameters 0≤n1≤2 0≤n2≤9 0≤n3≤9 Description Specifies the number of dots for the line spacing when a line feed is entered. ( - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 47
command. Example To change the prefix character from "^" to "_": ^ C C 5Fh (5Eh 43h 43h 5Fh) (5Fh stands for "_" in ASCII code) However, if the printer is later not turned off, then on again, the prefix character remains set to "_", and the initialize command, for example, will be "_II" instead - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 48
P-touch Template 2.0 Command Reference ^RC Specify line feed command text string ASCII: ^ Decimal: 94 Hexadecimal: 5E R C n1 n2 82 67 nd1 nd2 52 43 nh1 nh2 data datad datah Parameters 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh Description Specifies the text string for the line feed command. (n1*10)+ - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 49
Remarks When printing is finished, the number of copies specified with this command returns to the number of copies (static value) specified from the printer. Example To change the number of copies to 100: Since n1=1, n2=0 and n3=0, the command will be as follows. ^ C N 1 0 0 (5Eh 43h 4Eh 31h - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 50
Remarks When printing is finished, the number of copies specified with this command returns to the number of copies (static value) specified from the printer. Example To change the number of Numbering copies to 100: Since n1=1, n2=0 and n3=0, the command will be as follows. ^ N N 1 0 0 (5Eh 4Eh - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 51
P-touch Template 2.0 Command Reference ^QS Select print options ASCII: ^ Decimal: 94 Hexadecimal: 5E QS n 81 83 nd 51 53 nh Parameters n: 0, 1 Description Selects the print options. n=0: Priority given to print speed n=1: Priority given to print quality The default value for the print - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 52
P-touch Template 2.0 Command Reference ^QV Specify QR Code version ASCII: ^ Decimal: 94 Hexadecimal: 5E Q V n1 n2 81 86 nd1 nd2 51 56 nh1 nh2 Parameters 0≤n1≤4 0≤n2≤9 Description Specifies the QR Code version. (n1*10)+n2: Version number (between 0 and 40) The default QR Code version is - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 53
P-touch Template 2.0 Command Reference ^FC FNC1 replacement setting ASCII: ^ Decimal: 94 Hexadecimal: 5E F Cn 70 67 nd 46 43 nh Parameters 0≤n≤1 Description Selects whether or not GS codes, which are included in barcode protocols such as GS1-128 (UCC/EAN-128), are replaced with FNC1 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 54
ASCII: ^ Decimal: 94 Hexadecimal: 5E I I 73 73 49 49 Parameters None Description Reverts all dynamic settings to the printer settings. (1) Print start trigger setting (2) Print start command text string (3) Print start received character count (4) Delimiter (5) Number of selected - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 55
94 Hexadecimal: 5E OP n 79 80 nd 4F 50 nh Parameters n: 0 (Fixed) Description Causes the printer to perform a feed operation. Example To specify that the printer performs a feed operation: ^ O P 0 (5Eh 4Fh 50h 30h) P-touch Template 2.0 Command Reference - 49 - 7. Control Command Details - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 56
Returns the printer status. The printer status consists of 32 bytes. Number Offset Size Name 1 0 1 Print head mark 2 1 1 Size 3 2 1 Brother code 4 Fixed at "B" (42h) Fixed at "7" (35h) Fixed at TD-2020: "3" (33h) TD-2120N: "5" (35h) TD-2130N: "6" (36h) Fixed at "0" (30h) Refer to - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 57
6 40h Bit 7 80h (3) Media type Media Type Continuous length tape Die-cut label (4) Status type Status Type Reply to status request (Not used) Error occurred (Not End of media" error "Cutter jam" error Not used Printer in use Printer turned off Not used Not used Definition Definition Not used - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 58
Reference Meaning ^VR Retrieve version information ASCII: ^ VR Decimal: 94 86 82 Hexadecimal: 5E 56 52 Parameters None Description Retrieves the version information for the printer as a 16-character text string. - 52 - 7. Control Command Details - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 59
P-touch Template 2.0 Command Reference ^CR Line feed in object ASCII: ^ Decimal: 94 Hexadecimal: 5E C R 67 82 43 52 Parameters None Description Adds a line feed to the next line in the text object. Valid even if the text string for the line feed command has been changed Example To - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 60
P-touch Template 2.0 Command Reference ^OS Select object (object number) ASCII: ^ Decimal: 94 Hexadecimal: 5E O S n1 n2 79 83 nd1 nd2 4F 53 nh1 nh2 Parameters 0≤n1≤9 0≤n2≤9 Description Selects an object by its object number. (n1*10)+n2: Object number (1 to 99) Remarks The object - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 61
P-touch Template 2.0 Command Reference ^ON Select object (object name) ASCII: ^ O N data 00 Decimal: 94 79 78 datad 00 Hexadecimal: 5E 4F 4E datah 00 Parameters None Description Selects an object by its object name. data: Text string (object name) Remarks The maximum length of text - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 62
P-touch Template 2.0 Command Reference ^DI Directly insert object ASCII: ^ Decimal: 94 Hexadecimal: 5E D I n1 n2 68 73 nd1 nd2 44 49 nh1 nh2 data datad datah Parameters 00h≤nh1≤FFh 00h≤nh2≤FEh Description Inserts a text string for the specified number of characters into the object - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 63
P-touch Template 2.0 Command Reference ESC i a Select command mode ASCII: ESC i a n Decimal: 27 105 97 nd Hexadecimal: 1B 69 61 nh Parameters nh=00h 01h 03h 04h 05h 30h 31h 33h 34h 35h Description Switches the mode. nh=00h or 30h: ESC/P mode nh=01h or 31h: Raster mode nh=03h or 33h: P- - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 64
P-touch Template 2.0 Command Reference ESC iXT2 Select print start trigger ASCII: ESC i X T 2 n1 n2 n3 Decimal: 27 105 88 84 50 nd1 nd2 nd3 Hexadecimal: 1B 69 58 54 32 nh1 nh2 nh3 Parameters nh1=01h (Fixed) nh2=00h (Fixed) 00h≤nh3≤02h Description Selects the type of print start trigger. nh3 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 65
P-touch Template 2.0 Command Reference ESC iXP2 Specify print start command text string ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 P 2 n1 n2 data 80 50 nd1 nd2 datad 50 32 nh1 nh2 datah Parameters 01h≤nh1≤14h nh2: 00h (Fixed) 00h≤datah≤FFh Description Specifies the text - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 66
P-touch Template 2.0 Command Reference ESC iXr2 Specify print start received character count ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 r 2 n1 n2 n3 n4 114 50 nd1 nd2 nd3 nd4 72 32 nh1 nh2 nh3 nh4 Parameters nh1: 02h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh 00h≤nh4≤03h Description - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 67
P-touch Template 2.0 Command Reference ESC iXD2 Specify delimiter ASCII: ESC i X D Decimal: 27 105 88 68 Hexadecimal: 1B 69 58 44 2 n1 n2 data 50 nd1 nd2 datad 32 nh1 nh2 datah Parameters 01h≤nh1≤14h nh2: 00h (Fixed) 00h≤datah≤FFh Description The delimiter is used to indicate when to - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 68
P-touch Template 2.0 Command Reference ESC iXa2 Specify non-printed text strings ASCII: ESC i X a Decimal: 27 105 88 97 Hexadecimal: 1B 69 58 61 2 n1 n2 n3 data 50 nd1 nd2 nd3 datad 32 nh1 nh2 nh3 datah Parameters 01h≤nh1≤15h nh2: 00h (Fixed) nh3: 01h (Fixed) 00h≤datah≤FFh Description - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 69
P-touch Template 2.0 Command Reference ESC iXi2 Select command mode ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 i 2 n1 n2 n3 105 50 nd1 nd2 nd3 69 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h 01h 03h 04h 05h Description Switches the mode. nh3=00h: ESC/P - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 70
≤nh3≤63h Description Selects the number of the template selected from the printer. n3: Template number (1 to 99) The default selection number is number that has been specified is for a template not transferred to the printer. Example To select template number 99: Since nh3=63h, the command - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 71
ESC iXf2 Change the prefix character ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 f 2 n1 n2 n3 102 50 nd1 nd2 nd3 66 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh Description Changes the prefix character code. n3: Character code The default text - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 72
at end of printing nh3=09h: Automatically cuts, and cuts at end of printing This command is a static command. This command is applied to only a printer with auto cutter Example To select auto cutting: ESC i X c 2 01h 00h 01h (1Bh 69h 58h 63h 32h 01h 00h 01h) P-touch Template 2.0 Command - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 73
(01h to 63h) This command is a static command. This command is applied to only a printer with auto cutter. Example To cut after every five labels (However, the auto cut setting must be set to ON.): ESC i X y 2 01h 00 05h (1Bh 69h 58h 79h 32h 01h 00h 05h) - 67 - 7. Control Command - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 74
character code set. (For details on the character code sets, refer to the character code tables in "Appendix B: Character Code Tables".) nh3=00h: Brother standard nh3=01h: Windows1250 (Eastern Europe) nh3=02h: Windows1252 (Western Europe) nh3=03h: ZPL II Emulation nh3=04h: Japan Invalid if nh3 is - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 75
P-touch Template 2.0 Command Reference ESC iXj2 Select international character set ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 j 2 n1 n2 n3 106 50 nd1 nd2 nd3 6A 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤0Dh, 40h Description Selects the character set - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 76
P-touch Template 2.0 Command Reference ESC iXR2 Specify line feed command text string ASCII: ESC i X R Decimal: 27 105 88 82 Hexadecimal: 1B 69 58 52 2 n1 n2 data 50 nd1 nd2 datad 32 nh1 nh2 datah Parameters 01h≤nh1≤14h nh2: 00h (Fixed) 00h≤datah≤FFh Description Specifies the text string - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 77
P-touch Template 2.0 Command Reference ESC iXC2 Specify number of copies ASCII: ESC i X C Decimal: 27 105 88 67 Hexadecimal: 1B 69 58 43 2 n1 n2 n3 n4 50 nd1 nd2 nd3 nd4 32 nh1 nh2 nh3 nh4 Parameters nh1: 02h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh 00h≤nh4≤03h Description Specifies the - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 78
P-touch Template 2.0 Command Reference ESC iXN2 Specify number of Numbering copies ASCII: ESC i X N 2 n1 n2 n3 n4 Decimal: 27 105 88 78 50 nd1 nd2 nd3 nd4 Hexadecimal: 1B 69 58 4E 32 nh1 nh2 nh3 nh4 Parameters nh1: 02h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh 00h≤nh4≤03h Description Specifies - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 79
P-touch Template 2.0 Command Reference ESC iXF2 FNC1 replacement setting ASCII: ESC i X F Decimal: 27 105 88 70 Hexadecimal: 1B 69 58 46 2 n1 n2 n3 50 nd1 nd2 nd3 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h 01h Description Selects whether or not GS codes, which - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 80
P-touch Template 2.0 Command Reference ESC iXq2 Select print options ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 q 2 n1 n2 n3 113 50 nd1 nd2 nd3 71 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h, 01h Description Selects the print options. nh3=00h: - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 81
ESC iXd2 Specify recovery setting ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 d 2 n1 n2 n3 100 50 nd1 nd2 nd3 64 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h, 01h Description Select enable or disable of recovery print. nh3=00h: Disable recovery print nh3 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 82
ESC iXE2 Specify barcode margin setting ASCII: ESC i X E Decimal: 27 105 88 69 Hexadecimal: 1B 69 58 45 2 n1 n2 n3 50 nd1 nd2 nd3 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h, 01h Description Select an existence of barcode margin. nh3=00h: No margin nh3=01h: Add - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 83
ESC iXh2 Specify rotated print ASCII: ESC i X Decimal: 27 105 88 Hexadecimal: 1B 69 58 h 2 n1 n2 n3 104 50 nd1 nd2 nd3 68 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h, 01h Description Select rotate setting. nh3=00h: No rotation nh3=01h: 180 degrees rotation The - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 84
specified number of characters is received The retrieved value is a value specified by a static command. Example The print start trigger specified for the printer is retrieved. When the setting is "when the specified text string is received": Code: ESC i X T 1 00h 00h (1Bh 69h 58h 54h 31h 00h - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 85
(Fixed) nh2: 00h (Fixed) Description Retrieves the text string specified for the print start command. 3- to 22-byte data is returned from the printer. (Varies depending on the length of the text string) [1,2]: nh1 nh2 (number of characters) nh1+(nh2*256) [3 and later]: Text string The - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 86
Description Retrieves the number of characters specified to be received in order to start printing. 4-byte data is returned from the printer. [1]: 02h (Fixed) [2]: 00h (Fixed) [3,4]: nh3 nh4 settings nh3+(nh4*256): Print start received character count The retrieved value is a value specified - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 87
nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the text string specified for the delimiter. 3- to 22-byte data is returned from the printer. (Varies depending on the length of the text string) [1,2]: nh1 nh2 (number of characters) nh1+(nh2*256) [3 and later]: Text string The - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 88
-printed text string. 2- to 22-byte data is returned from the printer. (Varies depending on the length of the text string) [1,2]: nh1 nh2 ABCD" is specified as the non-printed text string: The following command is sent to the printer. Code: ESC i X a 1 01h 00h 01h (1Bh 69h 58h 61h 31h 01h 00h 01h - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 89
nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the setting for the command mode. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting 00h: ESC/P mode 01h: Raster mode 03h: P-touch Template mode 04h: CPCL Page Print mode 05h: CPCL - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 90
31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the template number selected from the printer. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting The retrieved value is a value specified by a static command. Example When - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 91
) [3]: Setting 00h: No cutting 01h: Automatically cuts The retrieved value is a value specified by a static command. This command is applied to only a printer with auto cutter. Example When auto cutting is selected: Code: ESC i X c 1 00h 00h (1Bh 69h 58h 63h 31h 00h 00h) Returned value: 01h - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 92
00h (Fixed) [3]: Setting The retrieved value is a value specified by a static command. This command is applied to only a printer with auto cutter. Example When cutting is specified for every five labels: Code: ESC i X y 1 00h 00h (1Bh 69h 58h 79h 31h 00h 00h) Returned value: 01h 00h 05h - 86 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 93
on the character code sets, refer to "Appendix B: Character Code Tables".) 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting 00h: Brother standard 01h: Windows1250 (Eastern Europe) 02h: Windows1252 (Western Europe) 03h: ZPL II Emulation 04h: Japan The - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 94
nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the international character set setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting 00h: USA 01h: France 02h: Germany 03h: Britain 04h: Denmark I 05h: Sweden 06h: Italy 07h - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 95
nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the prefix character code. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Specified character The retrieved value is a value specified by a static command. Example When the prefix - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 96
(Fixed) nh2: 00h (Fixed) Description Retrieves the text string specified for the line feed command. 2- to 22-byte data is returned from the printer. (Varies depending on the length of the text string) [1, 2]: nh1 nh2 (number of characters) nh1+(nh2*256) [3 and later]: Text string The - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 97
: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the number of copies specified to be printed. 4-byte data is returned from the printer. [1]: 02h (Fixed) [2]: 00h (Fixed) [3, 4]: nh3 nh4 settings nh3+(nh4*256): Print start received character count The retrieved value is a value specified - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 98
Fixed) nh2: 00h (Fixed) Description Retrieves the number of copies specified to be printed with Numbering. 4-byte data is returned from the printer. [1]: 02h (Fixed) [2]: 00h (Fixed) [3, 4]: nh3 nh4 settings nh3+(nh4*256): Number of Numbering copies The retrieved value is a value specified by - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 99
nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the FNC1 replacement setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting 00h: FNC1 replacement setting OFF 01h: FNC1 replacement setting ON The retrieved value is a value - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 100
nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieves the print options setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: nh3 Settings The retrieved value is a value specified by a static command. Example When the print options - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 101
nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieve the recovery print setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: nh3 Settings The retrieved value is a value specified by a static command. Example The case the recovery - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 102
31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieve the barcode margin setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: nh3 Settings The retrieved value is a value specified by a static command. Example The case the barcode - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 103
31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description Retrieve rotated print setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: nh3 Settings The retrieved value is a value specified by a static command. Example When the rotate setting - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 104
P-touch Template 2.0 Command Reference 8. ZPL II supported by TD-2020/2120N/2130N ZPL II ^A ^B0 ^B2 ^B3 ^B7 ^B8 ^B9 ^BA ^BC ^BD ^BE ^BF ^BI ^BJ ^BK ^BM ^ set Change prefix ~ Change prefix ~ Name downloaded font with 1 alphanumeric character. - 98 - 8. ZPL II supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 105
of label Reverse printer information Return printer settings to host Delete image file Recall image files stored with ^IS Recall image files Store image files Cancel format Initialize memory Clear format holding ~JP Initialize when printer turned on - 99 - 8. ZPL II supported by TD-2020/2120N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 106
^XA ^XF ^XG ^XZ Description Printer setting Select print setting after error occurs Set language Set home position of label Set label length Reverse field data color Set horizontal Serialization Reverse feed length setting when printing Print printer settings Print list of stored files Command - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 107
P-touch Template 2.0 Command Reference 9. CPCL supported by TD-2020/2120N/2130N UTILITIES CPCL ! UTILITIES U1 VERSION CHECKSUM DEL DIR DF DEFINE-FILE -CENTIMETERS Comment Description Justification (field alignment) Page width Units of measure - 101 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 108
IN-INCHES IN-MILLIMETERS COUNTRY SETSP FG SETMAG BARCODE-TEXT BT PRINT END ABORT CPCL Printer Control CPCL JOURNAL CONTRAST TONE FORM PACE NO-PACE WAIT SPEED PREFEED POSTFEED PRESENT-AT CUT-AT print Conditional advance/retract Retract after cut - 102 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 109
scalable text to fit window Scale vertical scalable text to fit window Horizontal scalable text concatenation Vertical scalable text concatenation Rotate scalable text - 103 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 110
-E with extension Horizontal Barcode ITF Vertical Barcode ITF Horizontal Barcode ITF with Checksum Vertical Barcode ITF with Checksum Horizontal Barcode German Post Code - 104 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 111
extension Horizontal Barcode 39 Vertical Barcode 39 Horizontal Barcode 39 with Checksum Vertical Barcode 39 with Checksum Horizontal Barcode 39 with Full ASCII - 105 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 112
16 Checksum Vertical Barcode CODABAR with mod 16 Checksum Horizontal Barcode MSI Plessey Vertical Barcode MSI Plessey Horizontal Barcode MSI Plessey with Checksum(s) - 106 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 113
B QRCODE Description Horizontal Barcode PDF417 Vertical Barcode PDF417 End Barcode PDF417 Horizontal Barcode Maxicode Vertical Barcode Maxicode End Barcode Maxicode Horizontal Barcode QRCode - 107 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 114
-ORIENT SETLP SETLF X Y Description Line print mode orientation Line print mode font Line print mode line spacing Move right absolute Move down absolute - 108 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 115
/retract Retract after cut Print after idle time Any linear barcode or graphics command are able to be used in Line Print Mode. - 109 - 9. CPCL supported by TD-2020/2120N/2130N - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 116
Appendix A: Specifications BROTHER TD-2020/2120N/2130N P-touch Template 2.0 specifications Printing method Raster printing (PTCBP mode) ESC/P printing P-touch Template printing CPCL Page Print mode CPCL Line Print mode Maximum print length Resolution (dpi) Font 1 meter TD-2020/2120N: 203 dpi - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 117
P-touch Template 2.0 Command Reference Appendix B: Character Code Tables Character code tables (1) Windows1252 (Western Europe) 0 1 2 3 4 5 6 7 8 9 ABCDEF 0 SP 0 @ P ` p € ° ÀÐà ð 1 ! 1 AQa q 2 " 2 BRb r 3 # 3CS c s 4 $ 4DT d t 5 %5 EU e u 6 & 6 F V f v 7 ' 7 GW g w - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 118
P-touch Template 2.0 Command Reference (2) Windows1250 (Eastern Europe) 0 1 2 3 4 5 6 7 8 9 ABCDEF 0 SP 0 @ P ` p € tˇ 1 ! 1 AQa q 2 " 2BRb r 3 # 3 C S c s ˇ L " Ł ł Ă Ó ă ó 4 $ 4DT d t 5 %5 EU e u 6 & 6 F V f v 7 ' 7 GW g w 8 ( 8HXh x ľ 9 ) 9 I Y i - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 119
P-touch Template 2.0 Command Reference (3) Brother standard 0 1 2 3 4 5 6 7 8 9 ABCDEF 0 SP 0 @ P ` p α 1 ! 1 AQa q β ± 2 " 2 BR b r 3 # 3CS c s ¾ 4 $ 4DT d t 5 %5 EUe u à òÑ ┼ § 6 & 6 F V f v å û a ¯ µ ÷ 7 ' 7 GW g w ç ù o ¯ 8 ( 8HX h x ° 9 ) 9 I Y i - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 120
P-touch Template 2.0 Command Reference (4) Japan 0 1 2 3 4 5 6 7 8 9 ABCDEF 0 SP 0 @ P ` p SP ー タ ミ 1 ! 1 AQa q 2 " 2BRb r 3 # 3CS c s 4 $ 4DTd t 5 %5 EUe u 6 &6FV f v 7 ' 7 GW g w 8 ( 8HXh x 9 )9IYi y A * : JZ j z B +;K[ k { C - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 121
P-touch Template 2.0 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 - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 122
P-touch Template 2.0 Command Reference Appendix C: Troubleshooting If printing does not begin (main most frequent cause) (1) The communication settings are incorrect. (2) search for the key code (333333333333) for "Chocolate", then print: 333333333333 09h ^ F F - 116 - Appendix C: Troubleshooting - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 123
P-touch Template 2.0 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. http://www.brother.com/product/dev/index.htm - 117 Appendix D: Introducing - Brother International TD-2020 | P-touch Template Manual/ Command Reference - Page 124
Software Developer's Manual
P-touch Template 2.0 Command Reference
TD-2020/2120N/2130N
Version 1.02