Brother International TD-4520DN Raster Command Reference

Brother International TD-4520DN Manual

Brother International TD-4520DN manual content summary:

  • Brother International TD-4520DN | Raster Command Reference - Page 1
    Software Developer's Manual Raster Command Reference TD-4410D/4420DN/4510D/4520DN/4550DNWB/ 4210D Version 1.02
  • Brother International TD-4520DN | 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-4520DN | Raster Command Reference - Page 3
    Documentation. No Warranty a. Any updates, upgrades or alteration of the Documentation or Printer Model will be performed at the sole discretion of Brother. Brother may not respond to any request or inquiry about the Documentation. b. THIS DOCUMENTATION IS PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF
  • Brother International TD-4520DN | Raster Command Reference - Page 4
    Updates Version 1.00 1.01 1.02 Date 02/12/2019 04/12/2019 17/01/2022 Contents changed Initial version for TD-4410D/4420DN/4510D/4520DN/4550DNWB Fixed the default value for the "Automatic Status Notification Mode" Added TD-4210D Added EPL/DPL mode for the "Switch dynamic command mode" - i -
  • Brother International TD-4520DN | Raster Command Reference - Page 5
    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 TD-4520DN | Raster Command Reference - Page 6
    flow in USB/Bluetooth connection 47 8.7 Buffered printing normal flow for network (standard TCP/IP port) connection 48 Appendix A: USB Specifications 49 Appendix B: Introducing the Brother Developer Center 50 - iii -
  • Brother International TD-4520DN | Raster Command Reference - Page 7
    in this material, affecting software, data or hardware, including the Brother printer TD-4xxxD, 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 TD-4520DN | Raster Command Reference - Page 8
    raster commands an TD-4xxxD printer (where "4xxxD" is the model name) can be used to print without using our printer driver. This operation codes together with raster data to the TD-4xxxD printer (hereafter, referred to as "printer"). This manual describes the procedure for adding these codes
  • Brother International TD-4520DN | Raster Command Reference - Page 9
    Raster Command Reference 3. Printing Using Raster Commands The printing procedure is described below. For detailed flow charts, refer 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)
  • Brother International TD-4520DN | Raster Command Reference - Page 10
    Raster Command Reference (1) Open the USB/network port Open the USB/network port in the operating environment. The procedure for opening the USB/network port is not described in this material. (2) Confirm the printer status sent from the printer The "status information request" command is sent to
  • Brother International TD-4520DN | Raster Command Reference - Page 11
    Raster Command Reference 4. Print Data 4.1 Print data overview The print data is constructed of the following: (1) initialization commands, (2) control codes, (3) raster data, and (4) print commands. If the print job consists of multiple pages, (2) through (4) are repeated. (1) Initialization
  • Brother International TD-4520DN | Raster Command Reference - Page 12
    that is not the last page. 0Ch Specifies at the end of the last page. 1Ah (Fixed) Resets the command mode of the printer to default mode. 1Bh, 69h, 61h, FFh - 6 - 4. Print Data
  • Brother International TD-4520DN | Raster Command Reference - Page 13
    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 TD-4xxxD ・ Binary file editor The data that we will analyze in this sample is a binary file. Therefore, use a binary file
  • Brother International TD-4520DN | Raster Command Reference - Page 14
    in TreeView on the left-side of the Registry Editor. \HKEY_LOCAL_MACHINE\SOFTWARE\Brother Industries, Ltd.\P-touch\Driver\3.0\Brother TD-4xxxD E.g. TD-4410D: \HKEY_LOCAL_MACHINE\SOFTWARE\Brother Industries, Ltd.\P-touch\Driver\3.0\Brother TD-4410D 4: Right-click on the right pane and select [New
  • Brother International TD-4520DN | Raster Command Reference - Page 15
    Step 2: Print the item (in this case, the test page), and then specify the file name. For this sample, print the test page with the default print settings, which were specified immediately after the printer driver was installed. Default settings immediately after installation of the printer
  • Brother International TD-4520DN | Raster Command Reference - Page 16
    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-4520DN | Raster Command Reference - Page 17
    Raster Command Reference 4.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 "4.2.1 Preparation" opened in the binary file editor. Print data - 11
  • Brother International TD-4520DN | Raster Command Reference - Page 18
    Since this is a command for outputting with the commercial version of the driver, it is unnecessary for the user to send this command. 6 Additional page. 16 Switch dynamic command mode This command resets to default mode that is switched by No.3. Send this command after [Print command with feeding] is
  • Brother International TD-4520DN | Raster Command Reference - Page 19
    /4420DN/4210D - 203 dpi high, 203 dpi wide TD-4510D/4520DN/4550DNWB - 300 dpi high, 300 dpi wide 4.3.2 Page size (a) Continuous length tape Raster Command Reference Height-to-Width Proportion 1:1 1 3 5 6 Feeding direction 6 5 1 3 2 4 Print area Print area 2 4
  • Brother International TD-4520DN | Raster Command Reference - Page 20
    dots 72.9 mm 583 dots 55.1 mm 440 dots 4 →4.3.5 →4.3.5 →4.3.5 →4.3.5 5 1.5 mm 12 dots 1.5 mm 12 dots 1.5 mm 12 dots 1.5 mm 12 dots 6 →4.3.3 →4.3.3 →4.3.3 →4.3.3 TD-4510D/4520DN/4550DNWB (300 dpi) ID Tape Size 1 2 3 RD 102 mm 415 RD 4" 101.6 mm 1200 dots →4.3.4 98.6 mm 1164 dots RD 90
  • Brother International TD-4520DN | Raster Command Reference - Page 21
    printing width) 5 Width offset 2 Length 4 Print area length 6 Length offset TD-4410D/4420DN/4210D (203 dpi) ID Label Size 1 RD 102 mm x 152 6 3.0 mm 24 dots 3.0 mm 24 dots 3.0 mm 24 dots 3.0 mm 24 dots TD-4510D/4520DN/4550DNWB (300 dpi) ID Label Size 1 2 RD 102 mm x 152 420 mm 101
  • Brother International TD-4520DN | Raster Command Reference - Page 22
    dots 142 dots (300 dpi) Die-cut labels Fixed Maximum Length 3000.0 mm 118.11" 23977 dots 35433 dots (300 dpi) Fixed The minimum length supported by the optional units are defined below. Optional Unit Minimum Length Peeler 12.7 mm 0.50" 102 dots (203 dpi) 150 dots (300 dpi) Auto-cutter
  • Brother International TD-4520DN | 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 TD-4520DN | Raster Command Reference - Page 24
    Raster Command Reference TD-4410D/4420DN/4210D (203 dpi) Total number of pins: 832 pins Number of pins for right margin Raster line First byte Left and right margins
  • Brother International TD-4520DN | Raster Command Reference - Page 25
    Raster Command Reference Die-cut labels: Label Size 102 mm x 152 mm 102 mm x 50 mm 76 mm x 26 mm 51 mm x 26 mm Number of Pins for Left Margin 22 22 124 225 Number of Print Area Pins Number of Pins for Right Margin Number of Bytes for Raster Graphics Transfer 788 22 104 788 22 104 585
  • Brother International TD-4520DN | Raster Command Reference - Page 26
    Raster Command Reference TD-4510D/4520DN/4550DNWB (300 dpi) Total number of pins: 1280 pins Number of pins for right margin Raster line First byte Left and right margins Number of
  • Brother International TD-4520DN | Raster Command Reference - Page 27
    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 code Fixed at "B" (42h) 4 3 1 Series code Refer to 5.2.1 Series/model 5 4 1 Model code Refer to 5.2.1 Series/model 6 5 1 Country code Fixed
  • Brother International TD-4520DN | Raster Command Reference - Page 28
    Raster Command Reference 5.2 Definitions of each part 5.2.1 Series/model Model name TD-4410D TD-4420DN TD-4510D TD-4520DN TD-4550DNWB TD-4210D Status code Series Model "5" (35h) "7" (37h) "5" (35h) "8" (38h) "5" (35h) "9" (39h) "5" (35h) "A" (41h) "5" (35h) "B" (42h) "5" (35h) "C" (
  • Brother International TD-4520DN | Raster Command Reference - Page 29
    Raster Command Reference 5.2.3 Error information 2 Flag Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Mask 01h 02h 04h 08h 10h 20h 40h 80h Definition (Not used) "Expansion buffer full" error Communication error (Not used) "Cover open" error (Not used) Media cannot be fed (also when the media
  • Brother International TD-4520DN | Raster Command Reference - Page 30
    Raster Command Reference 5.2.4 Media width and length The media width and length is described in millimeters. 0 ~ 255 (0 to FFh) (a) Continuous length tape * Media Width: The tape width is indicated in millimeters. * Media Length: Fixed at 00h Media 102 mm 90 mm 76 mm 58 mm Media Width 66h 5Ah
  • Brother International TD-4520DN | Raster Command Reference - Page 31
    Raster Command Reference 5.2.6 Status type Status Type Reply to status request Printing completed Error occurred Exit IF mode Turned off Notification Phase change (Not used) (Reserved) Value 00h 01h 02h 03h(Not used) 04h 05h 06h 08h ~ 20h 21h ~ FFh 5.2.7 Phase type and phase number If the phase
  • Brother International TD-4520DN | Raster Command Reference - Page 32
    5.2.8 Notification number Notification Not available Cooling (started) Cooling (finished) Waiting for peeling Pausing Raster Command Reference Value 00h 03h 04h 05h 07h - 26 - 5. Status
  • Brother International TD-4520DN | Raster Command Reference - Page 33
    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 ESC i w ESC i A ESC i M ESC i K 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 1B 69 77 1B 69
  • Brother International TD-4520DN | Raster Command Reference - Page 34
    7. Printing Command Details NULL Invalidate ASCII: NULL Hexadecimal: 00 Description ⚫ Skipped ⚫ 350 bytes will be sent. ESC @ Initialize ASCII: ESC @ Hexadecimal: 1B 40 Description ⚫ Initializes mode settings. Raster Command Reference ESC i S Status information request ASCII: ESC i S
  • Brother International TD-4520DN | Raster Command Reference - Page 35
    status notification mode ASCII: ESC i ! {n1} Hexadecimal: 1B 69 21 {n1} Parameters Definitions of {n1} 0: Notify. 1: Do not notify. (default) Description ⚫ Dynamically switches whether the automatic status notification is given during printing. A printer that receives this command operates in
  • Brother International TD-4520DN | Raster Command Reference - Page 36
    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-4xxxD ・Binary file editor. The data outputted with the "Save Paper Size Commands" function of Paper Size Setup will be
  • Brother International TD-4520DN | Raster Command Reference - Page 37
    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 box. (Refer to the illustration below.) Click [Save Paper
  • Brother International TD-4520DN | Raster Command Reference - Page 38
    Raster Command Reference ESC i z Print information command ASCII: ESC i z {n1} {n2} {n3} {n4} {n5} {n6} {n7} {n8} {n9} {n10} Hexadecimal: 1B 69 7A {n1} {n2} {n3} {n4} {n5} {n6} {n7} {n8} {n9} {n10} Description ⚫ Specifies the print information. ⚫ Definitions of {n1} through {n10} {n1}: Valid
  • Brother International TD-4520DN | Raster Command Reference - Page 39
    ESC i d Specify margin amount (feed amount) ASCII: 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
  • Brother International TD-4520DN | Raster Command Reference - Page 40
    1, expressed as a positive number. ⚫ If the above process results in more than 104 bytes of compressed data with TD-4410D/4420DN/4210D (203 dpi) or 160 bytes of compressed data with TD-4510D/4520DN/4550DNWB (300 dpi), the data is treated as being all different. As a result, the data will be 105
  • Brother International TD-4520DN | Raster Command Reference - Page 41
    Raster Command Reference Example 1 raster of raster graphics transfer: Without compression: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 22 23 BA BF A2 22 2B...... With compression: ED 00 FF 22 05 23 BA BF A2 22 2B ... a b c a. Since "00h" is repeated for 20 bytes, 20d ->
  • Brother International TD-4520DN | Raster Command Reference - Page 42
    number of unused pins is also added to the data. In other words, with compression, this becomes 104 bytes with TD-4410D/4420DN/4210D (203 dpi) or 160 bytes with TD-4510D/4520DN/4550DNWB (300 dpi) when it is expanded by the machine, regardless of the tape width. Raster line with compression Raster
  • Brother International TD-4520DN | Raster Command Reference - Page 43
    raster data (d1 to dh) However, use the following value if no compression is specified as the compression mode. (TD-4410D/4420DN/4210D: n = 104, TD-4510D/4520DN/4550DNWB: n = 160) {d1~dn} Raster data. Z Zero raster graphics ASCII: Z Hexadecimal: 5A Description ⚫ Fills raster line with 0 data
  • Brother International TD-4520DN | Raster Command Reference - Page 44
    Raster Command Reference ESC i CAN Cancel ASCII: ESC i CAN Hexadecimal: 1B 69 18 Description ⚫ Cancel sending data while sending printing data. For no-compression mode, may cancel printing previous page depending on the cancel timing. ⚫ Printing will not be cancelled after receiving the "
  • Brother International TD-4520DN | Raster Command Reference - Page 45
    i A Specify the page number in "cut each * labels" ASCII: ESC i A {n} Hexadecimal: 1B 69 41 {n} Parameters Definitions of {n} Page number = n1 (1 - 255) Default is 1 (cut each label). Description When "auto cut" is specified, you can specify page number (1 - 255) in "cut each * labels". - 39
  • Brother International TD-4520DN | Raster Command Reference - Page 46
    4B {n} Parameters Definitions of {n} The meaning of each bit in a 1-byte parameter is described below. 0~2bit: Not used 3bit: Cut at end 1: Cut at end (default) 0: Not cut at end 4~7bit: Not used Raster Command Reference - 40 - 7. Printing Command Details
  • Brother International TD-4520DN | Raster Command Reference - Page 47
    Raster Command Reference 8. Flow Charts TD-4xxxD printers perform as buffered printing. Buffered printing is a method that a print starts after one page of print data is received. . - 41 - 8. Flow Charts
  • Brother International TD-4520DN | Raster Command Reference - Page 48
    normal flow for USB/Bluetooth 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 TD-4520DN | Raster Command Reference - Page 49
    error flow for USB/Bluetooth 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 TD-4520DN | Raster Command Reference - Page 50
    printing cooling flow for USB/Bluetooth 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 TD-4520DN | Raster Command Reference - Page 51
    peeling/resumed flow for USB/Bluetooth connection Computer (host) If there are no problems with the printer status (media, etc.), the data is READ transmitted. If there is a problem, an error appears. Displaying sending Invalidate Initialize Status information request Status (response to
  • Brother International TD-4520DN | Raster Command Reference - Page 52
    till receiving the print command (0C), then pause. Computer (host) If there are no problems with the printer status (media, etc.), the data is READ transmitted. If there is a problem, an error appears. Displaying sending Invalidate Initialize Status information request Status (response to
  • Brother International TD-4520DN | Raster Command Reference - Page 53
    cancelling flow in USB/Bluetooth 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 TD-4520DN | Raster Command Reference - Page 54
    Raster Command Reference 8.7 Buffered printing normal flow for network (standard TCP/IP port) connection * With a network connection, print data from the operating system's port monitor is sent as is. The following example is for printing 2 pages. Computer(host) Printer The print data is
  • Brother International TD-4520DN | Raster Command Reference - Page 55
    TD-4410D: 20b6 TD-4420DN: 20b7 TD-4510D: 20b8 TD-4520DN: 20b9 TD-4550DNWB: 20ba TD-4210D:20f2 Printer Character string descriptor: 0x01 0x0409: "Brother" Character string descriptor: 0x02 0x0409: "TD-4410D" 0x0409: "TD-4420DN" 0x0409: "TD-4510D" 0x0409: "TD-4520DN" 0x0409: "TD-4550DNWB" 0x0409: "TD
  • Brother International TD-4520DN | Raster Command Reference - Page 56
    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 TD-4520DN | Raster Command Reference - Page 57
  • 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
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57

Software Developer's Manual
Raster Command Reference
TD-4410D/4420DN/4510D/4520DN/4550DNWB/
4210D
Version 1.02