Raster Command Reference
Page 3
... to the following conditions. Unless expressly permitted in controlling your Printer Model ("Purpose"). No Warranty a. Any updates, upgrades or alteration of the Documentation or Printer Model will assist you may use of Brother. If you first agree to the following conditions, you in... This documentation ("Documentation") provides information that will be performed at the sole discretion of your Printer QL-XXX (where "XXX" is the model name). IN NO EVENT SHALL BROTHER BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR ANY ...
... to the following conditions. Unless expressly permitted in controlling your Printer Model ("Purpose"). No Warranty a. Any updates, upgrades or alteration of the Documentation or Printer Model will assist you may use of Brother. If you first agree to the following conditions, you in... This documentation ("Documentation") provides information that will be performed at the sole discretion of your Printer QL-XXX (where "XXX" is the model name). IN NO EVENT SHALL BROTHER BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR ANY ...
Raster Command Reference
Page 5
... If a USB interface is the model name). Raster Command Reference Introduction This material provides the necessary information for directly controlling the Brother printer QL-XXX (where "XXX" is being used , refer to "Appendix A: USB Specifications" to prepare the interface. Details concerning the USB interface are not described in this ...
... If a USB interface is the model name). Raster Command Reference Introduction This material provides the necessary information for directly controlling the Brother printer QL-XXX (where "XXX" is being used , refer to "Appendix A: USB Specifications" to prepare the interface. Details concerning the USB interface are not described in this ...
Raster Command Reference
Page 6
... to print by sending initialization commands and control codes together with advanced settings. Raster Command Reference About Raster Commands Using raster commands a QL-XXX printer (where "XXX" is useful in the following situations. When printing from an operating system other than Windows (Example: When... printing from a Linux computer or mobile terminal) When adding print functions to print without using our printer driver. This operation is the model name) can be used to an existing system In addition, printing can be performed with raster...
... to print by sending initialization commands and control codes together with advanced settings. Raster Command Reference About Raster Commands Using raster commands a QL-XXX printer (where "XXX" is useful in the following situations. When printing from an operating system other than Windows (Example: When... printing from a Linux computer or mobile terminal) When adding print functions to print without using our printer driver. This operation is the model name) can be used to an existing system In addition, printing can be performed with raster...
Raster Command Reference
Page 7
Printing Using Raster Commands The printing procedure is completed.) Your printer (6) Close the port (4) Print - 3 1. Flow Charts". Printing Command Details". (1) Open the port Port (2) Receive the status (Confirm the printer status (3) Send the print data At your side Computer, mobile terminal, etc. (5) Receive the status (Confirm that printing is described below. For details on each command, refer to "5. Raster Command Reference 1. For detailed flow charts, refer to "4. Printing Using Raster Commands
Printing Using Raster Commands The printing procedure is completed.) Your printer (6) Close the port (4) Print - 3 1. Flow Charts". Printing Command Details". (1) Open the port Port (2) Receive the status (Confirm the printer status (3) Send the print data At your side Computer, mobile terminal, etc. (5) Receive the status (Confirm that printing is described below. For details on each command, refer to "5. Raster Command Reference 1. For detailed flow charts, refer to "4. Printing Using Raster Commands
Raster Command Reference
Page 8
... (2) Confirm the printer status sent from the printer The "status information request" command is sent to the printer, the status information received from the printer. Note: In order to print at high speed when a USB port is used to send uncompressed raster data, the Brother QL-XXX starts printing ...print job has multiple pages, (2) through (4) are repeated. (6) Close the USB/serial/network port After all printing is received from the printer is analyzed, and then the status of printing is determined. For details on the "status information request" command and on the definitions of ...
... (2) Confirm the printer status sent from the printer The "status information request" command is sent to the printer, the status information received from the printer. Note: In order to print at high speed when a USB port is used to send uncompressed raster data, the Brother QL-XXX starts printing ...print job has multiple pages, (2) through (4) are repeated. (6) Close the USB/serial/network port After all printing is received from the printer is analyzed, and then the status of printing is determined. For details on the "status information request" command and on the definitions of ...
Raster Command Reference
Page 9
... constructed of the job. For 3 mm margins: 1Bh, 69h , 64h, 23h, 00h 8 Select compression Selects the compression mode for the printer. If the print job consists of multiple pages, (2) through (4) are repeated. (1) Initialization commands Specified only once at the beginning of the ... notification given during printing. Sequence Command Name Description/Example 1 Invalidate Sends a 400-byte invalidate command, and then resets the printer to raster mode. 1Bh, 69h, 61h, 01h Switch automatic Dynamically switches whether an automatic status notification is effective, specify the...
... constructed of the job. For 3 mm margins: 1Bh, 69h , 64h, 23h, 00h 8 Select compression Selects the compression mode for the printer. If the print job consists of multiple pages, (2) through (4) are repeated. (1) Initialization commands Specified only once at the beginning of the ... notification given during printing. Sequence Command Name Description/Example 1 Invalidate Sends a 400-byte invalidate command, and then resets the printer to raster mode. 1Bh, 69h, 61h, 01h Switch automatic Dynamically switches whether an automatic status notification is effective, specify the...
Raster Command Reference
Page 12
...is clicked to print the test page. Print Data Step 1: Change the port of the printer to check it. - 8 2. Furthermore, this procedure is provided below . ・ Printer driver of the Brother QL-XXX ・ Binary file editor The data that we will analyze in the binary file... editor to "FILE:". Printer Properties Test page 2.2.1 Preparation Install the two listed below . Step 2: Print the desired item (in the printer Properties dialog box is ...
...is clicked to print the test page. Print Data Step 1: Change the port of the printer to check it. - 8 2. Furthermore, this procedure is provided below . ・ Printer driver of the Brother QL-XXX ・ Binary file editor The data that we will analyze in the binary file... editor to "FILE:". Printer Properties Test page 2.2.1 Preparation Install the two listed below . Step 2: Print the desired item (in the printer Properties dialog box is ...
Raster Command Reference
Page 13
...print settings, which were specified immediately after installation of the printer Properties dialog box Step 2: Print the item (in this case, the test page), and then specify the file name. Default settings immediately after the printer driver was installed. Raster Command Reference Step 1: Change ...the port of the printer to display the Properties dialog box. In the Properties dialog box, click the [Ports] tab, ...
...print settings, which were specified immediately after installation of the printer Properties dialog box Step 2: Print the item (in this case, the test page), and then specify the file name. Default settings immediately after the printer driver was installed. Raster Command Reference Step 1: Change ...the port of the printer to display the Properties dialog box. In the Properties dialog box, click the [Ports] tab, ...
Raster Command Reference
Page 14
... Print data - 10 - 2. The rows of numbers that the file name can be specified. (Refer to the illustration below .) The print data is clicked, the printer driver creates the print data and saves it in a file with the specified name. Raster Command Reference When the test page is printed with the... printer, a dialog box appears so that appear are the print data. (Refer to the illustration below .) After a file name is typed in and the [OK] button ...
... Print data - 10 - 2. The rows of numbers that the file name can be specified. (Refer to the illustration below .) The print data is clicked, the printer driver creates the print data and saves it in a file with the specified name. Raster Command Reference When the test page is printed with the... printer, a dialog box appears so that appear are the print data. (Refer to the illustration below .) After a file name is typed in and the [OK] button ...
Raster Command Reference
Page 16
...Invalidate A 400-byte invalidate command is sent. 2 Initialize The "initialize" command is sent. 3 Switch dynamic command mode The printer is specified. 10 Specify margin amount Since a margin amount cannot be printed, this command. 6 Print information command Media size ...notification mode Dynamically switches whether an automatic status notification is given during printing. 5 Job ID setting commands Internal specification commands Since this command before automatically cutting is specified. 9 Expanded mode This is the command for specifying expanded functions. Print...
...Invalidate A 400-byte invalidate command is sent. 2 Initialize The "initialize" command is sent. 3 Switch dynamic command mode The printer is specified. 10 Specify margin amount Since a margin amount cannot be printed, this command. 6 Print information command Media size ...notification mode Dynamically switches whether an automatic status notification is given during printing. 5 Job ID setting commands Internal specification commands Since this command before automatically cutting is specified. 9 Expanded mode This is the command for specifying expanded functions. Print...
Raster Command Reference
Page 25
...Status information request ASCII: ESC i S Hexadecimal: 1B 69 53 Description When a status information request is returned as a response from the printer. Since error information is cleared. Raster Command Reference 4. Printing Command Details For details on these 32 bytes, refer to the receiving state, where the ...print buffer is automatically sent by the printer during printing, do not send this command should be stopped midway, send the "initialize" command after sending the "invalidate"...
...Status information request ASCII: ESC i S Hexadecimal: 1B 69 53 Description When a status information request is returned as a response from the printer. Since error information is cleared. Raster Command Reference 4. Printing Command Details For details on these 32 bytes, refer to the receiving state, where the ...print buffer is automatically sent by the printer during printing, do not send this command should be stopped midway, send the "initialize" command after sending the "invalidate"...
Raster Command Reference
Page 27
... 02h 04h 08h 10h 20h 40h 80h Definition "No media" error "End of media" error (only for die-cut labels) Cutter jam (Not used) Printer in use Printer turned off High-voltage adapter (not used) Fan motor error (not used) Definition "Replace media" error "Expansion buffer full" error Communication error "Communication buffer...
... 02h 04h 08h 10h 20h 40h 80h Definition "No media" error "End of media" error (only for die-cut labels) Cutter jam (Not used) Printer in use Printer turned off High-voltage adapter (not used) Fan motor error (not used) Definition "Replace media" error "Expansion buffer full" error Communication error "Communication buffer...
Raster Command Reference
Page 29
Printing Command Details Used for both paper and film. Used for both paper and film. (5) Status type Status Type Value Reply to status request 00h Printing completed 01h Error occurred 02h Turned off 04h Notification 05h Phase change 06h (Not used) 08h to 20h (Reserved) 21h to FFh If an error occurred during printing, the printer returns the error status. - 25 - 4. Raster Command Reference (4) Media type Media Type No media Continuous length tape Die-cut labels Value 00h 4Ah 4Bh Description Used as print information when the media type is not indicated.
Printing Command Details Used for both paper and film. Used for both paper and film. (5) Status type Status Type Value Reply to status request 00h Printing completed 01h Error occurred 02h Turned off 04h Notification 05h Phase change 06h (Not used) 08h to 20h (Reserved) 21h to FFh If an error occurred during printing, the printer returns the error status. - 25 - 4. Raster Command Reference (4) Media type Media Type No media Continuous length tape Die-cut labels Value 00h 4Ah 4Bh Description Used as print information when the media type is not indicated.
Raster Command Reference
Page 30
...concurrent printing, printing starts even if a print command has not been sent from the computer in the receiving state. When printing has finished, the printer sends the "receiving state" phase status (phase type: receiving state; Flow Charts".) (7) Notification number Notification Value Not available 00h Cooling (started)...Reference (6) Phase type and phase number If the phase number is in order to print at 00h. phase number: printing), and the printer sends that phase status to the computer. At this time, care should be taken since the "printing" and "waiting to receive" ...
...concurrent printing, printing starts even if a print command has not been sent from the computer in the receiving state. When printing has finished, the printer sends the "receiving state" phase status (phase type: receiving state; Flow Charts".) (7) Notification number Notification Value Not available 00h Cooling (started)...Reference (6) Phase type and phase number If the phase number is in order to print at 00h. phase number: printing), and the printer sends that phase status to the computer. At this time, care should be taken since the "printing" and "waiting to receive" ...
Raster Command Reference
Page 32
... to raster mode before raster data is sent to raster mode. - 28 - 4. Therefore, send this mode.) 3: P-touch Template mode Description Dynamically switches between the printer's command modes. Raster Command Reference ESC i a Switch dynamic command mode ASCII: ESC i a {n1} Hexadecimal: 1B 69 61 {n1} Parameters Definitions of {n}: 0: ESC/P mode (default) 1: Raster...
... to raster mode before raster data is sent to raster mode. - 28 - 4. Therefore, send this mode.) 3: P-touch Template mode Description Dynamically switches between the printer's command modes. Raster Command Reference ESC i a Switch dynamic command mode ASCII: ESC i a {n1} Hexadecimal: 1B 69 61 {n1} Parameters Definitions of {n}: 0: ESC/P mode (default) 1: Raster...
Raster Command Reference
Page 33
... i ! {n1} Hexadecimal: 1B 69 21 {n1} Parameters Definitions of data. {d1~dn} Raster data. - 29 - 4. Raster Command Reference ESC i ! A printer that receives this command operates in the specified command mode until the printer is turned off. Use this command when building a system where the status is not obtained using a status information...
... i ! {n1} Hexadecimal: 1B 69 21 {n1} Parameters Definitions of data. {d1~dn} Raster data. - 29 - 4. Raster Command Reference ESC i ! A printer that receives this command operates in the specified command mode until the printer is turned off. Use this command when building a system where the status is not obtained using a status information...
Raster Command Reference
Page 35
... which values are valid 0x02: Media type 0x04: Media width 0x08: Media length 0x40: Priority given to print quality (invalid for two-color printing) 0x80: Printer recovery always on {n2}: Media type Continuous length tape: 0Ah Die-cut labels: 0Bh {n3}: {n4}: {n3}: Media width (mm) {n4}: Media length (mm) For... n4=64h. {n5-n8}: Raster number = n8*256*256*256 + n7*256*256 + n6*256 + n5 If the media is not correctly loaded into the printer when the media type, media width and media length of valid flag {n1} are set to "ON", an error status is calculated as a single raster...
... which values are valid 0x02: Media type 0x04: Media width 0x08: Media length 0x40: Priority given to print quality (invalid for two-color printing) 0x80: Printer recovery always on {n2}: Media type Continuous length tape: 0Ah Die-cut labels: 0Bh {n3}: {n4}: {n3}: Media width (mm) {n4}: Media length (mm) For... n4=64h. {n5-n8}: Raster number = n8*256*256*256 + n7*256*256 + n6*256 + n5 If the media is not correctly loaded into the printer when the media type, media width and media length of valid flag {n1} are set to "ON", an error status is calculated as a single raster...
Raster Command Reference
Page 37
... = n1 (1 - 255) Default is 1 (cut each label). Raster line with compression Raster line with compression, this becomes 90 bytes when it is expanded by the printer, regardless of unused pins is also added to the data. Raster Command Reference Explanation of "TIFF compression mode" With compression, the data for the "raster...
... = n1 (1 - 255) Default is 1 (cut each label). Raster line with compression Raster line with compression, this becomes 90 bytes when it is expanded by the printer, regardless of unused pins is also added to the data. Raster Command Reference Explanation of "TIFF compression mode" With compression, the data for the "raster...
Raster Command Reference
Page 39
...Printing 1st page Printing 2nd page - 35 - 5. Displaying sending Initialize Status information request Status (response to status information request) Printer The printer is READ transmitted. The status of the 1st page is actually not finished, but the "Printing completed" status and "Waiting ...") Sending control code/print data Status (Phase change: "Printing") Sending raster data Sending raster data Sending raster data Printing of the printer (media, etc.) is checked and a response is a problem, an error appears. "Printing completed" received. Beginning printing without waiting...
...Printing 1st page Printing 2nd page - 35 - 5. Displaying sending Initialize Status information request Status (response to status information request) Printer The printer is READ transmitted. The status of the 1st page is actually not finished, but the "Printing completed" status and "Waiting ...") Sending control code/print data Status (Phase change: "Printing") Sending raster data Sending raster data Sending raster data Printing of the printer (media, etc.) is checked and a response is a problem, an error appears. "Printing completed" received. Beginning printing without waiting...
Raster Command Reference
Page 40
...Printing of the 1st page is actually not finished, but the "Printing completed" status and "Waiting to status information request) Printer The printer is READ transmitted. Flow Charts The status of 1st page Sending a print command (print command with feeding (1A) for...0C) for other page) Status ("Printing completed") Status (Phase change : "Printing") Data received. When restarted, data is resent starting with the printer status (media, etc.), the data is initialized. "Printing completed" received. Reprinting 1st page - 36 - 5. Raster Command Reference 5.2 Error ...
...Printing of the 1st page is actually not finished, but the "Printing completed" status and "Waiting to status information request) Printer The printer is READ transmitted. Flow Charts The status of 1st page Sending a print command (print command with feeding (1A) for...0C) for other page) Status ("Printing completed") Status (Phase change : "Printing") Data received. When restarted, data is resent starting with the printer status (media, etc.), the data is initialized. "Printing completed" received. Reprinting 1st page - 36 - 5. Raster Command Reference 5.2 Error ...