Brother PJ-600/700/800 Series Command Reference PJ-600/700/800 Series Printer Raster Command Reference PJ-622/623/662/663/673 722/723/763/763MFi/773 822/823/862/863/883 2022-4-18 Version 1.3 Brother Industries, Ltd. © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference Table of Contents 1. Introduction .............................................................................................................. 1 2. Overview ................................................................................................................. 2 3. Print Data................................................................................................................. 3 4. 5. 3.1. Print data overview ...................
Brother PJ-600/700/800 Series Command Reference © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 1 1. Introduction This material provides the necessary information for directly controlling the Brother PJ-600 series printer (hereafter, referred to as “PJ unit”). This information is provided assuming that the user has full understanding of the operating system being used and basic mastery of USB/Bluetooth/IrDA and networks in a developer’s environment. Details concerning the USB interface are not described in this material.
Brother PJ-600/700/800 Series Command Reference 2 2. Overview The printing procedure is described below. For detailed flow charts, refer to “6. Flow Charts” For details on each command, refer to “5. Command Reference”. 1. Open USB/Bluetooth Serial/IrDA/Network port Open the USB/Bluetooth Serial/IrDA/network port in the operating environment. In addition, since the procedure for opening the USB port is not described in this material, perform the appropriate operation for the environment being used. 2.
Brother PJ-600/700/800 Series Command Reference 3 3. Print Data 3.1. Print data overview The print data is constructed of the following: ① Initialization data, ② Printing commands and ③ Print command. If the print job consists of multiple pages, ② through ③ are repeated. 1. Initialization data The beginning of the job is specified only once. Sequence 1 Command Name Description/Example Invalid command 700 Sends the “invalid” command to the PJ unit, then clears bytes raster data remaining in the unit.
Brother PJ-600/700/800 Series Command Reference 4 2. Printing commands Repeat for each raster line in the print job. Sequence - Command Name Set left margin Description/Example Moves the cursor the specified distance from the left edge of the printable area in the X direction. 1B H, 7E H, 24 H, {n1}, {n2} - 1 Raster line data Sends the raster line data. transfer To send 300 bytes of data: 1B H, 7E H, 2A H, 2C H, 01 H, FF H, FF H….
Brother PJ-600/700/800 Series Command Reference 5 3.2. Page data details Information on the values for the printed page size is provided below. 3.2.1. Resolution Model 200 dpi (PJ-622/662/722/762/822/862) Resolution 203 dpi in main scan direction, 200 dpi in secondary scan direction 300 dpi 300 dpi in main scan direction, (PJ-623/663/673/723/763/763MFi/773/82 300 dpi in secondary scan direction 3/863/883) © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 6 3.2.2. Page size (300 dpi model) B G A C F H D E A: Length B: Top margin C: Print area length D: Bottom margin E: Width F: Left margin G: Printable area width H: Right margin © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 7 ・Fixed length *When the paper type is set to “cut sheet” or “perforated roll retracts” Paper A B C D E F G H 297.0 mm 2.5 mm 279.4 mm 15.0 mm 210.0 mm 3.4 mm 203.2 mm 3.4 mm 3507 dots 30 dots 3300 dots 177 dots 2480 dots 40 dots 2400 dots 40 dots 355.6 mm 2.5 mm 347.1 mm 5.9 mm 215.9 mm 3.6 mm 208.6 mm 3.6 mm 4200 dots 30 dots 4100 dots 70 dots 2550 dots 43 dots 2464 dots 43 dots 279.4 mm 2.5 mm 270.9 mm 5.
Brother PJ-600/700/800 Series Command Reference 8 *When the paper type is set to “perforated roll” Paper A B C D E F G H 297.0 mm 11.9 mm 268.9 mm 16.1 mm 210.0 mm 3.4 mm 203.2 mm 3.4 mm 3507 dots 140 dots 3177 dots 190 dots 2480 dots 40 dots 2400 dots 40 dots 355.6 mm 11.9 mm 327.6 mm 16.1 mm 215.9 mm 3.6 mm 208.6 mm 3.6 mm 4200 dots 140 dots 3870 dots 190 dots 2550 dots 43 dots 2464 dots 43 dots 279.4 mm 11.9 mm 251.4 mm 16.1 mm 215.9 mm 3.6 mm 208.6 mm 3.
Brother PJ-600/700/800 Series Command Reference 9 3.2.3. Page size (200 dpi model) ・Fixed length *When the paper type is set to “cut sheet” or “perforated roll retract” Paper A B C D E F G H 297.0 mm 2.5 mm 279.4 mm 15.0 mm 210.0 mm 3.4 mm 203.2 mm 3.4 mm 2338 dots 20 dots 2200 dots 118 dots 1654 dots 27 dots 1600 dots 27 dots 355.6 mm 2.5 mm 347.1 mm 6.0 mm 215.9 mm 4.3 mm 207.2 mm 4.3 mm 2800 dots 20 dots 2733 dots 47 dots 1700 dots 34 dots 1632 dots 34 dots 279.
Brother PJ-600/700/800 Series Command Reference 10 *When the paper type is set to “perforated roll” Paper A B C D E F G H 297.0 mm 10.9 mm 269.0 mm 17.0 mm 210.0 mm 3.4 mm 203.2 mm 3.4 mm 2338 dots 86 dots 2118 dots 134 dots 1654 dots 27 dots 1600 dots 27 dots 355.6 mm 10.9 mm 327.7 mm 17.0 mm 215.9 mm 4.3 mm 207.2 mm 4.3 mm 2800 dots 86 dots 2580 dots 134 dots 1700 dots 34 dots 1632 dots 34 dots 279.4 mm 10.9 mm 251.5 mm 17.0 mm 215.9 mm 4.3 mm 207.2 mm 4.
Brother PJ-600/700/800 Series Command Reference 11 3.2.4. Raster line The following shows how the raster is arranged on the pins of the print head according to "raster graphics transfer". The number of offset pins is calculated automatically based on the “set paper width” command and centering the print area across the print head The raster data specified with the “set left margin” and “1 raster line data transfer” commands is reflected in the pins of the print area.
Brother PJ-600/700/800 Series Command Reference 12 Letter 48 1632 48 A5 309 1111 308 © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 13 4. Status 4.1. Overview The status is sent from the printer to the computer as a reply to the "status information request" command or as an error message. The size is fixed to 32 bytes. Number Offset Size Name Value/Reference 1 0 1 Print head mark Fixed to “80 Hex” 2 1 1 Size Fixed to “20 Hex” 3 2 1 Reserved Fixed to ’B’ (42 Hex) 4 3 1 Series code Refer to section 4.2.1. 5 4 1 Model code Refer to section 4.2.1.
Brother PJ-600/700/800 Series Command Reference 14 4.2. Definitions of each part 4.2.1.
Brother PJ-600/700/800 Series Command Reference 15 4.2.3.
Brother PJ-600/700/800 Series Command Reference 16 4.2.4. Paper width and length Paper width: No paper: 0x00 Paper: 0xD2 Paper length: Fixed to “0x00” 4.2.5. Paper loaded Paper loaded No paper Paper © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 17 4.2.6. Status type Status Type Value Reply to status request 00 Hex Printing completed 01 Hex Error occurred 02 Hex Notification 05 Hex Phase change 06 Hex 4.2.7. Phase type and phase number If the phase type and phase number are not used, both are fixed to “00 Hex”.
Brother PJ-600/700/800 Series Command Reference 18 4.2.8. Notification number Notification Invalid © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 19 5. Command 5.1. Overview This chapter provides descriptions of the commands that can be interpreted by the PJ unit. Section 5.2 provides descriptions of the commands used for printing in Raster mode. See section 3.1 for typical Print Data Sequence. Section 5.3 provides descriptions of the commands for default printer settings and ESC/P mode. © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 20 5.2. Command details Name Invalid command Syntax NULL 00 H Description Skip If data transmission should be stopped midway, send the “initialize” command after sending the “invalid” command for the appropriate number of bytes to return to the receiving state, where the print buffer is cleared. Name Switch command mode Syntax ESC + i + a + {n1} 1B H + 69 H + 61 H + {n1} Description Switches between the machine's command modes.
Brother PJ-600/700/800 Series Command Reference 21 Name Bidirectional transmission mode Syntax ESC + ~ + e + D + {n1} 1B H + 7E H + 65 H + 44 H + {n1} Description When bidirectional transmission is enabled, the printer returns the “printing completed” status when printing is finished. In addition, if an error occurred during printing, all print data received for those pages is discarded.
Brother PJ-600/700/800 Series Command Reference 22 Name Set print speed Syntax ESC + ~ + e + V + 01 + {n1} 1B H + 7E H + 65 H + 56H + 01H + {n1} Description Specifies the print speed. For details, refer to the respective commands for PJ-700 series and PJ-800 series. PJ-600 series are not available. Name Set roll printer case setting Syntax ESC + ~ + e + R + 01 + {n1} 1B H + 7E H + 65 H + 52H + 01H + {n1} Description Specifies the feed setting when using roll printer case.
Brother PJ-600/700/800 Series Command Reference 23 Syntax ESC + ~ + - + {n1} 1B H + 7E H + 2D H + {n1} Description Specifies whether or not a dotted line is printed between pages when the user sets the paper type to “roll” and the form feed mode to “Fixed page”. Definition of {n1}: 0: Disable (default) 1: Enable © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 24 Name Set paper height Syntax ESC + ~ + h + {n1} + {n2} 1B H + 7E H + 68 H + {n1} + {n2} Description Specifies the paper size. The default setting is Letter size. The 2-byte data for pre-defined paper sizes is sent as the values for {n1} and {n2}.
Brother PJ-600/700/800 Series Command Reference 25 Name Set paper width Syntax ESC + ~ + w + {n1} + {n2} 1B H + 7E H + 77 H + {n1} + {n2} Description Specifies the paper width. ※The selection method is different for custom paper and for non-custom paper. ■Non-custom paper The units of the data are in bytes. Example: For A4, the number of dots for the print area is 2400, so 300 is set. Ex.
Brother PJ-600/700/800 Series Command Reference 26 Description Moves the cursor the specified distance from the left edge of the printable area in the X direction. The setting is a 2-byte value, and the units are in bits. Since the sent data is specified in bytes, it is treated as a multiple of 8. If it is not a multiple of 8, the nearest value at a multiple of 8 is specified. Ex) 1B H 7E H 24 H 44 H 00 H 44 H = 68 However, since it is treated as bytes, the setting becomes 64.
Brother PJ-600/700/800 Series Command Reference 27 Name Multi-line feed Syntax ESC + ~ + J + {n1} 1B H + 7E H + 4A H + {n1} Description Terminates current raster line and performs a line feed of multiple raster lines on the current page. Definition of {n1}: Number of lines This command is used in connection with the “1 raster line data transfer” command.
Brother PJ-600/700/800 Series Command Reference 28 Name Form feed Syntax ESC + ~ + FF 1B H + 7E H + 0C H Description Prints the current page and ejects according to the setting of the “set form feed mode” command. Using this command, cursor position is automatically reset to left edge. If no data is received for the current page, this command is ignored. © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 29 5.3. Utility Command details Note: These commands are primarily for setting power-on default values for printer specific settings and for printing text-only data. When the printer gets turned off, it will return to the previous setting. In order to keep the current setting statically, please use this command. 5.3.1.
Brother PJ-600/700/800 Series Command Reference 30 Name Specify line feed of 1/6 inch Syntax ESC + 2 1B H + 32 H Description Specify line feed of 1/6 inch (6LPI). The line feed becomes 1/6 inch. After this command is specified, the page length in lines and bottom margin must be specified again. Name Specify line feed of 1/8 inch Syntax ESC + 0 1B H + 30 H Description Specify line feed of 1/8 inch (8LPI). The line feed becomes 1/8 inch.
Brother PJ-600/700/800 Series Command Reference 31 Name Specify left margin Syntax ESC + l + {n1} 1B H + 6C H + {n1} Description Specifies the left margin position as the position from the left edge where (character width when this command is specified) * n1, and specifies the area to the left of this as an unprinted area. Character width = 1 / Default pitch. In addition, this printer operates as an 80-column device, and a setting that extends past 4.5 inches from the left edge is ignored.
Brother PJ-600/700/800 Series Command Reference 32 Name Apply/cancel proportional characters Syntax ESC + p + {n1} 1B H + 70 H + {n1} Description Applies or cancels proportional characters for alphanumeric characters. After this command is specified, the left margin and right margin must be specified again.
Brother PJ-600/700/800 Series Command Reference 33 Name Specify Auto Power Off (Ni-MH) Syntax ESC + ~ + t + {n1} + NUL 1B H + 7E H + 74 H + {n1} + 00 H Description Select the length of time until the print unit automatically turns off when it is only using the Ni-MH rechargeable battery.
Brother PJ-600/700/800 Series Command Reference 34 Name Specify dash line print Syntax ESC + ~ + - + {n1} 1B H + 7E H + 2D H + {n1} Description Select whether or not a dotted line is printed as a perforation between pages. If roll paper is being used and “Form Feed Mode” is set to “Fixed Page”, dotted lines are printed between pages.
Brother PJ-600/700/800 Series Command Reference 35 Name Specify CR-LF mode Syntax ESC + ~ + L + {n1} 1B H + 7E H + 4C H + {n1} Description Select the operation mode for receiving a new line command. Definition of {n1}: 00 H(0): LF = LF CR = CR 01 H(1): LF = CR + LF CR = CR + LF Name Specify Paper sensor threshold Syntax ESC + ~ + e + S + {n1} 1B H + 7E H + 65 H + 53 H + {n1} Description Specify the threshold for the sensor that detects the paper.
Brother PJ-600/700/800 Series Command Reference 36 Name Select Extended character code table Syntax ESC + t + {n1} 1B H + 74 H + {n1} Description Selects the character table for character codes 128 through 255. Definition of {n1}: 00 H(0): Select italic characters 01 H(1): Select advanced graphics Name Select international character set Syntax ESC + R + {n1} 1B H + 52 H + {n1} Description Changes a part of the alphanumeric character code table.
Brother PJ-600/700/800 Series Command Reference 37 Name Specify Default font Syntax ESC + k + {n1} 1B H + 6B H + {n1} Description Select the font to be used. Definition of {n1} 00 H(0):Serif 01 H(1):Sans Serif Name Specify reduced characters Syntax ESC + 0x0F 1B H + 0F H Description The width of proportional characters is halved (10 cpi→16.67 cpi and 12 cpi → 20 cpi). After this command is specified, the page length in lines and bottom margin must be specified again.
Brother PJ-600/700/800 Series Command Reference 38 Name Cancel bold style Syntax ESC + F 1B H + 46 H Description Cancels the bold style. Name Specify/cancel double-width characters Syntax ESC + W + {n1} 1B H + 57 H + {n1} Description Specifies or cancels double-width enlargement for alphanumeric characters. After this command is specified, the page length in lines and bottom margin must be specified again.
Brother PJ-600/700/800 Series Command Reference 39 Name Specify/retrieve Bluetooth settings *Available only with PJ-662 and PJ-663. Syntax ESC + ~ + e + B + {n1} + ・・・ 1B H + 7E H + 65 H + 42 H + {n1} + ・・・ Description Specifies or retrieves Bluetooth settings in the utility.
Brother PJ-600/700/800 Series Command Reference 40 ex5) 1B H 7E H 65 H 42 H 01 H Specify 02 H 00 H Visible to Other Devices Settings →Sets that other devices cannot detect this machine (Disable). ex6) 1B H 7E H 65 H 42 H 01 H 03 H 00 H Specify Authentication and Encoding Settings →Sets that there is no authentication and encoding. *The BT address is received at a fixed size of 6 bytes.
Brother PJ-600/700/800 Series Command Reference 41 Name Auto Adjust Sensor Syntax ESC + ~ + e + C + {n1} 1B H + 7E H + 65 H + 43 H + {n1} Description Automatically adjusts the threshold for the sensor that detects the paper. The machine that receives this command feeds the paper and detects the black mark. After this command is sent, notification of the results is returned as 2 bytes.
Brother PJ-600/700/800 Series Command Reference 42 Name Retrieve current settings (except Bluetooth settings) Syntax ESC + ~ + e + U + {n1} 1B H + 7E H + 65 H + 55 H + {n1} Description Retrieves the settings for the parameters that can be specified, except those related to Bluetooth. The data size (2 bytes) and data are returned from the machine. The normal data size is 34 bytes. For details on the data, refer to 5.4.
Brother PJ-600/700/800 Series Command Reference 43 when powered by the rechargeable Li-ion battery. Definition of {n1} 00h: None ~ 78h: 120 minutes Name Print Speed Syntax ESC + ~ + e + V + 01h + {n1} Description Specifies the printing speed in inches or millimeters per second. Definition of {n1} 00 H(0): 2.5 ips / 65 mm/s 01 H(1): 1.9 ips / 48 mm/s 02 H(2): 1.6 ips / 41 mm/s 03 H(3): 1.
Brother PJ-600/700/800 Series Command Reference 44 5.3.3. PJ-700 and PJ-800 Series Utility Command details This section describes the utility commands common to the PJ-700 and PJ-800 series. Name Command Mode Syntax ESC + i + X + i + 2 + 01h + 00h + {n1} Description Specifies the printer’s command format.
Brother PJ-600/700/800 Series Command Reference 45 Description Specifies the JPEG printing setting. Definition of {n1} 00h: Simple Binary 01h: Error Diffusion Name Scale JPEG images to fit media Syntax ESC + ~ + e + a + 01h + {n1} Description Allows enlarging or reducing a JPEG image to fit the paper size.
Brother PJ-600/700/800 Series Command Reference 46 5.3.4. PJ-800 Series Utility Command details In this section, the Utility commands for only PJ-800 Series are listed. Name Print Speed Syntax ESC + ~ + e + V + 01h + {n1} Description Specifies the printing speed in inches or millimeters per second. Definition of {n1} 00 H(0): 3.5 ips / 90 mm/s 01 H(1): 2.7 ips / 70 mm/s 02 H(2): 1.9 ips / 48 mm/s 03 H(3): 1.
Brother PJ-600/700/800 Series Command Reference 47 Definition of {n1} 00h: None ~ 48h: 12 hours Name Switching between saving and discarding when pages are carried over Syntax ESC + i+ DC1 + S + S + 01h + 01h + 00h + {P1} Description Printing when pages are carried over Definition of {P1} 00h: Print 01h: Discard Name Adjusting the transport distance at the end of a job Syntax ESC + i + DC1 + S + D + 01h + 01h + 00h + {P1} Description Adjusting the transport distance at the end of a job.
Brother PJ-600/700/800 Series Command Reference 48 Name Halftone settings Syntax ESC + i + DC1 + S + T+ 01h + 01h + 00h + {P1} Description Halftone settings Definition of {P1} 00h: Binary 01h: Error Diffusion 02h: Dither Name Halftone binarization threshold settings (AirPrint) Syntax ESC + i+ DC1 + S + t + 01h + 01h + 00h + {P1} Description Halftone binarization threshold settings (AirPrint) Definition of {P1} 00h: 0 ~ FFh: 255 Name Halftone binarization threshold settings (JPEG) Syntax ES
Brother PJ-600/700/800 Series Command Reference 49 Name Retrieve firmware version information Syntax ESC + i + DC1 + I + V + 00h + 01h + 00h + 00h Description Retrieve firmware version information. (Main program) © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 50 5.4. Returned data for retrieve commands Name 0 Paper Size Value Letter BYTE 2 A4 Legal The values differ for the 200 dpi and 300 dpi models.
Brother PJ-600/700/800 Series Command Reference 51 16 Default Pitch 0x00:10cpi 1 0x01:12cpi 0x02:15cpi 17 18 Default Pitch(Proportional 0x00:Cancel characters) 0x01:Specify Form Length 0x0001 – 0x007F 1 2 (in units of number of lines) 20 Left Margin 0x0000 – 0xFFFF 2 (in units of number of lines) 22 Right Margin 0x0000 – 0xFFFF 2 (in units of number of lines) 24 Bottom Margin 0x0001 – 0x007F 2 (in units of number of lines) 26 Text Line Spacing 0x00:1/8 inch line feed 1 0x02:1/
Brother PJ-600/700/800 Series Command Reference 52 30 Reduce Character Size 0x00: Normal Character Attribute: 0x01: Reduced Double-width 0x02: Double width 1 0x03: Normal 31 32 Character Attribute: 0x00: Cancel Double-height 0x02: Specify Character Attribute:Bold 0x00: Cancel 1 1 0x01: Specify 33 Character Attribute:Underline 0x00: Cancel 0x01: Specify © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 53 6. Flow Charts This chapter provides flow charts for printing with a bidirectional transmission. To print with a unidirectional transmission, send the data to the unit as shown under “Print data overview” in chapter 3. ※PJ-673 network printing does not support duplex transmission. © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 54 6.1. USB/Bluetooth/IrDA/Network Printing flow Computer (host) If there are no problems with the machine, the data is transmitted. If there is a problem, an error appears. If the “no paper” error occurred, the machine is periodically checked, and the operation is automatically restarted when there are no problems. Printer NULL 700 BYTE The PJ unit is initialized.
Brother PJ-600/700/800 Series Command Reference 55 Note ①Status(response to Status information request) Refer to “4.2.6.Status type”. However, if an error has already occurred on the machine, the machine returns “error occurred” as the status type. For details, refer to “4.2.3.Error information 1/2”. ②Print data Print command for 1 page. Refer to “3.1.Print data overview”.
Brother PJ-600/700/800 Series Command Reference 56 6.2. USB/Bluetooth/IrDA Error flow © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 57 6.3. USB/Bluetooth/IrDA Cooling flow © 2015 Brother Industries, Ltd. All Rights Reserved.
Brother PJ-600/700/800 Series Command Reference 58 7.
Brother PJ-600/700/800 Series Command Reference 59 8. Compatibility and Support Information 8.1. Compatibility with PJ-500 series printers Main differences with PJ3/PJ3Plus The main differences with the PJ-500 series printers are listed below.