Brother International RJ-2150 Raster Command Reference
Brother International RJ-2150 Manual
View all Brother International RJ-2150 manuals
Add to My Manuals
Save this manual to your list of manuals |
Brother International RJ-2150 manual content summary:
- Brother International RJ-2150 | Raster Command Reference - Page 1
Software Developer's Manual Raster Command Reference RJ-4250WB/4230B/3050/3150/2030/2050/2140/2150 Version 1.03 - Brother International RJ-2150 | Raster Command Reference - Page 2
is mentioned in this document has a Software License Agreement specific to its proprietary programs. Any trade names and product names of companies appearing on Brother products, related documents and any other materials are all trademarks or registered trademarks of those respective companies. - Brother International RJ-2150 | Raster Command Reference - Page 3
documentation ("Documentation") provides information that will assist you in controlling your Printer RJ-XXXX (where "XXXX" is the model name). You may use or alteration of the Documentation or Printer Model will be performed at the sole discretion of Brother. Brother may not respond to any request - Brother International RJ-2150 | Raster Command Reference - Page 4
Raster Command Reference Contents 1. Introduction 1 2. About Raster Commands 2 3. Printing Using Raster Commands 3 4. Print Data 5 4.1 Print data overview 5 4.2 Sample (analyzing the print data of the test page 7 4.2.1 Preparation...7 4.2.2 Checking the print data 8 4.2.3 Explanation of - Brother International RJ-2150 | Raster Command Reference - Page 5
Raster Command Reference Appendix A: USB Specifications 49 Appendix B: Introducing the Brother Developer Center 50 - ii - - Brother International RJ-2150 | Raster Command Reference - Page 6
in this material, affecting software, data or hardware, including the Brother printer RJ-XXXX, and any problems resulting directly or indirectly from them. These materials are provided in the model names that appear in the screens in this manual as the name of your printer. - 1 - 1. Introduction - Brother International RJ-2150 | Raster Command Reference - Page 7
of dots). Refer to this material to print by sending initialization commands and control codes together with raster data to the RJ-XXXX printer (hereafter, referred to as "printer"). This manual describes the procedure for adding these codes and sending the data. - 2 - 2. About Raster Commands - Brother International RJ-2150 | Raster Command Reference - Page 8
to "8. Flow Charts". For details on each command, refer to "7. Printing Command Details". (1) Open the port Port (2) Send the status (Confirm the printer status (3) Send the print data At your side Computer, mobile terminal, etc. (5) Send the status (Confirm that printing is completed.) Your - Brother International RJ-2150 | Raster Command Reference - Page 9
is sent. The structure of the print data is explained in the next section, "4. Print Data". Note: No command can be sent to the printer after the print data is transmitted and until the completion of printing is confirmed. Even the "status information request" command cannot be sent during printing - Brother International RJ-2150 | Raster Command Reference - Page 10
invalidate command with the RJ-4250WB/4230B/3050/3150 or a 200-byte invalidate command with the RJ-2030/2050/2140/2150, and then resets the printer to the receiving is given during printing. 1Bh, 69h, 21h, 00h *The RJ-3000 / RJ-2000 does not support this command. 1Bh, 69h, 55h, 77h, 01h, 127 bytes - Brother International RJ-2150 | Raster Command Reference - Page 11
Raster Command Reference (3) Raster data Repeated for each page in the print job. Sequence Command Name Description/Example - Raster graphics transfer Sends a raster line that contains data with pixels set to "ON". - Zero raster graphics Sends a raster line with all pixels set to "0". 5Ah ( - Brother International RJ-2150 | Raster Command Reference - Page 12
® 7 operating environment. A similar procedure can be performed if you are using a different operating system. Printer Properties Test page 4.2.1 Preparation Install the two listed below. ・ Printer driver of the Brother RJ-XXXX ・ Binary file editor The data that we will analyze in this sample is - Brother International RJ-2150 | Raster Command Reference - Page 13
RJ-4250WB: \HKEY_LOCAL_MACHINE\SOFTWARE\Brother Industries, Ltd.\P-touch\Driver\3.0\Brother RJ-4250WB RJ-4230B: \HKEY_LOCAL_MACHINE\SOFTWARE\Brother Industries, Ltd.\P-touch\Driver\3.0\Brother RJ is provided below. Step 1: Change the port of the printer to "FILE:". Step 2: Print the desired item (in - Brother International RJ-2150 | Raster Command Reference - Page 14
's Properties dialog box, select the "FILE:" check box, and then click the [Apply] button. [Ports] tab of the printer Properties dialog box Step 2: Print the item (in this case, the test page), and then specify the file name. For this sample, print the test - Brother International RJ-2150 | Raster Command Reference - Page 15
that the file name can be specified. (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 specified name. Dialog box for specifying the file name Step 3: Open the print - Brother International RJ-2150 | Raster Command Reference - Page 16
previous section is described below. The following illustration shows the print data created in section "4.2.1 Preparation" opened in the binary file editor. Print data (Left: RJ-3000 and RJ-2000, Right: RJ-4200) - 11 - 4. Print Data - Brother International RJ-2150 | Raster Command Reference - Page 17
Name Description 1 Invalidate A 350-byte invalidate command is sent. (With the RJ-2000, a 200-byte invalidate command is sent.) 2 Initialize The "initialize" command is sent. 3 Switch dynamic command mode The printer is switched to raster mode. Send this command before sending raster data - Brother International RJ-2150 | Raster Command Reference - Page 18
Print area 2 4 Feeding direction Landscape Number 1 Width 3 Print area width (maximum printing width) 5 Width offset Portrait 2 Length 4 Print area length 6 Length offset RJ-2000 ID Tape Size RD 50 mm 442 RD 1.9" RD 58 mm 426 RD 2.2" 1 50.0 mm 400 dots 58.0 mm 464 dots 2 →4.3.4 →4.3.4 3 47 - Brother International RJ-2150 | Raster Command Reference - Page 19
Raster Command Reference RJ-3000 ID Tape Size RD 50 mm 442 RD 1.9" RD 58 mm 426 640 dots 2 →4.3.4 →4.3.4 →4.3.4 →4.3.4 3 47.0 mm 376 dots 55.1 mm 440 dots 72.1 mm 576 dots 72.1 mm 576 dots RJ-4200 ID Tape Size RD 50 mm 442 RD 1.9" RD 102 mm 415 RD 4" 1 50.0 mm 400 dots 101.6 mm 812 dots - Brother International RJ-2150 | Raster Command Reference - Page 20
width (maximum printing width) 5 Width offset 2 Length 4 Print area length 6 Length offset RJ-2000 ID Label Size RD 50 mm x 85 mm 427 RD 1.9" x 3.3" RD 51 dots 1.5 mm 12 dots 6 3.0 mm 24 dots 3.0 mm 24 dots 3.0 mm 24 dots RJ-3000 ID Label Size RD 50 mm x 85 mm 427 RD 1.9" x 3.3" RD 60 - Brother International RJ-2150 | Raster Command Reference - Page 21
Raster Command Reference RJ-4200 ID Label Size 1 RD 50 mm x 85 mm 427 RD 1.9" x 3.3" 50.0 mm 400 dots RD 60 mm x 92 mm 428 RD 2.3" x 3.6" 60.0 mm 480 - Brother International RJ-2150 | Raster Command Reference - Page 22
The maximum and minimum lengths are defined below. Type Minimum Length Continuous length tape 12.0 mm 0.47" 96 dots Die-cut labels Fixed Maximum Length RJ-2000 / RJ-3000 RJ-4200 1000.0 mm 39.37" 7992 dots 3000.0 mm 118.11" 23977 dots Fixed - 17 - 4. Print Data - Brother International RJ-2150 | Raster Command Reference - Page 23
Raster Command Reference 4.3.5 Raster line As shown below, the parts with data to be printed are converted with "raster graphics transfer", and the parts with no data are converted with "zero raster graphics". On the actual tape, margins (feed) are added specified with "various mode settings" at - Brother International RJ-2150 | Raster Command Reference - Page 24
Raster Command Reference RJ-2000 Total number of pins: 432 pins Number of pins for right margin Raster line First byte Left and right margins Number of print area - Brother International RJ-2150 | Raster Command Reference - Page 25
Raster Command Reference RJ-3000 Total number of pins: 576 pins Number of pins for right margin Raster line First byte Left and right margins Number of print area - Brother International RJ-2150 | Raster Command Reference - Page 26
RJ-4200 Total number of pins: 832 pins Number of pins for right margin Raster line First byte Left and right margins Raster Command Reference Number - Brother International RJ-2150 | Raster Command Reference - Page 27
printer to the computer as a reply to the "status information request" command or as an error message. The size is fixed at 32 bytes. Number Offset Size Name Value/Reference 1 0 1 Print head mark Fixed at 80h 2 1 1 Size Fixed at 20h 3 2 1 Brother 1 Mode RJ-3000: 00h RJ-4200/RJ-2000: - Brother International RJ-2150 | Raster Command Reference - Page 28
Raster Command Reference 24 23 1 Expansion area (number of bytes) Fixed at 00h 25 24 8 Reserved Fixed at 00h - 23 - 5. Status - Brother International RJ-2150 | Raster Command Reference - Page 29
Command Reference 5.2 Definitions of each part 5.2.1 Series/model Model name RJ-2030 RJ-2050 RJ-2140 RJ-2150 RJ-3050 RJ-3150 RJ-4230B RJ-4250WB Status code Series Model "7" (37h) "6" (36h) Battery weak (empty) (Not used) Printer turned off (Not used) (Not used) Definition - 24 - 5. Status - Brother International RJ-2150 | Raster Command Reference - Page 30
Raster Command Reference 5.2.3 Error information 2 Flag Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Mask 01h 02h 04h 08h 10h 20h Bit 6 40h Bit 7 80h Definition (Not used) "Expansion buffer full" error Communication error (Not used) "Cover open" error Overheating error Media cannot be fed (also when - Brother International RJ-2150 | Raster Command Reference - Page 31
80 mm Media Width 32h 3Ah 4Ch 50h Media Length 00h 00h 00h 00h RJ-4200 Media 58 mm 102 mm Media Width 3Ah 66h Media Length 00h 00h die-cut section is indicated. * Media Length: The length of the die-cut section is indicated. RJ-2000 Media 50 mm x 85 mm 51 mm x 26 mm 55 mm x 40 mm Media Width - Brother International RJ-2150 | Raster Command Reference - Page 32
Media 50 mm x 85 mm 60 mm x 92 mm 76 mm x 44 mm RJ-4200 Media 50 mm x 85 mm 60 mm x 92 mm 80 mm x 115 mm 102 mm x 26 mm 102 mm x 50 mm 102 mm x 76 - Brother International RJ-2150 | Raster Command Reference - Page 33
Order Bytes 00h Lower Order Bytes 00h Higher Order Bytes 00h Lower Order Bytes 00h ⚫ When the printer is turned on, it is in the receiving state. When printing begins, the printer changes to the "printing" phase (phase type: printing state; phase number: printing) and sends that phase status - Brother International RJ-2150 | Raster Command Reference - Page 34
5.2.8 Notification number Notification Not available Cooling (started) Cooling (finished) Waiting for peeling Raster Command Reference Value 00h 03h 04h 05h - 29 - 5. Status - Brother International RJ-2150 | Raster Command Reference - Page 35
level Full Half Low Need to be charged Using AC adaptor Value 0b00000 (0) 0b00001 (1) 0b00010 (2) 0b00011 (3) 0b00100 (4) Protocol: "0b001" (RJ-4200) Bit 76 5 Definition Protocol 4 AC adaptor 3 2 Reserved 1 0 Battery Level AC adaptor AC adaptor connected AC adaptor not connected Value - Brother International RJ-2150 | Raster Command Reference - Page 36
Raster Command Reference 6. Print Command List ASCII Code NULL ESC @ ESC i S ESC i a ESC i ! ESC i U w ESC i z ESC i d M g Z FF Control-Z ESC i CAN Binary Code 00 1B 40 1B 69 53 1B 69 61 1B 69 21 1B 69 55 77 1B 69 7A 1B 69 64 4D 67 5A 0C 1A 1B 69 18 Description Invalidate Initialize Status - Brother International RJ-2150 | Raster Command Reference - Page 37
bytes depending on the model will be sent. (RJ-4200 / RJ-3000: 350 bytes, RJ-2000: 200 bytes) Raster Command Reference ESC @ ASCII: ESC Hexadecimal: 1B i S 69 53 Description ⚫ Send a request to the printer for status information. For details on the status, refer to the previous section. ⚫ The - Brother International RJ-2150 | Raster Command Reference - Page 38
must be switched to raster mode before raster data is sent to it. Therefore, send this command to switch the printer to raster mode. ESC i ! Switch automatic status notification mode ASCII: ESC Hexadecimal: 1B i ! {n1} 69 21 {n1} Parameters Definitions of {n1} 0: Notify. (default) 1: Do - Brother International RJ-2150 | Raster Command Reference - Page 39
send the additional media information command. "Save Paper Size Commands" function of Paper Size Setup 1. Preparation Install the two listed below. ・Printer driver of the Brother RJ-XXXX ・Binary file editor. The data outputted with the "Save Paper Size Commands" function of Paper Size Setup will be - Brother International RJ-2150 | Raster Command Reference - Page 40
Raster Command Reference 2. Open the [Devices and Printers] window, right-click the printer, and then display the Printing Preferences dialog box. Click the [Paper Size Setup] button on the [Basic] tab to display the Paper Size Setup dialog - Brother International RJ-2150 | Raster Command Reference - Page 41
1 {n10}: Fixed at 0 ⚫ If the media is not correctly loaded into the printer when the valid flag for PI_KIND, PI_WIDTH and PI_LENGTH are set to "ON", an error (Bit 0 of "5.2.3 Error information 2" is set to "ON".) ⚫ RJ-4200 will not send the statuses ("Printing", "Printing completed", "Phase change - Brother International RJ-2150 | Raster Command Reference - Page 42
Raster Command Reference ESC i d Specify margin amount (feed amount) ASCII: ESC Hexadecimal: 1B i d {n1} {n2} 69 64 {n1} {n2} Description ⚫ Specifies the amount of the margins. ⚫ Margin amount (dots) = n1 + n2*256 ⚫ With die-cut labels, the margin amount at the ends of the printed area is 0. - Brother International RJ-2150 | Raster Command Reference - Page 43
mode. Data compression is available only for data in raster graphic transfer. ⚫ Registry has to be added in order to use TIFF compression mode on RJ-4200. For details, refer to section 4.2.1 Preparation. [TIFF(Pack Bits)] ⚫ 1-byte units ⚫ If the same data is repeated, the number of data units and - Brother International RJ-2150 | Raster Command Reference - Page 44
Raster Command Reference Continue for the remaining number of bytes for the uncompressed data. Even if 00h continues until the end, it cannot be omitted. - 39 - 7. Printing Command Details - Brother International RJ-2150 | Raster Command Reference - Page 45
mode" With compression, the data for the "raster graphics transfer" command is based on 104bytes (RJ-4200), 72 bytes (RJ-3000) or 54 bytes (RJ-2000) of the total number of pins (RJ-4200: 832, RJ-3000: 576 and RJ-2000: 432). As shown below, with no compression, the sum of the number of offset pins - Brother International RJ-2150 | Raster Command Reference - Page 46
of raster data (d1 to dh) However, use the following value if no compression is specified as the compression mode. (RJ-4200: n = 104, RJ-3000: n = 72, RJ-2000: n = 54) {d1~dn} Raster data. Z Zero raster graphics ASCII: Z Hexadecimal: 5A Description ⚫ Fills raster line with 0 data. FF Print - Brother International RJ-2150 | Raster Command Reference - Page 47
page depending on the cancel timing. ⚫ Printing will not be cancelled after receiving the "Control-Z Print command with feeding". ⚫ Used to initialize mode settings for RJ-3000 and RJ-2000. For details, refer to "ESC @ Initialize". - 42 - 7. Printing Command Details - Brother International RJ-2150 | Raster Command Reference - Page 48
Raster Command Reference 8. Flow Charts RJ-XXXX printers perform as buffered printing. Buffered printing is a method that a print starts after one page of print data is received. . - 43 - 8. Flow Charts - Brother International RJ-2150 | Raster Command Reference - Page 49
printing normal flow for USB connection Computer (host) Invalidate If there are no problems with the printer status (media, etc.), the data is READ transmitted. If there is a problem, an error appears. Initialize Status information request Status (response to status information request - Brother International RJ-2150 | Raster Command Reference - Page 50
printing error flow for USB connection Computer (host) Invalidate If there are no problems with the printer status (media, etc.), the READ data is transmitted. If there is a problem, an error appears. Initialize Status information request Status (response to status information request - Brother International RJ-2150 | Raster Command Reference - Page 51
Buffered printing cooling flow for USB connection Computer (host) If there are no problems with the printer status (media, etc.), the READ data is transmitted. If there is a problem, an error appears. Invalidate Initialize Status information request Status (response to status information - Brother International RJ-2150 | Raster Command Reference - Page 52
waiting for peeling/resumed flow for USB connection Computer (host) If there are no problems with the printer status (media, etc.), the data is transmitted.READ If there is a problem, an error appears Displaying sending Invalidate Initialize Status information request Status (response to status - Brother International RJ-2150 | Raster Command Reference - Page 53
If there are no problems with the printer status (media, etc.), the data is READ transmitted. If there is a problem, an error appears codes Sending raster data Sending raster data Printer Printer reset The printer is initialized. The status of the printer (media, etc.) is checked and - Brother International RJ-2150 | Raster Command Reference - Page 54
RJ-3050: 2068 RJ-3150: 2069 RJ-2030: 2091 RJ-2050: 2092 RJ-2140: 2093 RJ-2150: 2094 Printer Character string descriptor: 0x01 0x0409: "Brother" Character string descriptor: 0x02 0x0409: "RJ-4250WB" 0x0409: "RJ-4230B" 0x0409: "RJ-3050" 0x0409: "RJ-3150" 0x0409: "RJ-2030" 0x0409: "RJ-2050" 0x0409: "RJ - Brother International RJ-2150 | Raster Command Reference - Page 55
Reference Appendix B: 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 - 50 Appendix B: Introducing the Brother Developer Center - Brother International RJ-2150 | Raster Command Reference - Page 56
Software Developer's Manual
Raster Command Reference
RJ
-
4250WB/4230B/3050/3150/2030/2050/2140/2150
Version 1.03