©Copyright 2010 BROTHER INDUSTRIES, LTD. P-touch Template manual Version 1.20 Model Name: TD-4000/4100N Created by: Brother Industries, Ltd.
Machine Model: TD-4000/TD-4100N IMPORTANT - PLEASE READ CAREFULLY This documentation (“Documentation”) gives you information that will assist you in controlling your Machine Model. 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 Machine Model (“Purpose”).
Contents Introduction: What is P-touch Template? How to use P-touch Template P-touch Template Settings Tool User’s Guide P-touch Template Limitations If printing does not begin (main most frequent causes) Appendix: Specifications 3 4 4 5 6 11 19 20
Introduction: This material provides the necessary information for directly controlling the transferred templates in TD-4000/4100N. This information is provided assuming that the user has full understanding of the operating system being used and basic mastery of RS-232C in a developer's environment.
How to use P-touch Template 1. Printer setting Set up the initial printer setting by P-touch Template settings tool, in accordance with the environment of host system or host device, which TD-4000/4100N connect to. (Please refer to P-touch Template Settings Tool User’s Guide in page 6.) The printer driver must first be installed via a USB connection. 2. Design the template Design the transferred template by P-touch Editor (Please refer to P-touch Template Limitations in page 11.) 3.
P-touch Template Settings Tool User’s Guide ① Command mode setting ② Template number setting ③ Delimiter setting ④ Print start trigger setting ⑤ Print start command text string setting ⑥ Print start data amount setting ⑦ Character code set setting ⑧ International character setting ⑨ Prefix character setting ⑩ Non-printed character setting ⑪ Line return character setting ⑰ FNC1 replacement setting ⑫ Number of copies setting ⑬ Auto cut setting ⑭ Print quality setting ⑮ Cut number setting ⑯ Cut at End set
①Command mode setting ・ P-touch Template mode To use P-touch Template, select the P-touch Template mode. ・ ESC/P mode ・ Raster mode ②Template number setting Specify the template number selected as the default when the machine is turned on. However if any number of template not be transferred to the machine, then it cannot be specified such number of template. ③Delimiter setting A delimiter is the symbol used to indicate when to move to the next object in the data that is being sent.
⑦Character code set setting Select one of the following three character codes. For character code tables, refer to the character code tables in the P-touch Template Command. ・ Windows1252 ・ Windows1250 ・ Brother standard ⑧International character setting Select one of the following as the character set of the country.
⑩Non-printed character setting The characters specified here are not printed when data is received. Specify 1 to 20 characters. ⑪Line return character setting The line return code is used when feeding data to indicate that the following data should be moved to the next line in a text object. One of the following four line return codes can be selected, or 1 to 20 characters can be specified as the line return code. 1. ^CR 2. \0D\0A 3. \0A 4. \0D ⑫Number of copies setting Specify the number of copies.
⑱Communication settings Settings can be specified for the following parameters for serial communication. ・ Baud rate 115200 bps, 57600 bps, 38400 bps, 31250 bps, 28800 bps, 19200 bps, 14400 bps, 9600 bps, 4800 bps, 2400 bps, 1200 bps, 600 bps, 300 bps ・ Bit length (bits) 8 bits, 7 bits ・ Parity None, Odd, Even ・ Busy control DTR, XON/XOFF Closes the Communication Settings dialog box. Applies the four settings to the machine. Returns the four parameters to their default settings.
P-touch Template Limitations ■ Relating to text objects ・Fonts specified in P-touch Editor are converted to Helsinki, Letter Gothic or Brussels, depending on the font shape, when the data is sent to the machine. (The font is converted according to the following rules: fixed pitch: Letter Gothic; serif: Brussels; san serif: Helsinki. Symbol fonts are converted to text objects while text input mode is entered, and fonts are divided in three, as described above.
“At Printing” setting (To cancel the “At Printing” setting for a date/time in P-touch Editor, display the properties for the Date and Time object, and then clear the “At Printing” check box.) ・Horizontal alignment settings (“Justify” or “Equal Length”) specified in P-touch Editor are changed to the left alignment setting. ・The setting for line spacing with a line return 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.
Specifying the line spacing setting in P-touch Editor ・Character styles specified in P-touch Editor are all made the same style within an object. ・If the “Long Text” setting is selected below “Text Layout” in P-touch Editor, the vertical alignment setting is normally set for top alignment. ・If "Long Text” is selected below “Text Layout” in P-touch Editor, or if continuous length label is used, the print length is increased to fit the text.
Specifying a Text Layout setting Click the button circled in red to display a drop-down list, and then select the desired option.
■ Relating to bar codes ● Bar codes ・When trying to transfer a template containing a bar code that is not compatible with the machine, an error will occur while transferring and the template cannot be transferred to the machine. The following bar codes are compatible with the machine.
UPC-A: 11 characters UPC-E: 6 characters CODABAR: 3 to 64 characters (with “A”, “B”, “C” or “D” at the beginning and end) CODE128: 1 to 64 characters GS1-128(UCC/EAN-128): 1 to 64 characters RSS-14: 3 to 15 characters (begins with “01”) RSS Limited: 3 to 15 characters (begins with “01”; third digit is “0” or “1”) RSS Expanded: 1 to 64 numbers or 1 to 40 letters* * ISO646 characters can be printed. <
・The joining setting specified in P-touch Editor is invalid. ・Macro settings specified in P-touch Editor are invalid. ● Maxi Code ・The link setting specified in P-touch Editor is invalid. It is linked when too much data is entered. ・When specifying the country code and service class with P-touch Editor, the number is entered at the beginning if the maximum number of characters is not reached. However, with the main unit, the number is entered at the end. Example: “2” is specified.
・Depending on the language of the computer used for transferring, either the Western European or the Eastern European character set is used for characters within databases. ■ 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. ・A single object contains a single Numbering field. ・A Numbering field can contain a maximum of 15 digits.
Specifying the object name ・When print data is fed, the command mode should be the P-touch Template mode. ・This is not compatible with split labels. ・After printing from P-touch Editor, the command mode changes to raster mode. In order to print a template, select the P-touch Template mode in the Printer Settings tool or, if the previous mode in the Printer Settings tool was the P-touch Template mode, turn the machine off, then on again to enter P-touch Template mode.
Appendix: Specifications BROTHER TD-4000/4100N P-touch Template specifications Printing method Raster printing (PTCBP mode) ESC/P printing P-touch Template printing Maximum Print Length 1 meter Resolution (dpi) 300 dpi × 300 dpi Text Bitmap fonts: Helsinki, Brussels, Letter Gothic Bold Outline fonts: Helsinki, Brussels, Letter Gothic Bitmap fonts: 24 x 24, 32 x 32 (dots) Outline fonts: 33 - 400 dot (22sizes) None, Bold, Italics, Outline, Shadow, Shadow + Outline Off, On Left, Center, Right Font Transmi
©Copyright 2010 BROTHER INDUSTRIES, LTD. P-touch Template command reference Version 1.20 Model Name: TD-4000/4100N Created by: Brother Industries, Ltd.
Contents Control Code List ..................................................................................................... 4 Commands that can be set or obtained in P-touch Template mode ....................... 4 Commands that can be set or obtained in raster mode .......................................... 5 About P-touch Template ....................................................................................... 6 Static and dynamic commands ......................................................
ESC iXr2 Specify print start received character count ...................................... 33 ESC iXD2 Specify delimiter................................................................................ 34 ESC iXa2 Specify Non-Printed character text strings ........................................ 35 ESC iXi2 Specify command mode ................................................................... 36 ESC iXn2 Specify template selection ................................................................
Control Code List Commands that can be set or obtained in P-touch Template mode ^PT 5E 50 54 Select print start trigger Dynamic ^FF 5E 46 46 Start printing ^PS 5E 50 53 Specify print start command text string Dynamic ^PC 5E 50 43 Specify print start received character count Dynamic ^SS 5E 53 53 Specify delimiter Dynamic ^TS 5E 54 53 Select template Dynamic ^CO 5E 43 4F Specify machine settings (cut options Dynamic ON/OFF) Specify line spacing with line return ^LS 5E 4C 53 Dynamic ^CC 5E 43 43 Change prefix
Commands that can be set or obtained in raster mode 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 Specify print start received character count ESC iXD2 1B 69 58 44 32 Static Specify delimiter ESC iXa2 1B 69 58 61 32 Static Specify Non-Printed character text strings ESC iXi2 1B 69 58 69 32 Static Specify command mode ESC iXn2 1B 69 58 6E 32 Static Select template ESC iXf2 1B 69 58 66 32 Static Ch
About P-touch Template Data can be sent from a host (such as measuring instruments, scales and bar code readers) and printed in a template previously transferred to the machine from P-touch Editor. P-touch Template commands consist of a prefix character and a two-character text string. When the prefix character is sent, the machine begins the analysis of the P-touch Template command, and performs the specified process if the following two-character text string corresponds to a command.
333333333333 09h ^ F F 7
Control Command Details ^PT Specify print start trigger selection [ASCII] ^PTn [Decimal] 94 80 84 nd [Hexadecimal] 5E 50 54 nh [Parameters] 1≤n≤3 [Description] ・Selects the print start trigger type. n=1: When the specified text string is received (default) n=2: When all objects are filled (Prints with the delimiter at the end of the data) n=3: When the specified number of characters is received (not including delimiters) ・This command is a dynamic command.
^FF Start printing [ASCII] ^ F F [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 string for the print start command can be changed. (Refer to “^PS” and “ESC iXP2”.
^PS Specify print start command text string [ASCII] ^ P S n1 n2 data [Decimal] 94 80 83 nd1 nd2 datad [Hexadecimal] 5E 50 53 nh1 nh2 datah [Parameters] 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh [Description] ・Specifies the text string for the print start command. (n1*10)+n2: Length of the text string (can be set between 1 and 20) data: Text string (The maximum number of characters that can be set is 20 characters (bytes).) ・The default text string for the print start command is “^FF”.
^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 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.
^SS Specify delimiter [ASCII] ^ S S n1 n2 data [Decimal] 94 83 83 nd1 nd2 datad [Hexadecimal] 5E 53 53 nh1 nh2 datah [Parameters] 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh [Description] ・The delimiter is used to indicate when to move to the next object in data that is being sent. ・Specifies the text string for the delimiter. (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).
^TS Specify template selection [ASCII] ^ T S n1 n2 n3 [Decimal] 94 84 83 nd1 nd2 nd3 [Hexadecimal] 5E 54 53 nh1 nh2 nh3 [Parameters] n1:0 (Fixed) 0≤n2≤9 0≤n3≤9 [Description] ・Specifies the template selected from the machine as a number. (n2*10)+n3: Template number (1 to 99) ・The default selection number is 1. ・This command is a dynamic command. [Remarks] ・The template numbers that can be set are between 1 and 99.
^CO Specify machine settings (cut options) [ASCII] ^ C O n1 n2 n3 n4 [Decimal] 94 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. n1: Auto cut setting (ON: 1 (default); OFF: 0) (n2*10)+n3: Auto cut label number setting (1 to 99) (Default value: 1) n4: Cut at end setting (ON: 1 (default); OFF: 0) ・This command is a dynamic command.
^LS Specify line spacing with line return [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 return 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 return is entered is the number of dots determined when the template is created in P-touch Editor.
^CC Change the prefix character [ASCII] ^CCn [Decimal] 94 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. [Example] ・To change the prefix character from “^” to “_”, send the command shown below.
^RC Specify line return command text string [ASCII] ^ R C n1 n2 data [Decimal] 94 82 67 nd1 nd2 datad [Hexadecimal] 5E 52 43 nh1 nh2 datah [Parameters] 0≤n1≤2 0≤n2≤9 00h≤datah≤FFh [Description] ・Specifies the text string for the line return 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 return command is “^CR”.
^CN Specify number of copies [ASCII] ^ C N n1 n2 n3 [Decimal] 94 67 78 nd1 nd2 nd3 [Hexadecimal] 5E 43 4E nh1 nh2 nh3 [Parameters] 0≤n1≤9 0≤n2≤9 0≤n3≤9 [Description] ・Specifies the number of copies to be printed. (n1*100)+(n2*10)+n3: Number of copies (bytes) (1 to 999) ・The default number of copies is 1. ・This command is a dynamic command.
^NN Specify number of Numbering copies [ASCII] ^ N N n1 n2 n3 [Decimal] 94 78 78 nd1 nd2 nd3 [Hexadecimal] 5E 4E 4E nh1 nh2 nh3 [Parameters] 0≤n1≤9 0≤n2≤9 0≤n3≤9 [Description] ・Specifies the number of copies to be printed with Numbering. (n1*100)+(n2*10)+n3: Number of Numbering copies (bytes) (1 to 999) ・The default number of copies printed with Numbering is 1.
^ID Initialize template data [ASCII] ^ I D [Decimal] 94 73 68 [Hexadecimal] 5E 49 44 [Parameters] None [Description] ・Returns the data in the selected template to what it was when the template was transferred.
^QS Specify print options [ASCII] ^QSn [Decimal] 94 81 83 nd [Hexadecimal] 5E 51 53 nh [Parameters] n: 0, 1 [Description] ・Specifies 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. [Example] ・To set the print options to give priority to print quality: Since n=1, the command will be as follows.
^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≤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 when a value other than those that can be set (between 0 and 40) has been specified. ・This command is a dynamic command.
^FC FNC1 replacement setting [ASCII] ^ F C n [Decimal] 94 70 67 nd [Hexadecimal] 5E 46 43 nh [Parameters] 0≤n≤1 [Description] ・This command selects whether or not GS codes, which are included in bar code protocols such as GS1-128 (UCC/EAN-128), are replaced with FNC1 codes. n: FNC1 replacement setting (ON: 1; OFF: 0 (default)) ・This command is a dynamic command.
^II Initialize [ASCII] ^II [Decimal] 94 73 73 [Hexadecimal] 5E 49 49 [Parameters] None [Description] ・Reverts all dynamic settings to the machine settings.
^OP Perform machine operation (feed/cut) [ASCII] ^OPn [Decimal] 94 79 80 nd [Hexadecimal] 5E 4F 50 nh [Parameters] 1≤n≤3 [Description] ・Causes the machine to perform a feed or cut operation.
^SR Status request [ASCII] ^SR [Decimal] 94 83 82 [Hexadecimal] 5E 53 52 [Parameters] None [Description] ・The printer status is returned. The printer status consists of 32 bytes.
Error information 1 Flag Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Mask 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 Definition "No media” error “End of media” error “Tape cutter jam” error Not used Machine in use Machine turned off Not used Fan motor error Error information 2 Flag Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Mask 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 Definition “Replace the media.” error “Expansion buffer is full.
^VR Retrieve version Information [ASCII] ^VR [Decimal] 94 86 82 [Hexadecimal] 5E 56 52 [Parameters] None [Description] ・Retrieves the version information for the machine as a 16-character text string. ^CR Line return in object [ASCII] ^CR [Decimal] 94 67 82 [Hexadecimal] 5E 43 52 [Parameters] None [Description] ・Adds a return to the next line in the text object.
^OS Specify object selection (object number) [ASCII] ^ O S n1 n2 [Decimal] 94 79 83 nd1 nd2 [Hexadecimal] 5E 4F 53 nh1 nh2 [Parameters] 0≤n1≤5 0≤n2≤9 [Description] ・Selects an object by its object number. (n1*10)+n2: Object number (1 to 50) [Remarks] ・The object number can be set between 1 and 50. This is invalid when an attempt is made to specify a value other than these. ・Use this command to insert data from an intermediary object.
^DI Direct object insertion [ASCII] ^ D I n1 n2 data [Decimal] 94 68 73 nd1 nd2 datad [Hexadecimal] 5E 44 49 nh1 nh2 datah [Parameters] 00h≤nh1≤FFh 00h≤nh2≤FEh [Description] ・Inserts a text string for the specified number of characters into the object selected in the selected template. (If even a print command or delimiter is within the specified number of characters, they are treated as data.
ESC iXT2 Specify print start trigger selection [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 print start trigger type.
ESC iXP2 Specify print start command text string [ASCII] ESC i X P 2 n1 n2 data [Decimal] 27 105 88 80 50 nd1 nd2 datad [Hexadecimal] 1B 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).
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] ・Specifies the number of characters to be received to start printing. nh3+(nh4*256): Print start received character count (bytes) (1 to 999) ・The default print start received character count is 10. ・This command is a static command.
ESC iXD2 Specify delimiter [ASCII] ESCi X D 2 n1 n2 data [Decimal] 27 105 88 68 50 nd1 nd2 datad [Hexadecimal] 1B 69 58 44 32 nh1 nh2 datah [Parameters] 01h≤nh1≤14h nh2:00h (Fixed) 00h≤datah≤FFh [Description] ・The delimiter is used to indicate when to move to the next object in data that is being sent. ・Specifies the text string for the delimiter.
ESC iXa2 Specify Non-Printed character text strings [ASCII] ESC i X a 2 n1 n2 n3 data [Decimal] 27 105 88 97 50 nd1 nd2 nd3 datad [Hexadecimal] 1B 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 character 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.
ESC iXi2 Specify 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 [Description] ・Switches the mode. nh3=00h: ESC/P mode (default) nh3=01h: Raster mode nh3=03h: P-touch Template mode ・This command is a static command.
ESC iXn2 Specify template selection [ASCII] ESC i X n 2 n1 n2 n3 [Decimal] 27 105 88 110 50 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 6E 32 nh1 nh2 nh3 [Parameters] nh1:01h (Fixed) nh2:00h (Fixed) 01h≤nh3≤63h [Description] ・Specify the template selected from the machine as a number. n3: Template number (1 to 99) ・The default selection number is 1. ・This command is a static command. [Remarks] ・The template numbers that can be set are between 1 and 99.
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 for the prefix character is “^”. ・This command is a static command.
ESC iXc2 Specify machine settings (cut options) [ASCII] ESC i X c 2 n1 n2 n3 [Decimal] 27 105 88 99 50 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 63 32 nh1 nh2 nh3 [Parameters] nh1:01h (Fixed) nh2:00h (Fixed) nh3:00h 01h 08h 09h [Description] ・Specifies the various cut options. nh3=00h: No cutting nh3=01h: Automatically cuts nh3=08h: Cut at end turned on nh3=09h: Auto cutting turned on, and cut at end turned on ・This command is a static command.
ESC iXy2 Specify machine settings (cut options–specify cutting after a number of labels) [ASCII] ESC i X y 2 n1 n2 n3 [Decimal] 27 105 88 121 50 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 79 32 nh1 nh2 nh3 [Parameters] nh1:01h (Fixed) nh2:00h (Fixed) 01h≤nh3≤63h [Description] ・Specifies that the tape will be cut after the fixed number of labels. (If the auto cut setting is set to ON, the tape will be cut after the number of labels specified with this setting.
ESC iXm2 Select character code set [ASCII] ESC i X m 2 n1 n2 n3 [Decimal] 27 105 88 109 50 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 6D 32 nh1 nh2 nh3 [Parameters] nh1:01h (Fixed) nh2:00h (Fixed) nh3:00h 01h 02h [Description] ・Selects the character code set. (For details on the character code sets, refer to the character code tables.
ESC iXj2 Specify 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 for the country, and switches some character codes of the code table with the value for nh3.
ESC iXR2 Specify line return command text string [ASCII] ESC i X R 2 n1 n2 data [Decimal] 27 105 88 82 50 nd1 nd2 datad [Hexadecimal] 1B 69 58 52 32 nh1 nh2 datah [Parameters] 01h≤nh1≤14h nh2:00h (Fixed) 00h≤datah≤FFh [Description] ・Specifies the text string for the line return 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).
ESC iXC2 Specify number of copies [ASCII] ESC i X C 2 n1 n2 n3 n4 [Decimal] 27 105 88 67 50 nd1 nd2 nd3 nd4 [Hexadecimal] 1B 69 58 43 32 nh1 nh2 nh3 nh4 [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. ・This command is a static command.
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 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. ・This command is a static command.
ESC iXF2 FNC1 replacement setting [ASCII] ESC i X F 2 n1 n2 n3 [Decimal] 27 [Hexadecimal] 1B 69 58 46 32 nh1 nh2 nh3 [Parameters] nh1: 01h (fixed) 105 88 70 50 nd1 nd2 nd3 nh2: 00h (fixed) nh3: 00h 01h [Description] ・This command selects whether or not GS codes, which are included in bar code protocols such as GS1-128 (UCC/EAN-128), are replaced with FNC1 codes. nh3=00h: FNC1 replacement setting OFF nh3=01h: FNC1 replacement setting ON ・This command is a static command.
ESC iXq2 Specify 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] ・Specifies 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” (priority given to print speed). ・This command is a static command.
ESC iXT1 Retrieve select print start trigger items [ASCII] ESC i X T 1 n1 n2 [Decimal] 27 105 88 84 49 nd1 nd2 [Hexadecimal] 1B 69 58 54 31 nh1 nh2 [Parameters] nh1 = 00h (Fixed) nh2 = 00h (Fixed) [Description] ・The print start trigger is returned as 3-byte data.
ESC iXP1 Retrieve print start command setting text string [ASCII] ESC i X P 1 n1 n2 [Decimal] 27 105 88 80 49 nd1 nd2 [Hexadecimal] 1B 69 58 50 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 machine.
ESC iXr1 Retrieve print start received character count [ASCII] ESC i X r 1 n1 n2 [Decimal] 27 105 88 114 49 nd1 nd2 [Hexadecimal] 1B 69 58 72 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the number of characters specified to be received to start printing. ・4-byte data is returned from the machine.
ESC iXD1 Retrieve delimiter [ASCII] ESC i X D 1 n1 n2 [Decimal] 27 105 88 68 49 nd1 nd2 [Hexadecimal] 1B 69 58 44 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the text string specified for the delimiter. ・3- to 22-byte data is returned from the machine. (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.
ESC iXa1 Retrieve Non-Printed character text strings [ASCII] ESC i X a 1 n1 n2 n3 [Decimal] 27 105 88 97 49 nd1 nd2 nd3 [Hexadecimal] 1B 69 58 61 31 nh1 nh2 nh3 [Parameters] nh1:01h (Fixed) nh2:00h (Fixed) nh3:01h (Fixed) [Description] ・Retrieves the specified Non-Printed character text string. ・2- to 22-byte data is returned from the machine.
ESC iXi1 Retrieve command mode setting [ASCII] ESC i X i 1 n1 n2 [Decimal] 27 105 88 105 49 nd1 nd2 [Hexadecimal] 1B 69 58 69 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 machine. [1]:01h (Fixed) [2]:00h (Fixed) [3]: Setting 00h: ESC/P mode 01h: Raster mode 03h: P-touch Template mode ・The retrieved value is a value specified by a static command.
ESC iXn1 Retrieve template selection number [ASCII] ESC i X n 1 n1 n2 [Decimal] 27 105 88 110 49 nd1 nd2 [Hexadecimal] 1B 69 58 6E 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the template number selected from the machine. ・3-byte data is returned from the machine. [1]:01h (Fixed) [2]:00h (Fixed) [3]: Setting ・The retrieved value is a value specified by a static command.
ESC iXc1 Retrieves machine settings (cut options) [ASCII] ESC i X c 1 n1 n2 [Decimal] 27 105 88 99 49 nd1 nd2 [Hexadecimal] 1B 69 58 63 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the various cut settings. ・3-byte data is returned from the machine. [1]:01h (Fixed) [2]:00h (Fixed) [3]: Setting 00h: No cutting 01h: Automatically cuts ・The retrieved value is a value specified by a static command.
ESC iXy1 Retrieve machine settings (cut options–specify cutting after a number of labels) [ASCII] ESC i X y 1 n1 n2 [Decimal] 27 105 88 121 49 nd1 nd2 [Hexadecimal] 1B 69 58 79 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the setting for the cut after a fixed number of labels. ・3-byte data is returned from the machine. [1]:01h (Fixed) [2]:00h (Fixed) [3]: Setting ・The retrieved value is a value specified by a static command.
ESC iXm1 Retrieve character code set [ASCII] ESC i X m 1 n1 n2 [Decimal] 27 105 88 109 49 nd1 nd2 [Hexadecimal] 1B 69 58 6D 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the specified character code set. (For details on the character code sets, refer to the character code tables.) ・3-byte data is returned from the machine.
ESC iXj1 Retrieve international character set setting [ASCII] ESC i X j 1 n1 n2 [Decimal] 27 105 88 106 49 nd1 nd2 [Hexadecimal] 1B 69 58 6A 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the international character set setting. ・3-byte data is returned from the machine.
ESC iXf1 Retrieve the prefix character [ASCII] ESC i X f 1 n1 n2 [Decimal] 27 105 88 102 49 nd1 nd2 [Hexadecimal] 1B 69 58 66 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the prefix character code. ・3-byte data is returned from the machine. [1]:01h (Fixed) [2]:00h (Fixed) [3]: Specified character ・The retrieved value is a value specified by a static command.
ESC iXR1 Retrieve line return command setting text string [ASCII] ESC i X R 1 n1 n2 [Decimal] 27 105 88 82 49 nd1 nd2 [Hexadecimal] 1B 69 58 52 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the text string specified for the line return command. ・2- to 22-byte data is returned from the machine.
ESC iXC1 Retrieve number of copies [ASCII] ESC i X C 1 n1 n2 [Decimal] 27 105 88 67 49 nd1 nd2 [Hexadecimal] 1B 69 58 43 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the number of copies specified to be printed. ・4-byte data is returned from the machine. [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 by a static command.
ESC iXN1 Retrieve number of Numbering copies setting [ASCII] ESC i X N 1 n1 n2 [Decimal] 27 105 88 78 49 nd1 nd2 [Hexadecimal] 1B 69 58 4E 31 nh1 nh2 [Parameters] nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the number of copies specified to be printed with Numbering. ・4-byte data is returned from the machine. [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 a static command.
ESC iXF1 Retrieve FNC1 replacement setting [ASCII] ESC i X F 1 n1 n2 [Decimal] 27 [Hexadecimal] 1B 69 58 46 31 nh1 nh2 [Parameters] 105 88 70 49 nd1 nd2 nh1: 00h (fixed) nh2: 00h (fixed) [Description] ・Retrieves the FNC1 replacement setting. ・3-byte data is returned from the machine. [1]: 01h (fixed) [2]: 00h (fixed) [3]: Setting 00h: FNC1 replacement setting OFF 01h: FNC1 replacement setting ON ・The retrieved value is a value specified by a static command.
ESC iXq1 Retrieve print options [ASCII] ESC i X q 1 n1 n2 [Decimal] 27 105 88 113 49 nd1 nd2 [Hexadecimal] 1B 69 58 71 31 nh1 nh2 [Parameters] nh1:00h (Fixed) nh2:00h (Fixed) [Description] ・Retrieves the print option settings. ・3-byte data is returned from the machine. [1]: 01h (Fixed) [2]: 00h (Fixed) [3]: nh3 Settings ・The retrieved value is a value specified by a static command.
Character code table Windows1252 (Western Europe) 0 1 2 3 4 5 6 7 8 B C D E F 0 SP 0 @ P ` p € ° À Ð à ð 1 ! 1 A Q a q ~ ‘ ¡ ± Á Ñ á ñ 2 ” 2 B R b r , ’ ¢ ² Â Ò â ò 3 # 3 C S c s ƒ “ £ ³ Ã Ó ã ó 4 $ 4 D T d t „ ” ¤ ´ Ä Ô ä ô 5 % 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
Character code table Windows1250 (Eastern Europe) 0 1 2 3 4 5 6 7 8 9 0 SP 0 @ P ` p € tˇ 1 ! 1 A Q a q À ‘ 2 " 2 B R b r , 3 # 3 C S c s 4 $ 4 D T d 5 % 5 E U 6 & 6 F 7 ’ 7 8 ( 9 A B C D E F ° Ŕ Đ ŕ đ ˇ ± Á Ń á ń ’ ˘ ˛ Â Ň â ň ˇ L “ Ł ł Ă Ó ă ó t „ ” ¤ ´ Ä Ô ä ô e u … • Ą µ Ĺ Ő í ő V f v † – | ¶ Ć Ö ć ö G W g w ‡ — § · Ç × ç ÷ 8 H X h x ľ ¨ ¸ Č Ř č ř ) 9 I
Character code table Brother standard 0 1 2 3 4 5 6 7 8 9 A B C D E 0 SP 0 @ P ` p Ç É á ░ └ α 1 ! 1 A Q a q ü æ í ▒ ┴ β 2 ” 2 B R b r é Æ ó ▓ ┬ 3 # 3 C S c s â ô ú │ ├ 4 $ 4 D T d t ä ö ñ ┤ ─ 5 % 5 E U e u à ò Ñ 6 & 6 F V f v å û a ¯ 7 ’ 7 G W g w ç ù o ¯ 8 ( 8 H X h x ê ÿ ¿ © ╚ 9 ) 9 I Y i y ë Ö ® ╣ ╔ ┘ A * : J Z j z è Ü € ║ ╩ ┌ Ω B + ; K [ k { ï ¢ ½ ╗
International character set table Compatible characters in each language when the international character set is switched n 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 United States # $ @ [ \ ] ^ ` { ¦ } ˜ ^ ` # $ ° ç § é ù è ¨ à 1 France ^ ` # $ Ä Ö Ü ä ö ü ß § 2 Germany } $ @ [ \ ] ^ ` { £ ¦ ˜ 3 Britain # $ @ Æ Ø Å ^ ` æ ø å ˜ 4 Denmark I # é ä ö å Ü ¤ É Ä Ö Å Ü 5 Sweden \ ^ # $ @ ° é ù à ò è Ì 6 Italy } ^ ` Pt $ @ ¡ Ñ ¿ ¨ ñ ˜ 7 Spain I { } # $ @ [ ] ^ ` ¥ ¦ ˜ 8 Japan # é æ ø å Ü ¤ É Æ Ø Å Ü 9 Norway # $ É Æ Ø