Software Developer's Manual P-touch Template 2.0 Command Reference PJ-822/823/862/863/883 Version 1.
The Brother logo is a registered trademark of Brother Industries, Ltd. Brother is a registered trademark of Brother Industries, Ltd. © 2021 Brother Industries, Ltd. All rights reserved. The Bluetooth word mark and logos are owned by the Bluetooth SIG, Inc. and, any use of such marks by Brother Industries, Ltd. is under license.
IMPORTANT - PLEASE READ CAREFULLY Note This documentation (“Documentation”) gives you information that will assist you in controlling your Printer PJ-8XX (where “8XX” is the model name). You may use the Documentation only if you first agree to the following conditions. If you do not agree to the following conditions, you may not use the Documentation. Condition of Use You may use and reproduce the Documentation to the extent necessary for your own use of your Printer Model (“Purpose”).
P-touch Template 2.0 Command Reference Contents Introduction ·························································································· 1 What is P-touch Template 2.0? ································································· 2 1. Using P-touch Template 2.0 ·································································· 3 2. P-touch Template Settings Tool User’s Guide ········································· 4 3.
P-touch Template 2.0 Command Reference ^SS ^LS ^CC ^RC ^QV ^FC ^OP ^SR ^VR ^CR ^OS ^ON ^DI Specify delimiter ................................................................................ 43 Specify line spacing with line feed ..................................................... 44 Change the prefix character .............................................................. 45 Specify line feed command text string ............................................... 46 Specify QR Code version .................
P-touch Template 2.0 Command Reference ESC i S Status request ................................................................................... 98 11. ZPL II Emulation Support Commands ················································ 99 Appendix A: Specifications ·································································· 104 Appendix B: Character Code Tables ······················································ 105 Character code tables .........................................................
P-touch Template 2.0 Command Reference Introduction This material provides the necessary information for directly controlling the templates transferred to your printer. 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.
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” includes medias such as barcode readers, smartphones or mobile terminals.) Prints the transferred data (3) (See the figure shown below.) 1.
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. P-touch Template Settings Tool User’s Guide”.) The printer driver must first be installed via a USB connection. (2) Design the template. Using P-touch Editor, design the template to be transferred to the printer.
P-touch Template 2.0 Command Reference 2.
P-touch Template 2.0 Command Reference (1) Command mode setting - P-touch Template mode To use P-touch Template 2.0, select the P-touch Template mode. (2) Template number setting Specify the template number selected as the default when the printer is turned on. However, if any template has been set to not be transferred to the printer, the number of that template cannot be specified.
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 - Latin America - South Korea - Legal The following 12 codes are switched depending on the country selected from those listed above.
P-touch Template 2.0 Command Reference (12) FNC1 replacement setting This setting selects if 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. (13) Number of copies setting Specify the number of copies. A number between 1 and 99 can be specified.
P-touch Template 2.0 Command Reference 3. Examples for Using Commands 3.1 Example for using P-touch Template 2.0 Target label is following. Steps 1. Make a template with P-touch Editor. 2. Transfer the template to Transfer Manager. 3. Transfer the template from Transfer Manager to the printer. 4. Use P-touch Template 2.0 commands for printing. -8- 3.
P-touch Template 2.0 Command Reference Step 1: Make a template with P-touch Editor. Start the P-touch Editor and make a label. In this example, P-touch Editor operates in Professional mode. Step 2: Transfer the template to Transfer Manager. -9- 3.
P-touch Template 2.0 Command Reference 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. 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 bi-directional communication when Transfer Manager is used.
P-touch Template 2.0 Command Reference Step 4: Use P-touch Template 2.0 commands for printing. When using P-touch Template commands, at least these four commands are required. However, two out of the four can be set by using the P-touch Template Settings tool. (1) Select the P-touch Template mode. (2) Choose the assigned number. After setting (1) and (2) with the P-touch Template Settings tool, the other two commands must be sent to the printer. - 11 - 3.
P-touch Template 2.0 Command Reference (3) Initialize P-touch Template Entered command ^II (4) Print Start Entered command ^FF When the printer receives the command above, the document below is printed. - 12 - 3.
P-touch Template 2.0 Command Reference 3.2 Example for using ZPL II in P-touch Template 2.0 Here is the label that will be made. 406 dots (2 inches) Example: A case 203dpi printer is used 290 dots 80 dots Font is outline font, and size is 50, 50 dots. 609 dots (3 inches) Steps 1. Change the mode to P-touch Template mode. 2. Set the label length with ^LL. 3. Set the label width with ^PW. 4. Send other ZPL II command. Step 1: Change the mode to P-touch Template mode.
P-touch Template 2.0 Command Reference Step 2: Set the label length with ^LL. The label length is 609 dots. Entered command ^LL609 Step 3: Set the label width with ^PW. The label width is 406 dots. Entered command ^PW406 Step 4: Send other ZPL II commands. The orientation of the text is 80, 290. The font is outline font and size is 50, 50. The text is “At your side.
P-touch Template 2.0 Command Reference With those commands above, the label below is printed. - 15 - 3.
P-touch Template 2.0 Command Reference 3.3 Example for printing logo/external characters in P-touch Template 2.0 Here is the label to be printed. Steps 1. Make a template and transfer it to the printer. 2. Store the logo/external characters as a bitmap file. 3. Transfer the bitmap file from Transfer Manager to the printer. 4. Use P-touch Template commands for printing. Step 1: Make a template and transfer it to the printer. Assigned number Stored template Click[Transfer] button. - 16 - 3.
P-touch Template 2.0 Command Reference Step 2: Store the loge/external characters as a bitmap file. The file name should be started from “_ext_”,, and drag & drop it to Transfer Manager. Example file name is “_ext_logo.bmp” Step 3: Transfer the bitmap file from Transfer Manager to the printer. Assigned number Click[Transfer] button. Step 4: Use P-touch Template commands for printing. (1) Initialize P-touch Template Entered command ^II (2) Select the bitmap file to be printed.
P-touch Template 2.0 Command Reference Entered command ^FF When the printer receives the command above, the label below is printed. - 18 - 3.
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.3 Relationship between the P-touch Editor settings and the printer image” on page 30 When a template is transferred to a printer, a font specified in P-touch Editor is changed to most similar resident font in the printer. Character sizes specified in P-touch Editor are converted to the closest built-in character size when the data is sent to the printer.
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. A negative line spacing setting cannot be used in P-touch Editor.
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” is selected under “Text Layout” in P-touch Editor, the text is always aligned at top left. If the “Long Text” setting is selected under “Text Layout” in P-touch Editor and continuous length tape is used, the print length is increased to fit the text.
P-touch Template 2.0 Command Reference It is possible to decorate specific text by surrounding text data with decoration tags. The specification of the tag is as follows. Type Decoration tag* Start tag End tag Bold Underline *These are default values. Ex) When the text ”AAABBBCCC” is inserted to a text object: Output: AAABBBCCC Decoration tags are required for each line.
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 printer.
P-touch Template 2.0 Command Reference 4.2.2 1D barcodes A barcode wider than 22.5 cm will not be printed. A 1D barcode taller than 1164 dots is converted to 1164dots. The number of characters that can be entered for each protocol is shown below. CODE39 ITF I-2/5 1 to 50 characters (not including “*” on both sides) When feeding data, the asterisks (*) at the beginning and end of the data are skipped. 1 to 64 characters The bearer bar setting specified in P-touch Editor is invalid.
P-touch Template 2.0 Command Reference 4.2.3 2D barcodes Margin setting in the P-touch Editor is ignored. It is only changed by Barcode margin setting command (ESC iXE2). Other limitations are as follows. QR Code The version setting for a QR Code specified in P-touch Editor is invalid. The version setting must be turned off. The Structured Append settings specified in P-touch Editor are invalid.
P-touch Template 2.0 Command Reference 4.3 Relating to images If a template containing overlapping images is transferred with P-touch Editor, all image data will be overlapping. (P-touch Editor displays the image created last on top.) 4.4 Relating to Numbering A single object contains a single Numbering field. A Numbering field can contain a maximum of 15 digits. Only Numbering fields will be saved in Numbering objects when printing is finished.
P-touch Template 2.0 Command Reference 4.5 Others 4.5.1 Transferring templates A maximum of 255 templates can be transferred. The transfer cannot be completed if the amount of data being transferred exceeds user area of the flash memory. A single template can contain a maximum of 255 objects. When print data is fed, the command mode should be the P-touch Template mode. When a template is transferred to the printer, all values specified with dynamic commands are initialized.
P-touch Template 2.0 Command Reference Specifying the object name - 28 - 4. P-touch Template 2.
P-touch Template 2.0 Command Reference 5. Precautions 5.1 Notes on using static commands Some static commands are only executed in raster mode. When using these static commands, change the command mode to raster mode before sending the command. (1) Switch to raster mode. ESC i a 00h (1Bh 69h 61h 00h) (2) Send static commands. (3) Switch to P-touch Template mode. ESC i a 03h (1Bh 69h 61h 03h) *Please refer to 6.3 Raster commands. 5.
P-touch Template 2.0 Command Reference 5.3 Relationship between the P-touch Editor settings and the printer image P-touch Editor setting Text options (Text Layout settings) Text Layout DetailsOptions Printer image Width Wrap Text Clip Text Fixed Frame Size Fixed Frame Size (Wrap) Long Text Height Frame Size Text Size Frame Size Printed image Text Size Fixed Fixed If the text is too long, the overflow text is not printed. Fixed 1 (See below.
P-touch Template 2.0 Command Reference 5.4 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. - If the Expanded tab of the Text Properties dialog box is not displayed, click [Options] on the Tools menu, and then select the “Display Expanded Tabs of Object Properties” check box on the General tab.
P-touch Template 2.0 Command Reference 6. Control Command Lists 6.
P-touch Template 2.0 Command Reference 6.
P-touch Template 2.0 Command Reference 6.3 Setting and retrieving commands (Raster mode) Commands Description ESC iOUe Specify decoration tag string Note Note * These commands are only available in raster mode. 6.4 Printer control commands Commands Description ESC ia Select command mode ESC iUx Reboot Note - 34 - 6.
P-touch Template 2.0 Command Reference 7. P-touch Template Command Details ^II Initialize ASCII: ^ Hexadecimal: 5E I I 49 49 Parameters None Description Reverts all dynamic settings to the printer settings.
P-touch Template 2.0 Command Reference ^TS Select template ASCII: ^ Hexadecimal: 5E T S n1 n2 54 53 nh1 nh2 n3 nh3 Parameters 0≤n1≤2 0≤n2≤9 0≤n3≤9 Description Specifies the number of the template selected from the printer. (n1*100)+(n2*10)+n3: Template number (1 to 255) The default selection number is 1. This command is a dynamic command. Remarks The template numbers that can be set are between 1 and 255.
P-touch Template 2.0 Command Reference ^FF Start printing ASCII: ^ Hexadecimal: 5E F F 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. (Refer to “^PS” and “ESC iXP2”.) Example To print template number 3: ^TS003^FF (5Eh 54h 53h 30h 30h 33h 5Eh 46h 46h) - 37 - 7.
P-touch Template 2.0 Command Reference ^CN Specify number of copies ASCII: ^ Hexadecimal: 5E C N n1 n2 43 4E nh1 nh2 n3 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. This command is a dynamic command.
P-touch Template 2.0 Command Reference ^NN Specify number of Numbering copies ASCII: ^ Hexadecimal: 5E N N n1 n2 4E 4E nh1 nh2 n3 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) The default number of copies printed with Numbering is 1. This command is a static command.
P-touch Template 2.0 Command Reference ^PT Select print start trigger ASCII: ^ Hexadecimal: 5E P T n 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 (not including delimiters) This command is a dynamic command.
P-touch Template 2.0 Command Reference ^PS Specify print start command text string ASCII: ^ Hexadecimal: 5E P S n1 n2 50 53 nh1 nh2 data 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 (bytes).) The default text string for the print start command is “^FF”.
P-touch Template 2.0 Command Reference ^PC Specify print start received character count ASCII: ^ Hexadecimal: 5E P C n1 n2 50 43 nh1 nh2 n3 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 (bytes) (1 to 999) The default print start received character count is 10. This command is a dynamic command.
P-touch Template 2.0 Command Reference ^SS Specify delimiter ASCII: ^ Hexadecimal: 5E S S n1 n2 53 53 nh1 nh2 data 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. (n1*10)+n2: Length of the text string (between 1 and 20) data: Text string (The maximum number of characters that can be set is 20 characters (bytes).
P-touch Template 2.0 Command Reference ^LS Specify line spacing with line feed ASCII: ^ Hexadecimal: 5E L S n1 n2 4C 53 nh1 nh2 n3 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.
P-touch Template 2.0 Command Reference ^CC Change the prefix character ASCII: ^ Hexadecimal: 5E C C n 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.
P-touch Template 2.0 Command Reference ^RC Specify line feed command text string ASCII: ^ Hexadecimal: 5E R C n1 n2 52 43 nh1 nh2 data 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).) The default text string for the line feed command is “^CR”.
P-touch Template 2.0 Command Reference ^QV Specify QR Code version ASCII: ^ Hexadecimal: 5E Q V n1 n2 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. This command becomes invalid if a value other than those that can be set (between 0 and 40) has been specified. This command is a dynamic command.
P-touch Template 2.0 Command Reference ^FC FNC1 replacement setting ASCII: ^ Hexadecimal: 5E F C n 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; OFF: 0 (default)) This command is a dynamic command. Remarks Invalid if n is a value other than 1 or 0 Example To disable FNC1 replacement: Since FNC1 replacement will be disabled, n=0.
P-touch Template 2.0 Command Reference ^OP Perform printer operation (feed) ASCII: ^ O P n Decimal: 94 79 80 nd Hexadecimal: 5E 4F 50 nh Parameters n: 0 (Fixed) Description Causes the printer to perform a feed operation. Example To specify that the printer performs a feed operation: ^OP0 (5Eh 4Fh 50h 30h) - 49 - 7.
P-touch Template 2.0 Command Reference ^SR Status request ASCII: ^ Hexadecimal: 5E S R 53 52 Parameters None Description Returns the printer status. The printer status consists of 32 bytes. The printer does not return status during the printing operation.
P-touch Template 2.
P-touch Template 2.0 Command Reference (5) Power status Value Battery level AC adapter 20h Full Not connected 22h Half Not connected 23h Low Not connected 24h Charging required Not connected 30h Full Connected 32h Half Connected 33h Low Connected 34h Charging required Connected 37h No battery Connected Other Undefined Undefined (6) Media width Series Value No Paper 00h Loaded Paper D2h - 52 - Remarks 7.
P-touch Template 2.0 Command Reference ^VR Retrieve version information ASCII: ^ Hexadecimal: 5E V R 56 52 Parameters None Description Retrieves the version information for the printer as a 8-character text string. - 53 - 7.
P-touch Template 2.0 Command Reference ^CR Line feed in object ASCII: ^ C Hexadecimal: 5E R 43 52 Parameters None Description Adds a line feed to the next line in the text object. Command characters are modifiable. (Refer to ^RC, ESC iXR2) Example To print three lines: Code: 1 ^ C R 2 ^ C R 3 ^ F F (31h 5Eh 43h 52h 32h 5Eh 43h 52h 33h 5Eh 46h 46h) 1 Print result: 2 3 - 54 - 7.
P-touch Template 2.0 Command Reference ^OS Select object (object number) ASCII: ^ Hexadecimal: 5E O S n1 n2 4F 53 nh1 nh2 n3 nh3 Parameters 0≤n1≤2 0≤n2≤9 0≤n3≤9 Description Selects an object by its object number. (n1*100)+(n2*10)+n3: Object number (1 to 255) Remarks The object number can be set between 1 and 255. This command becomes invalid if any other value has been specified. Use this command to insert data starting with an intermediary object.
P-touch Template 2.0 Command Reference ^ON Select object (object name) ASCII: ^ Hexadecimal: 5E O N data 4F 4E datah 00 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. In addition, the command becomes invalid if no text has been specified. “00h” should be added at the end of the text.
P-touch Template 2.0 Command Reference ^DI Directly insert object ASCII: ^ D Hexadecimal: 5E I n1 n2 44 49 nh1 nh2 data 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.
P-touch Template 2.0 Command Reference 8. Setting and Retrieving Command Details ESC iXT2 Select print start trigger ASCII: ESC Hexadecimal: 1B i X T 2 01h 00h n1 69 58 54 32 01 00 nh1 Parameters 00h≤nh1≤02h Description Selects the type of print start trigger. nh1=00h: When the specified text string is received (default) nh1=01h: When all objects are filled (Prints with the delimiter at the end of the data.
P-touch Template 2.0 Command Reference ESC iXT1 Retrieve print start trigger setting ASCII: ESC Hexadecimal: 1B i X T 1 00h 00h 69 58 54 31 00 00 Parameters None Description The print start trigger is returned as 3-byte data. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting 00h: When the specified text string is received 01h: When all objects are filled 02h: When the specified number of characters is received The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXP2 Specify print start command text string ASCII: ESC Hexadecimal: 1B i X P 2 n1 n2 data 69 58 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 (bytes).
P-touch Template 2.0 Command Reference ESC iXP1 Retrieve print start command setting text string ASCII: ESC Hexadecimal: 1B i X P 1 00h 00h 69 58 50 31 00 00 Parameters None Description Retrieves the text string specified for the print start command. 3- to 22-byte data is returned from the printer.
P-touch Template 2.0 Command Reference ESC iXr2 Specify print start received character count ASCII: ESC Hexadecimal: 1B i X r 2 02h 00h n1 69 58 72 32 02 00 n2 nh1 nh2 Parameters 00h≤nh1≤FFh 00h≤nh2≤03h Description Specifies the number of characters to be received in order to start printing. nh1+(nh2*256): Print start received character count (1 to 999) The default print start received character count is 10. This command is a static command.
P-touch Template 2.0 Command Reference ESC iXr1 ASCII: Retrieve print start received character count ESC Hexadecimal: 1B i X r 1 00h 00h 69 58 72 31 00 00 Parameters None Description Retrieves the number of characters specified to be received in order to start printing. 4-byte data is returned from the printer. [1]: 02h (Fixed) [2]: 00h (Fixed) [3,4]: nh1 nh2 settings nh1+(nh2*256): Print start received character count The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXD2 Specify delimiter ASCII: ESC Hexadecimal: 1B i X D 2 n1 n2 data 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.
P-touch Template 2.0 Command Reference ESC iXD1 Retrieve delimiter ASCII: ESC Hexadecimal: 1B i X D 1 00h 00h 69 58 44 31 00 00 Parameters None Description Retrieves the text string specified for the delimiter. 3- to 22-byte data is returned from the printer. (Varies depending on the length of the text string) [1,2]: nh1 nh2 (number of characters) nh1+(nh2*256) [3 and later]: Text string The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXa2 Specify non-printed text strings ASCII: ESC Hexadecimal: 1B i X a 2 n1 n2 n3 data 69 58 61 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 (bytes).) This command is a static command.
P-touch Template 2.0 Command Reference ESC iXa1 ASCII: Retrieve non-printed text strings ESC Hexadecimal: 1B i X a 1 01h 00h 01h 69 58 61 31 01 00 01 Parameters None Description Retrieves the specified non-printed text string. 2- to 22-byte data is returned from the printer. (Varies depending on the length of the text string) [1,2]: nh1 nh2 (number of characters) nh1+(nh2*256) [3 and later]: Text string The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXi2 ASCII: Select command mode ESC Hexadecimal: 1B i X i 2 01h 00h n1 69 58 69 32 01 00 nh1 Parameters nh1: 00h 01h 03h 04h 05h Description Switches the mode. nh3=00h: Raster /ESC/P Legacy mode(default) nh3=03h: P-touch Template mode /ZPL II emulation mode nh3=04h: ESC/P Brother mode This command is a static command. Remarks Invalid if nh1 is a value outside of the available range. - 68 - 8.
P-touch Template 2.0 Command Reference ESC iXi1 ASCII: Retrieve command mode setting ESC Hexadecimal: 1B i X i 69 58 69 1 00h 00h 31 00 00 Parameters None Description Retrieves the setting for the command mode. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting 00h: Raster /ESC/P Legacy mode 03h: P-touch Template mode /ZPL II emulation mode 04h: ESC/P Brother mode The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXn2 Select template ASCII: ESC Hexadecimal: 1B i X n 2 01h 00h n1 69 58 6E 32 01 00 nh1 Parameters 01h≤nh1≤FFh Description Selects the number of the template selected from the printer. n1: Template number (1 to 255) The default selection number is 1. This command is a static command. Remarks The template numbers that can be set are between 1 and 255.
P-touch Template 2.0 Command Reference ESC iXn1 Retrieve number of selected template ASCII: ESC Hexadecimal: 1B i X n 1 00h 00h 69 58 6E 31 00 00 Parameters None Description Retrieves the template number selected from the printer. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXf2 Change the prefix character ASCII: ESC Hexadecimal: 1B i X f 2 01h 00h n1 69 58 66 32 01 00 nh1 Parameters 00h≤nh1≤FFh Description Changes the prefix character code. n1: Character code The default text string for the prefix character is “^”. This command is a static command. Example To change the prefix character to “_”: ESC i X f 2 01h 00h 5Fh (“_”) (1Bh 69h 58h 66h 32h 01h 00h 5Fh) (“5Fh” is “_” in ASCII code.) - 72 - 8.
P-touch Template 2.0 Command Reference ESC iXf1 ASCII: Retrieve prefix character ESC Hexadecimal: 1B i X f 1 00h 00h 69 58 66 31 00 00 Parameters None Description Retrieves the prefix character code. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Specified character The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXm2 Select character code set ASCII: ESC Hexadecimal: 1B i X m 2 01h 00h n1 69 58 6D 32 01 00 nh1 Parameters 00h≤nh1≤04h, 10h Description Selects the character code set. (For details on the character code sets, refer to the character code tables in “Appendix B: Character Code Tables”.
P-touch Template 2.0 Command Reference ESC iXm1 Retrieve character code set setting ASCII: ESC Hexadecimal: 1B i X m 1 00h 00h 69 58 6D 31 00 00 Parameters None Description Retrieves the specified character code set. (For details on the character code sets, refer to “Appendix B: Character Code Tables”.) 3-byte data is returned from the printer.
P-touch Template 2.0 Command Reference ESC iXj2 Select international character set ASCII: ESC Hexadecimal: 1B i X j 2 01h 00h n1 69 58 6A 32 01 00 nh1 Parameters 00h≤nh1≤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 nh1.
P-touch Template 2.0 Command Reference ESC iXj1 Retrieve international character set setting ASCII: ESC Hexadecimal: 1B i X j 1 00h 00h 69 58 6A 31 00 00 Parameters None Description Retrieves the international character set setting. 3-byte data is returned from the printer.
P-touch Template 2.0 Command Reference ESC iXR2 Specify line feed command text string ASCII: ESC Hexadecimal: 1B i X R 2 n1 n2 data 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. 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 (bytes).
P-touch Template 2.0 Command Reference ESC iXR1 Retrieve line feed command setting text string ASCII: ESC Hexadecimal: 1B i X R 1 00h 00h 69 58 52 31 00 00 Parameters None Description Retrieves the text string specified for the line feed command. 2- to 22-byte data is returned from the printer. (Varies depending on the length of the text string) [1, 2]: nh1 nh2 (number of characters) nh1+(nh2*256) [3 and later]: Text string The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXC2 Specify number of copies ASCII: ESC Hexadecimal: 1B i X C 2 02h 00h n1 69 58 43 32 02 00 nh1 n2 nh2 Parameters 00h≤nh1≤FFh 00h≤nh2≤03h Description Specifies the number of copies to be printed. nh1+(nh2*256): Number of copies (bytes) (1 to 999) The default number of copies is 1. This command is a static command. Example To change the number of copies to 100: Since nh1=64h and nh2=00h, the command will be as follows.
P-touch Template 2.0 Command Reference ESC iXC1 Retrieve number of copies setting ASCII: ESC Hexadecimal: 1B i X C 1 00h 00h 69 58 43 31 00 00 Parameters None Description Retrieves the number of copies specified to be printed. 4-byte data is returned from the printer. [1]: 02h (Fixed) [2]: 00h (Fixed) [3, 4]: nh1 nh2 settings nh1+(nh2*256): Print start received character count The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXN2 Specify number of Numbering copies ASCII: ESC Hexadecimal: 1B i X N 2 02h 00h n1 69 58 4E 32 02 00 nh1 n2 nh2 Parameters 00h≤nh1≤FFh 00h≤nh2≤03h Description Specifies the number of copies to be printed with Numbering. nh1+(nh2*256): Number of Numbering copies (bytes) (1 to 999) The default number of copies printed with Numbering is 1. This command is a static command.
P-touch Template 2.0 Command Reference ESC iXN1 Retrieve number of Numbering copies setting ASCII: ESC Hexadecimal: 1B i X N 1 00h 00h 69 58 4E 31 00 00 Parameters None Description Retrieves the number of copies specified to be printed with Numbering. 4-byte data is returned from the printer. [1]: 02h (Fixed) [2]: 00h (Fixed) [3, 4]: nh1 nh2 settings nh1+(nh2*256): Number of Numbering copies The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXF2 FNC1 replacement setting ASCII: ESC Hexadecimal: 1B i X F 2 01h 00h n1 69 58 46 32 01 00 nh1 Parameters nh1: 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. nh1=00h: FNC1 replacement setting OFF nh1=01h: FNC1 replacement setting ON This command is a static command.
P-touch Template 2.0 Command Reference ESC iXF1 ASCII: Retrieve FNC1 replacement setting ESC Hexadecimal: 1B i X F 1 00h 00h 69 58 46 31 00 00 Parameters None Description Retrieves the FNC1 replacement setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Setting 00h: FNC1 replacement setting OFF 01h: FNC1 replacement setting ON The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXE2 Specify barcode margin setting ASCII: ESC Hexadecimal: 1B i X E 2 01h 00h n1 69 58 45 32 01 00 n1 Parameters n1: 00h, 01h Description Specify barcode margin setting. n1=00h: Disable n1=01h: Enable Default value is 01h (Enable). This command is a static command. This setting affects only for 2D codes.
P-touch Template 2.0 Command Reference ESC iXE1 Retrieve barcode margin setting ASCII: ESC Hexadecimal: 1B i X E 1 00h 00h 69 58 45 31 00 00 Parameters None Description Retrieve barcode margin setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Settings 00h: Disable 01h: Enable The retrieved value is a value specified by a static command. This setting is available only for 2D codes.
P-touch Template 2.0 Command Reference ESC iXh2 Specify rotated print ASCII: ESC Hexadecimal: 1B i X h 2 01h 00h n1 69 58 68 32 01 00 nh1 Parameters nh1: 00h, 01h Description Select rotate setting. nh1=00h: No rotation nh1=01h: 180 degrees rotation The default value for the rotate setting is "00h" (No rotation). This command is a static command. Example To set the rotate setting to 180 degrees rotation: Since nh1=01h, the command will be as follows.
P-touch Template 2.0 Command Reference ESC iXh1 ASCII: Retrieve rotated print setting ESC Hexadecimal: 1B i X h 1 00h 00h 69 58 68 31 00 00 Parameters None Description Retrieve rotated print setting. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Settings 00h: No rotate 01h: Rotate 180 degrees The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iX^2 Specify print stop position ASCII: ESC Hexadecimal: 1B i X ^ 2 01h 00h n1 69 58 5E 32 01 00 nh1 Parameters nh1: 00h, 01h Description Select print stop position. nh1=00h: Tear-bar nh1=01h: Head The default value is "00h" (Tear-bar). This command is a static command. Example To set the print stop position to head: Since nh1=01h, the command will be as follows. ESC i X ^ 2 01h 00h 01h (1Bh 69h 58h 5Eh 32h 01h 00h 01h) - 90 - 8.
P-touch Template 2.0 Command Reference ESC iX^1 Retrieve print stop position ASCII: ESC Hexadecimal: 1B i X ^ 1 00h 00h 69 58 5E 31 00 00 Parameters None Description Retrieve print stop position. 3-byte data is returned from the printer. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: Settings 00h: Tear-bar 01h: Head The retrieved value is a value specified by a static command.
P-touch Template 2.0 Command Reference ESC iXv2 (08h) Specify Network Raw port bi-directional communication ASCII: ESC Hexadecimal: 1B i X v 2 03h 00h 00h 08h 69 58 76 32 03 00 00 08 n1 nh1 Parameters nh1: 00h, 07h Description Enable or disable the bi-directional communication setting for during Network Raw port communication. nh1=00h: Disable (Default) nh1=07h: Enable The default value is 00h (Disable).
P-touch Template 2.0 Command Reference ESC iXv1 (08h) Retrieve a Network Raw port bi-directional communication setting ASCII: ESC Hexadecimal: 1B i X v 1 03h 00h 00h 08h 00h 69 58 76 31 03 00 00 08 00 Parameters None Description Retrieve a bi-directional communication (response from the printer) setting for during Network Raw port communication. 3-byte data is returned from the printer.
P-touch Template 2.0 Command Reference 9. Setting and Retrieving Command Details (Raster mode) ESC iOUe1 Specify the string of text decoration tags ASCII: ESC Hexadecimal: 1B i O U e 1 n1 n2 n3 data 69 4F 55 65 31 n1 n2 n3 data Parameters 00h≤n1≤03h 01h≤n2≤08h n3: 00h (Fixed) 00h≤data≤FFh Description Specify the string of text decoration tags.
P-touch Template 2.0 Command Reference ESC iOUe0 Retrieve the string of text decoration tags ASCII: ESC Hexadecimal: 1B i O U e 0 n1 n2 n3 69 4F 55 65 30 n1 n2 n3 Parameters 00h≤n1≤03h n2: 00h (Fixed) n3: 00h (Fixed) Description Retrieve the text string of selected decoration tags. n1=00h: Bold start n1=01h: Bold end n1=02h: Underline start n1=03h: Underline end 2- to 10-byte data is returned from the printer.
P-touch Template 2.0 Command Reference 10. Printer Control Command Details ESC i a Select command mode ASCII: ESC Hexadecimal: 1B i 69 a n 61 nh Parameters nh=00h 01h 03h 04h 05h 30h 31h 33h 34h 35h Description Switches the mode. nh=00h or 30h: ESC/P Legacy / Raster mode nh=03h or 33h: P-touch Template mode (default) / ZPL II emulation mode nh=04h or 34h: ESC/P Brother mode nh=FFh Switch to the initial mode (See also ESC iXi2Select command mode) This command is a dynamic command.
P-touch Template 2.0 Command Reference ESC i U x Reboot ASCII: ESC Hexadecimal: 1B i 69 U x 55 78 Parameters None Description Reboot the printer. This is a raster command. Please change the mode before sending this command. Please refer to ESC i a Select command mode. - 97 - 10.
P-touch Template 2.0 Command Reference ESC i S ASCII: Status request ESC Hexadecimal: 1B i S 69 53 Parameters None Description Returns the printer status. The printer status consists of 32 bytes. The response content of the command is the same as ^SR. Please refer to the ^SR page. This command does not return a response during printing. - 98 - 10.
P-touch Template 2.0 Command Reference 11. ZPL II Emulation Support Commands ZPL II Description Note ^A Select font ^A@ Select font ^B0 Aztec ^B2 Interleaved 2 of 5 ^B3 Code39 ^B7 PDF417 ^B8 EAN-8 ^B9 UPC-E ^BA Code93 ^BC Code128 ^BD MaxiCode ^BE EAN-13 ^BF MicroPDF417 ^BI Industrial 2 of 5 ^BJ Standard 2 of 5 ^BK ANSI CodaBar ^BM MSI/Plessey ^BO Aztec ^BQ QR Code ・The mask pattern is fixed. ・Mixed mode is not supported.
P-touch Template 2.0 Command Reference ZPL II Description Note ・If suffixes were disabled, guard bars will be disabled. ・The size of suffixes does not change with the size of the module width.
P-touch Template 2.0 Command Reference ZPL II Description Note ^FO Set position from home position of label ^FP Set field parameter ^FR Reverse field color ^FS Point to last position of field ^FT Set position of field ^FV Set the number of data to be inserted in field ^FW Set the default orientation ^GB Draw box ^GC Graphic circle ^GD Graphic diagonal line ^GE Graphic ellipse ^GF Graphic field ・Compressed binary data is not supported.
P-touch Template 2.
P-touch Template 2.0 Command Reference ZPL II Description Note ^XA Command required at beginning of format ^XF Recall format stored with ^DF ^XG Recall format stored with ^DG or ^DG ^XZ Command required at end of format - 103 - ・Replacement with STX is not supported. 11.
P-touch Template 2.0 Command Reference Appendix A: Specifications PJ-8XX P-touch Template 2.0 specifications Printing Model PJ-822 PJ-823 PJ-862 Printing method ESC/P Legacy / Raster printing ESC/P Brother printing P-touch Template / ZPL II emulation Maximum print length 2.
P-touch Template 2.
P-touch Template 2.
P-touch Template 2.
P-touch Template 2.
P-touch Template 2.0 Command Reference (5) Japan 0 1 2 3 4 5 6 7 0 SP 0 @ P ` 1 ! 1 A Q 2 ” 2 B 3 # 3 4 $ 5 8 9 A B C D p SP ー タ ミ a q 。 ア チ ム R b r 「 イ ツ メ C S c s 」 ウ テ モ 4 D T d t 、 エ ト ヤ % 5 E U e u ・ オ ナ ユ 6 & 6 F V f v ヲ カ ニ ヨ 7 ’ 7 G W g w ァ キ ヌ ラ 8 ( 8 H X h x ィ ク ネ リ 9 ) 9 I Y i y ゥ ケ ノ ル A * : J Z j z ェ コ ハ レ B + ; K [ k { ォ サ ヒ ロ C , < L \ l |
P-touch Template 2.0 Command Reference International character set table Corresponding characters that switch in each language when the international character set is changed n 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 United States (U.S.A) # $ @ [ \ ] ^ ` { ¦ } ˜ 1 France # $ à ° ç § ^ ` é ù è ¨ 2 Germany # $ § Ä Ö Ü ^ ` ä ö ü ß 3 Britain (U.K.) £ $ @ [ \ ] ^ ` { ¦ } ˜ 4 Denmark I # $ @ Æ Ø Å ^ ` æ ø å ˜ 5 Sweden # ¤ É Ä Ö Å Ü
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.
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. https://support.brother.com/g/s/es/dev/en/index.