SII DPU-S445 Technical Reference
Hide thumbs Also See for DPU-S445:
Table of Contents

Advertisement

DPU-S445 SERIES
THERMAL PRINTER
TECHNICAL REFERENCE
U00110811309

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DPU-S445 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for SII DPU-S445

  • Page 1 DPU-S445 SERIES THERMAL PRINTER TECHNICAL REFERENCE U00110811309...
  • Page 2 Copyright © 2008-2013 by Seiko Instruments Inc. All rights reserved. Seiko Instruments Inc. (hereinafter referred to as "SII") has prepared this manual for use by SII personnel, licensees, and customers. The information contained herein is the property of SII and shall not be reproduced in whole or in part without the prior written approval of SII.
  • Page 3 PREFACE This technical reference describes the DPU-S445 series thermal printer. (hereinafter referred to as “printer”) Read the User’s Guide supplied with the printer for details regarding basic operation and maintenance procedures. DPU-S445 series have the following models. ・DPU-S445-00A-E (Standard model) ・DPU-S445-01A-E...
  • Page 4 【Manual Configuration】 CHAPTER 1: TERMS USED IN THIS MANUAL ・ This chapter describes the basic terms that are frequently used in this technical reference. CHAPTER 2: SPECIFICATIONS ・ This chapter describes the printer main body and thermal paper specifications. CHAPTER 3: INTERFACE ・...
  • Page 5: Table Of Contents

    TABLE OF CONTENTS Section Page CHAPTER 1 TERMS USED IN THIS MANUAL CHAPTER 2 SPECIFICATIONS PRINTER SPECIFICATIONS..................... 2-1 SPECIFIED THERMAL PAPER SPECIFICATIONS............2-3 2.2.1 Timing Mark for the Cut Paper Dimensions ..............2-4 2.2.2 Thermal Label Paper Dimensions................. 2-6 SPECIFIED BATTERY PACK SPECIFICATIONS ............. 2-8 PRECAUTIONS FOR USE....................
  • Page 6 6.5.3 Line Spacing Commands .................... 6-24 6.5.4 Tab Setting Commands....................6-26 6.5.5 Print and Paper Feed Commands................6-28 6.5.6 Print Position Commands.................... 6-30 6.5.7 1-byte Character Set Selection Commands..............6-32 6.5.8 1-byte Characters Definition Commands ..............6-35 6.5.9 Character Decoration Commands................6-37 6.5.10 Character Pitch Adjustment Command...............
  • Page 7 Table 1-1 Character Types and Relationship between 1-byte and 2-byte Characters ....1-1 Table 2-1 General Specifications ....................2-1 Table 2-2 Thermal Paper Provided by SII ..................2-3 Table 2-3 Specified Thermal Paper Specifications ..............2-3 Table 4-1 Function Settings (SWDIP1) ..................4-2 Table 4-2 Function Settings (SWDIP2) ..................
  • Page 8 Figure Page FIGURES Figure 1-1 Relationship between Input Buffer and Line Buffer ............ 1-1 Figure 1-2 Line Spacing ....................... 1-2 Figure 1-3 Character Spacing ...................... 1-2 Figure 2-1 Dimensions ......................... 2-2 Figure 2-2 Timing Mark for the Cut Paper (back surface)............2-4 Figure 2-3 Example for the Cut Paper..................
  • Page 9: Table 1-1 Character Types And Relationship Between 1-Byte And 2-Byte Characters

    This chapter describes the terms used in this manual.  INPUT BUFFER AND LINE BUFFER When the DPU-S445 (hereinafter it is referred to as “printer”) receives data (character codes and commands) from the host devices, it stores the data in the printer input buffer. The input buffer has a capacity of 4K bytes (4096 bytes).
  • Page 10: Figure 1-2 Line Spacing

     Line Spacing Line spacing is the space between the lines of printed characters (See Figure 1-2). Line Spacing Figure 1-2 Line Spacing This printer use a line thermal print mechanism, therefore, a paper feed step is necessary before printing characters or bit images. The line feed command with printing feeds the paper for height of characters or bit images.
  • Page 11: Specifications

    CHAPTER 2 SPECIFICATIONS 2.1 PRINTER SPECIFICATIONS Table 2-1 General Specifications Item Specification Total number of dots 832 dots/line Effective dot number 832 dots/line Resolution W 8 dots/mm x H 8 dots/mm Printing width / paper width 104 / 112 mm Printing speed 90 mm/s max.
  • Page 12: Figure 2-1 Dimensions

    *1: Using AC adapter, printing ratio is 7.5% or lower, thermal head temperature is 25°C. *2: SII Japanese font set installed (at shipping). *3: Only for DPU-S445-01A-E. *4: Only for DPU-S445-00A-E.  Dimensions Paper Inlet Paper Outlet Unit : mm...
  • Page 13: Specified Thermal Paper Specifications

    2.2 SPECIFIED THERMAL PAPER SPECIFICATIONS Table 2-2 Thermal Paper Provided by SII Item Specifications Model TP-341L-1 Type Normal paper roll Paper width -1.0 Outside diameter 48mm max. 59 ± 5 μ m Paper thickness Printing surface of Paper roll Outside...
  • Page 14: Timing Mark For The Cut Paper Dimensions

    2.2.1 Timing Mark for the Cut Paper Dimensions -1.0 9 min . 3 max. Unit : mm Figure 2-2 Timing Mark for the Cut Paper (back surface)
  • Page 15: Figure 2-3 Example For The Cut Paper

    (1) Example of use of the cut paper An example of use of the cut paper is shown Figure 2-2. (a) Set the function setting of Paper Mode to “Cut paper”. (b) Set the paper length as page length. (c) Insert the cut paper. (d) Print data within the printable area shown in Figure 2-3.
  • Page 16: Thermal Label Paper Dimensions

    2.2.2 Thermal Label Paper Dimensions -1.0 A B C D E F 0 1 2 3 4 5 Label length Page length a b c d e f Form Feed command To the beginning of the next label Non-printing area b.
  • Page 17 (1) Example of use of thermal label paper An example of use of the thermal label paper is shown Figure 2-4. (a) Set the function setting of Paper Mode to “Mark Roll Paper”. (b) Insert the thermal label paper. (c) Set the page length as the length from the beginning of the current label to the beginning of the next label.
  • Page 18: Specified Battery Pack Specifications

    2.3 SPECIFIED BATTERY PACK SPECIFICATIONS Item Specification Model BP-L0725-A1 Available printing lines 10000 lines min. Battery Cycle Life 300 cycles *1: 25C, character spacing is 4 dots, line spacing is 34 dots, TF50KS-E2D selection, print density is 100%, continuous printing with 'H' 1-byte characters, serial communication, fully charged with 8.4 V by specified battery charger.
  • Page 19: Precautions For Use

    2.4 PRECAUTIONS FOR USE  Always print the two-dimensional bar code and ladder bar code (its bar is to be printed verticality to the printer) within 0 to 40°C to ensure the bar code's reading accuracy.  The two-dimensional bar code and ladder bar code printing always requires the low speed mode to ensure its reading accuracy.
  • Page 20  When using a Bluetooth interface, the radio environment around the printer may cause a failure in communications. This is due to the specifications of Bluetooth, which is a radio communications standard.  When handling this product, be aware of static electricity. If the static electricity is discharged, this could case communication failure.
  • Page 21: Interface

    CHAPTER 3 INTERFACE This chapter describes 4 types of the interface specifications which are required to connect the host device with the printer. Irrespective of the interface used, amount of the input buffer in the printer is 4k bytes, and transmission buffer is 768 bytes.
  • Page 22 (3) Connector 3260-8S3: HIROSE ELECTRIC CO., LTD. or equivalent (4) Examples of connection with the host device (a standard personal computer) Printer Host device Printer Host device N.C. 1 1 F.G N.C. 1 TXD 2 2 TXD TXD 2 2 RXD RXD 3 3 RXD RXD 3...
  • Page 23 (6) Data transmission  Busy control In Busy Control, the conditions which transmit status information to the host device from the printer are as follows; When CTS Control of function setting sets to Enable, the printer sends data from TXD after confirming CTS status as SPACE.
  • Page 24: Usb Interface Specifications

    3.2 USB INTERFACE SPECIFICATIONS (1) General specifications Item Specification USB Version Ver 2.0 conformity USB Printing class specification Communication speed Full speed(12 Mbps) Communication protocol Bulk transfer (2) Pin assignment Pin No. Name Function Vbus USB power supply USB data signal USB data signal N.C.
  • Page 25: Infrared Interface Specifications

    3 to 40 s (2) Services supported by IrLAP 1. Connect service 2. Data service 3. Disconnect service IrLAP does not support a transfer for non-number and sniffing services. The printer does not initiate connections. Service Hint Printer, IrCOMM Device Nickname DPU-S445...
  • Page 26 (3) Services supported by IrLMP 1. Connect service 2. Disconnect service 3. Data service A single LSAP address does not support multiple connections. furthermore, LSAP address 7 and 9 can not share the connection state. If multiple connections are requested, a disconnect request is transmitted and the printer waits until it receives a disconnect command.
  • Page 27 (6) IrCOMM Supports 3-Wireraw, IrLPT, 3-Wire and 9-Wire. Flow control is performed only by the IrLAP layer when connecting with 3-Wireraw or LrLPT. Flow control is performed by the TinyTP layer when connecting with 3-Wire or 9-Wire. Xon/off control and line status control are not supported. (7) Command response processing during IrDA transmission If the printer receives a command that requires transmission of data from the remote station during IrDA transmission, and then stores the data in the transmission buffer and transfers them at transmit timing to...
  • Page 28: Bht-Ir Specifications

    3.3.3 BHT-Ir Specifications The printer also supports BHT-Ir communication specified by DENSO CORPORATION. The printer can receive data from the 'BHT-6500' made by DENSO CORPORATION when Data Input Mode SWDIP2-1 and SWDIP2-2 is selected to BHT-Ir. The inherent processing of the printer for BHT-Ir communication is shown below: See BHT-Ir protocol specification for details of the protocol.
  • Page 29: Bluetooth Interface Specifications

    Profile PIN code None (default) Device name DPU-S445 (default) *1: This specification can be changed by the command. (2) Security The printer does not set with PIN code or the Link Key in default. Bluetooth device uses security mode 1, so no encryption is used.
  • Page 30: Function Settings

    CHAPT ER 4 FUNCTION SETTINGS 4.1 FUNCTION SETTING The communication method, a paper types, and so on can be preset in this printe Preset these functions before using the printer. The function settings of the printer are stored in FLASH memory. Once these are set, these are stored until changing again.
  • Page 31: Function Settings(Swdip1)

    4.1.1 Function Settings(SWDIP1) Table 4-1 Function S etting s (SWDIP1) Value SWDIP Function Data Control Xon/Xof Busy Stop Bit 2 bits 1 bit Parity See table below Bit Length 7 bits 8 bits Baud Rate See table below  Data Control selection Select flow control in serial communication as BUSY (hardware) control or Xon/Xoff control.
  • Page 32: Baud Rate Selection

     Baud Rate selection Select Baud Rate of communications as Serial and BHT-Ir. Baud Rate SWDIP1-3 SWDIP1-2 SWDIP1-1 1200 2400 4800 9600 19200 38400 57600 115200 *1 This setting is enabled only when Serial is selected as the communication mode. When BHT-Ir is selected as the communication mode, the baud rate is set to 2400 bps automatically.
  • Page 33: Function Settings(Swdip2)

    4.1.2 Function Settings(SWDIP2) Table 4-2 Function Se ttings (SWDIP2) Value Function to Status Output Disable Kanji C Shift-JIS Code JIS Code Font S 16 do 24 dots Auto Power Off Enable Disable Character Set IBM Comp atible Auto Loading Disable Enable Data Input Mode See below...
  • Page 34  Data Input Mode selection Select the communication method. Refer to CHAPTER 3 INTERFACE for more detail. Data Input M SWDIP2-2 SWDIP2-1 BHT-Ir/USB Serial/USB IrDA/USB Bluetooth/USB *1 This setting is enabled for Bluetooth-supporting model only. Bluetooth-supporting model is shipped with this setting value (Bluetooth/USB).
  • Page 35: Function Settings(Swdip3)

    4.1.3 Function Settings(SWDIP3) Table 4-3 Function S etting s (SWDIP3) Value Function Reserved Fix to 1 Print Density See table below Pape r Select See table below Paper Mode See table below  Print Density selection Normally, select the pri nt density as 10 Print Density SWDIP3-7...
  • Page 36  Paper Mode selection Select Paper Mode as the thermal paper in use. per Mode SWDIP3-2 SWDIP3-1 Cut Paper Roll Paper Mark Roll Paper Reserved 1) Cut Paper mode This mode assumes that to print the thermal paper which be cut by a certain fixed length. The paper should be printed the mark on back side to detect paper position when loading the paper automatically.
  • Page 37: Function Settings(Swdip4)

    4.1.4 Function Settings(SWDIP4) Table 4-4 Function S etting s (SWDIP4) Value Functio etooth Link Key Selection Enable Disable (Bluetooth Link Key) Reserved ix to 1 Busy Output When Error Unbu Busy Occurs (Error Mark Position Correct Enab Disable Bluetooth Baud Rate See below CTS Control Enable...
  • Page 38  Bluetooth Baud Rate selection Select Bluetooth Baud Rate in Bluetooth communication. Usually, select Bluetooth baud rate to 230400bps. Bluetoo th Baud Rat SWDIP4-4 SWDIP4-3 230400 bps 57600 bps 115200 bps 230400 bps  CTS Control selection When CTS Control selec tion sets to Enable and Data Control SWDIP1-8 is selected to Busy, the printer transmits data after identifying CTS of the host device as SPACE.
  • Page 39: Function Settings By Switch Operation

    4.1.5 Function Settings by Switch Operation A function setting can be performed by switch operation. Use the function settings by switch operation in the function setting s mode of the printer. Operate the following procedures to enter the printer to the function settings mode. (a) Be sure that the thermal paper is set to the printer and the printer is turned off.
  • Page 40 (1) Initializing SWDIP switch settings (a) When the following message is printed in the function setting mode, press the FEED switch. Load Default Setting? Yes: Feed SW / No: Power SW (b) When the following message is printed, the printer turns off. e settings are set t o defaults.
  • Page 41 Operation 1: SWDIP switch selection (a) If pressing the FEED switch after printing the message shown below, the function setting shifts (operation 2). If pressing the POWER switch instead of the FEED switch, the details of the printed SWDIP switch (SWDIP switch 1) are not changed, and the next SWDIP switch is selected (operation DIP Switch setting mode.
  • Page 42: Function Settings By Commands

    Operation 3: Exiting function setting mode (a) If pressi ng the FEED switch after printing the message shown below, the function setting shifts (operation 1). DIP Switch setting mode. Continue: Feed SW / Quit: Power SW If pressing the POWER switch after printing the message shown below, the printer exits the function setting mode and turns off.
  • Page 43: Test Print

    4.2 TEST PRINT The printer has a test print function that prints the contents of Function Settings and ch aracter strings for test. (a) Be sure that the thermal paper is set to the printer and the printer is turned off. If the thermal paper is not set, set the thermal paper to the printer.
  • Page 44: Hex Dump Mode

    4.3 HEX DUMP MODE This function can b e used to check whether the host device transmits data to the printer correctly. Perform the following steps. (a) Be sure that the thermal paper is installed to the pri nter and the printer is turned off. (b) Keep on pressing the POWER and FEED switches in six seconds.
  • Page 45: Lamp Display And Switch Function

    CHAPTER 5 LAMP DISPLAY AND SWITCH FUNCTION This chapter explains printer status by lamp display and functions of switches. 5.1 PRINTER STATE LAMP DISPLAY Table 5-1 lists states of the printer, display that by two lamps (POWER and ERROR lamps). Table 5-1 Printer Status Signals Display Printer status...
  • Page 46: Error Recovery Procedure

    5.2 ERROR RECOVERY PROCEDURE When an error occurs, the printer stops printing operation. Moreover, when Busy Output When Error Occurs is enabled in the Function Settings, the status of data reception becomes busy. However, Some errors can be recovered to a status just before a printing stop after clearing errors. Error recovery procedure is shown below.
  • Page 47: Power Switch

    5.3 POWER SWITCH Turning ON / OFF the printer and changing the mode to the print-ready can be performed by the POWER switch. (NOTE) Always use the POWER switch to turn off the printer. Do not power off the printer by removing the AC adapter or the battery pack. If doing so, the memory may be damaged.
  • Page 48: Command Descriptions

    CHAPTER 6 COMMAND DESCRIPTIONS This chapter describes the functions of the commands supported by the printer. 6.1 THE SUMMARY OF COMMAND FUNCTION The printer supports the ESC/P based commands. Table 6-1 Command Summary (1/4) Command Function Page ESC 'C' Set Page Length at n Lines 6-20 ESC 'C' 0 Set Page Length at n Inches...
  • Page 49 Table 6-1 Command Summary (2/4) Command Function Page ESC 'R' Select International Character 6-32 ESC 't' Select Character Code Table 6-32 DC2 'y' Euro Character Specify 6-33 ESC '%' Set/Cancel Download Character Set 6-35 ESC '&' Define Download Characters 6-35 DC2 'D' Download Characters Area Operation 6-36...
  • Page 50 Table 6-1 Command Summary (3/4) Command Function Page DC3 '+ Ruler Line ON 6-63 DC3 '-' Ruler Line OFF 6-63 DC3 'A' Ruler Line Buffer A 6-63 DC3 'B' Ruler Line Buffer B 6-63 DC3 'C' Ruler Line Buffer Clear 6-64 DC3 'D' Define Ruler Line by Dot...
  • Page 51 Table 6-1 Command Summary (4/4) Command Function Page DC2 '$' '1' Rectangle Print 6-91 DC2 '$' '2' Line Type Property 6-92 DC2 '$' '3' Line Width Property 6-92 DC2 '$' '4' Fill Property 6-92 DC2 'e' Enable/Disable Automatic Status Transmission 6-94 DC2 'r' Send Remaining RAM Response...
  • Page 52: Function Codes

    6.2 FUNCTION CODES One of the following control codes is attached to the beginning of each command. These control codes are also called function codes. HT(09H), LF(0AH), VT(0BH), FF(0CH), CR(0DH), SO(0EH), DC2(12H), DC3(13H), DC4(14H), CAN(18H), ESC(1BH), FS(1CH), GS(1DH) Function codes may or may not have parameters or image data. The number of bytes per command differs based on the type of command.
  • Page 53 - Second byte (If the first byte is 00H) 20H - 7EH: The codes are processed as 1-byte character in the Kanji ROM. 80H - FEH: The codes are processed as 1-byte character in the Kanji ROM. FFH: It differs from each character set. If the extended graphics character set or the katakana character set are selected, they are ignored with the first byte.
  • Page 54: Shift Jis Code System

    (If the first byte is A1H to FDH) A1H - FEH: The codes are processed as the second byte of Korean. The other codes are ignored unless they are commands. The next data to be received is processed as the first byte. 6.3.2 Shift JIS Code System If the Shift JIS Code System is selected with the Kanji Code System Select command, Kanji characters can be printed with 2-byte character codes without entering the Kanji Mode Specify command.
  • Page 55 (3) 2-byte character codes when mounting Korean character 2-byte character codes specify Korean or user-defined character. - First byte A0H: User-defined character area. A1H - FDH: Korean characters area when selecting Korean. The other codes are ignored unless they are commands. The next data to be received is processed as the first byte.
  • Page 56: Memory

    6.4 MEMORY The printer has the FLASH memory and the RAM in which there is a user area for each. The user area is the storage for using particular functions. Allocated function differs between the FLASH memory and the RAM. The functions used in the FLASH memory and the RAM are as follows.
  • Page 57: Table 6-5 Difference In Behavior Between The Flash Memory And The Ram

    In order to register the user-defined character, downloaded character, optional font, and stamp, it is required to register them to the RAM, and then to the FLASH memory using User Area Data Registration/Clears (DC2 '{') command. Do not execute User Area Defragment (DC2 '*' '1') command while the stamp is selected. The behavior differs between the FLASH memory and the RAM when, for example, executing a command.
  • Page 58: Table 6-7 The Number Of Bytes For Memory Control Information Of Each Function

    For "Define Optional Font", "Set Routine Format", "Set Routine parameter Data", or "Stamp Define" command, the area is allocated automatically at command execution. When the area is allocated, memory control information is always added to the head of the allocated area. The number of bytes for memory control information differs depending on the functions.
  • Page 59: Table 6-9 Gs 'P' 0 Pdf417 Print Command Necessary Capacity

    (4) Usage of the user area of RAM at two-dimensional bar code function At two-dimensional bar code print, empty user area of the RAM is used temporarily at bar code print. The two-dimensional bar code printing operates as described below depending on the parameter, remaining capacity of the user area of RAM, and the value of the maximum number of the data which can be specified: ...
  • Page 60: Table 6-10 Gs 'P' 1 Qr Code Print Command Necessary Capacity

    (b) Necessary Capacity of QR Code The total remaining capacity of area1 to 3 shown in Table 6-10 is necessary for QR Code print. For an example, when number of bar code data byte=30, model=2, and version=4; Area1 = 302+560 = 620 bytes Area2 = 8006 bytes ...
  • Page 61: Table 6-11 Gs 'P' 2 Data Matrix Print Necessary Capacity

    (c) Necessary Capacity of Data Matrix The total remaining capacity of area1 to 4 shown in Table 6-11 is necessary for Data Matrix print. For an example, when number of bar code data byte =20 and symbol size=22 (vertical) 22 (horizontal);...
  • Page 62: Table 6-12 Data Matrix Symbol Sizes

    Table 6-12 Data Matrix Symbol Sizes Symbol size Map matrix size Number of the Code Word Vertical Horizontal Vertical Horizontal Data Error correction 1050 1304 1558 6-15...
  • Page 63: Table 6-13 Gs 'P' 3 Maxicode Print Necessary Capacity

    (d) Necessary Capacity of MaxiCode The total remaining capacity of area1 to 2 shown in Table 6-13 is necessary for MaxiCode print. For an example, when number of bar code data byte=33; Area 1 = 33+1 = 34 bytes Area 2 = 7684 bytes Total = 7718 bytes (Assume that the remaining capacity is even number of bytes.) Table 6-13 GS 'p' 3 MaxiCode Print Necessary Capacity...
  • Page 64 6.4.2 FLASH Memory The FLASH memory is used for functions of user-defined character, downloaded character, optional font, routine function, stamp, and template data. The user area of FLASH memory consists of the shared area and the dedicated area. The shared area has 262144 bytes, and used by routine function and stamp data. The dedicated area is used by user-defined character, downloaded character, optional font, and template data.
  • Page 65 [3] State that the data is [2] State that some data is [1] Status immediately after released. registered. the factory shipment Data (1) In use state Data (1) Released state Empty state Empty state Empty state [4] State that the registration and [5] State that the "User Area Defragment"...
  • Page 66: Command Description

    6.5 COMMAND DESCRIPTION Each command for the printer is described respectively. This section explains each command. 6.5.1 Command Format Each command is described in the following format. 6-19...
  • Page 67: Formatting Commands

    6.5.2 Formatting Commands ESC 'C' n Set page Length at n Lines Code 1BH 43H n 1  n  127 Function Set page length at n lines. The page length is (current line spacing x n) dot lines. If the line spacing is zero, this command is ignored. The current position becomes the beginning of the page.
  • Page 68 ESC 'O' Cancel Bottom Margin Code 1BH 4FH Function Cancels bottom margin. If the page length is not specified in the initial state in the roll paper mode, this command is ignored. Default The bottom margin is canceled. Top of the page Printable area The defined page length...
  • Page 69 ESC 'l' n Set Left Margin Code 1BH 6CH n 0  n  255 Function Sets the left margin at n columns from the left edge (first column). Column n (current character pitch x n) from the left edge becomes the left margin. The character width includes character spacing.
  • Page 70: Figure 6-1 Program Sample 1

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 PRINT #1,"Page Length : 5 line" 120 PRINT #1,"Skip Length : 2 line" 130 PRINT #1,"Right Margin : 34 char" 140 PRINT #1,"Left Margin : 17 char" 150 PRINT #1,CHR$(&H0D); 160 PRINT #1,CHR$(&H1B);"C";CHR$(5); 'Page Length : 5 line 170 PRINT #1,CHR$(&H1B);"N";CHR$(2);...
  • Page 71: Line Spacing Commands

    6.5.3 Line Spacing Commands ESC '0' Set 1/8-inch Line Spacing Code 1BH 30H Function Sets the line spacing amount to 1/8 of an inch (26 dots lines). If the line buffer contains data and the line spacing amount is smaller than the character height, the data in the buffer is printed and line feeding is performed by the character height.
  • Page 72: Figure 6-3 Program Sample 2

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 PRINT #1,CHR$(&H1B);"0"; 120 PRINT #1,"ESC+0 ----- 1/8 inch line space" 130 PRINT #1,CHR$(&H1B);"2"; 140 PRINT #1,"ESC+2 ----- 1/6 inch line space" 150 FOR I=0 TO 96 STEP 24 160 PRINT #1,CHR$(&H1B);"3";CHR$(I); 170 PRINT #1,"ESC+3+n -----";I;"dot-line line space" 180 NEXT I 190 PRINT #1,"---------------------------------------"...
  • Page 73: Tab Setting Commands

    6.5.4 Tab Setting Commands ESC 'B' {DATA} NUL Set Vertical Tab Positions Code 1BH 42H {p1 p2••• pk} 00H 1  p  255 0  k  16 Function Sets the vertical tab position. The tab position is the (current line spacing × p lines) dot position with respect to the page starting position.
  • Page 74 ESC 'D' {DATA} NUL Set Horizontal Tab Positions Code 1BH 44H {p1 p2•••pk} 00H 1  p  255 1  k  32 Function Sets horizontal tab positions. The tab position is the (current character with × p columns) position with respect to the left margin.
  • Page 75: Print And Paper Feed Commands

    6.5.5 Print and Paper Feed Commands Print and Carriage Return Code Function Functions the same as an LF command. If the line buffer contains data and the line spacing amount is smaller than the character height, the data in the buffer is printed and line feeding is performed by the character height. Print and Line Feed Code Function After data in the line buffer is printed out, the printer feeds one line.
  • Page 76 ESC 'J' n Print and Feed Paper Code 1BH 4AH n 0  n  255 Function Prints the data in the print buffer and feeds the paper one dot line. If the line buffer contains data and n is smaller than the character height, the data in the line buffer is printed and one line is fed by the character height.
  • Page 77: Print Position Commands

    6.5.6 Print Position Commands Execute Horizontal Tab Code Function Moves the print position to the next horizontal tab position. This command is ignored if the next horizontal tab position is not set. This command is ignored if the next horizontal tab position exceeds the right margin. The horizontal tab position is set using the ESC 'D' command.
  • Page 78: Figure 6-5 Program Sample 3

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 PRINT #1,CHR$(&H1B);"2"; 120 PRINT #1,CHR$(&H1B);"C";CHR$(25); 130 PRINT #1,CHR$(&H1B);"B";CHR$(3);CHR$(6);CHR$(9);CHR$(12);CHR$(0); 140 PRINT #1,CHR$(&H1B);"D";CHR$(10);CHR$(20);CHR$(30);CHR$(0); 150 PRINT #1,"--------------- Page top ---------------" 160 PRINT #1,"Carrige Return + CR";CHR$(&H0D); 170 PRINT #1,"Line Feed + LF";CHR$(&H0A); 180 PRINT #1,"100 dot-line feed + ESC+J";CHR$(&H1B);"J";CHR$(100); 190 PRINT #1,"Vertical Tab + VT";CHR$(&H0B);...
  • Page 79: 1-Byte Character Set Selection Commands

    6.5.7 1-byte Character Set Selection Commands ESC 'R' n Select International Character Code 1BH 52H n 0  n  12 Function n selects an international character set from the following table. Country U.S.A. France Germany U.K. Denmark l Sweden Italy Spain Japan...
  • Page 80 DC2 'y' n Euro Character Specify Code 12H 79H n n=0, 32  n  254 (except 127) Function Exchanges the font of character code n of the one-byte system to Euro characters. When n is 0, the exchange to the Euro characters is released and the font returns before selection.
  • Page 81: Figure 6-7 Program Sample 4

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 PRINT #1,CHR$(&H1B);"$";CHR$(&HD8);CHR$(0);"23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E" 120 FOR I=0 TO 12 130 RESTORE 310 140 FOR J=0 TO I READ CNTRY$ 160 NEXT J 170 PRINT #1,CNTRY$;CHR$(&H1B);"$";CHR$(&HA8);CHR$(0);:GOSUB 250 180 NEXT I 190 FOR I=0 TO 1 200 PRINT #1,CHR$(&H1B);"t";CHR$(I);...
  • Page 82: 1-Byte Characters Definition Commands

    6.5.8 1-byte Characters Definition Commands ESC '%' n Set/Cancel Download Character Set Code 1BH 25H n Function Sets or cancels the downloaded character set. Only the least significant bit of n is valid. n = 0: Cancel the downloaded character set. n = 1: Set the downloaded character set.
  • Page 83 •24-dot font •16-dot font 16 dots 8 dots 16 dots 24 dots DC2 'D' n Download Characters Area Operation Code 12H 44H n Function Allocates or releases the downloaded character area in the user area of RAM. Only the least significant bit (LSB) of n is valid. n = 0: Releases the downloaded character area.
  • Page 84: Character Decoration Commands

    6.5.9 Character Decoration Commands Select Expanded Character Mode with Automatic Cancellation Code Function Prints 1-byte characters and 2-byte characters following this code in double-width characters. This mode is canceled by DC4, LF, VT, FF, ESC 'W', GS '<' or CR, or by buffer-full printing. When the line buffer is cleared, the expanded character mode is canceled.
  • Page 85 ESC 'F' Cancel Emphasized Print Mode Code 1BH 46H Function Cancels the emphasized print mode for 1-byte characters and 2-byte characters. The emphasized print mode can also be selected or canceled with ESC '!', but the most recently processed command is effective. The double print mode is also canceled.
  • Page 86 ESC '!' n Set Print Mode Code 1BH 21H n Function Sets a print mode for 1-byte characters. Each bit of n is used as follows: Function Undefined Undefined Undefined Emphasized printing Canceled Double printing Canceled Double-width Canceled Undefined Underline Canceled The underline is attached to all character widths, including character right-side spacing.
  • Page 87 DC2 'Y' n Character Rotation Code 12H 59H n Function Selects the direction of rotation of 1-byte and 2-byte characters. Only two low-order bits are valid. n = 0: Cancel character rotation. n = 1: Rotate the character 90° clockwise. n = 2: Rotate the character 90°...
  • Page 88: Character Pitch Adjustment Command

    6.5.10 Character Pitch Adjustment Command ESC SP n Set Character Spacing Code 1BH 20H n 0  n  127 Function Sets the character right-side spacing for 1-byte characters in dot units (n). If a character code is input after this command, it is printed with (character width + set character spacing).
  • Page 89: Figure 6-9 Program Sample 5

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 PRINT #1,CHR$(&H12);"F0"; '16 dots font 120 PRINT #1,CHR$(&H1B);"&";CHR$(0);"DD"; 130 RESTORE 460 : N=16 : GOSUB 430 140 PRINT #1,CHR$(&H12);"F1"; '24 dots font 150 PRINT #1,CHR$(&H1B);"&";CHR$(0);"oo"; 160 RESTORE 480 : N=48 : GOSUB 430 170 PRINT #1,CHR$(&H1B);"%1";...
  • Page 90: Figure 6-10 Print Sample 5

    Figure 6-10 Print Sample 5 6-43...
  • Page 91: Kanji Character Set Selection Commands

    Function Selects Kanji mode. In Kanji mode, only 2-byte character codes are accepted. 1-byte character in SII Japanese font set (at shipping) can be printed by entering 00H + 1-byte code. This command is ignored when Shift-JIS is selected as the Kanji code system.
  • Page 92 The Kanji quarter size character mode can be canceled with the Cancel Kanji Mode (FS '.') command. For character font, see the Appendix A.4 Kanji quarter size character set. This command is valid for SII Japanese font set (at shipping) mounted. Default Cancel Kanji Quarter Size Character Mode.
  • Page 93: Kanji Character Definition Commands

    6.5.12 Kanji Character Definition Commands FS '2' c1 c2 {DATA} Define User-defined Character Code 1CH 32H c1 c2 {d1 d2•••dk} Function Defines user-defined character pattern of Kanji for the character code specified by c1 and c2 in the user are of RAM. c1 and c2 indicate a Kanji code for the user-defined character to be defined.
  • Page 94 DC2 'G' n User-defined Character Area Operation Code 12H 47H n Function Allocates or releases the user-defined character area in the user area of RAM. Only the least significant bit (LSB) of n is valid. n = 0: Releases the user-defined character area. n = 1: Allocates the user-defined character area.
  • Page 95: Kanji Character Decoration Commands

    6.5.13 Kanji Character Decoration Commands FS 'J' Select Vertical Writing Code 1CH 4AH Function Selects vertical writing. Valid in Kanji mode only. Character decoration applies to a line. If the vertically written character is doubled vertically, it is doubled in the Y direction (character widths are doubled). If the width is doubled, the character is doubled in the X direction (characters are doubled vertically).
  • Page 96 FS '-' n Select/Cancel Kanji Underline Mode Code 1CH 2DH n Function Select or cancel underline mode. Only the low two bits of n is valid. n = 0: Cancel underline mode. n = 1: Select 1-dot underline mode. n = 2: Select 2-dot underline mode. n = 3: Ignore the command.
  • Page 97 FS '!' n Set Kanji Print Mode Code 1CH 21H n Function Sets a print mode for 2-byte characters. Each bit of n is used as follows: Function Printing direction selection Horizontal writing Vertical writing Undefined Double-width Canceled Double height Canceled Kanji quarter size character Canceled...
  • Page 98: Kanji Character Pitch Adjustment Command

    6.5.14 Kanji Character Pitch Adjustment Command FS 'S' nl nr Set Kanji Left- and Right-side Spacing Code 1CH 53H nl nr 0  nl  127 0  nr  127 Function Sets the left-side spacing nl and the right-side spacing nr of 2-byte characters. Only the seven least significant bits of nl and nr are valid.
  • Page 99: Figure 6-11 Program Sample 6

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 GJ$=CHR$(&H77)+CHR$(&H21) 120 PRINT #1,CHR$(&H12);"F0"; '16 dots font 130 PRINT #1,CHR$(&H1C);"2";GJ$; '7721H 140 RESTORE 570 : N=32 : GOSUB 540 150 PRINT #1,CHR$(&H12);"F1"; '24 dots font 160 PRINT #1,CHR$(&H1C);"2";GJ$; '7721H 170 RESTORE 600 : N=72 : GOSUB 540 180 FOR I=&H30 TO &H33 '2330~2333 190 K$=K$+CHR$(&H23)+CHR$(I)
  • Page 100: Figure 6-12 Print Sample 6

    Figure 6-12 Print Sample 6 6-53...
  • Page 101: Image Command

    6.5.15 Image Command ESC '*' m nl nh {DATA} Set Bit Image Mode Code 1BH 2AH m nl nh {d1 d2•••dk} m: 0,1,32,33 (mode setting) 0  nh×256 + nl  4095 Function Sets the bit image mode and prints bit image. m indicates the bit image mode.
  • Page 102 •8-dot mode •24-dot mode Bit image data Bit image data Print data Print data 6-55...
  • Page 103 GS 'v' '0' m xl xh yl yh {DATA} Raster Bit Image Print Code 1DH 76H 30H m xl xh yl yh {d1 d2•••dk} 0=0 or 48 0  xh x 256 + xl  65535 0  yh x 256 + yl  65535 Function Prints raster format dot images.
  • Page 104: Figure 6-13 Program Sample 7

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 D=408:N=D 120 PRINT #1,"8 dots Single-density 130 PRINT #1,CHR$(&H1B);"*";CHR$(0);CHR$(D MOD 256);CHR$(D\256); 140 GOSUB 260 150 N=D : PRINT #1,"8 dots Double-density 160 PRINT #1,CHR$(&H1B);"*";CHR$(1);CHR$(D MOD 256);CHR$(D\256); 170 GOSUB 260 180 N=D*3 : PRINT #1,"24 dots Single-density 190 PRINT #1,CHR$(&H1B);"*";CHR$(32);CHR$(D MOD 256);CHR$(D\256);...
  • Page 105: Stamp

    6.5.16 Stamp Stamp function does overlap characters with predefined bit images and to print out them simultaneously. Since the user area of RAM stores the defined stamps unless initializing the user area or clearing the stamp, repeating print of the same stamp is possible without entering a large amount of data repeatedly. Create bit image in the rectangular area which is specified by a number of bytes in the horizontal direction and a number of dot lines in the vertical direction.
  • Page 106 DC2 'T' n x yl yh {Image Data} Stamp Define Code 12H 54H n x yl yh {d1 d2•••dk} 0  n  127 1  x  127 1  yhx256+yl  2047 Function Registers the stamp images in the user area of RAM. Specify the stamp number between 00H and 7FH (0 to 127) to n.
  • Page 107 DC2 'S' n x Stamp Select Code 12H 53H n x 0  n  127 0  x  255 Function Selects stamp and specifies the printing position to the horizontal direction. n: Stamp number (00H to 7FH) x: Printing position in the horizontal direction (by 8 dots) (00H to FFH) x specifies the printing position to the horizontal direction.
  • Page 108: Figure 6-15 Program Sample 8

    100 OPEN "COM1:9600,N,8,1" AS #1 110 S$=STRING$(20,CHR$(&HFF))+STRING$(6,CHR$(0))+STRING$(20,CHR$(&H55)) 120 PRINT #1,CHR$(&H12);"T";CHR$(10);CHR$(20);CHR$(160);CHR$(0); 130 FOR I=1 TO 20 : FOR J=0 TO 7 140 PRINT #1,MID$(S$,I+J,20); 150 NEXT J,I 160 PRINT #1,CHR$(&H12);"S";CHR$(10);CHR$(0); 170 GOSUB 290 180 PRINT #1,CHR$(&H12);"S";CHR$(10);CHR$(50); 190 GOSUB 290 200 PRINT #1,CHR$(&H12);"S";CHR$(10);CHR$(1); 210 PRINT #1,"...
  • Page 109: Other Commands

    6.5.17 Other Commands Cancel Print Data in Buffer Code Function Clears the data in the line buffer. The next print starting position is the beginning of the line (left margin). 100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 PRINT #1,CHR$(&H1B);"Q";CHR$(40); 'Right Margin 40 char 120 PRINT #1,CHR$(&H1B);"l";CHR$(10);...
  • Page 110: Ruler Line Commands

    6.5.18 Ruler Line Commands DC3 '+' Ruler Line ON Code 13H 2BH Function Turns on ruler line printing. After this command is input, the printer prints the contents of the ruler line buffer with a character print or paper feed command until the DC3 '-' command or DC3 'C' command is input. When characters are printed, characters and ruler lines are overlapped with each other in the mode specified by DC2 '#'.
  • Page 111 DC3 'C' Ruler Line Buffer Clear Code 13H 43H Function Clears all bits in the selected line buffer to zero. If all bits in the selected line buffer are set to zero, the data is not printed even when the ruler line printing is turned on.
  • Page 112 DC3 'V' {DATA} Ruler Line LSB/MSB Image Code 13H 56H {d1 d2••• dk} 0  d  255 Function Writes one dot line of the image data into the selected ruler line buffer. The image data k corresponds to the line of dots in a ruler line buffer. When the page mode is not selected, number of image data is 104 bytes.
  • Page 113: Figure 6-19 Program Sample 10

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 PRINT #1,CHR$(&H13);"A"; 120 PRINT #1,CHR$(&H13);"V"; 130 PRINT #1,STRING$(52,CHR$(&H88)); 140 FOR I=1 TO 52 : PRINT #1,CHR$(I); : NEXT I 150 PRINT #1,CHR$(&H13);"+"; 160 PRINT #1,"RULED LINE OR" 170 PRINT #1,CHR$(&H12);"#1"; 180 PRINT #1,"RULED LINE XOR" 190 PRINT #1,CHR$(&H13);"(";...
  • Page 114: Optional Font Commands

    6.5.19 Optional Font Commands DC2 'P' s e x y {DATA} Define Optional Font Code 12H 50H s e x y {d1 d2•••dk} 20H  s  e  FEH s  7FH, e  7FH 8  x  127 1 ...
  • Page 115 20 dots 20 dots * shadow area is ignored Order of Optionnal font data input (x=20、y=20) Default No definition. DC2 'O' n Select Optional Font Code 12H 4FH n Function Selects an optional font. Only the least significant bit of n is valid. n = 0: Cancel the optional font.
  • Page 116: Figure 6-21 Program Sample 11

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 SCD=&H41:ECD=&H45 120 PRINT #1,CHR$(&H12);"P";CHR$(SCD);CHR$(ECD);CHR$(16);CHR$(8); 'A~E 130 FOR I=0 TO ECD-SCD 140 RESTORE 280 : N=16 : GOSUB 250 150 NEXT I 160 FOR I=0 TO 1 170 PRINT #1,CHR$(&H12);"O";CHR$(I); 180 FOR J=0 TO 1 PRINT #1,CHR$(&H1B);"W";CHR$(J);...
  • Page 117: Bar Code Commands

    6.5.20 Bar Code Commands GS 'H' n Select HRI Character Print Position Code 1DH 48H n Function Selects the print position of the HRI character when printing a bar code. Only the two low-order bits of n are valid. n = 0: Does not print n = 1: Above the bar code n = 2: Below the bar code n = 3: Above and below the bar code...
  • Page 118 GS 'k' n {DATA} Print Bar Code Code 1DH 6BH n {d1 d2•••dk} 0  n  255 Function Selects a bar code system and prints a bar code. n: Bar code system Function UPC-A UPC-E JAN13(EAN) JAN8 CODE39 CODABAR CODE128 Each bar code data is input as follows: UPC-A...
  • Page 119 Note A ladder bar code is that to be printed horizontally against paper feed direction by specifying Page Mode Select (DC2 'z' 0) command n as 1. When printing the ladder bar code, specify bar code height should be 10 mm or longer and print that under the temperature of 0 to 40°C.
  • Page 120 GS 'w' n1 n2 Set Width of Bar Code Code 1DH 77H n1 n2 0  n1  255 0  n2  255 Function Specifies the bar code narrow width and wide width in dots. The two low-order bits of n1 and n2 are valid. They are set as follows: Narrow width Wide width Dots...
  • Page 121 GS 'o' n PDF Row Height Code 1DH 6FH n 2  n  85 Function Sets a PDF row height by dot. n:PDF417 row height in a dot number. Sets PDF417 row height n dots. When a small value is set as the row height, some bar code reader may not read. Normally, set 3 dots or more.
  • Page 122 DC2 ';' n QR Code and Data Matrix Module Sizes Code 12H 3BH n 2≤n≤11 Function Sets QR Code and Data Matrix module sizes by dot. Number of dots on one side of the module. Sets module sizes of QR Code and Data Matrix to n dots. When a small value is set as the module size, some bar code readers may not read.
  • Page 123 When the position of bar code end is not placed within the page length and exceeds the print area set by bottom margin setting, the printer prints bar code after executing Form Feed. The bar code print position setting is valid. The quiet zone width is fixed to four modules.
  • Page 124 GS 'p' 3 mode ….n {DATA} Maxi Code Print Code 1DH 70H 03H 02H sc cc pc n {d1 d2•••dk} (mode2) 1DH 70H 03H 03H sc cc pc n {d1 d2•••dk} (mode3) 1DH 70H 03H 04H n {d1 d2•••dk} (mode4) 1DH 70H 03H 05H n {d1 d2•••dk} (mode5) Function Prints the MaxiCode data based on the specified contents.
  • Page 125: Figure 6-23 Program Sample 12

    110 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 120 PRINT #1,"****** BARCODE TEST ******" 130 FOR I=0 TO 7 140 RESTORE 380 150 FOR J=0 TO I READ CODE$ 'Get Code Name 170 NEXT J 180 RESTORE 400 190 FOR J=0 TO I READ DAT$ 'Get Bar Data 210 NEXT J 220 PRINT #1,CHR$(&H1D);"w";CHR$(I MOD 3);CHR$(I MOD 4);...
  • Page 126: Figure 6-24 Print Sample 12

    Figure 6-24 Print Sample 12 6-79...
  • Page 127: Figure 6-25 Program Sample 13

    100 OPEN “COM1:9600,N,8,1” FOR OUTPUT AS #1 110 PRINT #1, "*****PDF417*****" 120 PRINT #1, CHR$(&H1D);"n";CHR$(3); 'Nominal narrow element width setting 130 PRINT #1, CHR$(&H1D);"o";CHR$(6); 'PDF step height setting 140 PRINT #1, CHR$(&H1D);"P";CHR$(0); 'Barcode print position setting (left end) 150 PRINT #1, CHR$(&H1D);"p";CHR$(0); 'Print of PDF417 160 PRINT #1, CHR$(0);CHR$(2);CHR$(0);CHR$(0);CHR$(50);CHR$(0);...
  • Page 128: Figure 6-26 Print Sample 13

    Figure 6-26 Print Sample 13 6-81...
  • Page 129: Figure 6-27 Program Sample 14

    100 OPEN “COM1:9600,N,8,1” FOR OUTPUT AS #1 110 FOR I=2 TO 3 120 READ MODE$,SERVICE$,COUNTRY$,POSTAL$ 130 PRINT #1, "*****MaxiCode ";MODE$;"*****" 140 PRINT #1, CHR$(&H1D);"P";CHR$(I MOD 2); 'Barcode print position setting 150 PRINT #1, CHR$(&H1D);"p";CHR$(3); 'Print of MaxiCode (modes 2 & 3) 160 PRINT #1, CHR$(I);SERVICE$;COUNTRY$;POSTAL$;CHR$(50);...
  • Page 130: Figure 6-28 Print Sample 14

    Figure 6-28 Print Sample 14 6-83...
  • Page 131: Routine Commands

    6.5.21 Routine Commands The routine commands put character strings and commands in the user area of RAM and prints data in routine formats. They are a type of macro processes. The routine commands begin with DC2 'E' m and are divided into four types according to the value of m. Only the two low-order bits of m are valid.
  • Page 132 'V' {d1 d2 ••• dk} NAME : Sets routine image (Same function as DC3 'V' {DATA}) FUNCTION : Stores image data in the selected ruled line buffer. 'P' n NAME : Prints routine dot line (parameter print) n=Repetitive dot lines (0  n  255) FUNCTION : Prints data in the line buffer.
  • Page 133 DC2 'E' 1 n dl dh {DATA} Set Routine Parameter Data Code 12H 45H 01H n dl dh {d1 d2•••dk} 0  n  127 0  dhdl  65525 Function Registers character data to be printed in a routine format in the user area of RAM. n is a routine parameter number.
  • Page 134 DC2 'E' 2 n Execute Routine Format Code 12H 45H 02H n 0  n  127 Function Executes a routine format. n is the number of a routine format to be executed. If n is not in the above range, the command is ignored.
  • Page 135: Figure 6-29 Program Sample 15

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 'Format Set 120 PRINT #1,CHR$(&H12);"E0";CHR$(0);CHR$(7);CHR$(0); 'Format No.0 130 PRINT #1,"ACF";CHR$(&HFF);CHR$(&HFF);"P";CHR$(2); 140 FOR I=1 TO 3 150 PRINT #1,CHR$(&H12);"E0";CHR$(I);CHR$(29);CHR$(0); 'Format No.1 160 PRINT #1,"BCL";CHR$(0);CHR$(0);CHR$(1);CHR$(0); 170 PRINT #1,"L";CHR$(21);CHR$(1);CHR$(22);CHR$(1); 180 PRINT #1,"L";CHR$(42);CHR$(2);CHR$(43);CHR$(2); 190 PRINT #1,"L";CHR$(62);CHR$(3);CHR$(63);CHR$(3); 200 PRINT #1,"$";CHR$((I-1)*277 MOD 256);CHR$((I-1)*277 \ 256);...
  • Page 136: Page Mode

    6.5.22 Page Mode The page mode function maintains a rectangular area with an arbitrary size, deploys the printed data there, and prints characters in the normal direction or rotated 90° clockwise. The page mode function allows the user to layout printing material more freely thanks to the above features. DC2 'z' 0 n x yl yh Page Mode Select Code...
  • Page 137 DC2 'z' 1 Page Mode Print Code 12H 7AH 01H Function Prints the contents of the page area. The printer returns to the standard mode after processing the page mode print. Printing deploys in direction according to Page Mode Select (DC2 'z' 0) command. If the printer is not in the page mode, this command is ignored.
  • Page 138 DC2 '$' '1' xsL xsH ysL ysH xeL xeH yeL yeH mode Rectangle Print Code 12H 24H 31H xsL xsH ysL ysH xeL xeH yeL yeH mode 0  xsH × 256+xsL  65535 0  ysH × 256+ysL  65535 0 ...
  • Page 139 DC2 '$' '2' n Line Type Property Code 12H 24H 32H n 0  n  2 Function Specifies a line type property. Line type Solid line Long dashed line Short dashed line Default DC2 '$' '3' n Line Width Property Code 12H 24H 33H n 0<n ...
  • Page 140: Figure 6-31 Program Sample 16

    100 OPEN "COM1:9600,N,8,1" AS #1 110 S$=”ABCDEFGHIJKLMN” 120 PRINT #1,CHR$(&H12);"z";CHR$(0);CHR$(1);CHR$(80);CHR$(0);CHR$(3); 130 PRINT #1,S$ 140 PRINT #1,CHR$(&H1B);"W1";S$ 150 PRINT #1,CHR$(&H1B);"w1";S$ 160 PRINT #1,CHR$(&H12);"z";CHR$(2);CHR$(0);CHR$(1); 170 PRINT #1,CHR$(&H1D);"P";CHR$(2); 180 PRINT #1,CHR$(&H1D);"H";CHR$(2); 190 PRINT #1,CHR$(&H1D);"h";CHR$(80); 200 PRINT #1,CHR$(&H1D);"k";CHR$(0);”12345678901”;CHR$(0); 210 PRINT #1,CHR$(&H12);"$2";CHR$(1); 220 PRINT #1,CHR$(&H12);"$3";CHR$(2); 230 PRINT #1,CHR$(&H12);"$1";...
  • Page 141: Status Commands

    6.5.23 Status Commands DC2 'e' n Enable/Disable Automatic Status Transmission Code 12H 65H n Function Select whether to send an error status if an error occurs. Only the least significant bit of n is valid. n = 0: Do not send an error status. n = 1: Send an error status.
  • Page 142 DC2 'v' Send V Voltage Code 12H 76H Function Measures the V voltage (head and motor operating voltage) in the printer and sends it. The voltage is transmitted as a 3-bytes code consisting of a 1-digit integer part, a decimal point, and a 1-digit decimal.
  • Page 143 DC2 'j' n Execute Response Request Code 12H 6AH n Function Sends the execute response code as n if this command is executed. n: response code (low order 4 bits are valid) This interface has 4K bytes reception buffer and does not handle several operations such as the commands, data input or execution or printing at the same time.
  • Page 144: Figure 6-33 Program Sample 17

    100 OPEN "COM1:9600,N,8,1" AS #1 110 PRINT #1,CHR$(&H12);"v"; 120 PRINT #1,"Vp voltage : ";INPUT$(3,#1);" V" 130 PRINT #1,CHR$(&H12);"r"; 140 PRINT #1,"Rest Memory : ";INPUT$(6,#1);"H Byte" 150 PRINT #1,CHR$(&H12);"q"; 160 PRINT #1,"Extend Check Sum :";INPUT$(4,#1);"H" 170 PRINT #1,CHR$(&H12);"l"; 180 PRINT #1,"DIP_SW:";INPUT$(35,#1) 190 PRINT #1,CHR$(&H12);"e1";...
  • Page 145: Character Set Command

    6.5.24 Character Set Command DC2 'F' n Select Character Font Size Code 12H 46H n Function Sets the character font size to 16 dots or 24 dots. Only the least significant bit of n is valid. n = 0: 16 dots n = 1: 24 dots The character size specified here is applied to 1-byte characters, and 2-byte characters.
  • Page 146: Figure 6-35 Program Sample 18

    100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1 110 FOR I=0 TO 1 120 PRINT #1,CHR$(&H12);"F";CHR$(I); 130 IF I=0 THEN PRINT #1,"16"; ELSE PRINT #1,"24"; 140 PRINT #1," DOT FONT" 150 FOR J=&H41 TO &H5A PRINT #1,CHR$(J); 170 NEXT J:PRINT #1,CHR$(&H0D); 180 PRINT #1,CHR$(&H1C);"&";...
  • Page 147: Auxiliary Function Commands

    6.5.25 Auxiliary Function Commands DC2 '!' n Select Paper Code 12H 21H n Function Specifies paper to be used. The three low-order bits of n are valid. n = 0: PD160R-N n = 1: TC98KS-LH n = 2: P350 n = 3: reserved n = 4: KT55F20 n = 5: TF8067 n = 6: TL69KS-HW76B...
  • Page 148 DC2 'E' n Motor Speed Select Code 1DH 45H n 0  n  255 Function Sets the motor speed high or low. Value Bit No. Function Undefined Undefined Undefined Undefined Motor speed High speed Low speed Undefined Undefined Undefined Default n=0 (High speed) DC2 'a' n...
  • Page 149 DC2 '=' n Select Image LSB/MSB Code 12H 3DH n Function Sets whether the leftmost bit is set to the LSB (least significant bit) or MSB (most significant bit) for the data. Only the least significant bit of n is valid. n = 0: The leftmost bit is LSB.
  • Page 150 GS 'g' '0' m nl nh Maintenance Counter Initialization Code 1DH 67H 30H m nl nh (nh × 256+nl)=20, 21, 70 Function Sets the values of the specified maintenance counter and the maintenance counter saved in the system area to 0. nh and nh show maintenance number (nh × 256+nl). nh×256+nl Counter type Hexadecimal...
  • Page 151 GS 'g' '2' m nl nh Maintenance Counter Transmission Code 1DH 67H 32H m nl nh (nh × 256+nl)=20, 21, 70, 148, 149,198 Function Transmits the maintenance counter value. Transmits the maintenance counter value. The initial value of the maintenance counter becomes the value saved in the system area.
  • Page 152 DC2 '{' a n m User Area Data Registration/Clears Code 12H 7BH a n m Function Registers/Clears data registered in the user area of RAM to the user area of FLASH memory. a = Data types (00H to 05H) n = Data ID m = Registers/Clears data (<*******1>B: registers, <*******0>B: clears) When the least significant bit of m is set as 1, the printer registers data in the RAM to the FLASH memory.
  • Page 153 DC2 '*' '2' Remaining User Area Response Code 12H 2AH 32H Function Checks the remaining capacity of the shared area of FLASH memory. The number of bytes of the remaining capacity of FLASH memory is transmitted as 6-byte hexadecimal number. Note The remaining capacity of unused area does not increase only by commands which register and release the registered area.
  • Page 154 DC2 's' 't' 'p' Power Off Code 12H 73H 74H 70H Function Turns the printer power switch off. The data obtained before this command is received is processed, then the power is turned off. If the line buffer contains data, it is printed, then the power is turned off. When IrDA is selected, the power is turned off after the following two conditions are satisfied: The data obtained before this command is received is processed (character data is printed).
  • Page 155: Figure 6-37 Program Sample 19

    210 PRINT #1,CHR$(&H0D); 220 FOR I=70 TO 130 STEP 10 230 PRINT #1,CHR$(&H12);"~";CHR$(I);"Print Density";I;"%" 240 NEXT I : PRINT #1,CHR$(&H0D); 250 PRINT #1,CHR$(&H12);"~";CHR$(100); 260 PRINT #1,"DPU-S445 Power Off" 270 PRINT #1,CHR$(&H12);"stp"; 'Power Off 280 CLOSE #1 290 END Figure 6-37 Program Sample 19...
  • Page 156 0: Enable 8 Bluetooth Link Key selection After executing this command, the printer resets (same as power OFF and ON) itself. Refer to the DPU-S445 SERIES USER'S GUIDE for the setting of SWDIP switch from the function setting mode. 6-109...
  • Page 157 Note The FLASH memory life is shortened if this command is used many times. The FLASH memory life is approx. 100000 times. DC2 'i' m {DATA} Set Default/Set Test Print Header Code 12H 69H m {Data} Function Set default and test print header. Moreover, can be set various settings for Bluetooth. Function Data Initializing of the test print header...
  • Page 158 Reading test print header transfers head data to the computer from top to bottom. Transfer NULL character to complete the data transmission. Initializing of the test print header clears set header and returns to default test print header at shipping. Set Writing Bluetooth device name as character string within 2 to 32 bytes.
  • Page 159 Reading each default values is transferred data that correspond of m by the hexadecimal of 2 or 4 digits to the host device. Reboot or execute reset command after turning off the POWER switch to set the default settings. After executing Execute Routine Format command (DC2 'E' 2 n), the printer cancels setting of 42H to 48H as follows: Line feed : 34 dots...
  • Page 160: Download Mode

    The printer deletes registered font set and replaces the font set with newly font set by this command. Note If executing this command, the printer deletes SII Japanese font set which is set at shipping. Make sure this execution cannot undo. To print the following characters, SII Japanese font set is required.
  • Page 161 If the m differs from the data structure which specified by Data Structure of a 2-Byte Character ('{' n ) command, the printer discards data of 1048576 bytes from next byte. This command is valid for download mode. Do not turn the printer off or input communication break during executing the command. To print Japanese Kanji or Korean, following the format below and creates font data.
  • Page 162  Address Structure for font data Structure of Japanese <2-byte download> Font data for 1 character is configured as the figure below. Padding data of 1 byte is added to 24 dots font data every 3 bytes. Therefore, 1 character font data requires 96 + 32 = 128 bytes. padding data padding data 24 dots font...
  • Page 163 Structure of Korean <2-byte download> Font data for 1 character is configured as the figure below. 1 character font data requires 72 + 32 = 104 bytes. 24 dots font data storing area (72 bytes) 16 dots font data storing area (32 bytes) All characters are registered into the section of 1 to 93 and assigning 94 characters in each section Section1: A1A1H to A1FEH...
  • Page 164 '{' n Data Structure of a 2-Byte Character Code 7BH n 0  n  1 Function Selects the data structure of a 2-byte character. Function Japanese Korean Code This command is valid for download mode. 6-117...
  • Page 165: Defaults

    6.6 DEFAULTS The defaults of the items are listed below. Table 6-14 Default Settings(1/2) Item Default Line buffer Cleared Page length 38 lines (1292 dots line) Bottom margin Canceled Page mode Canceled Maximum number of digits for printing Right margin (at shipping) Left margin 0 digit (at shipping)
  • Page 166 Maximum paper feed length to mark detection 300 mm Amount of paper length by auto-loading 50 mm Bluetooth PIN code Not registered Bluetooth device name DPU-S445 *1: The value can be changed by Set default/Set test print header (DC2 'i') command. 6-119...
  • Page 167: Initial Automatic Status Transmission

    6.7 INITIAL AUTOMATIC STATUS TRANSMISSION The printer can transfer 1 byte of data containing status information at one second intervals automatically regardless of the existence of an error when bit 8 of SWDIP switch 2 is set to 0. The contents of status information is the same as the description shown in DC2 'e' n. The initial automatic status transmission for each communication mode is explained below: ...
  • Page 168: Command Index

    6.8 COMMAND INDEX 6.5.2 Formatting Commands......................6-20 ESC 'C' n Set page Length at n Lines ..............6-20 ESC 'C' 0 n Set Page Length at n Inches ..............6-20 ESC 'N' n Set Bottom Margin .................. 6-20 ESC 'O' Cancel Bottom Margin ................
  • Page 169 FS '.' Cancel Kanji Mode.................. 6-44 FS 'C' n Select Kanji Code System ..............6-44 FS 'r' n Select Kanji Quarter Size Character Mode ..........6-45 FS DC2 Cancel Kanji Quarter Size Character Mode ..........6-45 6.5.12 Kanji Character Definition Commands .................. 6-46 FS '2' c1 c2 {DATA} Define User-defined Character ...............
  • Page 170 GS 'n' n Nominal Fine Element Width ..............6-73 GS 'o' n PDF Row Height ..................6-74 GS 'p' 0 m2 e r c nl nh {DATA} PDF417 Print ..................6-74 DC2 ';' n QR Code and Data Matrix Module Sizes ..........6-75 GS 'p' 1 model e v mode nl nh {DATA} QR Code Print ..................
  • Page 171 DC2 'i' m {DATA} Set Default/Set Test Print Header ............6-110 6.5.26 Download Mode ........................6-113 DC2 DC2 Download Mode Selection ..............6-113 Hardware Reset..................6-113 ',' m {Font Data} Area of 2-Byte Character Download ............. 6-113 '{' n Data Structure of a 2-Byte Character............ 6-117 6-124...
  • Page 172: Character Sets (Character Code Table)

    APPENDIX A CHARACTER SETS (CHARACTER CODE TABLE) A.1 CHARACTER CODE TABLE  ANK (Katakana character set: if Japanese is selected as an international character set) * 20H and A0H indicate a space. 7FH and FFH are ignored.
  • Page 173  IBM Compatible (Extended graphics character set: if Japanese is selected as an international character set) * 20H indicates a space. 7FH and FFH are ignored.  Codepage 1252 character set: if Japanese is selected as an international character set * 20H indicates a space.
  • Page 174: International Character Sets

    A.2 INTERNATIONAL CHARACTER SETS The following codes differ depending on the international character set selected.
  • Page 175: Kanji Code Table

    A.3 KANJI CODE TABLE Kanji characters of 1997 JIS levels 1 and 2 are supported. The following special characters and character codes for vertical writing, which are not listed in the table, are also supported.  Special character codes 2821H to 285BH 2D21H to 2D7EH ...
  • Page 176: Kanji Quarter Size Character Set

    A.4 KANJI QUARTER SIZE CHARACTER SET...

Table of Contents