Brother International TD-2120N Raster Command Reference

Brother International TD-2120N Manual

Brother International TD-2120N manual content summary:

  • Brother International TD-2120N | Raster Command Reference - Page 1
    Software Developer's Manual Raster Command Reference TD-2020/2120N/2130N Version 1.0
  • Brother International TD-2120N | 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 TD-2120N | Raster Command Reference - Page 3
    documentation ("Documentation") provides information that will assist you in controlling your Printer TD-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 TD-2120N | Raster Command Reference - Page 4
    for serial/USB connection 43 5.10 Buffered printing normal flow for network (standard TCP/IP port) connection 44 Appendix A: USB Specifications 45 Appendix B: Introducing the Brother Developer Center 46 - i -
  • Brother International TD-2120N | Raster Command Reference - Page 5
    Reference Introduction This material provides the necessary information for directly controlling the Brother printer TD-XXXX (where "XXXX" is the model name). This information is interface. Read the model names that appear in the screens in this manual as the name of your printer. - 1 Introduction
  • Brother International TD-2120N | Raster Command Reference - Page 6
    Using raster commands an TD-XXXX printer (where "XXXX" is the model name) can be used to print without using our printer driver. This operation is codes together with raster data to the TD-XXXX printer (hereafter, referred to as "printer"). This manual describes the procedure for adding these codes
  • Brother International TD-2120N | Raster Command Reference - Page 7
    to "5. Flow Charts". For details on each command, refer to "4. 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 TD-2120N | Raster Command Reference - Page 8
    TD-2120N/2130N. (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 is analyzed, and then the status of the printer uncompressed raster data, the Brother TD-XXXX starts printing when it
  • Brother International TD-2120N | Raster Command Reference - Page 9
    once at the beginning of the job. Sequence Command Name Description/Example 1 Invalidate Sends a 200-byte invalidate command, and then resets the printer to the receiving state. 2 Initialize Initializes for printing. 1Bh, 40h (Fixed) (2) Control codes Added at the beginning of each page
  • Brother International TD-2120N | Raster Command Reference - Page 10
    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". Sends a raster line with all pixels set to "0".(Valid only when TIFF - Zero
  • Brother International TD-2120N | Raster Command Reference - Page 11
    ® 7 operating environment. A similar procedure can be performed if you are using a different operating system. Printer Properties Test page 2.2.1 Preparation Install the two listed below. ・ Printer driver of the Brother TD-XXXX ・ Binary file editor The data that we will analyze in this sample is
  • Brother International TD-2120N | Raster Command Reference - Page 12
    tab, 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 " group box. Default settings immediately after installation of the printer driver - 8 2. Print Data
  • Brother International TD-2120N | Raster Command Reference - Page 13
    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 data
  • Brother International TD-2120N | Raster Command Reference - Page 14
    Raster Command Reference 2.2.3 Explanation of print data for the test page The print data for the test page outputted in the previous section is described below. The following illustration shows the print data created in section "2.2.1 Preparation" opened in the binary file editor. Print data - 10
  • Brother International TD-2120N | Raster Command Reference - Page 15
    the printer. 4 Job ID setting commands Internal specification commands Since this is a command for outputting with the commercial version driver, it This is the command for "2.0" × 1.0" (51 mm × 26 mm)" die-cut labels. 7 Various mode settings This is a command for specifying a mode. (1Bh+69h+
  • Brother International TD-2120N | Raster Command Reference - Page 16
    2.3 Page data details 2.3.1 Resolution TD-2020,2120N Resolution Priority on print speed 203 dpi high, 203 dpi wide Priority on print quality 203 dpi high, 203 dpi wide TD-2130N Resolution Priority on print speed 300 dpi high, 300 dpi wide Priority on print quality 300 dpi high, 300 dpi wide
  • Brother International TD-2120N | Raster Command Reference - Page 17
    2.3.2 Page size (a) Continuous length tape Raster Command Reference 1 3 5 6 Feeding direction 6 5 1 3 2 4 Print area 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
  • Brother International TD-2120N | Raster Command Reference - Page 18
    area Raster Command Reference Number 1 Width 3 Print area width (maximum printing width) 5 Width offset 2 Length 4 Print area length 6 Length offset 203dpi×203dpi ID Label Size RD 51 mm x 26 mm 422 RD 2.0" x 1.0" RD 30 mm x 30 mm 431 RD 1.1" x 1.1" RD 40 mm x 40 mm 432 RD 1.5" x 1.5" RD
  • Brother International TD-2120N | Raster Command Reference - Page 19
    35 dots 3.0 mm 35 dots 2.3.3 Feed amount The feed amount (left and right margins) is defined below. 203dpi×203dpi Type Continuous length tape Die-cut labels Minimum Margin Setting Maximum Margin Setting 3 mm 0.12" 24 dots 127 mm 5" 1015 dots The length offset indicated in "(b) Die-cut
  • Brother International TD-2120N | Raster Command Reference - Page 20
    lengths are defined below. 203dpi×203dpi Type Minimum Length Continuous length tape 12 mm 0.47" 96 dots Die-cut labels Fixed 300dpi×300dpi Type Continuous length tape Die-cut labels Minimum Length 12 mm 0.47" 142 dots Fixed Raster Command Reference Maximum Length 1000 mm 39.37" 7992 dots
  • Brother International TD-2120N | Raster Command Reference - Page 21
    Raster Command Reference 2.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 TD-2120N | Raster Command Reference - Page 22
    pins Total number of pins Print area Last byte 0 pin Number of pins for left margin Pins on print head Feeding direction Continuous length tape: TD-2020/2120N Tape Size Number of Pins for Left Margin 57 mm 8 58 mm 4 Number of Print Area Pins 432 440 Number of Pins for Right
  • Brother International TD-2120N | Raster Command Reference - Page 23
    Raster Command Reference Die-cut labels: TD-2020/2120N Label Size 51 mm x 26 mm 30 mm x 30 mm 40 mm x 40 mm 40 mm x 50 mm 40 mm x 60 mm 50 mm x 30mm 60mm x 60mm TD-2130N Label Size 51 mm x 26 mm 30 mm x 30 mm 40 mm x 40 mm 40 mm x 50 mm 40
  • Brother International TD-2120N | Raster Command Reference - Page 24
    Raster Command Reference 3. Print Command List ASCII Code NULL ESC @ ESC i S ESC i a ESC i U w 1 ESC i z ESC i M ESC i d M g Z FF Control-Z Binary Code 00 1B 40 1B 69 53 1B 69 61 1B 69 55 77 01 1B 69 7A 1B 69 4D 1B 69 64 4D 67 5A 0C 1A Description Invalidate Initialize Status information request
  • Brother International TD-2120N | Raster Command Reference - Page 25
    mode settings.  Also used to cancel printing. ESC i S Status information request ASCII: ESC i S Hexadecimal: 1B 69 53 Description  Send a request to the printer for status information. For details on the status, refer to the previous section.  The size is fixed at 32 bytes. Note Before
  • Brother International TD-2120N | Raster Command Reference - Page 26
    24 8 Reserved Raster Command Reference Value/Reference Fixed at 80h Fixed at 20h Fixed at "B" (42h) Fixed at "5" (35h) TD-2020: Fixed at "3" (33h) TD-2120N: Fixed at "5"(35h) TD-2130N: Fixed at "6" (36h) Fixed at "0" (30h) Refer to table (8) below. Fixed at "00h" Refer to table (1) below. Refer
  • Brother International TD-2120N | Raster Command Reference - Page 27
    40h 80h Mask 01h 02h 04h 08h 10h 20h 40h 80h Definition "No media" error "End of media" error (only for die-cut labels) (Not used) (Not used) Printer in use (Not used) (Not used) (Not used) Definition "Replace media" error (with a serial connecting) Wrong media (Not used) Communication error (Not
  • Brother International TD-2120N | Raster Command Reference - Page 28
    * Media Width: The tape width is indicated in millimeters. * Media Length: Fixed at 00h Media Media Width 57 mm 57 58 mm 58 (b) Die-cut labels * Media Width: The width of the die-cut section is indicated. * Media Length: The length of the die-cut section is indicated. Media Media Width
  • Brother International TD-2120N | Raster Command Reference - Page 29
    used) 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. Description (6) Phase type and phase number If the phase number is not used, both are fixed at 00h. Phase State
  • Brother International TD-2120N | Raster Command Reference - Page 30
    number Notification Not available Cooling (started) Cooling (finished) Waiting for peeling Finished waiting for peeling (Not used:Reserved) Printer paused Finished printer pause (Not used:Reserved) (8) Battery level Battery Level Full Half Low Charging required AC adaptor in use Raster Command
  • Brother International TD-2120N | Raster Command Reference - Page 31
    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 TD-XXXX ・Binary file editor. The data outputted with the "Save Paper Size Commands" function of Paper Size Setup will be
  • Brother International TD-2120N | Raster Command Reference - Page 32
    Raster Command Reference 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 TD-2120N | Raster Command Reference - Page 33
    #define PI_LENGTH 0x08 // Media length #define PI_QUALITY 0x40 // Priority given to print quality #define PI_RECOVER 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 the media of
  • Brother International TD-2120N | Raster Command Reference - Page 34
    : ESC i d {n1} {n2} Hexadecimal: 1B 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. (a) Continuous length tape Paper Tape Print area (b) Die-cut
  • Brother International TD-2120N | Raster Command Reference - Page 35
    of data units is specified as the number of bytes minus 1, expressed as a positive number.  If the above process results in more than 56 bytes (TD-2020/2120N) or 85 bytes (TD-2130N) of compressed data, the data is treated as being all different. As a result, the data will be 57 bytes
  • Brother International TD-2120N | Raster Command Reference - Page 36
    is based on 56 bytes (TD-2020/2120N) or 84 bytes (TD-2130N) of the total number of pins (TD-2020/2120N: 448 and TD-2130N: 672). As shown below with compression, this becomes 104 bytes when it is expanded by the printer, regardless of the tape width. Raster line with compression Raster line with
  • Brother International TD-2120N | Raster Command Reference - Page 37
    of bytes of raster data (d1 to dh) However, use the following value if no compression is specified as the compression mode. TD-2020/2120N:n=56 TD-2130N:n=84 {d1~dn} Raster data. Z Zero raster graphics ASCII: Z Hexadecimal: 5A Description  Fills raster line with 0 data. FF Print command
  • Brother International TD-2120N | Raster Command Reference - Page 38
    printing is performed as buffered printing. However, if the printer is connected via USB and uncompressed data is received, concurrent printing is performed. Note: Concurrent printing:Printing starts immediately after the printer receives print data. Buffered printing:Printing starts after one page
  • Brother International TD-2120N | Raster Command Reference - Page 39
    data is READ transmitted. If there is a problem, an error appears. Displaying sending Invalidate Initialize Status information request Status (response to status information request) Printer The printer is reset. The printer is initialized. The status of the printer (media, etc.) is checked and
  • Brother International TD-2120N | Raster Command Reference - Page 40
    is READ transmitted. If there is a problem, an error appears. Displaying sending Invalidate Initialize Status information request Status (response to status information request) Printer The printer is reset. The printer is initialized. The status of the printer (media, etc.) is checked and
  • Brother International TD-2120N | Raster Command Reference - Page 41
    status (media, etc.), the data is transmitted. If there is a problem, an error appears. READ Displaying sending Invalidate Initialize Printer Any jobs with errors remaining in the printer are cleared. The printer is initialized. Status information request Status (response to status information
  • Brother International TD-2120N | Raster Command Reference - Page 42
    5.4 Concurrent 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. Displaying sending Invalidate Initialize Status information request Status (response to
  • Brother International TD-2120N | Raster Command Reference - Page 43
    data is READ transmitted. If there is a problem, an error appears. Displaying sending Invalidate Initialize Status information request Status (response to status information request) Printer The printer is reset. The printer is initialized. The status of the printer (media, etc.) is checked and
  • Brother International TD-2120N | Raster Command Reference - Page 44
    READ transmitted. If there is a problem, an error appears. Displaying sending Invalidate Initialize Status information request Status (response to status information request) Sending control codes Sending raster data Printer The printer is reset. The printer is initialized. The status of the
  • Brother International TD-2120N | Raster Command Reference - Page 45
    data is transmitted. If there is a problem, an error appears. Invalidate Initialize Status information request Status (response to status information request) or an error is displayed Printer The printer is reset. The printer is Initialized. The status of the printer (media, etc.) is checked and
  • Brother International TD-2120N | Raster Command Reference - Page 46
    , etc.), the READ data is transmitted. If there is a problem, an error appears. Invalidate Initialize Status information request Status (response to status information request) Printer The printer is reset. The printer is initialized. Status (response to status request) Displaying sending
  • Brother International TD-2120N | Raster Command Reference - Page 47
    etc.), the data is READ transmitted. If there is a problem, an error appears. Displaying sending Invalidate Initialize Status information request Status (response to status information request) Sending control codes Printer The printer is reset. The printer is initialized. The status of the
  • Brother International TD-2120N | Raster Command Reference - Page 48
    data Sending raster data Sending raster data Sending raster data Printing begins since the data for the first page was received. Printing 1nd page Printer buffer is full. BUSY Sending raster data BUSY Sending raster data BUSY Since transmission of the print data was completed, the job is
  • Brother International TD-2120N | Raster Command Reference - Page 49
    Device speed Number of interfaces Power supply End point 1 End point 2 Description 0x04F9 TD-2020 : 0x2055 TD-2120N : 0x2057 TD-2130N : 0x2058 Printer Mass storage Character string descriptor: 0x01 0x0409: "Brother" Character string descriptor: 0x03 0x0409: "000000001" Last twelve digits of the
  • Brother International TD-2120N | Raster Command Reference - Page 50
    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 - 46 Appendix B: Introducing the Brother Developer Center
  • Brother International TD-2120N | Raster Command Reference - Page 51
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51

Software Developer's Manual
Raster Command Reference
TD-2020/2120N/2130N
Version 1.0