Raster Command Reference
Page 3
... THE DOCUMENTATION OR ANY SOFTWARE PROGRAM OR APPLICATION YOU DEVELOPED IN ACCORDANCE WITH THE DOCUMENTATION. b. BROTHER DOES NOT REPRESENT OR WARRANT THAT THIS DOCUMENTATION IS FREE FROM ERRORS OR DEFECTS. Unless expressly permitted in controlling your Printer Model ("Purpose"). c. If you do not agree to any third party, or, (iv) remove ... you may not use the Documentation. PLEASE READ CAREFULLY Note This documentation ("Documentation") provides information that will be performed at the sole discretion of your Printer QL-XXX (where "XXX" is the model name). Brother may use of...
... THE DOCUMENTATION OR ANY SOFTWARE PROGRAM OR APPLICATION YOU DEVELOPED IN ACCORDANCE WITH THE DOCUMENTATION. b. BROTHER DOES NOT REPRESENT OR WARRANT THAT THIS DOCUMENTATION IS FREE FROM ERRORS OR DEFECTS. Unless expressly permitted in controlling your Printer Model ("Purpose"). c. If you do not agree to any third party, or, (iv) remove ... you may not use the Documentation. PLEASE READ CAREFULLY Note This documentation ("Documentation") provides information that will be performed at the sole discretion of your Printer QL-XXX (where "XXX" is the model name). Brother may use of...
Raster Command Reference
Page 5
... and basic mastery of USB and networks in this manual as the name of your printer. - 1 Introduction This information 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 provided assuming that appear in the screens in this material...
... and basic mastery of USB and networks in this manual as the name of your printer. - 1 Introduction This information 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 provided assuming that appear in the screens in this material...
Raster Command Reference
Page 6
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 an existing system In addition, printing can be performed with raster data to the QL-XXX printer (hereafter, referred to binary bitmap data (collection of dots). Refer to this material, "raster" refers to as...
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 an existing system In addition, printing can be performed with raster data to the QL-XXX printer (hereafter, referred to binary bitmap data (collection of dots). Refer to this material, "raster" refers to as...
Raster Command Reference
Page 7
Flow Charts". For detailed flow charts, refer to "4. Raster Command Reference 1. Printing Using Raster Commands The printing procedure is completed.) Your printer (6) Close the port (4) Print - 3 1. 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. Printing Using Raster Commands For details on each command, refer to "5.
Flow Charts". For detailed flow charts, refer to "4. Raster Command Reference 1. Printing Using Raster Commands The printing procedure is completed.) Your printer (6) Close the port (4) Print - 3 1. 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. Printing Using Raster Commands For details on each command, refer to "5.
Raster Command Reference
Page 8
...sent to confirm that no error has occurred, the print data is received from the printer is analyzed, and then the status of printing is used to send uncompressed raster data, the Brother QL-XXX starts printing when it starts to "Status information request" in this status is ...analyzed to the printer, the status information received from the printer. For the processing flow, for opening the USB/serial/network port...
...sent to confirm that no error has occurred, the print data is received from the printer is analyzed, and then the status of printing is used to send uncompressed raster data, the Brother QL-XXX starts printing when it starts to "Status information request" in this status is ...analyzed to the printer, the status information received from the printer. For the processing flow, for opening the USB/serial/network port...
Raster Command Reference
Page 9
... command Sets the print information for raster graphics. - 5 2. Print Data 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 number of the margins. For... overview The print data is constructed of the job. For 3 mm margins: 1Bh, 69h , 64h, 23h, 00h 8 Select compression Selects the compression mode for the printer.
... command Sets the print information for raster graphics. - 5 2. Print Data 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 number of the margins. For... overview The print data is constructed of the job. For 3 mm margins: 1Bh, 69h , 64h, 23h, 00h 8 Select compression Selects the compression mode for the printer.
Raster Command Reference
Page 12
... creating print data with various print settings. As an example, we will analyze in the printer Properties dialog box is for checking the print data is provided below . ・ Printer driver of the Brother QL-XXX ・ Binary file editor The data that we will check the print data created ... in this procedure is clicked to "FILE:". Print Data Since the print data differs depending on print data created by the printer driver, descriptions of the printer to print the test page. Step 2: Print the desired item (in the previous chapter are using a different operating system...
... creating print data with various print settings. As an example, we will analyze in the printer Properties dialog box is for checking the print data is provided below . ・ Printer driver of the Brother QL-XXX ・ Binary file editor The data that we will check the print data created ... in this procedure is clicked to "FILE:". Print Data Since the print data differs depending on print data created by the printer driver, descriptions of the printer to print the test page. Step 2: Print the desired item (in the previous chapter are using a different operating system...
Raster Command Reference
Page 13
... with the default print settings, which were specified immediately after the printer driver was installed. Raster Command Reference Step 1: Change the port of the printer to display the Properties dialog box. Open the Printers and Faxes folder, and then right-click the printer to "FILE:". Print Data For this case, the test page), and...
... with the default print settings, which were specified immediately after the printer driver was installed. Raster Command Reference Step 1: Change the port of the printer to display the Properties dialog box. Open the Printers and Faxes folder, and then right-click the printer to "FILE:". Print Data For this case, the test page), and...
Raster Command Reference
Page 14
... data, refer to the illustration below .) After a file name is typed in and the [OK] button is clicked, the printer driver creates the print data and saves it in a file with the printer, a dialog box appears so that appear are the print data. (Refer to "2.2.3 Explanation of the following: (1) initialization commands, (2) control...
... data, refer to the illustration below .) After a file name is typed in and the [OK] button is clicked, the printer driver creates the print data and saves it in a file with the printer, a dialog box appears so that appear are the print data. (Refer to "2.2.3 Explanation of the following: (1) initialization commands, (2) control...
Raster Command Reference
Page 16
...automatic status notification is given during printing. 5 Job ID setting commands Internal specification commands Since this command is sent with a margin amount of 0. 11 Select compression mode TIFF compression mode is switched to the printer. This is the command for "1.1" × 3.5" (29 mm ...1 Invalidate A 400-byte invalidate command is sent. 2 Initialize The "initialize" command is sent. 3 Switch dynamic command mode The printer is selected. 12 Raster data Raster data continues. 13 Print command with die-cut options. Here, "cut at end" is specified....
...automatic status notification is given during printing. 5 Job ID setting commands Internal specification commands Since this command is sent with a margin amount of 0. 11 Select compression mode TIFF compression mode is switched to the printer. This is the command for "1.1" × 3.5" (29 mm ...1 Invalidate A 400-byte invalidate command is sent. 2 Initialize The "initialize" command is sent. 3 Switch dynamic command mode The printer is selected. 12 Raster data Raster data continues. 13 Print command with die-cut options. Here, "cut at end" is specified....
Raster Command Reference
Page 25
... after sending the "invalidate" command for the appropriate number of bytes to return to the printer, a fixed size of the status, refer to the printer, this command while printing. Since error information is returned as a response from the printer. Printing Command Details NULL Invalidate ASCII: NULL Hexadecimal: 00 Description Skipped If...
... after sending the "invalidate" command for the appropriate number of bytes to return to the printer, a fixed size of the status, refer to the printer, this command while printing. Since error information is returned as a response from the printer. Printing Command Details NULL Invalidate ASCII: NULL Hexadecimal: 00 Description Skipped If...
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. (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. Used for both paper and film.
Printing Command Details 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. Used for both paper and film.
Raster Command Reference
Page 30
... type: printing state; When printing begins, it is not used, both are fixed at high speed. Unless an error occurs during printing, the printer sends the "printing completed" status. With concurrent printing, printing starts even if a print command has not been sent from the computer ...Raster Command Reference (6) Phase type and phase number If the phase number is in order to print at 00h. When printing has finished, the printer sends the "receiving state" phase status (phase type: receiving state; At this time, care should be taken since the "printing" and "waiting...
... type: printing state; When printing begins, it is not used, both are fixed at high speed. Unless an error occurs during printing, the printer sends the "printing completed" status. With concurrent printing, printing starts even if a print command has not been sent from the computer ...Raster Command Reference (6) Phase type and phase number If the phase number is in order to print at 00h. When printing has finished, the printer sends the "receiving state" phase status (phase type: receiving state; At this time, care should be taken since the "printing" and "waiting...
Raster Command Reference
Page 32
... be switched to raster mode before raster data is sent to it. A printer that receives this command to switch the printer to 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...
... be switched to raster mode before raster data is sent to it. A printer that receives this command to switch the printer to 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...
Raster Command Reference
Page 33
... bytes of raster data (d1 to dh) However, use the following value if no compression is given during printing. 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...
... bytes of raster data (d1 to dh) However, use the following value if no compression is given during printing. 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 returned. (Bit 0 of {n1...
... 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 returned. (Bit 0 of {n1...
Raster Command Reference
Page 37
... and the number of the tape width. Raster line with compression Raster line with compression, this becomes 90 bytes when it is expanded by the printer, regardless of pins within the print area is also added to the data. Printing Command Details
... and the number of the tape width. Raster line with compression Raster line with compression, this becomes 90 bytes when it is expanded by the printer, regardless of pins within the print area is also added to the data. Printing Command Details
Raster Command Reference
Page 39
...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. Sending control codes Sending raster data Status (Phase change "Printing" received. Displaying sending Initialize Status ...receive") 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. Raster Command Reference 5. Finishing process for 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. Sending control codes Sending raster data Status (Phase change "Printing" received. Displaying sending Initialize Status ...receive") 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. Raster Command Reference 5. Finishing process for printing ...
Raster Command Reference
Page 40
... last page or print command (0C) for other page) Status ("Printing completed") Status (Phase change: "Waiting to status information request) Printer The printer is a problem, an error appears. If there is initialized. Flow Charts "Printing completed" received. Finishing process for printing page 1 Sending... READ Phase change : "Printing") Data received. Reprinting 1st page - 36 - 5. When restarted, data is resent starting with the printer status (media, etc.), the data is READ transmitted. Error occurred If an error occurs, all data read from the computer is not...
... last page or print command (0C) for other page) Status ("Printing completed") Status (Phase change: "Waiting to status information request) Printer The printer is a problem, an error appears. If there is initialized. Flow Charts "Printing completed" received. Finishing process for printing page 1 Sending... READ Phase change : "Printing") Data received. Reprinting 1st page - 36 - 5. When restarted, data is resent starting with the printer status (media, etc.), the data is READ transmitted. Error occurred If an error occurs, all data read from the computer is not...