background image

 

Software Developer's Manual 

P-touch Template Command Reference 
PT-P900W/P950NW 

Version 1.01

 

Summary of Contents for PT-P900W

Page 1: ...Software Developer s Manual P touch Template Command Reference PT P900W P950NW Version 1 01 ...

Page 2: ...PDF417 RSS POSTNET AztecCode Copyright c 2007 AINIX Corporation All rights reserved QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries QR Code Generating Program Copyright 2008 DENSO WAVE INCORPORATED Each owner whose software title is mentioned in this document has a Software License Agreement specific to its proprietary programs Any trade names and product ...

Page 3: ...n to any third party or iv remove or alter any copyright notices or proprietary rights legends included within the Documentation No Warranty a Any updates upgrades or alteration of the Documentation or Printer Model will be performed at the sole discretion of Brother Brother may not respond to any request or inquiry about the Documentation b THIS DOCUMENTATION IS PROVIDED TO YOU AS IS WITHOUT WARR...

Page 4: ...6 4 6 2 About objects in a template 26 5 Precautions 27 5 1 Notes for printers with Bluetooth interface 27 5 2 Relationship between the P touch Editor settings and the printer image 28 5 3 Making a template in order to save time before starting to print 29 6 Control Code Lists 30 6 1 Setting and retrieving commands for P touch Template mode 30 6 2 Setting and retrieving commands for raster mode 32...

Page 5: ...ional character set 81 ESC iXR2 Specify line feed command text string 82 ESC iXC2 Specify number of copies 83 ESC iXN2 Specify number of Numbering copies 84 ESC iXF2 FNC1 replacement setting 85 ESC iXq2 Select print options 86 ESC iXT1 Retrieve select print start trigger items 87 ESC iXP1 Retrieve print start command setting text string 88 ESC iXr1 Retrieve print start received character count 89 ...

Page 6: ...ii International character set table 111 Appendix C Troubleshooting 112 If printing does not begin main most frequent cause 112 If a template linked to a database is not printed 112 Appendix D Introducing the Brother Developer Center 113 ...

Page 7: ...t appear in the screens in this 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 PT P9XX and any problems resulting directly or indirectly from them Use this material only if you accept these terms This material shall not be reproduced...

Page 8: ...rom the host device Compatible host devices are listed below Scale measurement devices Medical devices Bar code readers Control devices in any system environment Note The host device should be equipped with a connector for a serial cable RS 232C or USB A cable in order to transfer the data P touch Template is not compatible with some hosts 2 Design the template in P touch Editor and then transfer ...

Page 9: ...d to the printer Please refer to 4 P touch Template Limitations 3 Transfer the templates Using P touch Transfer Manager transfer the templates to the printer Please refer to the PT 900 Series Software User s Guide 4 Program using P touch Template commands If any special commands are required to control the printer change the terminal program in accordance with the P touch Template commands Please ...

Page 10: ...t setting 7 Character code set setting 8 International character setting 9 Prefix character setting 10 Non printed character setting 14 Auto cut setting 15 Half cut setting 17 Cut number setting 20 Communication settings Applies settings for 1 through 20 to the machine Returns 1 through 19 to their default settings 11 Line feed character setting 13 Number of copies setting 18 Chain printing settin...

Page 11: ...er is the symbol used to indicate when to move to the next object in data that is being sent Between 1 and 20 characters can be specified 4 Print start trigger setting Select one of the following three options for the print start trigger Command Character Printing starts when the command character specified in 5 is received Data Insertion into All the Objects Printing starts when the delimiter for...

Page 12: ...racter setting Select one of the following as the character set of the country USA France Germany UK Denmark Sweden Italy Spain Japan Norway Denmark II Spain II Latin America Korea Legal The following 12 codes are switched depending on the country selected from those listed above 23h 24h 40h 5Bh 5Ch 5Dh 5Eh 60h 7Bh 7Ch 7Dh 7Eh For the characters that are switched refer to the International charact...

Page 13: ...s 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 14 Auto cut setting If auto cutting is selected the cut operation will be performed after the number of labels specified in 17 15 Half cut setting Specif...

Page 14: ...the last label is printed 19 Mirror printing setting Specifies mirror printing If the check box is selected mirror printing is enabled If the check box is cleared mirror printing is disabled 20 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...

Page 15: ...t_name AppData Roaming Brother Printer Settings ptsXX30 ini Note A name of file ptsXX30 ini varies depending on printers like below PT P900W pts6F30 ini PT P950NW pts7030ini Note A file path above might be different depending on OS Entering text in text boxes 3 5 9 and 10 Characters that can be entered as text can be typed in and control codes can be entered as ASCII codes 00 to FF with in front o...

Page 16: ...e is the label that will be made The media size is 0 70 inches Steps 1 Make a template with P touch Editor 2 Transfer the template to Transfer Manager 3 Transfer the template from Transfer Manager to the printer 4 Use P touch Template commands for printing Step 1 Make a template with P touch Editor Start the P touch Editor and make a label ...

Page 17: ...sing Commands Step 2 Transfer the template to Transfer Manager The template sent in step 2 is stored in Transfer Manager as shown below Step 3 Transfer the template from Transfer Manager to the printer Stored template Assigned number Click Transfer button ...

Page 18: ...al communication when Transfer Manager is used When the template is transferred to the printer the following message appears Step 4 Use P touch Template 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 After setting 1 and 2 with the P touch Template Settings tool t...

Page 19: ...emplate Command Reference 13 3 Examples for Using Commands 3 Initialize P touch Template II Entered command 4 Print Start FF Entered command When the printer receives the command above the label below is printed ...

Page 20: ...inter 2 Store the logo external characters as a bitmap file and drag drop it to Transfer Manager 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 bitmap file Step 1 Make a template and transfer it to the printer Stored tem...

Page 21: ... Commands Step 2 Store the logo external characters as a bitmap file and drag drop it to Transfer Manager Step 3 Transfer the bitmap file from Transfer Manager to the printer Click Transfer button Assigned number Stored the logo external character as a bitmap ...

Page 22: ...Settings tool in Step 4 the remaining three commands must be sent to the printer 1 Initialize P touch Template II Entered command 2 Select the bitmap file to be printed In order to select the bitmap file enter a specific character and the value one less than the assigned number for the bitmap file that is shown in Step 3 For example if the assigned number for the bitmap file is 2 enter 01 as shown...

Page 23: ...P touch Template Command Reference 17 3 Examples for Using Commands 3 Start printing FF Entered command When the printer receives the command above the label below is printed ...

Page 24: ... text input mode has been exited they are converted to image objects and the selected font is not converted 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 either...

Page 25: ... Reference 19 4 P touch Template Limitations 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 ...

Page 26: ...g 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 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 printer Specifying the line spacing setting...

Page 27: ...nger applied we recommend that Fixed Frame Size be selected when die cut labels or a fixed length is specified in P touch Editor or that Automatic Length be selected when an automatic media length is specified Shrink to Fit The text object size is fixed and the text size is changed depending on the text length Clip Text The text object size is fixed and the text size is fixed If the text is too lo...

Page 28: ... that barcode object is not printed The barcode size may differ from that in the print result with P touch Editor Since CODE128 and GS1 128 UCC EAN 128 can easily be printed slightly larger we recommend leaving larger margins when creating templates in P touch Editor If data fed into a barcode in a template created with P touch Editor causes an extremely long barcode the barcode may not be fully p...

Page 29: ...aracters 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 POSTNET 5 9 or 11 characters ISO646 characters can be printed numbers letters spa...

Page 30: ... touch Editor are invalid Macro settings specified in P touch Editor are invalid MaxiCode The Structured Append settings specified in P touch Editor are invalid The barcode is 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 the maximum number of characters is not reached However with the prin...

Page 31: ...The file name can contain up to 15 bytes of characters 15 one byte characters or 7 two byte characters A maximum of 99 databases can be transferred However the transfer cannot be completed if the amount of data being transferred exceeds7MByte If there is a line feed in a cell containing text to be replaced only the string of characters before the line feed will be replaced The text to be replaced ...

Page 32: ...ode 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 read then discarded However when specified as special data such as delimiters print start text strings or line feed commands they are applied The order of the objects is deter...

Page 33: ...t is opened When sending print data wait at least 500 msec after the port has been opened before starting to send the data In addition if the port is continuously opened and closed for example when printing multiple pages wait at least 500 msec after the port is closed before opening the port the next time Once the print data for one page has been sent do not close the Bluetooth port until printin...

Page 34: ...ized to fit the frame size Fixed If the text is too long even with the minimum text size the overflow text is printed outside the frame Auto The text is automatically maximized to fit the frame size 2 See below Clip Text Selected Shrink to Fit Selected Fixed Frame Size Wrap Long Text Fixed The overflow text is automatically sent to the new line Fixed Even the overflow text is printed outside the f...

Page 35: ...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 Specify the text options Text Layout settings so that the text size is fixed ...

Page 36: ...43 Dynamic Specify print start received character count SS 5E 53 53 Dynamic Specify delimiter TS 5E 54 53 Dynamic Select template LS 5E 4C 53 Specify line spacing with line feed CC 5E 43 43 Dynamic Change prefix character RC 5E 52 43 Dynamic Specify line feed command text string CN 5E 43 4E Specify number of copies NN 5E 4E 4E Specify number of Numbering copies ID 5E 49 44 Initialize template data...

Page 37: ...object object number ON 5E 4F 4E Select object object name DI 5E 44 49 Directly insert object ESC ia 1B 69 61 Dynamic Specify command mode Note The commands listed above must be used in P touch Template mode These commands except ESC ia cannot be used in raster mode or ESC P mode With dynamic commands settings specified with a command are temporarily saved and applied until the printer is turned o...

Page 38: ...32 Static Specify printer settings full cut option specify cutting after specified number of labels ESC iXH2 1B 69 58 48 32 Static Half cut setting ESC iXM2 1B 69 58 4D 32 Static Mirror printing setting ESC iXs2 1B 69 58 73 32 Static Special tape setting ESC iXm2 1B 69 58 6D 32 Static Select character code set ESC iXj2 1B 69 58 6A 32 Static Specify international character set ESC iXR2 1B 69 58 52 ...

Page 39: ...s1 1B 69 58 73 31 Retrieve special tape setting ESC iXm1 1B 69 58 6D 31 Retrieve character code set setting ESC iXj1 1B 69 58 6A 31 Retrieve international character set setting ESC iXf1 1B 69 58 66 31 Retrieve prefix setting character 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 num...

Page 40: ...rint 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 Remarks Invalid if n is a value other than 1 through 3 Example When the print start trigger is when all objects are filled P ...

Page 41: ...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 T S 0 0 3 F F 5Eh 54h 53h 30h 30h 33h 5Eh 46h 46h ...

Page 42: ...ing 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 This command is a dynamic command Remarks Invalid if more than 20 characters have been specified Example To change the text string for the print start command to START Since the text string to be specified data START cont...

Page 43: ...cters 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 One full width character is treated as 2 bytes and one half width character is treated as 1 byte Example To change the print start received character count to 100 characters Since n1 1 n2 0 and n...

Page 44: ... 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 The default text string for the delimiter is 09h Tab code A text string that will not appear in the print data should be specified This command is a dynamic command Remarks Invalid if more than 20 characters have been specified Example To change the delimiter t...

Page 45: ...r 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 This command 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 machine All data already fed in selected objects and the search text are initialized Example To select temp...

Page 46: ...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 Remarks The number of dots for the line spacing can be between 0 and 255 This command becomes invalid if any other value has been specified 1 dot 1 360 inch 1 dot...

Page 47: ...aracter 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 C C 5Fh 5Eh 43h 43h 5Fh 5Fh stands for _ in ASCII code However since the prefix character remains set to _ if the machine is not later turned off then on the initialize command for example will be _II inste...

Page 48: ... 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 This command is a dynamic command Remarks Invalid if more than 20 characters are specified Example To change the text string for the line feed command to 0Dh 0Ah Since the text string to be specified data conta...

Page 49: ... 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 Remarks When printing is finished the number of copies specified with this command returns to the number of copies static value specified from the machine 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 4...

Page 50: ... 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 Remarks When printing is finished the number of copies specified with this command returns to the number of copies static value specified from the machine Example To change the number of Numbering copies to 100 Since n1 1 n2 0 and n3 0 the command ...

Page 51: ...erence 45 7 Control Command Details 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 ...

Page 52: ...s n 0 1 Description Selects the print options n 0 Priority given to print speed n 1 Priority given to print quality The default value for the print options is 0 priority given to print speed This command is a dynamic command Example To set the print options to give priority to print quality Since n 1 the command will be as follows Q S 1 5Eh 51h 53h 31h ...

Page 53: ...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 If the print range is exceeded the bar code is not printed Example To change the version to 10 Since n1 1 and n2 0 the command will be as follows Q V 1 0 5Eh 51h 5...

Page 54: ...ts 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 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 Therefore the command will be as follows F C 0 5Eh 46h 43h 30h ...

Page 55: ... number of copies n1 10 n2 Full cut and number of copies settings 00 OFF 01 to 99 Number of copies Default value 01 This command is a dynamic command Remarks The full cut label number setting can be between 1 and 99 This command becomes invalid if any other value has been specified Example To cut after every two labels Since the auto cut label number will be set to 2 n1 0 and n2 2 Therefore the co...

Page 56: ...5E 43 48 nh Parameters 0 n 1 Description Specifies whether or not half cut is used n Half cut setting ON 1 default OFF 0 This command is a dynamic command Remarks Invalid if n is a value other than 1 or 0 Example To make half cuts Since half cuts will be enabled n 1 Therefore the command will be as follows C H 1 5Eh 43h 48h 31h ...

Page 57: ...nh Parameters 0 n 1 Description Specifies whether or not chain printing is applied n Chain printing setting OFF 0 default ON 1 This command is a dynamic command Remarks Invalid if n is a value other than 1 or 0 Example To use chain printing Since chain printing will be enabled n 1 Therefore the command will be as follows C P 1 5Eh 43h 50h 31h ...

Page 58: ...h Parameters 0 n 1 Description Specifies whether or not mirror printing is applied n Mirror printing setting OFF 0 default ON 1 This command is a dynamic command Remarks Invalid if n is a value other than 1 or 0 Example To use mirror printing Since mirror printing will be enabled n 1 Therefore the command will be as follows M P 1 5Eh 4Dh 50h 31h ...

Page 59: ...rt command text string 3 Specify print start received character count 4 Delimiter setting 5 Select template 6 Full cut setting 7 Half cut setting 8 Chain printing setting 9 Mirror printing setting 10 Special tape setting 11 Change prefix character 12 Specify line feed command text string 13 Specify number of copies 14 Specify QR Code version 15 FNC1 replacement setting Remarks All data already fed...

Page 60: ... O P n Decimal 94 79 80 nd Hexadecimal 5E 4F 50 nh Parameters n 4 Description Causes the machine to perform a feed and cut operation n 4 Performs the feed and cut operation Remarks Invalid if n is a value other than 4 Example To specify that the machine performs a feed and cut operation O P 4 5Eh 4Fh 50h 34h ...

Page 61: ...rror Refer to table 10 below 9 8 1 Error information 1 Refer to table 1 below 10 9 1 Error information 2 Refer to table 2 below 11 10 1 Media width Refer to table 3 below 12 11 1 Media type Refer to table 4 below 13 12 1 Number of colors Fixed at 00h 14 13 1 Internal font information Fixed at 00h 15 14 1 Internal Japanese font information Fixed at 00h 16 15 1 Mode Fixed at 00h 17 16 1 Density Fixe...

Page 62: ...Mask Definition Bit 0 01h No media error Bit 1 02h End of media error Bit 2 04h Cutter jam error Bit 3 08h Low battery Bit 4 10h Printer in use Bit 5 20h Power off Not used Bit 6 40h High voltage adapter used Bit 7 80h Not defined 2 Error information 2 Flag Mask Definition Bit 0 01h Replace media error Bit 1 02h Buffer full error Bit 2 04h Not used Bit 3 08h Not used Bit 4 10h Cover open error Bit...

Page 63: ...18 mm wide tape 12h 00h 24 mm wide tape 18h 00h 36 mm wide tape 24h 00h HS 5 8 mm wide tape 06h 00h HS 8 8 mm wide tape 09h 00h HS 11 7 mm wide tape 0Ch 00h HS 17 7 mm wide tape 12h 00h HS 23 6 mm wide tape 18h 00h FLe 21mm x 45mm wide tape 15h 2Dh 4 Media type Media type Value No tape 00h Laminated tape 01h Non laminated tape 03h Fabric tape 04h Heat shrink Tube 11h FLe tape 13h Flexible ID tape ...

Page 64: ...ion 05 h Phase change 06 h Not used 07h to 20h Usage prohibited 21h to FFh 6 Phase type number Phase type Value Reception possible Edit 00h Printing 01h Edit Phase number Dec higher order bytes lower order bytes Reception possible Edit 0 00h 00h Feed 1 00h 01h Printing Phase number Dec higher order bytes lower order bytes Printing 0 00h 00h Not use 10 00h 0Ah Cover opened while receiving data 20 0...

Page 65: ...or Media color ID Remarks White 01h Other 02h Clear 03h Red 04h Blue 05h Yellow 06h Green 07h Black 08h Clear 09h Matte White 20h Matte Clear 21h Matte Silver 22h Satin Gold 23h Satin Silver 24h Blue 30h TZe 535 12mm TZe 545 18mm TZe 555 24mm Red 31h TZe 435 12mm Fluorescent Orange 40h Fluorescent Yellow 41h Berry Pink 50h TZe MQP35 Light Gray 51h TZe MQL35 Lime Green 52h TZe MQG35 Yellow 60h Pink...

Page 66: ...White 01h Red 04h Blue 05h Black 08h Gold 0Ah Blue 62h Clearning F0h Stencil F1h Other 02h Incompatible FFh 10 Extended error information Error information Value High resolution High speed printing error 1Dh Power switching error 1Eh Battery error 1Fh Incompatible media error 21h 11 Battery level information Battery level Value Full battery 00h Half battery 01h Low battery 02h Changing required 03...

Page 67: ...Reference 61 7 Control Command Details VR Retrieve version information ASCII V R Decimal 94 86 82 Hexadecimal 5E 56 52 Parameters None Description Retrieves the version information for the machine as a 16 character text string ...

Page 68: ...mal 94 67 82 Hexadecimal 5E 43 52 Parameters None Description Adds a return to the next line in the text object Valid even if the text string for the line feed command has been changed Example 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 Print result 1 2 3 ...

Page 69: ...nh2 Parameters 0 n1 5 0 n2 9 Description Selects an object by its object number n1 10 n2 Object number 1 to 50 Remarks The object number can be set between 1 and 50 This command becomes invalid if any other value has been specified Use this command to insert data starting with an intermediary object Example To select the 33rd object O S 3 3 5Eh 4Fh 53h 33h 33h ...

Page 70: ...e 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 This indicates the end of the text Use this command to insert data starting with an intermediary object Example To select an object with the name...

Page 71: ...s into the object selected in the selected template If even a print command or delimiter is within the specified number of characters they are treated as data nh2 256 nh1 Specified number of characters bytes data Text string Example If A is specified as the print start text string and the print start trigger is specified as the print start text string simply print A by printing with the following ...

Page 72: ...97 nd Hexadecimal 1B 69 61 nh Parameters nh 00h 01h 03h 30h 31h 33h Description Switches the mode nh 00h or 30h ESC P mode nh 01h or 31h Raster mode nh 03h or 33h P touch Template mode default This command is a dynamic command Remarks If the specified value is one other than those that can be set raster mode will be entered ...

Page 73: ...the print start trigger type nh3 00h When the specified text string is received default nh3 01h When all objects are filled Prints with the delimiter at the end of the data nh3 02h When the specified number of characters is received not including delimiters This command is a static command Remarks Invalid if nh3 is a value other than 00h through 02h Example When the print start trigger is when all...

Page 74: ...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 This command is a static command Remarks Invalid if more than 20 characters are specified Example To change the text string for the print start command to START Since the text string to be specified data START...

Page 75: ...ixed 00h nh3 FFh 00h nh4 03h Description Specifies the number of characters to be received in order 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 Example To change the print start received character count to 100 characters Since nh3 64h and nh4 00h the command will be as foll...

Page 76: ...ecifies the text string for the delimiter nh1 nh2 256 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 The default text string for the delimiter is 09h TAB code This command is a static command Remarks Invalid if more than 20 characters are specified Example To change the delimiter to 2Ch Since the text string conta...

Page 77: ...pecifies 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 Remarks Invalid if more than 20 characters are specified Example To specify the non printed text string as ABCD Since the text string contains four characters nh1 05h and nh2 00h and then the c...

Page 78: ...5 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 nh3 01h Raster mode nh3 03h P touch Template mode default This command is a static command Remarks Invalid if the specified value is any other than those that can be set ...

Page 79: ...mplate selected from the machine 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 This command becomes invalid if any other value has been specified or if the number that has been specified is of a template not transferred to the machine Example To select template number 99 Since nh3 63h ...

Page 80: ...xadecimal 1B 69 58 66 32 nh1 hn2 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 Example To change the prefix character to _ ESC i X f 2 01h 00h 5Fh _ 1Bh 69h 58h 66h 32h 01h 00h 5Fh 5Fh stands for _ in ASCII code ...

Page 81: ...ixed nh3 00h 01h 08h 09h Description Specifies the various cut options nh3 00h Full cut setting OFF chain printing setting ON nh3 01h Full cut setting ON chain printing setting ON nh3 08h Full cut setting OFF chain printing setting OFF nh3 09h Full cut setting ON chain printing setting OFF This command is a static command Example To select full cut setting ON and chain printing setting ON ESC i X ...

Page 82: ...ape will be cut after the specified number of labels If the full cut setting is ON the tape will be cut after the number of labels specified with this setting nh3 Makes a full cut after a specified number of labels 01h to 63h This command is a static command Remarks The full cut label number setting can be between 1 and 99 This command becomes invalid if any other value has been specified Example ...

Page 83: ...88 72 50 nd1 nd2 nd3 Hexadecimal 1B 69 58 48 32 nh1 nh2 nh3 Parameters nh1 01h Fixed nh2 00h Fixed nh3 00h 01h Description Specifies whether or not half cut is used nh3 00h Half cut setting OFF nh3 01h Half cut setting ON This command is a static command Example To make half cuts ESC i XH2 01h 00h 01h 1Bh 69h 58h 48h 32h 01h 00h 01h ...

Page 84: ... nd2 nd3 Hexadecimal 1B 69 58 4D 32 nh1 nh2 nh3 Parameters nh1 01h Fixed nh2 00h Fixed nh3 00h 01h Description Specifies whether or not mirror printing is applied nh3 00h Mirror printing setting OFF nh3 01h Mirror printing setting ON This command is a static command Example To apply mirror printing ESC i XM2 01h 00h 01h 1Bh 69h 58h 4Dh 32h 01h 00h 01h ...

Page 85: ...ies whether or not the special tape setting is enabled When the special tape setting is ON the cut settings and chain printing setting are not available same as being OFF When the special tape setting is OFF the cut settings and chain printing setting are applied as specified nh3 00h Special tape setting OFF nh3 01h Special tape setting ON This command is a static command Example To use the specia...

Page 86: ...escription Selects the 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 Windows 1250 Eastern Europe nh3 02h Windows 1252 Western Europe Invalid if nh3 is set to a value other than 00h through 02h This command is a static command Example To set the character code set to the Brother stand...

Page 87: ...e of nh3 nh3 00h USA nh3 01h France nh3 02h Germany nh3 03h UK nh3 04h Denmark nh3 05h Sweden nh3 06h Italy nh3 07h Spain nh3 08h Japan nh3 09h Norway nh3 0Ah Denmark II nh3 0Bh Spain II nh3 0Ch Latin America nh3 0Dh Korea nh3 40h Legal The following 12 codes are changed 23h 24h 40h 5Bh 5Ch 5Dh 5Eh 60h 7Bh 7Ch 7Dh 7Eh For the characters that are switched refer to International character set table ...

Page 88: ...ength 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 This command is a static command Remarks Invalid if more than 20 characters are specified Example To change the text string for the line feed command to 0Dh 0Ah Since the text string to be specified dat...

Page 89: ...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 Example To change the number of copies to 100 Since nh3 64h and nh4 00h the command will be as follows ESC i X C 2 02h 00h 64h 00h 1Bh 69h 58h 43h 32h 02h 00h 64...

Page 90: ...2h 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 Example To change the number of Numbering copies to 100 Since nh3 64h and nh4 00h the command will be as follows ESC i X N 2 02h 00h 64h ...

Page 91: ...arameters nh1 01h Fixed nh2 00h Fixed nh3 00h 01h Description This command selects whether or not GS codes which are included in bar code protocols such as GS1 128 UCC EAN 128 are replaced with FNC1 codes nh3 00h FNC1 replacement setting OFF nh3 01h FNC1 replacement setting ON This command is a static command Example To disable FNC1 replacement ESC i X F 2 01h 00h 00h 1Bh 69h 58h 46h 32h 01h 00h 0...

Page 92: ...d nh2 00h Fixed nh3 00h 01h Description Selects the print options nh3 00h Priority given to print speed nh3 01h Priority given to print quality The default value for the print options is 00h priority given to print speed This command is a static command Example To set the print options to priority given to print quality Since nh3 01h the command will be as follows ESC i X q 2 01h 00h 01h 1Bh 69h 5...

Page 93: ...igger 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 Example The print start trigger specified for the machine is retrieved When the setting is When the specified text string is received Cod...

Page 94: ... the text string specified for the print start command 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 Example When the text string for the print start command is specified as START Code ESC i X P 1 00h 00h 1Bh 69h 58h 50...

Page 95: ...n Retrieves the number of characters specified to be received to start printing 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 Example For a print start received character count of 500 characters Code ESC i X r 1 00h 00h 1Bh 69h 58h 72h 31h 00h 00h Re...

Page 96: ... 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 Example When the delimiter is set as 2Ch Code ESC i X D 1 00h 00h 1Bh 69h 58h 44h 31h 00h 00h Returned val...

Page 97: ...Description Retrieves the specified non printed text string 2 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 Example When ABCD is specified as the non printed text string Code ESC i X a 1 01h 00h 01h 1Bh 69h 58h 61h 31h 01...

Page 98: ...ers 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 Example When the setting is for raster mode Code ESC i X i 1 00h 00h 1Bh 69h 58h 69h 31h 00h 00h Returned value 01h 00h ...

Page 99: ... 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 Example When template number 99 is selected Code ESC i X n 1 00h 00h 1Bh 69h 58h 6Eh 31h 00h 00h Returned value 01h 00h 63h ...

Page 100: ...yte data is returned from the machine 1 01h Fixed 2 00h Fixed 3 Setting 00h Full cut setting OFF chain printing setting ON 01h Full cut setting ON chain printing setting ON 08h Full cut setting OFF chain printing setting OFF 09h Full cut setting ON chain printing setting OFF The retrieved value is a value specified by a static command Example When the full cut setting is ON and the chain printing ...

Page 101: ...58 79 31 nh1 nh2 Parameters nh1 00h Fixed nh2 00h Fixed Description Retrieves the setting for full cutting after a specified 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 Example When a full cut is specified for every five labels Code ESC i X y 1 00h 00h 1Bh 69h 58h 79h 31h 00h 00h Returned v...

Page 102: ...h2 Parameters nh1 00h Fixed nh2 00h Fixed Description Retrieves the half cut setting 3 byte data is returned from the machine 1 01h Fixed 2 00h Fixed 3 Setting 00h Half cut setting OFF 01h Half cut setting ON The retrieved value is a value specified by a static command Example When the half cut setting is ON Code ESC i X H 1 00h 00h 1Bh 69h 58h 48h 31h 00h 00h Returned value 01h 00h 01h ...

Page 103: ...rs nh1 00h Fixed nh2 00h Fixed Description Retrieves the mirror printing setting 3 byte data is returned from the machine 1 01h Fixed 2 00h Fixed 3 Setting 00h Mirror printing setting OFF 01h Mirror printing setting ON The retrieved value is a value specified by a static command Example When the mirror printing setting is ON Code ESC i X M 1 00h 00h 1Bh 69h 58h 4Dh 31h 00h 00h Returned value 01h 0...

Page 104: ...ameters nh1 00h Fixed nh2 00h Fixed Description Retrieves the special tape setting 3 byte data is returned from the machine 1 01h Fixed 2 00h Fixed 3 Setting 00h Special tape setting OFF 01h Special tape setting ON The retrieved value is a value specified by a static command Example When the special tape setting is ON Code ESC i X s 1 00h 00h 1Bh 69h 58h 73h 31h 00h 00h Returned value 01h 00h 01h ...

Page 105: ...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 1 01h Fixed 2 00h Fixed 3 Setting 00h Brother standard 01h Windows1250 Eastern Europe 02h Windows1252 Western Europe The retrieved value is a value specified by a static command Example When the character code set is the Brother standard Code ESC i ...

Page 106: ...ional character set setting 3 byte data is returned from the machine 1 01h Fixed 2 00h Fixed 3 Setting 00h USA 01h France 02h Germany 03h UK 04h Denmark 05h Sweden 06h Italy 07h Spain 08h Japan 09h Norway 0Ah Denmark II 0Bh Spain II 0Ch Latin America 0Dh Korea 40h Legal The retrieved value is a value specified by a static command Example When the international character setting is set to that for ...

Page 107: ...rameters 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 Example When the prefix character is set to _ Code ESC i X f 1 00h 00h 1Bh 69h 58h 66h 31h 00h 00h Returned value 01h 00h _ 01h 00h 5Fh 5Fh stands for _ in ASCII code ...

Page 108: ...iption Retrieves the text string specified for the line feed command 2 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 Example When the text string for the line feed command is specified as 0Dh 0Ah Code ESC i X R 1 00h 00h ...

Page 109: ...d 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 Number of copies The retrieved value is a value specified by a static command Example When the number of copies is set to 500 Code ESC i X C 1 00h 00h 1Bh 69h 58h 43h 31h 00h 00h Returned value 02h 00h F4h 01h 244 F4h 1...

Page 110: ...xed 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 Example When the number of Numbering copies is set to 500 Code ESC i X N 1 00h 00h 1Bh 69h 58h 4Eh 31h 00h 00h Returned value 02...

Page 111: ...s 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 Example When the FNC1 replacement setting is OFF Code ESC i X F 1 00h 00h 1Bh 69h 58h 46h 31h 00h 00h Returned value 0...

Page 112: ... 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 are set to priority given to print quality Code ESC i X q 1 00h 00h 1Bh 69h 58h 71h 31h 00h 00h Returned value 01h 00h 01h ...

Page 113: ...e 360dpi 20 40dots Character style None Bold Italics Outline Shadow Shadow Outline Underline Character width Horizontal alignment Left Center Right Rotate Portrait landscape Bar code Protocols CODE39 ITF I 2 5 EAN 13 EAN 8 UPC A UPC E CODABAR CODE128 GS1 128 UCC EAN 128 QR Code PDF417 Data Matrix MaxiCode RSS 14 Standard Truncated Stacked Stacked Omni RSS Limited RSS Expanded Standard Stacked POST...

Page 114: ...á ñ 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 É Ù é ù A J Z j z Š š ª º Ê Ú ê ú B K k Ë Û ë û C L l Œ œ Ì Ü ì ü D M m Í Ý í ý E N n Ž ž Î Þ î þ F O _ o DEL Ÿ Ï ß ï ÿ Note indicates that a space is printed indicates that the character will change if the international character set is switch...

Page 115: ...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 ą É Ů é ů A J Z j z Š š Ş ş Ę Ú ę ú B K k Ë Ű ë ű C L l Ś ś Ľ Ě Ü ě ü D M m Ť ť Í Ý í ý E N n Ž ž ľ Î Ţ î ţ F O _ o DEL Ź ź Ż ż Ď ß ď Note indicates that a space is printed indicates that the character will change if the international character set is switched...

Page 116: ...ü æ í ß 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 ï δ C L l î D M m ì TEL ø E N n Ä Pts FAX F O _ o DEL Å ƒ Note indicates that a space is printed indicates that the character will change if the international character set is switched ...

Page 117: ...racter 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 é ù à ò è ì 7 Spain I Pt Ñ ñ 8 Japan 9 Norway É Æ Ø Å Ü é æ ø å ü 10 Denmark II É Æ Ø Å Ü é æ ø å ü 11 Spain II á Ñ é í ñ ó ú 12 Latin America á Ñ é ü í ñ ó ú 13 Korea W 64 Legal TM ...

Page 118: ... triggers exists but the current selection is incorrect When the specified text string is received When all objects are filled When the specified number of characters is received If the settings described above are incorrect use the P touch Template Settings tool to specify the settings If a template linked to a database is not printed 1 A delimiter character must be entered after the search text ...

Page 119: ...ducing the Brother Developer Center 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 ...

Page 120: ......

Reviews: