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