Brother RJ-4030 Software Manual

Brother RJ-4030 Software Manual

Software developer's manual p-touch template 2.0 command reference
Hide thumbs Also See for RJ-4030:
Table of Contents

Advertisement

Software Developer's Manual
P-touch Template 2.0 Command Reference
RJ-4030/4040
Version 1.0

Advertisement

Table of Contents
loading

Summary of Contents for Brother RJ-4030

  • Page 1 Software Developer's Manual P-touch Template 2.0 Command Reference RJ-4030/4040 Version 1.0...
  • 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

    4.5.2 About objects in a template ................26 5. Precautions········································································································· 27 5.1 Notes for using Bluetooth (RJ-4030 only)..............27 5.2 Relationship between the P-touch Editor settings and the printer image ....28 5.3 Making a template in order to save time before starting to print ......29 6.
  • Page 5 ESC iXF1 Retrieve FNC1 replacement setting........... 90 ESC iXq1 Retrieve print options................. 91 8. ZPL II supported by RJ-4030/4040···································································· 92 Appendix A: Specifications··················································································· 95 Appendix B: Character Code Tables ···································································· 96 Character code tables ....................96 International character set table ..................99 Appendix C: Troubleshooting·············································································...
  • Page 6 P-touch Template 2.0 Command Reference If a template linked to a database is not printed ............100 Appendix D: Introducing the Brother Developer Center·································· 101 - iii -...
  • Page 7: Introduction

    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 RJ-4030/4040, and any problems resulting directly or indirectly from them. Use this material only if you accept these terms.
  • Page 8: What Is P-Touch Template 2.0

    P-touch Template 2.0 Command Reference What is P-touch Template 2.0? P-touch Template 2.0 helps the user develop a printing system that connects directly from the host and has following functions: transfers the template data from P-touch Editor to the printer (2) transfers the ASCII text and binary data from a host to the template in the printer (3) (“Host”...
  • Page 9: Using P-Touch Template 2.0

    P-touch Template 2.0 Command Reference 1. Using P-touch Template 2.0 (1) Specify the printer settings. 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 2.0 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 set setting (9) Prefix character setting...
  • Page 11 (7) Character code set setting Select one of the following three character code sets. For character code tables, refer to “Appendix B: Character Code Tables”. - Windows1252 - Windows1250 - Brother standard - 5 - 2. P-touch Template Settings Tool User’s Guide...
  • Page 12 P-touch Template 2.0 Command Reference (8) International character set setting Select one of the following countries for the character set. - USA - France - Germany - Britain - Denmark I - Sweden - Italy - Spain I - Japan - Norway - Denmark II - Spain II...
  • Page 13 P-touch Template 2.0 Command Reference (12) FNC1 replacement setting This setting selects whether or not GS codes, which are included in barcode protocols such as GS1-128 (UCC/EAN-128), are replaced with FNC1 codes. If the check box is selected, a received GS code is replaced with the FNC1 code. If the check box is cleared, a received GS code is outputted as is.
  • Page 14 · ini file After the [Set] button (in the main dialog box or the Communications Settings dialog box) is clicked, the settings are saved when the dialog box is closed. (RJ-4030) C:\Documents and Settings\(user_account_name)\Application Data\Brother \Printer Settings\pts3137.ini (RJ-4040) C:\Documents and Settings\(user_account_name)\Application Data\Brother \Printer Settings\pts3237.ini...
  • Page 15: Examples For Using Commands

    P-touch Template 2.0 Command Reference 3. Examples for Using Commands 3.1 Example for using P-touch Template 2.0 Here is the label that will be made. The media size is 4 inches x 4 inches Steps 1. Make a template with P-touch Editor. 2.
  • Page 16 P-touch Template 2.0 Command Reference Step 2: Transfer the template to Transfer Manager. The template sent in step 2 is stored in Transfer Manager, as shown below. Assigned number Stored template Step 3: Transfer the template from Transfer Manager to the printer. Click [Transfer] button.
  • Page 17 P-touch Template 2.0 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 18 P-touch Template 2.0 Command Reference (3) Initialize P-touch Template 2.0 Entered command (4) Print Start Entered command When the printer receives the command above, the label below is printed. - 12 - 3. Examples for Using Commands...
  • Page 19: Example For Using Zpl Ii In P-Touch Template 2.0

    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. 812 dots (4 inches) RJ-4030/4040 is 203 dpi. 4 inches becomes 812 dots. 380 dots 220 dots Font is outline font, and size is 100, 100 dots.
  • Page 20 P-touch Template 2.0 Command Reference Step 2: Set the label length with ^LL. The label length is 812 dots. Entered command ^LL812 Step 3: Set the label width with ^PW. The label width is 812 dots. Entered command ^PW812 Step 4: Send other ZPL II commands. The orientation of the text is 220, 380.
  • Page 21 P-touch Template 2.0 Command Reference With those commands above, the label below is printed. - 15 - 3. Examples for Using Commands...
  • Page 22: Example For Using External Characters In P-Touch Template 2.0

    P-touch Template 2.0 Command Reference 3.3 Example for using external characters in P-touch Template 2.0 Here is the external character that will be printed. Steps 1. Make a template and transfer it to the printer. 2. Store the external characters as a bitmap file, and drag & drop it to Transfer Manager. 3.
  • Page 23 P-touch Template 2.0 Command Reference Step 2: Store the 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 external character as a bitmap file.
  • Page 24 P-touch Template 2.0 Command Reference Step 5: With the P-touch Template 2.0 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. (1) Initialize P-touch Template Entered command (2) Select the bitmap file to be printed.
  • Page 25: P-Touch Template 2.0 Limitations

    P-touch Template 2.0 Command Reference 4. P-touch Template 2.0 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 or Letter Gothic, depending on the font shape, when the data is sent to the printer.
  • Page 26: Character Alignment

    P-touch Template 2.0 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 2.0 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” setting is selected under “Text Layout” in P-touch Editor, the vertical alignment setting is normally set for top alignment.
  • Page 28: Relating To Barcodes

    P-touch Template 2.0 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 RJ-XXXX.
  • Page 29: Barcodes

    P-touch Template 2.0 Command Reference 4.2.2 1D barcodes The ratio setting for 1D barcodes specified in P-touch Editor is invalid. Normally, this is fixed at 3:1. A barcode wider than 22.5 cm will not be printed. A 1D barcode taller than 99 mm is converted to 99 mm. The number of characters that can be entered for each protocol is shown below.
  • Page 30: Barcodes

    P-touch Template 2.0 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...
  • Page 31: Relating To Images

    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 template can contain a maximum of 9 valid Numbering objects. Numbering will not be performed for Numbering objects that exceed the maximum of 9.
  • Page 32: Others

    P-touch Template 2.0 Command Reference 4.5 Others 4.5.1 Transferring templates A maximum of 99 templates can be transferred. The transfer cannot be completed if the amount of data being transferred exceeds 6 MB. A single template can contain a maximum of 1000 objects. If the objects exceed 16 KB, an error will occur and the transfer cannot be completed.
  • Page 33: Precautions

    P-touch Template 2.0 Command Reference 5. Precautions 5.1 Notes for using Bluetooth (RJ-4030 only) 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 2.0 Command Reference 5.2 Relationship between the P-touch Editor settings and the printer image P-touch Editor setting Printer image Text options Printed Width Height (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 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.
  • Page 36: Control Code Lists

    P-touch Template 2.0 Command Reference 6. Control Code Lists 6.1 Setting and retrieving commands for P-touch Template mode ASCII Code Binary Code Static/Dynamic Description 5E 50 54 Dynamic Select print start trigger 5E 46 46 Start printing 5E 50 53 Dynamic Specify print start command text string 5E 50 43...
  • Page 37: Setting And Retrieving Commands For Raster Mode

    P-touch Template 2.0 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 38 P-touch Template 2.0 Command Reference (continued from the previous page) ASCII Code Binary Code Static/Dynamic Description ESC iXC1 1B 69 58 43 31 Retrieve number of copies setting ESC iXN1 1B 69 58 4E 31 Retrieve number of Numbering copies setting ESC iXF1 1B 69 58 46 31 Retrieve FNC1 replacement setting...
  • Page 39: Control Command Details

    P-touch Template 2.0 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 type of print start trigger. 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 40: Ff Start Printing

    P-touch Template 2.0 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”.) The text string for the print start command can be changed.
  • Page 41: Ps Specify Print Start Command Text String

    P-touch Template 2.0 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≤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:...
  • Page 42: Pc Specify Print Start Received Character Count

    P-touch Template 2.0 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) The default print start received character count is 10.
  • Page 43: Ss Specify Delimiter

    P-touch Template 2.0 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. Specifies the text string for the delimiter.
  • Page 44: Ts Select Template

    P-touch Template 2.0 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 printer. (n2*10)+n3: Template number (1 to 99) The default selection number is 1.
  • Page 45: Co Select Printer Settings (Cut Options)

    P-touch Template 2.0 Command Reference Select printer settings (cut options) ASCII: Decimal: 67 79 nd1 nd2 nd3 nd4 Hexadecimal: 5E 43 4F nh1 nh2 nh3 nh4 Parameters 0≤n1≤1 0≤n2≤9 0≤n3≤9 0≤n4≤1 Description Specifies the various cut options. Auto cut setting (ON: 1 (default);...
  • Page 46: Ls Specify Line Spacing With Line Feed

    P-touch Template 2.0 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) 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.
  • Page 47: Cc Change The Prefix Character

    P-touch Template 2.0 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 “^”. This command is a dynamic command.
  • Page 48: Rc Specify Line Feed Command Text String

    P-touch Template 2.0 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 2.0 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) The default number of copies is 1.
  • Page 50: Nn Specify Number Of Numbering Copies

    P-touch Template 2.0 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) The default number of copies printed with Numbering is 1.
  • Page 51: Qs Select Print Options

    P-touch Template 2.0 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). This command is a dynamic command.
  • Page 52: Qv Specify Qr Code Version

    P-touch Template 2.0 Command Reference Specify QR Code version ASCII: Decimal: 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.
  • Page 53: Fc Fnc1 Replacement Setting

    P-touch Template 2.0 Command Reference FNC1 replacement setting ASCII: Decimal: 70 67 nd Hexadecimal: 5E 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 codes. n: FNC1 replacement setting (ON: 1;...
  • Page 54: Initialize

    P-touch Template 2.0 Command Reference Initialize ASCII: Decimal: 73 73 Hexadecimal: 5E 49 49 Parameters None Description Reverts all dynamic settings to the printer settings. Print start trigger setting Print start command text string Print start received character count Delimiter Number of selected template Line spacing with line feed Prefix character...
  • Page 55: Op Perform Printer Operation (Feed)

    P-touch Template 2.0 Command Reference Perform printer operation (feed) ASCII: Decimal: 79 80 nd Hexadecimal: 5E 4F 50 nh Parameters 1≤n≤2 Description Causes the printer to perform a feed operation. n=1: Feeds 1 inch (for continuous length tape) n=2: Feeds one label length (for die-cut labels) Remarks Invalid if n is a value other than 1 or 2 Example...
  • Page 56: Sr Status Request

    Fixed at 20h Brother code Fixed at “B” (42h) Series code Fixed at “7” (35h) Fixed at Model code RJ-4030: “1” (31h) RJ-4040: “2” (32h) Country code Fixed at “0” (30h) Battery level information Refer to table (5) below. Reserved...
  • Page 57 P-touch Template 2.0 Command Reference (1) Error information 1 Flag Mask Definition Bit 0 “No media” error Bit 1 “End of media” error Bit 2 “Cutter jam” error Bit 3 Not used Bit 4 Printer in use Bit 5 Printer turned off Bit 6 Not used Bit 7...
  • Page 58: Vr Retrieve Version Information

    P-touch Template 2.0 Command Reference (5) Battery level information Flag Mask Meaning Bit 0 Full battery Bit 1 Half battery Bit 2 Low battery Bit 3 Changing required Bit 4 AC adapter in use Retrieve version information ASCII: Decimal: 86 82 Hexadecimal: 5E 56 52 Parameters...
  • Page 59: Cr Line Feed In Object

    P-touch Template 2.0 Command Reference Line feed in object ASCII: Decimal: 67 82 Hexadecimal: 5E 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 print three lines: Code: 1 ^ C R 2 ^ C R 3 ^ F F...
  • Page 60: Os Select Object (Object Number)

    P-touch Template 2.0 Command Reference Select object (object number) ASCII: Decimal: 79 83 nd1 nd2 Hexadecimal: 5E 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 number can be set between 1 and 99. This command becomes invalid if any other value has been specified.
  • Page 61: On Select Object (Object Name)

    P-touch Template 2.0 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 62: Di Directly Insert Object

    P-touch Template 2.0 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. (Even if a print command or delimiter is within the specified number of characters, they are treated as data.) (nh2*256)+nh1: Specified number of characters...
  • Page 63: Esc I A Select Command Mode

    P-touch Template 2.0 Command Reference ESC i a Select 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 (default) nh=01h or 31h: Raster mode nh=03h or 33h: P-touch Template mode This command is a dynamic command.
  • Page 64: Esc Ixt2 Select Print Start Trigger

    P-touch Template 2.0 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 type of print start trigger. 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 65: Esc Ixp2 Specify Print Start Command Text String

    P-touch Template 2.0 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 66: Esc Ixr2 Specify Print Start Received Character Count

    P-touch Template 2.0 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 Specifies the number of characters to be received in order to start printing.
  • Page 67: Esc Ixd2 Specify Delimiter

    P-touch Template 2.0 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. Specifies the text string for the delimiter.
  • Page 68: Esc Ixa2 Specify Non-Printed Text Strings

    P-touch Template 2.0 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.
  • Page 69: Esc Ixi2 Select Command Mode

    P-touch Template 2.0 Command Reference ESC iXi2 Select 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 (default) nh3=01h: Raster mode nh3=03h: P-touch Template mode...
  • Page 70: Esc Ixn2 Select Template

    P-touch Template 2.0 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 Selects the number of the template selected from the printer. n3: Template number (1 to 99) The default selection number is 1.
  • Page 71: Esc Ixf2 Change The Prefix Character

    P-touch Template 2.0 Command Reference ESC iXf2 Change the prefix character ASCII: ESC i Decimal: 105 88 102 50 nd1 nd2 nd3 Hexadecimal: 1B 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 string for the prefix character is “^”.
  • Page 72: Esc Ixc2 Select Printer Settings (Cut Options)

    P-touch Template 2.0 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 Selects the various cut options.
  • Page 73: Esc Ixy2 Select Printer Settings (Cut Options-Specifying Number Of Labels)

    P-touch Template 2.0 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 Specifies that the tape will be cut after the specified number of labels.
  • Page 74: 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) - 68 - 7.
  • Page 75: Esc Ixj2 Select International Character Set

    P-touch Template 2.0 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 according to the country selected, and switches some character codes in the code table according to the value for nh3.
  • Page 76: Esc Ixr2 Specify Line Feed Command Text String

    P-touch Template 2.0 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 77: Esc Ixc2 Specify Number Of Copies

    P-touch Template 2.0 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) The default number of copies is 1.
  • Page 78: Esc Ixn2 Specify Number Of Numbering Copies

    P-touch Template 2.0 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) The default number of copies printed with Numbering is 1.
  • Page 79: Esc Ixf2 Fnc1 Replacement Setting

    P-touch Template 2.0 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 Selects whether or not GS codes, which are included in barcode protocols such as GS1-128 (UCC/EAN-128), are replaced with FNC1 codes.
  • Page 80: Esc Ixq2 Select Print Options

    P-touch Template 2.0 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 The default value for the print options is “00h”...
  • Page 81: Esc Ixt1 Retrieve Print Start Trigger Setting

    P-touch Template 2.0 Command Reference ESC iXT1 Retrieve print start trigger setting 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 82: Esc Ixp1 Retrieve Print Start Command Setting Text String

    P-touch Template 2.0 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. 3- to 22-byte data is returned from the printer.
  • Page 83: Esc Ixr1 Retrieve Print Start Received Character Count

    P-touch Template 2.0 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 in order to start printing. 4-byte data is returned from the printer.
  • Page 84: Esc Ixd1 Retrieve Delimiter

    P-touch Template 2.0 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 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...
  • Page 85: Esc Ixa1 Retrieve Non-Printed Text Strings

    P-touch Template 2.0 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. 2- to 22-byte data is returned from the printer.
  • Page 86: Esc Ixi1 Retrieve Command Mode Setting

    P-touch Template 2.0 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. 3-byte data is returned from the printer.
  • Page 87: Esc Ixn1 Retrieve Number Of Selected Template

    P-touch Template 2.0 Command Reference ESC iXn1 Retrieve number of selected template 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 printer. 3-byte data is returned from the printer.
  • Page 88: Esc Ixc1 Retrieve Printer Settings (Cut Options)

    P-touch Template 2.0 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 printer. [1]: 01h (Fixed) [2]:...
  • Page 89: Esc Ixy1 Retrieve Printer Settings (Cut Options-Specifying Number Of Labels)

    P-touch Template 2.0 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 cutting after a specified number of labels. 3-byte data is returned from the printer.
  • Page 90: Esc Ixm1 Retrieve Character Code Set Setting

    03h: ZPL II Emulation 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 91: Esc Ixj1 Retrieve International Character Set Setting

    P-touch Template 2.0 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. 3-byte data is returned from the printer.
  • Page 92: Esc Ixf1 Retrieve Prefix Character

    P-touch Template 2.0 Command Reference ESC iXf1 Retrieve 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 printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Specified character...
  • Page 93: Esc Ixr1 Retrieve Line Feed Command Setting Text String

    P-touch Template 2.0 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. 2- to 22-byte data is returned from the printer.
  • Page 94: Esc Ixc1 Retrieve Number Of Copies Setting

    P-touch Template 2.0 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. 4-byte data is returned from the printer.
  • Page 95: Esc Ixn1 Retrieve Number Of Numbering Copies Setting

    P-touch Template 2.0 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. 4-byte data is returned from the printer.
  • Page 96: Esc Ixf1 Retrieve Fnc1 Replacement Setting

    P-touch Template 2.0 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 printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting...
  • Page 97: Esc Ixq1 Retrieve Print Options

    P-touch Template 2.0 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 98: Zpl Ii Supported By Rj-4030/4040

    P-touch Template 2.0 Command Reference 8. ZPL II supported by RJ-4030/4040 ZPL II Description Select font Interleaved 2 of 5 Code39 PDF417 EAN-8 UPC-E Code93 Code128 MaxiCode EAN-13 MicroPDF417 ANSI CodaBar QR Code UPC-EAN Extension UPC-A DataMatrix Bar setting for barcodes...
  • Page 99 Store image files Cancel format Initialize memory Clear format holding ~JP Initialize when printer turned on Printer setting Select print setting after error occurs Set language Set home position of label - 93 - 8. ZPL II supported by RJ-4030/4040...
  • Page 100 Print printer settings Print list of stored files Command required at beginning of format Recall format stored with ^DF Recall format stored with ^DG or ^DG Command required at end of format - 94 - 8. ZPL II supported by RJ-4030/4040...
  • Page 101: Appendix A: Specifications

    P-touch Template 2.0 Command Reference Appendix A: Specifications BROTHER RJ-4030/RJ-4040 P-touch Template 2.0 specifications Raster printing (PTCBP mode) Printing method ESC/P printing P-touch Template printing Maximum print length 1 meter Resolution (dpi) 203 dpi × 203 dpi Font Outline fonts: Helsinki, Letter Gothic...
  • Page 102: Appendix B: Character Code Tables

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

    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 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E United States (U.S.A) ¦ ˜ France à...
  • Page 106: Appendix C: Troubleshooting

    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) 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 107 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 - 101 - Appendix D: Introducing the Brother Developer Center...

Table of Contents