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 ofthe operating system being used and basic mastery ofUSB/Bluetooth/IrDA and
networksin a developer’s environment.
Details concerning the USB interface are not described in this material. If a USB interface is being
used, refer to “7. USB Specifications” to prepare the interface.
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 BrotherPJ unit,
and any problems resulting directly or indirectly from them. These materials are provided in their current
condition, and we assume no responsibility for their content. Use this material only if you accept these
terms.
This material shall not be reproduced, in part or in full, without prior approval. In addition, this material
shall not be used as evidence in a lawsuit or dispute in a way that is unfavorable towards our company.
The printing procedure is described below. For detailed flow charts, refer to “6. Flow Charts” For details
on each command, refer to “5. Command”.
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. Check machine status
The “Status information request” command is sent to the printer, the status information received from the
printer is analyzed, and then the status of the printer is determined. For details on the “Status information
request” command and on the definition of “status”, refer to “4. Status” in “Command Reference”.
Printing is possible if the analysis results show that the following conditions are met.
・ Paper compatible with the print data is installed in the printer.
・ No error has occurred.
This step is not necessary with a unidirectional transmission.
3. Send print data
The print data is sent. The structure of the print data is explained in the next section, “3. Print Data”.
4. Confirmation of printing completion
When printing is completed, the status is sent from the printer. This status is analyzed and, if printing is
completed, one page is printed. If the print job has multiple pages, 2 through 4 are repeated.
In addition, the status is not sent with a unidirectional transmission.
Sends the “invalid” command to the PJ unit, then clears
raster data remaining in the unit.
00 H, 00 H, 00 H, … ,00 H
2
Switch command mode
Switches the command mode of the PJ unit.
1B H , 69 H , 61 H , 00 H
3
Initialize
Initializes the print buffer.
1B H , 40 H
4
Set 2-ply mode
To specify the disable setting for 2-ply paper:
1B H , 7E H , 70 H , 00 H
5
Set density
Specifies the print density. To set the density to 5:
1B H, 7E H, 64 H, 80 H, 00H
6
Set form feed mode
Specifies the operation that is performed when the “Form
Feed” command is received.
To feed according to the paper size specified with the
“Set paper height” command (step 9):
1B H, 7E H, 66 H, 01 H
7
Set dash line print
To turn off printing of the dashed line:
1B H, 7E H, 2D H, 00 H
8
Set paper width
Specifies the paper width. For A4 on a 300 dpi model:
1B H, 7E H, 77 H, 2C H, 01 H
9
Set paper height
Specifies the paper size. For A4 on a 300 dpi model:
1B H, 7E H, 68 H, E4 H, 0C H
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.
*If an unlimited length or custom paper size is selected, use “Set paper length” command in step 9.
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
transfer
Sends the raster line data.
To send 300 bytes of data:
1B H, 7E H, 2A H, 2C H, 01 H, FF H, FF H….
-
Multi-line feed
Terminates raster line data and feeds 1 or more lines.
1B H, 7E H, 4A H, {n1}
Sequence
Command Name
Description/Example
-
Form feed
Specifies the end of a page.
1BH, 7EH, 0CH
2. Printing commands
Repeat for each raster line in the print job.
Note:
“Set left margin” and “1 Raster line data transfer” commands can be sent more than once per line
Example: The raster line data shown below can be sent with the following commands.
In addition, it is recommended that the “set left margin” command be used when a blank space extends
for 16 bytes or more.
Set left margin: 1BH, 7EH, 24H, 10H, 00H
Raster line data transfer: 1BH, 7EH, 2AH, 02H, 00H, 1FH, F8H
Set left margin: 1BH, 7EH, 24H, 30H, 00H
Raster line data transfer: 1BH, 7EH, 2AH, 01H, 00H, 3CH
Multi-line feed: 1BH, 7EH, 4AH, 01H
3. Print command
Specified at the end of the page.
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.
Furthermore, specified print data that extends out of the print area is automatically cut by the unit. In
addition, the page margins (in all directions) in the figure shown below have no effect on the raster
line.