Page 2
No Warranty a. Any updates, upgrades or alteration of the Documentation or Machine Model will be performed at the sole discretion of Brother. Brother may not respond to any request or inquiry about the Documentation. b. THIS DOCUMENTATION IS PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
Introduction This material provides the necessary information for directly controlling the templates transferred to PT-9800PCN/PT-9700PC. 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 PT-9800PCN/PT-9700PC, and any problems resulting directly or indirectly from them.
Using P-touch Template 1. Set up the printer. With the P-touch Template Settings tool, specify the initial printer settings according to the host system environment or the host device that PT-9800PCN/PT-9700PC is connected to. (Refer to “P-touch Template Settings tool” on page 7.) The printer driver must first be installed via a USB connection.
Page 6
5. Connect the printer to the host device, and print labels. Connect the printer to the host device by using a serial cable (RS-232C) or USB-A cable. Transfer the data, such as ASCII text, from the host device to templates on the machine, and print the labels. *Refer to the sample code for details on using P-touch Template.
Page 7
P-touch Template Settings tool ① Command mode setting ② Template number setting ③ Delimiter setting ④ Print start trigger setting ⑤ Print start command text string setting ⑥ Print start data amount setting ⑦ Character code set setting ⑧ International character setting ⑨...
Page 8
① Command mode setting ・ P-touch Template mode To use P-touch Template, select the P-touch Template mode. ・ ESC/P mode ・ Raster mode ② Template number setting Specify the template number selected as the default when the machine is turned on. However, if any template has been set to not be transferred to the machine, the number of that template cannot be specified.
Page 9
Select one of the following three character codes. For details on the character code tables, refer to the character code tables in the P-touch Template Command Reference. ・ Windows 1252 ・ Windows 1250 ・ Brother standard ⑧ International character setting Select one of the following as the character set of the country. ・ USA ・...
Page 10
P-touch Template Command Reference. ⑨ Prefix character setting Change the prefix character code. Specify as a one-character character code. The prefix character is the code for the first character that identifies commands that can be used in P-touch Template mode. ⑩...
Page 11
⑭ Auto cut setting If auto cutting is selected, the cut operation will be performed after the number of labels specified in ⑰. ⑮ Half cut setting Specifies half cutting. If the check box is selected, half cuts are made. If the check box is cleared, half cuts are not made.
Page 12
⑳ Communication settings Settings can be specified for the following parameters for serial communication. ・ Baud Rate 115200bps, 57600bps, 38400bps, 31250bps, 28800bps, 19200bps, 14400bps, 9600bps, 4800bps, 2400bps, 1200bps, 600bps ・ Bit Length (bits) 8 bits, 7 bits ・ Parity None, Odd, Even ・...
Page 13
After the [Set] button (in the main dialog box or the Communications Settings dialog box) is clicked, the settings are saved and the dialog box is closed. (With PT-9800PCN) C:\Documents and Settings\<user_account_name>\Application Data\Brother\Printer Settings\Pts202E.ini (With PT-9700PC) C:\Documents and Settings\<user_account_name>\Application Data\Brother\Printer Settings\Pts203C.ini...
P-touch Template limitations ■ Relating to text objects ・Fonts specified in P-touch Editor are converted to Helsinki, Letter Gothic or Brussels, depending on the font shape, when the data is sent to the machine. (The font is converted according to the following rules: fixed pitch: Letter Gothic; serif: Brussels;...
Page 15
“At Printing” setting (To cancel the “At Printing” setting for a date/time in P-touch Editor, display the Date and Time Properties dialog box for the Date and Time object, and then clear the “At Printing” check box.) ・Horizontal alignment settings (“Justify” or “Equal Length”) specified in P-touch Editor are changed to the left alignment setting.
Page 16
Specifying the line spacing setting in P-touch Editor ・Character styles specified in P-touch Editor are all made the same style within an object. ・If the “Long Text” setting is selected under “Text Layout” in P-touch Editor, the vertical alignment setting is normally set for top alignment. ・If "Long Text”...
Page 17
long, the width of the text object is increased. 5. Free Size: The text size is fixed. If the text is too long, the width of the text object is increased. If a line feed is added, the height of the text object is increased. Specifying a Text Layout setting Click the button circled in red to display a drop-down list, and then select the desired option.
Page 18
Relationship between the P-touch Editor setting and the printer image Printer image P-touch Editor setting Width Height Printed Text Option (Text Layout) image Text Details- Wrap Text Text Frame Size Frame Size Layout Options Text Size Size Clip Text If the text is too If the text is too (See Fixed...
Page 19
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, select the [Expanded] tab and check “Text Cannot Be Edited”. · When the [Expanded] tab is not seen in the [Text Properties] dialog, click [Tools] –...
Page 20
■ Relating to bar codes ● Bar codes ・When trying to transfer a template containing a bar code that is not compatible with the machine, an error will occur while transferring and the template cannot be transferred to the machine. The following bar codes are compatible with the machine.
Page 21
UPC-E: 6 characters CODABAR: 3 to 64 characters (with “A”, “B”, “C” or “D” at the beginning and end) CODE128: 1 to 64 characters GS1-128 (UCC/EAN-128): 1 to 64 characters RSS-14: 3 to 15 characters (begins with “01”) RSS Limited: 3 to 15 characters (begins with “01”; third digit is “0” or “1”) RSS Expanded: 1 to 64 numbers or 1 to 40 letters* ISO646 characters can be printed.
Page 22
● DataMatrix ・The linkage setting specified in P-touch Editor is invalid. ・Macro settings specified in P-touch Editor are invalid. ● MaxiCode ・The linkage setting specified in P-touch Editor is invalid. It is linked 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 the maximum number of characters is not reached.
Page 23
■ 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.) ■ Relating to databases ・When a database is transferred, it is named using the file name + sheet name (when created in Excel).
Page 24
・A Numbering field can contain a maximum of 15 digits. If the field contains more than 15 digits, Numbering will only be performed with the last 15 digits. ・Only Numbering fields will be saved in Numbering objects when printing is finished. ・If the number of characters that was fed in is less than the number of characters in the Numbering object, it may not be printed correctly.
Page 25
Specifying the object name ・When print data is fed, the command mode should be the P-touch Template mode. ・When a template is transferred to the machine, 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.
Precautions Static commands are valid only in raster mode. Example: To dynamically change the template selection number to 10 Switch to raster mode. ESC i a 01h (1Bh 69h 61h 01h) Select template number 10. ESC i X n 2 01h 00h 0Ah (1Bh 69h 58h 6Eh 32h 01h 00h 0Ah) Dynamically enter the P-touch Template mode.
[Contents] [Contents]..........................2 Control code list ........................ 5 Commands that can be set or obtained in P-touch Template mode ....... 5 Commands that can be set or obtained in raster mode .......... 6 About P-touch Template ....................8 Static and dynamic commands..................8 If printing does not begin (main most frequent causes).............
Page 30
ESC iXC1 Retrieve number of copies setting............ 71 ESC iXN1 Retrieve number of Numbering copies setting ......... 72 ESC iXF1 Retrieve FNC1 replacement setting ..........73 Character code table ....................... 74 Standard character code table................74 Eastern European character code table (Windows 1250) ........75 Western European character code table (Windows 1252) ........
Control code list Commands that can be set or obtained in P-touch Template mode 5E 50 54 Dynamic Select print start trigger 5E 50 53 Dynamic Specify print start command text string 5E 50 43 Dynamic Specify print start received character count 5E 53 53 Dynamic Specify delimiter...
About P-touch Template Data can be sent from a host device (such as measuring instruments, scales and bar code readers) and printed in a template created in P-touch Editor and previously transferred to the printer. P-touch Template commands consist of a prefix character and a two-character text string. When the prefix character is sent, the machine begins the analysis of the P-touch Template command, and performs the specified process if the following two-character text string corresponds to a command.
Control command details Select print start trigger [ASCII] ^ P T n [Decimal] 94 80 84 nd [Hexadecimal] 5E 50 54 nh [Parameters] 1≤n≤3 [Description] ・Selects the print start trigger type. n=1: When the specified text string is received (default) n=2: When all objects are filled (Prints with the delimiter at the end of the data) n=3: When the specified number of characters is received...
Specify print start command text string [ASCII] ^ P S n1 n2 data [Decimal] 94 80 83 nd1 nd2 datad [Hexadecimal] 5E 50 53 nh1 nh2 datah [Parameters] 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh [Description] ・Specifies the text string for the print start command. (n1*10)+n2: Length of the text string (can be set between 1 and 20) data: Text string (The maximum number of characters that can be set is 20 characters...
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 printing. (n1*100)+(n2*10)+n3: Print start received character count (1 to 999 characters)
Specify delimiter [ASCII] ^ S S n1 n2 data [Decimal] 94 83 83 nd1 nd2 datad [Hexadecimal] 5E 53 53 nh1 nh2 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 being sent. ・Specifies the text string for the delimiter.
Select template [ASCII] ^ T S n1 n2 n3 [Decimal] 94 84 83 nd1 nd2 nd3 [Hexadecimal] 5E 54 53 nh1 nh2 nh3 [Parameters] n1: 0 (Fixed) 0≤n2≤9 0≤n3≤9 [Description] ・Specifies the number of the template selected from the machine. (n2*10)+n3: Template number (1 to 99) ・The default selection number is 1.
Full cut setting [ASCII] ^ C F n1 n2 [Decimal] 94 67 70 nd1 nd2 [Hexadecimal] 5E 43 46 nh1 nh2 [Parameters] 0≤n1≤9 0≤n2≤9 [Description] ・Specifies whether or not full cut is used, and specifies the number of copies. (n1*10)+n2: Full cut and number of copies settings (00: OFF;...
Half cut setting [ASCII] ^ C H n [Decimal] 94 67 72 nd [Hexadecimal] 5E 43 48 nh [Parameters] 0≤n≤1 [Description] ・Specifies whether or not half cut is used. Half cut setting (ON: 1 (default); OFF: 0) ・This command is a dynamic command. [Remarks] ・Invalid if n is a value other than 1 or 0 [Example]...
Chain printing setting [ASCII] ^ C P n [Decimal] 94 67 80 nd [Hexadecimal] 5E 43 50 nh [Parameters] 0≤n≤1 [Description] ・Specifies whether or not chain printing is applied. Chain printing setting (OFF: 0 (default); ON: 1) ・This command is a dynamic command. [Remarks] ・Invalid if n is a value other than 1 or 0 [Example]...
Mirror printing setting [ASCII] ^ M P n [Decimal] 94 77 80 nd [Hexadecimal] 5E 4D 50 nh [Parameters] 0≤n≤1 [Description] ・Specifies whether or not mirror printing is applied. Mirror printing setting (OFF: 0 (default); ON: 1) ・This command is a dynamic command. [Remarks] ・Invalid if n is a value other than 1 or 0 [Example]...
Special tape setting [ASCII] ^ S P n [Decimal] 94 83 80 nd [Hexadecimal] 5E 53 50 nh [Parameters] 0≤n≤1 [Description] ・Specifies whether or not the special tape setting is enabled. When the special tape setting is ON, the cut settings and chain printing setting are not available (same as being OFF).
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. (n1*100)+(n2*10)+n3 : Number of dots for the line spacing (0 to 255) ・The default number of dots for the line spacing when a line feed is entered is the number of dots determined when the template is created in P-touch Editor.
Change prefix character [ASCII] ^ C C n [Decimal] 94 67 67 nd [Hexadecimal] 5E 43 43 nh [Parameters] 00h≤nh≤FFh [Description] ・Changes the prefix character code. Character code ・The default text string for the prefix character is “^”. ・This command is a dynamic command. [Example] ・To change the prefix character from “^”...
Specify line feed command text string [ASCII] ^ R C n1 n2 data [Decimal] 94 82 67 nd1 nd2 datad [Hexadecimal] 5E 52 43 nh1 nh2 datah [Parameters] 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh [Description] ・Specifies the text string for the line feed command. (n1*10)+n2: Length of the text string (can be set between 1 and 20) data: Text string (The maximum number of characters that can be set is 20 characters...
Specify number of copies [ASCII] ^ C N n1 n2 n3 [Decimal] 94 67 78 nd1 nd2 nd3 [Hexadecimal] 5E 43 4E nh1 nh2 nh3 [Parameters] 0≤n1≤9 0≤n2≤9 0≤n3≤9 [Description] ・Specifies the number of copies to be printed. (n1*100)+(n2*10)+n3: Number of copies (bytes) (1 to 999) ・The default number of copies is 1.
Specify number of Numbering copies [ASCII] ^ N N n1 n2 n3 [Decimal] 94 78 78 nd1 nd2 nd3 [Hexadecimal] 5E 4E 4E nh1 nh2 nh3 [Parameters] 0≤n1≤9 0≤n2≤9 0≤n3≤9 [Description] ・Specifies the number of copies to be printed with Numbering. (n1*100)+(n2*10)+n3: Number of Numbering copies (bytes) (1 to 999)
Initialize template data [ASCII] ^ I D [Decimal] 94 73 68 [Hexadecimal] 5E 49 44 [Parameters] None [Description] ・Returns the data in the selected template to what it was when the template was transferred.
Specify QR Code version [ASCII] ^ Q V n1 n2 [Decimal] 94 81 86 nd1 nd2 [Hexadecimal] 5E 51 56 nh1 nh2 [Parameters] 0≤n1≤9 0≤n2≤9 [Description] ・Specifies the QR code version. (n1*10)+n2: Version number (between 0 and 40) ・The default QR code version is 0. ・This command becomes invalid if a value other than those that can be set (between 0 and 40) has been specified.
FNC1 replacement setting [ASCII] ^ F C n [Decimal] 94 70 67 nd [Hexadecimal] 5E 46 43 nh [Parameters] 0≤n≤1 [Description] ・This command selects whether or not GS codes, which are included in bar code protocols such as GS1-128 (UCC/EAN-128), are replaced with FNC1 codes. FNC1 replacement setting (ON: 1;...
Initialize [ASCII] ^ I I [Decimal] 94 73 73 [Hexadecimal] 5E 49 49 [Parameters] None [Description] ・Reverts all dynamic settings to the machine settings. Select print start trigger Specify print start command text string Specify print start received character count Delimiter setting Select template Full cut setting...
Perform machine operations (feed/cut) [ASCII] ^ O P n [Decimal] 94 79 80 nd [Hexadecimal] 5E 4F 50 nh [Parameters] [Description] ・Causes the machine to perform a feed and cut operation. n = 4 : Performs the feed and cut operation [Remarks] ・Invalid if n is a value other than 4 [Example]...
Size Name Value/Reference 1 Print head mark Fixed at 80H 1 Size Fixed at 20H 1 Brother code Fixed at “B” (42H) 1 Series code Fixed at “0” (30H) 1 Model code “a” (61H) (*1) “b” (61H) (*2) 1 Country code Fixed at “0”...
Page 56
1 Notification number Not used 1 Expansion section Fixed at 00H (number of bytes) 8 Reserved Fixed at 00H (*1) With PT-9800PCN (*2) With PT-9700PC...
Page 57
Error information 1 Flag Mask Definition Bit 0 0x01 "No media” error Bit 1 0x02 “End of media” error Bit 2 0x04 “Cutter jam” error Bit 3 0x08 Not used Bit 4 0x10 Not used Bit 5 0x20 Machine turned off Bit 6 0x40 Not used...
Page 58
Media type Media type Value Remarks No tape Lettering tape Laminated tape KP (thermal) tape Non-laminated tape HG tape Incompatible tape Status type Status type Value Reply to status request Printing completed Error occurred Not used Not used Notification Phase change Not used 07H to EFH Send advanced data...
^V R Retrieve version Information [ASCII] ^ V R [Decimal] 94 86 82 [Hexadecimal] 5E 56 52 [Parameters] None [Description] ・Retrieves the version information for the machine as a 16-character text string. Line feed in object [ASCII] ^ C R [Decimal] 94 67 82 [Hexadecimal]...
Select object (object number) [ASCII] ^ O S n1 n2 [Decimal] 94 79 83 nd1 nd2 [Hexadecimal] 5E 4F 53 nh1 nh2 [Parameters] 0≤n1≤5 0≤n2≤9 [Description] ・Selects an object by its object number. (n1*10)+n2: Object number (1 to 50) [Remarks] ・The object number can be set between 1 and 50.
Directly insert object [ASCII] ^ D I n1 n2 data [Decimal] 94 68 73 nd1 nd2 datad [Hexadecimal] 5E 44 49 nh1 nh2 datah [Parameters] 00h≤nh1≤FFh 00h≤nh2≤FEh [Description] ・Inserts a text string for the specified number of characters into the object selected in the selected template.
ESC iXD2 Specify delimiter [ASCII] ESC i X D 2 n1 n2 data [Decimal] 27 105 88 68 50 nd1 nd2 datad [Hexadecimal] 1B 69 58 44 32 nh1 nh2 datah [Parameters] 01h≤nh1≤14h nh2: 00h (fixed) 00h≤datah≤FFh [Description] ・The delimiter is used to indicate when to move to the next object in data that is being sent. ・Specifies the text string for the delimiter.
ESC iXn2 Select template [ASCII] ESC i 2 n1 n2 n3 [Decimal] 27 105 88 110 50 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 6E 32 nh1 nh2 nh3 [Parameters] nh1: 01h (fixed) nh2: 00h (fixed) 01h≤nh3≤63h [Description] ・Specifies the number of the template selected from the machine. Template number (1 to 99) ・The default selection number is 1.
・Invalid if nh3 is set to a value other than 00h through 02h ・This command is a static command. [Example] ・To set the character code set to the Brother standard: ESC i X m 2 01h 00h 00h (1Bh 69h 58h 6Dh 32h 01h 00h 00h)
ESC iXj2 Specify international character set [ASCII] ESC i 2 n1 n2 n3 [Decimal] 27 105 88 106 50 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 6A 32 nh1 nh2 nh3 [Parameters] nh1: 01h (fixed) nh2: 00h (fixed) 00h≤nh3≤0Dh、40h [Description] ・Selects the character set for the country, and switches some character codes in the code table according to the value of nh3.
ESC iXR2 Specify line feed command text string [ASCII] ESC i X R 2 n1 n2 data [Decimal] 27 105 88 82 50 nd1 nd2 datad [Hexadecimal] 1B 69 58 52 32 nh1 nh2 datah [Parameters] 01h≤nh1≤14h nh2: 00h (fixed) 00h≤datah≤FFh [Description] ・Specifies the text string for the line feed command.
ESC iXF2 FNC1 replacement setting [ASCII] ESC i X F 2 n1 n2 n3 [Decimal] 27 105 88 70 50 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 46 32 nh1 nh2 nh3 [Parameters] nh1: 01h (fixed) nh2: 00h (fixed) nh3: 00h 01h [Description] ・This command selects whether or not GS codes, which are included in bar code protocols such as GS1-128 (UCC/EAN-128), are replaced with FNC1 codes.
ESC iXr1 Retrieve print start received character count [ASCII] ESC i 1 n1 n2 [Decimal] 27 105 88 114 49 nd1 nd2 [Hexadecimal] 1B 69 58 72 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the number of characters specified to be received to start printing. ・4-byte data is returned from the machine.
ESC iXD1 Retrieve delimiter [ASCII] ESC i X D 1 n1 n2 [Decimal] 27 105 88 68 49 nd1 nd2 [Hexadecimal] 1B 69 58 44 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the text string specified for the delimiter. ・3- to 22-byte data is returned from the machine.
ESC iXn1 Retrieve template selection number [ASCII] ESC i 1 n1 n2 [Decimal] 27 105 88 110 49 nd1 nd2 [Hexadecimal] 1B 69 58 6E 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the template number selected from the machine. ・3-byte data is returned from the machine.
・The retrieved value is a value specified by a static command. [Example] ・When the character code set is set to the Brother standard: If ESC i X m 1 00h 00h (1Bh 69h 58h 6Dh 31h 00h 00h) is sent to the machine, the following is returned from the machine.
ESC iXj1 Retrieve international character set setting [ASCII] ESC i 1 n1 n2 [Decimal] 27 105 88 106 49 nd1 nd2 [Hexadecimal] 1B 69 58 6A 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the international character set setting. ・3-byte data is returned from the machine.
ESC iXf1 Retrieve the prefix character [ASCII] ESC i 1 n1 n2 [Decimal] 27 105 88 102 49 nd1 nd2 [Hexadecimal] 1B 69 58 66 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the prefix character code. ・3-byte data is returned from the machine.
ESC iXC1 Retrieve number of copies setting [ASCII] ESC i X C 1 n1 n2 [Decimal] 27 105 88 67 49 nd1 nd2 [Hexadecimal] 1B 69 58 43 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the number of copies specified to be printed. ・4-byte data is returned from the machine.
ESC iXN1 Retrieve number of Numbering copies setting [ASCII] ESC i X N 1 n1 n2 [Decimal] 27 105 88 78 49 nd1 nd2 [Hexadecimal] 1B 69 58 4E 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the number of copies specified to be printed with Numbering.
International character set table Compatible characters in each language when the international character set is switched 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E United States ¦ France à ° ç § é ù è ¨ Germany §...