hit counter script
Brother PT-P900W Software Manual
Hide thumbs Also See for PT-P900W:
Table of Contents

Advertisement

Quick Links

Software Developer's Manual
P-touch Template Command Reference
PT-P900W/P950NW
Version 1.01

Advertisement

Table of Contents
loading

Summary of Contents for Brother PT-P900W

  • Page 1 Software Developer's Manual P-touch Template Command Reference PT-P900W/P950NW Version 1.01...
  • Page 2 Each owner whose software title is mentioned in this document has a Software License Agreement specific to its proprietary programs. Any trade names and product names of companies appearing on Brother products, related documents and any other materials are all trademarks or registered trademarks of those respective companies.
  • Page 3 Any updates, upgrades 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 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.
  • Page 4: Table Of Contents

    P-touch Template Command reference Contents Introduction ······························································································· 1 What is P-touch Template? ········································································· 2 1. Using P-touch Template ·········································································· 3 2. P-touch Template Settings Tool User’s Guide ··········································· 4 3. Examples for Using Commands ····························································· 10 3.1 Example for using P-touch Template ................10 3.2 Example for printing logo/external characters in P-touch Template ......
  • Page 5 P-touch Template Command reference Specify QR Code version ..............47 FNC1 replacement setting ..............48 Full cut setting..................49 Half cut setting ..................50 Chain printing setting................51 Mirror printing setting................52 Initialize ....................53 Perform machine operations (feed/cut) ..........54 Status request ..................
  • Page 6 International character set table ..................111 Appendix C: Troubleshooting··································································· 112 If printing does not begin (main most frequent cause) ............112 If a template linked to a database is not printed ..............112 Appendix D: Introducing the Brother Developer Center ····························· 113 - iii -...
  • Page 7: Introduction

    P-touch Template Command Reference Introduction This material provides the necessary information for directly controlling the templates transferred to PT-P9XX. This information is provided assuming that the user has full understanding of the operating system being used and basic mastery of programming in a developer's environment. Read the model names that appear in the screens in this manual as the name of your printer.
  • Page 8: What Is P-Touch Template

    P-touch Template Command Reference What is P-touch Template? P-touch Template is a tool for transferring ASCII text and binary data from a host device to a template transferred to the printer. This transferred data is inserted into text objects or bar code objects in the template.
  • Page 9: Using P-Touch Template

    P-touch Template Command Reference 1. Using P-touch Template (1) Set up the printer. Using the P-touch Template Settings tool, specify the initial printer settings according to the host system environment or the host that the printer is connected to. (Please refer to “2.
  • Page 10: P-Touch Template Settings Tool User's Guide

    P-touch Template Command Reference 2. P-touch Template Settings Tool User’s Guide (1) Command mode setting (2) Template number setting (3) Delimiter setting (4) Print start trigger setting (5) Print start command text string setting (6) Print start data amount setting (7) Character code set setting (8 ) International character setting (9) Prefix character setting...
  • Page 11 P-touch Template Command Reference (1) Command mode setting - P-touch Template mode (Fixed) To use P-touch Template, select the P-touch Template mode. (2) 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 12 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 (8) International character setting Select one of the following as the character set of the country. - USA...
  • Page 13 P-touch Template Command Reference (10) Non-printed character setting The characters specified here are not printed when data is received. Specify 1 to 20 characters. (11 ) Line feed character setting The line feed code is used when feeding data to indicate that the following data should be moved to the next line in a text object.
  • Page 14 P-touch Template Command Reference (17) Cut number setting A number between 1 and 99 can be specified. (18) Chain printing setting Specifies chain printing. If the check box is selected, chain printing is enabled, and the tape is not fed or automatically cut after the last label is printed.
  • Page 15 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. C: \Users\ (user_account_name) \AppData\Roaming\Brother\Printer Settings\ptsXX30.ini Note: A name of file “ptsXX30.ini” varies depending on printers like below.
  • Page 16: Examples For Using Commands

    P-touch Template Command Reference 3. Examples for Using Commands 3.1 Example for using P-touch Template Here is the label that will be made. The media size is 0.70 inches Steps 1. Make a template with P-touch Editor. 2. Transfer the template to Transfer Manager. 3.
  • Page 17 P-touch Template Command Reference Step 2: Transfer the template to Transfer Manager. The 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.
  • Page 18 P-touch Template Command Reference Note Make sure that the printer is turned on and hooked up to the PC with a USB cable before using Transfer Manager. Also, make sure that the printer communication setting is always bidirectional communication when Transfer Manager is used. When the template is transferred to the printer, the following message appears.
  • Page 19 P-touch Template Command Reference (3) Initialize P-touch Template Entered command (4) Print Start Entered command When the printer receives the command above, the label below is printed. - 13 - 3. Examples for Using Commands...
  • Page 20: Example For Printing Logo/External Characters In P-Touch Template

    P-touch Template Command Reference 3.2 Example for printing logo/external characters in P-touch Template 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. 3.
  • Page 21 P-touch Template Command Reference Step 2: Store the logo/external characters as a bitmap file, and drag & drop it to Transfer Manager. Click [Transfer] button. Step 3: Transfer the bitmap file from Transfer Manager to the printer. Assigned number Stored the logo/external character as a bitmap - 15 - 3.
  • Page 22 P-touch Template Command Reference Step 4: In the P-touch Template Settings tool, select the assigned number for the stored template. (1) Select the P-touch Template mode (Fixed) (2) Choose the assigned number Step 5: With the P-touch Template commands, select the assigned number for the bitmap file. After using the P-touch Template Settings tool in Step 4, the remaining three commands must be sent to the printer.
  • Page 23 P-touch Template Command Reference (3) Start printing. Entered command When the printer receives the command above, the label below is printed. - 17 - 3. Examples for Using Commands...
  • Page 24: P-Touch Template Limitations

    P-touch Template Command Reference 4. P-touch Template Limitations 4.1 Relating to text objects 4.1.1 Font, size, etc. Please also refer to “5.2 Relationship between the P-touch Editor settings and the printer image」” on page 28  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.
  • Page 25 P-touch Template Command Reference “At Printing” setting To cancel the “At Printing” setting for a date/time in P-touch Editor, display the properties for the Date and Time object, and then clear the “At Printing” check box. - 19 - 4. P-touch Template Limitations...
  • Page 26: Character Alignment

    P-touch Template Command Reference 4.1.2 Character alignment  Horizontal alignment settings (“Justify” or “Equal Length”) specified in P-touch Editor are changed to the left alignment setting.  The setting for line feed with a line feed specified with the P-touch Editor can be set between 0 and 255 dots.
  • Page 27: Text Layout Settings

    P-touch Template Command Reference 4.1.3 Text Layout settings  Character styles specified in P-touch Editor all become the same style within an object.  If the “Long text” is selected under “Text Layout” in P-touch Editor, the text is always aligned at top left. ...
  • Page 28: Relating To Barcodes

    P-touch Template Command Reference 4.2 Relating to barcodes 4.2.1 Barcodes  When trying to transfer a template containing a barcode that is not compatible with the printer, an error will occur while transferring and the template cannot be transferred to the printer. The following barcodes are compatible with the PT-P9XX.
  • Page 29: Barcodes

    P-touch Template Command Reference 4.2.2 1D barcodes  A barcode wider than 22.5 cm will not be printed.  A 1D barcode taller than 454 dots is converted to 454dots.  The number of characters that can be entered for each protocol is shown below. 1 to 50 characters (not including “*”...
  • Page 30: Barcodes

    P-touch Template Command Reference 4.2.3 2D barcodes The version setting for a QR Code specified in P-touch Editor is invalid. The QR Code version setting must be turned off. The Structured Append settings specified in P-touch Editor are invalid. Since the error correction levels for PDF417 specified in P-touch Editor are inconsistent with those on the printer, the size of the barcode may change when PDF417 it is printed with P-touch Template.
  • Page 31: Relating To Images

    P-touch Template 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 Numbering field. ...
  • Page 32: Others

    P-touch Template Command Reference 4.6 Others 4.6.1 Transferring templates  A maximum of 99 templates can be transferred. The transfer cannot be completed if the amount of data being transferred exceeds 7MByte.  A single template can contain a maximum of 50 objects. When trying to transfer more than 50 objects, an error will occur and the transfer cannot be completed.
  • Page 33: Precautions

    P-touch Template 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 before starting to send the data.
  • Page 34: Relationship Between The P-Touch Editor Settings And The Printer Image

    P-touch Template Command Reference 5.2 Relationship between the P-touch Editor settings and the printer image P-touch Editor setting Printer image Text options Width Height Printed (Text Layout settings) image Text Details- Wrap Frame Size Text Size Frame Size Text Size Layout Options Text...
  • Page 35: Making A Template In Order To Save Time Before Starting To Print

    P-touch Template 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.
  • Page 36: Control Code Lists

    P-touch Template Command Reference 6. Control Code Lists 6.1 Setting and retrieving commands for P-touch Template mode With static commands, settings specified with a command are saved and stored in the memory. With dynamic commands, settings specified with a command are temporarily saved and applied until the machine is turned off.
  • Page 37 P-touch Template Command Reference ASCII Code Binary Code Static/Dynamic Description 5E 56 52 Retrieve version Information 5E 43 52 Line feed in object 5E 4F 53 Select object (object number) 5E 4F 4E Select object (object name) 5E 44 49 Directly insert object ESC ia 1B 69 61...
  • Page 38: Setting And Retrieving Commands For Raster Mode

    P-touch Template Command Reference 6.2 Setting and retrieving commands for raster mode ASCII Code Binary Code Static/Dynamic Description ESC iXT2 1B 69 58 54 32 Static Select print start trigger ESC iXP2 1B 69 58 50 32 Static Specify print start command text string ESC iXr2 1B 69 58 72 32 Static...
  • Page 39 P-touch Template Command Reference ASCII Code Binary Code Static/Dynamic Description ESC iXi1 1B 69 58 69 31 Retrieve command mode ESC iXn1 1B 69 58 6E 31 Retrieve template selection number ESC iXc1 1B 69 58 63 31 Retrieve printer settings (full cut option ON/OFF) ESC iXy1...
  • Page 40: Control Command Details

    P-touch Template Command Reference 7. Control Command Details Select print start trigger ASCII: Decimal: 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...
  • Page 41: Ff Start Printing

    P-touch Template Command Reference Start printing ASCII: Decimal: 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”.) ...
  • Page 42: Ps Specify Print Start Command Text String

    P-touch Template Command Reference Specify print start command text string ASCII: data Decimal: 80 83 nd1 nd2 datad Hexadecimal: 5E 50 53 nh1 nh2 datah Parameters 0≤n1≤2 0≤n2≤9 00h≤data≤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:...
  • Page 43: Pc Specify Print Start Received Character Count

    P-touch Template Command Reference Specify print start received character count ASCII: Decimal: 80 67 nd1 nd2 Hexadecimal: 5E 50 43 nh1 nh2 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 (bytes) (1 to 999) ...
  • Page 44: Ss Specify Delimiter

    P-touch Template Command Reference Specify delimiter ASCII: data Decimal: 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. ...
  • Page 45: Ts Select Template

    P-touch Template Command Reference Select template ASCII: Decimal: 84 83 nd1 nd2 Hexadecimal: 5E 54 53 nh1 nh2 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) ...
  • Page 46: Ls Specify Line Spacing With Line Feed

    P-touch Template Command Reference Specify line spacing with line feed ASCII: Decimal: 76 83 nd1 nd2 Hexadecimal: 5E 4C 53 nh1 nh2 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) ...
  • Page 47: Cc Change The Prefix Character

    P-touch Template Command Reference Change the prefix character ASCII: Decimal: 67 67 nd Hexadecimal: 5E 43 43 nh Parameters 00h≤nh≤FFh Description  Changes the prefix character code. n: Character code  The default text string for the prefix character is “^”. ...
  • Page 48: Rc Specify Line Feed Command Text String

    P-touch Template Command Reference Specify line feed command text string ASCII: data Decimal: 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 (bytes).)
  • Page 49: Cn Specify Number Of Copies

    P-touch Template Command Reference Specify number of copies ASCII: Decimal: 67 78 nd1 nd2 Hexadecimal: 5E 43 4E nh1 nh2 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) ...
  • Page 50: Nn Specify Number Of Numbering Copies

    P-touch Template Command Reference Specify number of Numbering copies ASCII: Decimal: 78 78 nd1 nd2 Hexadecimal: 5E 4E 4E nh1 nh2 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) ...
  • Page 51: Id Initialize Template Data

    P-touch Template Command Reference Initialize template data ASCII: Decimal: 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. - 45 - 7. Control Command Details...
  • Page 52: Qs Select Print Options

    P-touch Template Command Reference Select print options ASCII: Decimal: 81 83 nd Hexadecimal: 5E 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 options is “0” (priority given to print speed). ...
  • Page 53: Qv Specify Qr Code Version

    P-touch Template Command Reference Specify QR Code version ASCII: Decimal: 81 86 nd1 nd2 Hexadecimal: 5E 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 0. ...
  • Page 54: Fc Fnc1 Replacement Setting

    P-touch Template Command Reference FNC1 replacement setting ASCII: Decimal: 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. n: FNC1 replacement setting (ON: 1;...
  • Page 55: Cf Full Cut Setting

    P-touch Template Command Reference Full cut setting ASCII: Decimal: 67 70 nd1 nd2 Hexadecimal: 5E 43 46 nh1 nh2 Parameters 0≤n1≤9 0≤n1≤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;...
  • Page 56: Ch Half Cut Setting

    P-touch Template Command Reference Half cut setting ASCII: Decimal: 67 72 nd Hexadecimal: 5E 43 48 nh Parameters 0≤n≤1 Description  Specifies whether or not half cut is used. n: Half cut setting (ON: 1 (default); OFF: 0)  This command is a dynamic command. Remarks ...
  • Page 57: Cp Chain Printing Setting

    P-touch Template Command Reference Chain printing setting ASCII: Decimal: 67 80 nd Hexadecimal: 5E 43 50 nh Parameters 0≤n≤1 Description  Specifies whether or not chain printing is applied. n: Chain printing setting (OFF: 0 (default); ON: 1)  This command is a dynamic command. Remarks ...
  • Page 58: Mp Mirror Printing Setting

    P-touch Template Command Reference Mirror printing setting ASCII: Decimal: 77 80 nd Hexadecimal: 5E 4D 50 nh Parameters 0≤n≤1 Description  Specifies whether or not mirror printing is applied. n: Mirror printing setting (OFF: 0 (default); ON: 1)  This command is a dynamic command. Remarks ...
  • Page 59: Initialize

    P-touch Template Command Reference Initialize ASCII: Decimal: 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...
  • Page 60: Op Perform Machine Operations (Feed/Cut)

    P-touch Template Command Reference Perform machine operations (feed/cut) ASCII: Decimal: 79 80 nd Hexadecimal: 5E 4F 50 nh Parameters n = 4 Description  Causes the machine to perform a feed and cut operation. Performs the feed and cut operation Remarks ...
  • Page 61: Sr Status Request

    Size Name Value/Reference Number Print head mark Fixed at 80h Size Fixed at 20h Brother code Fixed at “B” (42h) Series code Fixed at “0” (30h) “o” (6Fh) : P900W Model code “p” (70h) : P950NW Country code Fixed at “0” (30h) Battery level information Refer to table (11) below.
  • Page 62 P-touch Template Command Reference Offset Size Name Value/Reference Number Media color information Refer to table (8) below. Ribbon color information Refer to table (9) below. Not used Fixed at 00h (1) Error information 1 Flag Mask Definition Bit 0 “No media” error Bit 1 “End of media”...
  • Page 63 P-touch Template Command Reference (3) Media width, Media length Media type Media width Media length No tape 3.5-mm-wide tape 6-mm-wide tape 9-mm-wide tape 12-mm-wide tape 18-mm-wide tape 24-mm-wide tape 36-mm-wide tape HS 5.8-mm-wide tape HS 8.8-mm-wide tape HS 11.7-mm-wide tape HS 17.7-mm-wide tape HS 23.6-mm-wide tape FLe 21mm x 45mm-wide tape...
  • Page 64 P-touch Template Command Reference (5) Status type Status type Value Reply to status request 00 h Printing completed 01 h Error occurred 02 h IF mode finished 03 h (Not use) Power off 04 h Notification 05 h Phase change 06 h (Not used) 07h to 20h...
  • Page 65 P-touch Template Command Reference (7) Notification number Notification Value (No notification) Cover open Cover close Cooling started Cooling finished (8) Media color information Media color Media color ID Remarks White Other Clear Blue Yellow Green Black Clear Matte White Matte Clear Matte Silver Satin Gold Satin Silver...
  • Page 66 P-touch Template Command Reference Media color Media color ID Remarks White(Flex. ID) Yellow(Flex. ID) Clearning Stencil Cooling finished (9) Ribbon color information Ribbon color Ribbon color ID White Blue Black Gold Blue Clearning Stencil Other Incompatible (10) Extended error information Error information Value High resolution/High- speed printing error...
  • Page 67: Vr Retrieve Version Information

    P-touch Template Command Reference Retrieve version information ASCII: Decimal: 86 82 Hexadecimal: 5E 56 52 Parameters None Description  Retrieves the version information for the machine as a 16-character text string. - 61 - 7. Control Command Details...
  • Page 68: Cr Line Feed In Object

    P-touch Template Command Reference Line feed in object ASCII: Decimal: 67 82 Hexadecimal: 5E 43 52 Parameters None Description  Adds a return to the next line in the text object.  Valid even if the text string for the line feed command has been changed Example ...
  • Page 69: Os Select Object (Object Number)

    P-touch Template Command Reference Select object (object number) ASCII: Decimal: 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. This command becomes invalid if any other value has been specified.
  • Page 70: On Select Object (Object Name)

    P-touch Template Command Reference Select object (object name) ASCII: data Decimal: 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 that can be set is 20 characters. If text longer than this has been specified, the command becomes invalid.
  • Page 71: Di Directly Insert Object

    P-touch Template Command Reference Directly insert object ASCII: data Decimal: 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. (If even a print command or delimiter is within the specified number of characters, they are treated as data.) (nh2*256)+nh1: Specified number of characters (bytes) data:...
  • Page 72: Esc I A Specify Command Mode

    P-touch Template Command Reference ESC i a Specify command mode ASCII: Decimal: 105 97 nd Hexadecimal: 1B 61 nh Parameters nh=00h 01h 03h 30h 31h 33h Description  Switches the mode. nh=00h or 30h: ESC/P mode nh=01h or 31h: Raster mode nh=03h or 33h: P-touch Template mode (default) ...
  • Page 73: Esc Ixt2 Select Print Start Trigger

    P-touch Template Command Reference ESC iXT2 Select print start trigger ASCII: Decimal: 105 88 84 50 nd1 nd2 nd3 Hexadecimal: 1B 54 32 nh1 nh2 nh3 Parameters nh1=01h (Fixed) nh2=00h (Fixed) 00h≤nh3≤02h Description  Selects the print start trigger type. nh3=00h: When the specified text string is received (default) nh3=01h: When all objects are filled (Prints with the delimiter at the end of the data)
  • Page 74: Esc Ixp2 Specify Print Start Command Text String

    P-touch Template Command Reference ESC iXP2 Specify print start command text string ASCII: data Decimal: 105 88 80 50 nd1 nd2 datad Hexadecimal: 1B 50 32 nh1 nh2 datah Parameters 01h≤nh1≤14h nh2: 00h (Fixed) 00h≤datah≤FFh Description  Specifies the text string for the print start command. nh1+(nh2*256): 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...
  • Page 75: Esc Ixr2 Specify Print Start Received Character Count

    P-touch Template Command Reference ESC iXr2 Specify print start received character count ASCII: ESC i Decimal: 105 88 114 50 nd1 nd2 nd3 nd4 Hexadecimal: 1B 32 nh1 nh2 nh3 nh4 Parameters nh1: 02h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh 00h≤nh4≤03h Description ...
  • Page 76: Esc Ixd2 Specify Delimiter

    P-touch Template Command Reference ESC iXD2 Specify delimiter ASCII: ESC i data Decimal: 105 88 50 nd1 nd2 datad Hexadecimal: 1B 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. ...
  • Page 77: Esc Ixa2 Specify Non-Printed Text Strings

    P-touch Template Command Reference ESC iXa2 Specify non-printed text strings ASCII: ESC i data Decimal: 105 88 50 nd1 nd2 nd3 datad Hexadecimal: 1B 32 nh1 nh2 nh3 datah Parameters 01h≤nh1≤15h nh2: 00h (Fixed) nh3: 01h (Fixed) 00h≤datah≤FFh Description  Specifies the non-printed text string. nh1+(nh2*256): Length of the text string (0 to 20) + 1 data: Text string (The maximum number of characters that can be set is 20 characters...
  • Page 78: Esc Ixi2 Specify Command Mode

    P-touch Template Command Reference ESC iXi2 Specify command mode ASCII: ESC i Decimal: 105 88 105 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h 01h 03h Description  Switches the mode. nh3=00h: ESC/P mode nh3=01h: Raster mode nh3=03h: P-touch Template mode (default)
  • Page 79: Esc Ixn2 Select Template

    P-touch Template Command Reference ESC iXn2 Select template ASCII: ESC i Decimal: 105 88 110 50 nd1 nd2 nd3 Hexadecimal: 1B 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. n3: Template number (1 to 99) ...
  • Page 80: Esc Ixf2 Change The Prefix Character

    P-touch Template Command Reference ESC iXf2 Change the prefix character ASCII: ESC i Decimal: 105 88 102 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 hn2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh Description  Changes the prefix character code. n3: Character code ...
  • Page 81: Esc Ixc2 Select Printer Settings (Cut Options)

    P-touch Template Command Reference ESC iXc2 Select printer settings (cut options) ASCII: ESC i Decimal: 105 88 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h 01h 08h 09h Description ...
  • Page 82: Esc Ixy2 Select Printer Settings (Cut Options-Specifying Number Of Labels)

    P-touch Template Command Reference ESC iXy2 Select printer settings (cut options–specifying number of labels) ASCII: ESC i Decimal: 105 88 121 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) 01h≤nh3≤63h Description ...
  • Page 83: Esc Ixh2 Half Cut Setting

    P-touch Template Command Reference ESC iXH2 Half cut setting ASCII: ESC i Decimal: 105 88 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3:00h 01h Description  Specifies whether or not half cut is used. nh3=00h: Half cut setting OFF nh3=01h:...
  • Page 84: Esc Ixm2 Mirror Printing Setting

    P-touch Template Command Reference ESC iXM2 Mirror printing setting ASCII: ESC i Decimal: 105 88 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3:00h 01h Description  Specifies whether or not mirror printing is applied. nh3=00h: Mirror printing setting OFF nh3=01h:...
  • Page 85: Esc Ixs2 Special Tape Setting

    P-touch Template Command Reference ESC iXs2 Special tape setting ASCII: ESC i Decimal: 105 88 115 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3:00h 01h 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).
  • Page 86: Esc Ixm2 Select Character Code Set

     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) - 80 - 7.
  • Page 87: Esc Ixj2 Select International Character Set

    P-touch Template Command Reference ESC iXj2 Select international character set ASCII: ESC i Decimal: 105 88 106 50 nd1 nd2 nd3 Hexadecimal: 1B 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.
  • Page 88: Esc Ixr2 Specify Line Feed Command Text String

    P-touch Template Command Reference ESC iXR2 Specify line feed command text string ASCII: ESC i data Decimal: 105 88 50 nd1 nd2 datad Hexadecimal: 1B 32 nh1 nh2 datah Parameters 01h≤nh1≤14h nh2: 00h (Fixed) 00h≤datah≤FFh Description  Specifies the text string for the line feed command. nh1+(nh2*256): 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...
  • Page 89: Esc Ixc2 Specify Number Of Copies

    P-touch Template Command Reference ESC iXC2 Specify number of copies ASCII: ESC i Decimal: 105 88 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 02h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh 00h≤nh4≤03h Description  Specifies the number of copies to be printed. nh3+(nh4*256): Number of copies (bytes) (1 to 999) ...
  • Page 90: Esc Ixn2 Specify Number Of Numbering Copies

    P-touch Template Command Reference ESC iXN2 Specify number of Numbering copies ASCII: ESC i Decimal: 105 88 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 02h (Fixed) nh2: 00h (Fixed) 00h≤nh3≤FFh 00h≤nh4≤03h Description  Specifies the number of copies to be printed with Numbering. nh3+(nh4*256): Number of Numbering copies (bytes) (1 to 999) ...
  • Page 91: Esc Ixf2 Fnc1 Replacement Setting

    P-touch Template Command Reference ESC iXF2 FNC1 replacement setting ASCII: ESC i Decimal: 105 88 50 nd1 nd2 nd3 Hexadecimal: 1B 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.
  • Page 92: Esc Ixq2 Select Print Options

    P-touch Template Command Reference ESC iXq2 Select print options ASCII: ESC i Decimal: 105 88 113 50 nd1 nd2 nd3 Hexadecimal: 1B 32 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 00h, 01h Description  Selects the print options. nh3=00h: Priority given to print speed nh3=01h: Priority given to print quality ...
  • Page 93: Esc Ixt1 Retrieve Select Print Start Trigger Items

    P-touch Template Command Reference ESC iXT1 Retrieve select print start trigger items ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1=00h (Fixed) nh2=00h (Fixed) Description  The print start trigger is returned as 3-byte data. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting...
  • Page 94: Esc Ixp1 Retrieve Print Start Command Setting Text String

    P-touch Template Command Reference ESC iXP1 Retrieve print start command setting text string ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the text string specified for the print start command. ...
  • Page 95: Esc Ixr1 Retrieve Print Start Received Character Count

    P-touch Template Command Reference ESC iXr1 Retrieve print start received character count ASCII: ESC i Decimal: 105 88 114 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the number of characters specified to be received to start printing. ...
  • Page 96: Esc Ixd1 Retrieve Delimiter

    P-touch Template Command Reference ESC iXD1 Retrieve delimiter ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 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. (Varies depending on the length of the text string) [1, 2]: nh1 nh2 (number of characters) nh1+(nh2*256)
  • Page 97: Esc Ixa1 Retrieve Non-Printed Text Strings

    P-touch Template Command Reference ESC iXa1 Retrieve non-printed text strings ASCII: ESC i Decimal: 105 88 49 nd1 nd2 nd3 Hexadecimal: 1B 31 nh1 nh2 nh3 Parameters nh1: 01h (Fixed) nh2: 00h (Fixed) nh3: 01h (Fixed) Description  Retrieves the specified non-printed text string. ...
  • Page 98: Esc Ixi1 Retrieve Command Mode Setting

    P-touch Template Command Reference ESC iXi1 Retrieve command mode setting ASCII: ESC i Decimal: 105 88 105 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the setting for the command mode. ...
  • Page 99: Esc Ixn1 Retrieve Template Selection Number

    P-touch Template Command Reference ESC iXn1 Retrieve template selection number ASCII: ESC i Decimal: 105 88 110 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the template number selected from the machine. ...
  • Page 100: Esc Ixc1 Retrieve Printer Settings (Cut Options)

    P-touch Template Command Reference ESC iXc1 Retrieve printer settings (cut options) ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the various cut settings.  3-byte data is returned from the machine. [1]: 01h (Fixed) [2]:...
  • Page 101: Esc Ixy1 Retrieve Printer Settings (Cut Options-Specifying Number Of Labels)

    P-touch Template Command Reference ESC iXy1 Retrieve printer settings (cut options–specifying number of labels) ASCII: Decimal: 105 88 121 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the setting for full cutting after a specified number of labels. ...
  • Page 102: Esc Ixh1 Retrieve Half Cut Setting

    P-touch Template Command Reference ESC iXH1 Retrieve half cut setting ASCII: Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the half cut setting.  3-byte data is returned from the machine. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting...
  • Page 103: Esc Ixm1 Retrieve Mirror Printing Setting

    P-touch Template Command Reference ESC iXM1 Retrieve mirror printing setting ASCII: Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the mirror printing setting.  3-byte data is returned from the machine. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting...
  • Page 104: Esc Ixs1 Retrieve Special Tape Setting

    P-touch Template Command Reference ESC iXs1 Retrieve special tape setting ASCII: Decimal: 105 88 115 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the special tape setting.  3-byte data is returned from the machine. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting...
  • Page 105: Esc Ixm1 Retrieve Character Code Set Setting

    02h: Windows1252 (Western Europe)  The retrieved value is a value specified by a static command. Example  When the character code set is the Brother standard: Code: ESC i X m 1 00h 00h (1Bh 69h 58h 6Dh 31h 00h 00h)
  • Page 106: Esc Ixj1 Retrieve International Character Set Setting

    P-touch Template Command Reference ESC iXj1 Retrieve international character set setting ASCII: ESC i Decimal: 105 88 106 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the international character set setting. ...
  • Page 107: Esc Ixf1 Retrieve The Prefix Character

    P-touch Template Command Reference ESC iXf1 Retrieve the prefix character ASCII: ESC i Decimal: 105 88 102 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the prefix character code.  3-byte data is returned from the machine. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Specified character...
  • Page 108: Esc Ixr1 Retrieve Line Feed Command Setting Text String

    P-touch Template Command Reference ESC iXR1 Retrieve line feed command setting text string ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the text string specified for the line feed command. ...
  • Page 109: Esc Ixc1 Retrieve Number Of Copies Setting

    P-touch Template Command Reference ESC iXC1 Retrieve number of copies setting ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the number of copies specified to be printed. ...
  • Page 110: Esc Ixn1 Retrieve Number Of Numbering Copies Setting

    P-touch Template Command Reference ESC iXN1 Retrieve number of Numbering copies setting ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the number of copies specified to be printed with Numbering. ...
  • Page 111: Esc Ixf1 Retrieve Fnc1 Replacement Setting

    P-touch Template Command Reference ESC iXF1 Retrieve FNC1 replacement setting ASCII: ESC i Decimal: 105 88 49 nd1 nd2 Hexadecimal: 1B 31 nh1 nh2 Parameters nh1: 00h (Fixed) nh2: 00h (Fixed) Description  Retrieves the FNC1 replacement setting.  3-byte data is returned from the machine. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting...
  • Page 112: Esc Ixq1 Retrieve Print Options

    P-touch Template Command Reference ESC iXq1 Retrieve print options ASCII: ESC i Decimal: 105 88 113 49 nd1 nd2 Hexadecimal: 1B 31 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...
  • Page 113: Appendix A: Specifications

    P-touch Template Command Reference Appendix A: Specifications BROTHER PT-P900W/P950NW P-touch Template specifications Raster printing (PCBP mode) Printing method ESC/P printing P-touch Template printing 1 meter Maximum print length 360 dpi × 360 dpi Resolution (dpi) Font Bitmap fonts: Helsinki, Letter Gothic...
  • Page 114: Appendix B: Character Code Tables

    P-touch Template Command Reference Appendix B: Character Code Tables (1) Windows1252 (Western Europe) € ° À Ð à ð ‘ ¡ ± Á Ñ á ñ ” ’ ¢ ² Â Ò â ò ƒ “ £ ³ Ã Ó ã...
  • Page 115 P-touch Template Command Reference (2) Windows1250 (Eastern Europe) € tˇ ° Ŕ Đ ŕ đ À ‘ ˇ ± Á Ń á ń " ’ ˘ ˛ Â Ň â ň Ľ “ Ł ł Ă Ó ă ó „ ”...
  • Page 116 P-touch Template Command Reference (3) Brother standard Ç É á ░ └ α ü æ í ▒ ┴ ß ± ” é Æ ó ▓ ┬ â ô ú │ ├ ¾ ä ö ñ ┤ ─ à ò Ñ...
  • Page 117: International Character Set Table

    P-touch Template Command Reference 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 à ° ç § é...
  • Page 118: Appendix C: Troubleshooting

    P-touch Template Command Reference Appendix C: Troubleshooting If printing does not begin (main most frequent cause) (1) The communication settings are incorrect. (2) The command mode is not in the P-touch Template mode. (3) The conditions for the print start trigger are not met. The following three types of print start triggers exists, but the current selection is incorrect.
  • Page 119: Appendix D: Introducing The Brother Developer Center

    P-touch Template 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 - 113 - Appendix D: Introducing the Brother Developer Center...

This manual is also suitable for:

Pt-p950nw

Table of Contents