background image

 

 

DPU-S445 SERIES   

THERMAL PRINTER 

TECHNICAL REFERENCE 

U00110811309 

Summary of Contents for DPU-S445 SERIES

Page 1: ...DPU S445 SERIES THERMAL PRINTER TECHNICAL REFERENCE U00110811309 ...

Page 2: ...nformation contained herein is the property of SII and shall not be reproduced in whole or in part without the prior written approval of SII SII reserves the right to make changes without notice to the specifications and materials contained herein and shall not be responsible for any damages including consequential caused by reliance on the materials presented including but not limited to typograp...

Page 3: ...eferred 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 Bluetooth supporting model The printer complies with EU RoHS Directive 2011 65 EU ...

Page 4: ...r describes 4 types of the interface specifications which are required to connect the host device with the printer CHAPTER 4 FUNCTION SETTINGS This chapter describes the function settings test print and hex dump mode CHAPTER 5 LAMP DISPLAY AND SWITCH FUNCTION This chapter describes the printer status by lamp display and functions of switches CHAPTER 6 COMMAND DESCRIPTIONS This chapter describes th...

Page 5: ...FACE SPECIFICATIONS 3 9 CHAPTER 4 FUNCTION SETTINGS 4 1 FUNCTION SETTING 4 1 4 1 1 Function Settings SWDIP1 4 2 4 1 2 Function Settings SWDIP2 4 4 4 1 3 Function Settings SWDIP3 4 6 4 1 4 Function Settings SWDIP4 4 8 4 1 5 Function Settings by Switch Operation 4 10 4 1 6 Function Settings by Commands 4 13 4 2 TEST PRINT 4 14 4 3 HEX DUMP MODE 4 15 CHAPTER 5 LAMP DISPLAY AND SWITCH FUNCTION 5 1 PRI...

Page 6: ... 6 48 6 5 14 Kanji Character Pitch Adjustment Command 6 51 6 5 15 Image Command 6 54 6 5 16 Stamp 6 58 6 5 17 Other Commands 6 62 6 5 18 Ruler Line Commands 6 63 6 5 19 Optional Font Commands 6 67 6 5 20 Bar Code Commands 6 70 6 5 21 Routine Commands 6 84 6 5 22 Page Mode 6 89 6 5 23 Status Commands 6 94 6 5 24 Character Set Command 6 98 6 5 25 Auxiliary Function Commands 6 100 6 5 26 Download Mod...

Page 7: ...s Which Use the FLASH Memory and the RAM 6 9 Table 6 3 Commands Which Use the FLASH Memory 6 9 Table 6 4 Commands Which Use the RAM 6 9 Table 6 5 Difference in Behavior Between the FLASH Memory and the RAM 6 10 Table 6 6 Capacity of Each Function 6 10 Table 6 7 The Number of Bytes for Memory Control Information of Each Function 6 11 Table 6 8 Commands Which Allocate or Release the User Area of RAM...

Page 8: ...2 Print Sample 6 6 53 Figure 6 13 Program Sample 7 6 57 Figure 6 14 Print Sample 7 6 57 Figure 6 15 Program Sample 8 6 61 Figure 6 16 Print Sample 8 6 61 Figure 6 17 Program Sample 9 6 62 Figure 6 18 Print Sample 9 6 62 Figure 6 19 Program Sample 10 6 66 Figure 6 20 Print Sample 10 6 66 Figure 6 21 Program Sample 11 6 69 Figure 6 22 Print Sample 11 6 69 Figure 6 23 Program Sample 12 6 78 Figure 6 ...

Page 9: ...acters The printer repeats this operation to print all the character data The relationship between the input buffer and line buffer is illustrated in Figure 1 1 Host Device Input Buffer Line Buffer Print Operation One Line of Characters is Printed Figure 1 1 Relationship between Input Buffer and Line Buffer 1 byte characters and 2 byte characters The printer can print two size characters 1 byte ch...

Page 10: ... direction See Figure 1 3 A B Character Spacing Figure 1 3 Character Spacing Line The word line in this manual indicates a line of characters For example the sentence the printer feeds paper one line indicates that the printer feeds paper a line of characters Dot Line The words dot line in this manual indicate a line of dots in the vertical direction For example the sentence the printer feeds pape...

Page 11: ...acter set Extended graphics character set Codepage 1252 character set JIS 1st and 2nd level of Kanji 2 2 Interface Serial RS 232C conformity USB Ver 2 0 conformity Infrared IrDA Ver 1 2 BHT Ir protocol conformity Bluetooth Ver 2 0 EDR conformity 3 Input buffer size 4K bytes Dimensions W x D x H 145 mm x 135mm x 8mm Mass Approx 490 g including the battery pack excluding paper Operating temperature ...

Page 12: ...ing 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 Figure 2 1 Dimensions 2 2 ...

Page 13: ...per Industries Co P350 Kanzaki Specialty Papers Paper roll KT55F20 Papierfabrik August Koehler AG TC98KS LH Nippon Paper Industries Co Cut paper TF8067 Mitsubishi Hi Tech Paper Paper mode 1 Label paper TL69KS HW76B Nippon Paper Industries Co Paper width 112 0 1 0 mm Outside diameter 50 mm max Inside diameter 8 mm min Label paper Outside diameter of paper core should be 25 4 mm min Spectral reflect...

Page 14: ...2 2 1 Timing Mark for the Cut Paper Dimensions 2 4 112 0 1 0 9 min 5 3 max 16 Insertion direction of paper Unit mm Figure 2 2 Timing Mark for the Cut Paper back surface ...

Page 15: ... printable area shown in Figure 2 3 The position of print end must be at the position of 15mm or longer from the bottom edge of the paper e The cut paper is ejected by sending Form Feed command at the end of printing Repeat steps c to e 2 5 Figure 2 3 Example for the Cut Paper Page length Paper length A B C D E F 0 1 2 3 4 5 a b c d e f Form Feed command Printable area 15mm or longer 6mm Paper len...

Page 16: ...ge length A B C D E F 0 1 2 3 4 5 a b c d e f 110 b Paper cut position 20 to 250 6 8 Printing area 3 To the beginning of the next label a Print start position 3 max 9 min 5 12 112 0 1 0 Thermal label paper surface Backing back surface Label length Unit mm Figure 2 4 Example for Thermal Label Paper Dimensions 2 6 ...

Page 17: ...d to find the beginning of the next label The mark on the next label is detected and the beginning of the next label is located by sending Form Feed command The print start position after the beginning of the next label is placed at position a and the paper cut position is b as shown in Figure 2 4 Repeat steps e to f NOTE When Mark Position Correct of SWDIP 4 5 is set as Enable the printer operate...

Page 18: ...ing 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 2 25 C charged in the printer with specified AC adapter print ratio is 12 5 charged with 70 or more of fully charged The rate in environment of 0 to 50 C becomes 40 or more 2 8 ...

Page 19: ...t a low temperature the total number of black printing areas w1 w2 in the figure above for example should not exceed 78mm for parts having high printed ratios including the ladder bar code part Be aware in particular that reverse printing and ruled line tend to increase the ratio Parts where many black dots are used when viewed in the direction vertical to the paper feed direction Use of the batte...

Page 20: ...vice and wait few seconds before connect it again When the printer is left unused for a long period of time a white powder appears to the surface of platen This is the powder by which an ingredient of a thermal paper was recrystallized If the powder appears to the platen wipe the platen with ethanol and use the printer after ethanol has dried completely Also make sure not to adhere ethanol except ...

Page 21: ...Logic 1 SPACE 3 0 to 15 0 V Logic 0 Baud rate 1200 2400 4800 9600 19200 38400 57600 115200 bps Data bit length 1 7 bits or 8 bits Stop bit length 1 bit or 2 bits Parity None odd or even Reset Break signal input to RxD 20ms or longer 1 When selecting 7 bits the data transmission such as the status from a printer is not performed Also the command that uses 80H and more parameters and character print...

Page 22: ...n error occurs the setting is changed by Busy Output When Error Occurs at function setting Xon Xoff control In Xon Xoff control TXD outputs Xon code 11H from power ON until the printer is ready to receive data Received data is input to the input buffer When there are 65 bytes or less remaining in the input buffer TXD outputs Xoff code 13H The host device does not transmit data while Xoff code is r...

Page 23: ... as SPACE When CTS Control of function setting sets to Disable the printer sends data from TXD regardless of the condition of the host device Xon Xoff control In Xon Xoff control the conditions which transmit status information to the host device from the printer is that the printer sends data from TXD regardless of the condition of the host device NOTE Be aware that if the transmission buffer bec...

Page 24: ... input buffer becomes 129 bytes or more The number of bytes that can be received with one packet is maximum 64 bytes When an error occurs the NAK response continues until the error is cleared after receiving data of 2 packets For the operation when an error occurs the setting is changed by Busy Output When Error Occurs at function setting 5 Data transmission USB data transmission uses a bulk in tr...

Page 25: ...smission range 15 Infrared transmission pulse width Typ 1 63 s 3 3 2 IrDA Specifications The printer conforms to IrDA Ver 1 2 and supports only the minimum infrared transmission functions as the second station 1 Transmission specifications Item Specification Baud Rate 9600 to 115200 bps Data Size 64 to 512 bytes Window Size 1 Additional BOFs 0 to 48 Maximum Turn Around Time 500ms Minimum Turn Arou...

Page 26: ... values for GetValueByClass inquiries are listed below 1 4 Inquiry Inquiry Class Device Class IrLPT Attribute Device Name Attribute IrDA IrLMP LsapSel Return value Return value Device Name Sll Thermal Printer Lsap address 7 2 5 Inquiry Class IrDA IrCOMM Class IrDA IrLMP Attribute Parameters Attribute IrDA IrLMP LsapSel Return value Return value Service type 3 Wireraw Lsap address 7 Port type Seria...

Page 27: ...r and transfers them at transmit timing to the remote station The printer clears a response data in the transmission buffer when transmission to the remote station is disconnected for busy state When the remote station is in disconnection the printer does not store the data in the transmission buffer and the data is cleared However the printer transfers the status regardless of the remote station ...

Page 28: ...t buffer becomes 512 bytes or less after subtracting the field number of the data text indicated in heading text 4 Input buffer full processing when receiving data Upon receiving data the printer sends WACK supervisory sequence to a host device for requiring temporarily delay of the data output from the host device as the input buffer full state when the remaining amount of the input buffer is 255...

Page 29: ...th Link Key is Disable and selection of PIN code is canceled Bluetooth device becomes security mode 1 again and no encryption is used 3 Input buffer Capacity of input buffer for internal Bluetooth module is 3Kbytes Received data is stored in the input buffer of Bluetooth module and then these data is to be processed after data transfer to input buffer of the printer If an error occurs the printer ...

Page 30: ... 4 are described below The value that is indicated by boldface and shaded cell shows a default setting value The words in parentheses in the table are indicated in test print CHAPT 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 the...

Page 31: ...rdware control or Xon Xoff control ontrol flow control is performed using RTS signal in the printer sing codes of Xon 11H or Xoff 13H from the printer Stop Bit selecti Select Stop Bit in serial communication 1 bit or 2 ts Parity selection Select Parity in s ommunication a ven Odd None Parity SWDIP1 6 SWDIP1 5 Data Control In BUSY c In Xon Xoff control flow control is performed u on as bi erial c s...

Page 32: ...P1 3 SWDIP1 2 SWDIP1 1 1200 0 0 1 0 2400 0 1 0 4800 0 0 1 1 9600 0 1 1 19200 1 0 0 38400 1 0 1 57600 1 1 0 115200 1 1 1 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: ... be created Note that the printer does not perform printing processing until the transmission buffer full is cleared Kanji Code selection Select Kanji Code in default as JIS Code or Shift JIS Code This setting Kanji Code System FS C command 6 5 11 Kan can be changed by Select ji Character Set Selection commands ged by Select Character Font mand 6 5 24 Character Set Command When Auto Power Off sele...

Page 34: ... CHAPTER 3 INTERFACE for more detail ode SWDIP2 2 SWDIP2 1 Data Input M BHT Ir USB 0 0 Serial USB 0 1 IrDA USB 1 0 Bluetooth USB 1 1 1 1 This setting is enabled for Bluetooth supporting model only Bluetooth supporting model is shipped with this setting value Bluetooth USB ...

Page 35: ...o the thermal head it would shorten its life span and cause the paper feed problem Set an accurate thermal paper selection and print density If sele thermal paper that is ferent fr the one specified in the thermal cting the dif om pape or in case of not setting the print density in 100 verify the r selection perform with your actual device fore printing ance be Thermal Pa ction Select the th aper ...

Page 36: ...als on the back side which to detect paper position Refer to 2 2 SPECIFIED THERMAL PAPER SPECIFICATION for the paper roll dimensions a Operation of paper detection In this mode the printer determines the status as the out of paper error by feeding the thermal paper 10mm or longer if it is less than 10mm the printer determines the status as the mark and does not detect the out of paper error 1 Cut ...

Page 37: ...WDIP3 1 to 3 2 is selected to Mark Roll Paper the printer feeds the paper roll in backward as following conditions Beginning of a printing right after power on or resetting Beginning of a printing right after performance paper home feed by FEED switch or page feed execution To use this function there are several restrictions Refer to 2 2 SPECIFIED THERMAL PAPER SPECIFICATION Bluetooth Li This func...

Page 38: ...IP1 8 is selected to Busy the on sets to Disable or selecting serial communication as Xon Xoff control the printer transmits data regardless of status of the host device Auto Activation by AC selection When Auto Activation by AC selection sets to Enable the printer turns the power on after plugging specified AC adapter to the outlet CTS Control selection When CTS Control selec printer transmits da...

Page 39: ...inter turns off The printer becomes in the function settings mode and becomes in the state of waiting for switch operation In the function setting mode you can initialize or modify settings To set the settings to defaults perform operation 1 To change settings perform operation 2 A function setting can be performed by switch operation Use the function settings by switch operation in the function s...

Page 40: ...P switches from 1 to 4 in the printer so set 8 bits within SWDIP switches respectively In function setting mode the POWER lamp blinks once by pressing either the POWER switch or the FEED switch Be sure to confirm the POWER lamp blinking in order to ensure proper operation Load Default Setting Yes Feed SW No Power SW e settings are set t Default Setting Saved Setting Mode Finished ing SWDIP switch ...

Page 41: ...ssed the message shown at the following is printed and the setting is saved When pressing the POWER switch instead of the FEED switch the message shown at the following is printed and the setting is not changed After this operation the function setting shifts next SWDIP switch operation 1 After setting SWDIP switch 4 the setting function exits setting mode operation 3 a If pressing the FEED switch...

Page 42: ...e shown below the printer exits the function setting The function setting is now complete The command is transmitted to the printer by selected communication For details of commands refer to Function Settings DC2 k command 6 5 25 Auxiliary Function Commands a If pressi DIP Switch setting mode Continue Feed SW Quit Power SW mode and turns off Setting Mode Finished 4 1 6 Function Settings by Command...

Page 43: ...rinter at the same time until the POWER lamp lights release the POWER switch first and then the FEED switch second c The test print is performed d The printer goes to print ready status after test printing is completed The printer has a test print function that prints the contents of Function Settings and ch paper is not set set the thermal paper to the printer b Press the POWER ...

Page 44: ...eps a Be sure that the thermal paper is installed to the pri b Keep on pressing the POWER and FEED switches in six seconds ess the POWER switch after printing the me Select Function Setting Mode Feed SW HEX Dump Mode Power SW e After printing the message below th HEX DUMP MODE The e Input data from host computer The data input through the printer interface is OK PRINT 1 abcdefghijklmn HEX DUMP MOD...

Page 45: ...wice Battery low power failure Power supply voltage is out of the stipulated range 1 Blink On Thermal head temperature error Thermal head temperature is out of the stipulated range 2 Blink twice On Recharging Battery pack is recharging Blink Off Function setting mode Mode where function settings can be set Off On Function setting mode shifting Blink Blink FLASH memory accessing FLASH memory is ope...

Page 46: ...tected When the mark is not detected press the FEED switch to recover to print ready status 1 Roll Paper Mark Roll Paper mode Open the paper cover and replace the thermal paper Close the paper cover so the printer returns to print ready status automatically one second later Paper cover open Close the paper cover so the printer returns to print ready status automatically one second later Thermal he...

Page 47: ... the switch is held down the thermal paper is fed continuously Mark Roll Paper mode The printer feeds the paper until paper mark detection by pressing this switch once The printer stops its operation if the printer does not detect the mark after feeding the thermal paper up to paper length which is set The amount of maximum paper length to mark detection can be set by Set default Set test print he...

Page 48: ...0 ESC O Cancel Bottom Margin 6 21 ESC Q Set Right Margin 6 21 ESC l Set Left Margin 6 22 ESC 0 Set 1 8 inch Line Spacing 6 24 ESC 2 Set 1 6 inch Line Spacing 6 24 ESC 3 Set n dot line Line Spacing 6 24 ESC B Set Vertical Tab Positions 6 26 ESC D Set Horizontal Tab Positions 6 27 CR Print and Carriage Return 6 28 LF Print and Line Feed 6 28 FF Page Feed Form Feed 6 28 ESC J Print and Feed Paper 6 2...

Page 49: ...38 ESC Select Cancel Underline Mode 6 38 ESC Set Print Mode 6 39 DC2 Y Character Rotation 6 40 ESC SP Set Character Spacing 6 41 FS Select Kanji Mode 6 44 FS Cancel Kanji Mode 6 44 FS C Select Kanji Code System 6 44 FS r Select Kanji Quarter Size Character Mode 6 45 FS DC2 Cancel Kanji Quarter Size Character Mode 6 45 FS 2 Define User defined Character 6 46 DC2 G User defined Character Area Operat...

Page 50: ...ease 6 68 GS H Select HRI Character Print Position 6 70 GS f Select HRI Character Font 6 70 GS h Set Bar Code Height 6 70 GS k Print Bar Code 6 71 GS w Set Width of Bar Code 6 73 GS P Set Bar Code Print Position 6 73 GS n Nominal Fine Element Width 6 73 GS o PDF Row Height 6 74 GS p 0 PDF417 Print 6 74 DC2 QR Code and Data Matrix Module Sizes 6 75 GS p 1 QR Code Print 6 75 GS p 2 Data Matrix Print...

Page 51: ...otor Speed Select 6 101 DC2 a Set Automatic Power off Time 6 101 DC2 Select Overlap Mode 6 101 DC2 Select Image LSB MSB 6 102 GS g 0 Maintenance Counter Initialization 6 103 GS g 1 Maintenance Counter Preservation 6 103 GS g 2 Maintenance Counter Transmission 6 104 DC2 User Area Data Registration Clears 6 105 DC2 1 User Area Defragment 6 105 DC2 2 Remaining User Area Response 6 106 DC2 R User Area...

Page 52: ...de If a command is input in 2 byte character codes the next data is always processed as the first byte However the next data is 1 byte character code for Cancel Kanji Mode FS If a command is input as the second byte of 2 byte character code the first byte is ignored 1 1 byte character codes 00H 1FH Commands are processed as commands 20H 7EH The codes are processed as 1 byte character code 7FH Igno...

Page 53: ...r area are processed as 2 byte character spaces Printed 2 byte character code conforms to JIS X 0208 1997 3 2 byte character codes when mounting Korean character 2 byte character codes specify Korean or user defined character First byte 00H 1 byte character area Specify the 1 byte character with the next data of 00H 77H User defined character area A1H FDH Korean character area The other codes are ...

Page 54: ...acter and downloaded character operation is effective 80H FEH See 2 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 If the Codepage 1252 is selected it is processed as the character code 2 2 byte character codes 2 byte character codes specify Kanji and user defined character First byte 81H...

Page 55: ...other codes are ignored unless they are commands The next data to be received is processed as the first byte Second byte If the first byte is A0H A1H FEH The codes are processed as the second byte of user defined character If the first byte is A1H 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 pr...

Page 56: ... barcode Commands which relate to these functions are as follows Table 6 3 Commands Which Use the FLASH Memory Command Command Name DC2 z 4 n Page Mode Data Registration DC2 a n m User Area Data Registration Clears DC2 1 User Area Defragment DC2 2 Remaining User Area Response Table 6 4 Commands Which Use the RAM Command Command Name DC2 T Stamp Define DC2 U Stamp Clear DC2 P Define Optional Font D...

Page 57: ...ls are as follows 6 4 1 RAM 1 User area of RAM The RAM has 232280 bytes of user area Allocate or release the user area for each function Allocation of the area means that the user area is divided into a partition for a specified function to be used exclusively Release of the area means that a partition of the area which is set for a specified function is removed so that it is available to other fu...

Page 58: ...spectively For optional font routine function or stamp its size is the number of data Memory control Information bytes Moreover for routine function and stamp the above mentioned area per registration data is allocated 3 Precautions for stamp It is impossible to use the commands which allocate or release the user area of RAM listed in Table 6 8 when stamp is selected by Stamp Select command Table ...

Page 59: ...When the command is normal and the user area of RAM has been allocated but the bar code cannot be printed within printable area The command is ignored When the command is normal the user area of RAM has been allocated and the bar code can be printed within printable area The two dimensional bar code is printed The necessary remaining capacity differs according to types and sizes of bar codes The n...

Page 60: ...n number of bytes Table 6 10 GS p 1 QR Code Print Command Necessary Capacity Area Capacity Bytes Area1 N 2 560 bytes 1 Area 2 8006 bytes Area 3 M int 8 7 M 3 bytes 2 M 17 V 4 1 N Number of bar code data When remaining capacity of the RAM is an odd number one more byte is necessary When number of bar code data byte is an odd number one more byte is necessary 2 M Number of modules for one side of th...

Page 61: ...X int Ym 16 15 Xm int bytes 3 5 1 N Number of bar code data When remaining capacity of the RAM is an odd number one more byte is necessary When number of bar code data byte is an odd number one more byte is necessary 2 D Number of data code word E Number of error correction code word These values are decided from symbol sizes See Table 6 12 3 Area 4 A and area 4 B are used commonly The larger numb...

Page 62: ...22 20 20 30 20 24 24 22 22 36 24 26 26 24 24 44 28 32 32 28 28 62 36 36 36 32 32 86 42 40 40 36 36 114 48 44 44 40 40 144 56 48 48 44 44 174 68 52 52 48 48 204 84 64 64 56 56 280 112 72 72 64 64 368 144 80 80 72 72 456 192 88 88 80 80 576 224 96 96 88 88 696 272 104 104 96 96 816 336 120 120 108 108 1050 408 132 132 120 120 1304 496 144 144 132 132 1558 620 8 18 6 16 5 7 8 32 6 28 10 11 12 26 10 2...

Page 63: ...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 Area Capacity Bytes Area 1 N bytes 1 Area 2 7684 bytes 1 N Number of bar code data When remaining capacity of the RAM is an odd number one more byte is necessary When number of bar code data byte is an odd number one more byte is necessary ...

Page 64: ...n the FLASH memory is copied to the user area of RAM when User Area Initialization command is executed or the printer is started after the power supply is disconnected there is no areas for user defined character or downloaded character in the user area of RAM and user defined character or downloaded character is registered in the FLASH memory 1 Use status of the shared area in the user area Share...

Page 65: ...gain execute the User Area Defragment DC2 1 command The 5 shows the shared area after the command is executed Execute Remaining User Area Response DC2 2 command to check the remaining capacity 2 Precautions on the user area of FLASH memory when rewriting releasing and allocating The maximum rewritable number of the FLASH memory is approximately 100000 times Execute the User Area Defragment command...

Page 66: ...6 19 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 a b c a b c ...

Page 67: ... is n x 203 dot lines The bottom margin set by ESC N is canceled If n 0 or n 23 this command is ignored This setting is canceled by Page Mode Select DC2 z 0 command Moreover this command is ignored in the page mode Default Cut paper mode 6 4 inches 1292 dots lines Roll paper mode No page length setting Mark roll paper mode 6 4 inches 1292 dots lines ESC N n Set Bottom Margin Code 1BH 4EH n 1 n 127...

Page 68: ...he character width is not calculated by double when Select expanded character mode with automatic cancellation SO command is selecting The line buffer data is cleared and the next print position becomes the left margin The right margin does not move if the character pitch is changed later When n is smaller than the left margin columns the command is ignored If the printable area is one character o...

Page 69: ...t position becomes the left margin The left margin does not move if the character pitch is changed later When n is larger than the right margin columns the command is ignored If the printable area is one character or less one character is printed This command is ignored in the page mode Default n 0 at shipping Printer initial state after power on can be changed by Set default Set test print header...

Page 70: ... 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 Skip Length 2 line 180 PRINT 1 CHR H1B Q CHR 34 Right Margin 34 char 190 PRINT 1 CHR H1B l CHR 17 Left Margin 17 char 200 FOR I H20 TO HFE 210 PRINT 1 CHR I 220 NEXT I 230 PRINT 1 CHR H0D 240 CLOSE 1 250 END Figure 6 1 Program Sample 1 Figure 6 2 Print Sample 1 ...

Page 71: ...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 Default 34 dots lines Printer initial state after power on can be changed by Set default Set test print header DC2 i command ESC 3 n Set n dot line Line Spacing Code 1BH 33H n 0 n 255 Function Sets line ...

Page 72: ...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 200 CLOSE 1 210 END Figure 6 3 Program Sample 2 Figure 6 4 Print Sample 2 ...

Page 73: ...al tabs are cleared A maximum of 16 vertical tab positions k can be set If more tab positions are specified they are ignored until the value becomes 00H or the preceding value ESC B NUL clears all vertical tab positions If p exceeds the page length the tab position is invalid The following data is processed as normal data Even if the line spacing is changed after setting vertical tab positions the...

Page 74: ...orizontal tab position setting ends The following data is processed as normal data Tab positions exceeding the right margin are invalid They become valid when the right margin is changed so that they are included in the printable area Preset horizontal tabs are cleared Up to 32 tab positions k can be set Data which exceeds 32 tab positions will be ignored until the value becomes 00H or the precedi...

Page 75: ...orms page feed up to specified page length after data in the line buffer is printed out When page length is not specified the printer performs page feed up to mark by specified value with Set default Set test print header DC2 i command after data in the line buffer is printed out The next print starting position becomes the beginning of the next line left margin The select expanded character mode ...

Page 76: ... this code is received the printer only feeds n dot lines The predetermined line spacing remains unchanged ABC n GS Marked Paper Form Feed Code 1DH 3CH Function Performs the marked paper form feed This command is effective only when marked paper is selected In the Mark Roll Paper mode or Cut Paper mode the printer performs its operation as same as Page feed FF command In the Mark Roll Paper mode t...

Page 77: ...rated line skip area when a VT command is executed the paper is fed to the beginning of the next page The vertical tab position is set using the ESC B command The select expanded character mode with automatic cancellation selected by SO is canceled If the page length is not specified in the initial state in the roll paper mode the command functions in the same way as the LF command Default No defi...

Page 78: ... 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 200 PRINT 1 Vertical Tab VT CHR H0B 210 PRINT 1 CHR H09 HTAB CHR H09 HTAB CHR H09 HTAB 220 PRINT 1 CHR H1B CHR HFA CHR H0 250 dots 230 PRINT 1 Absolute Position 240 PRINT 1 CHR H1B CHR HF0 CHR HFE 250 PRINT 1 Relative Position 260 PRINT 1 Form Feed FF CHR H0C 270 PRINT 1 Next page top 28...

Page 79: ...of range this command is ignored Default n 8 Japan Printer initial state after power on can be changed by Set default Set test print header DC2 i command ESC t n Select Character Code Table Code 1BH 74H n Function Selects a character code table Only two low order bits are valid n 0 Extended graphics character set IBM Compatible n 1 Katakana character set ANK n 2 Codepage 1252 character set n 3 Ign...

Page 80: ...Euro characters When n is 0 the exchange to the Euro characters is released and the font returns before selection Only one character code to be exchanged to Euro characters is available When an exchange to Euro characters for other character code is performed the last change to Euro characters for character code is released Default n 0 not selected ...

Page 81: ...200 PRINT 1 CHR H1B t CHR I 210 PRINT 1 01234567ABCDEFGabcdefg アイウエオ 220 NEXT I 230 CLOSE 1 240 END 250 PRINT 1 CHR H1B R CHR I 260 PRINT 1 CHR H23 CHR H24 CHR H40 270 PRINT 1 CHR H5B CHR H5C CHR H5D 280 PRINT 1 CHR H5E CHR H60 CHR H7B 290 PRINT 1 CHR H7C CHR H7D CHR H7E 300 RETURN 310 COUNTRY NAME 320 DATA USA FRANCE GERMANY ENGLAND ENGLAND DENMARK 1 SWEDEN 330 DATA ITALY SPAIN JAPAN DENMARK 2 SP...

Page 82: ... be processed as normal data The font size of the downloaded character registered is decided by current selected font size The downloaded character for 24 or 16 dot fonts are defined simultaneously because both are registered in separate areas d indicates the defining data The bit corresponding to the dot to be printed is set to 1 and the bit corresponding to the dot not to be printed is set to 0 ...

Page 83: ...ownloaded character is erased and the downloaded character set specification is released The following commands are ignored ESC Define downloaded character ESC Select cancel downloaded character set The downloaded character area after RAM initialization is 6248 bytes long If the downloaded character area is released the remaining capacity increases by 6248 bytes The remaining capacity of the user ...

Page 84: ...on Selects or cancels the expanded character mode for 1 byte characters and 2 byte characters Only the least significant bit LSB of n is valid n 1 Select the expanded character mode n 0 Cancel the expanded character mode ESC W 0 releases the expanded character mode selected by SO Default n 0 Cancel the expanded character mode ESC w n Select Cancel Double Height Mode Code 1BH 77H n Function Selects...

Page 85: ...Underline Mode Code 1BH 2DH n Function Selects or cancels underline mode for 1 byte characters Only the least significant bit LSB of n is valid n 1 Select the underline mode n 0 Cancel the underline mode The underline is attached to all printing characters including character right side spacing The underline however is not attached when skipped by Horizontal Tab HT Set Absolute Position ESC or Set...

Page 86: ...it is not attached when skipped by HT or other commands The underline width can also be modified with FS When the underline width is not specified by FS default width is set as 1 dot underline This command is valid for 2 byte characters except underlines If emphasized printing is canceled double printing is canceled If double printing is canceled emphasized printing is canceled The underline mode ...

Page 87: ... doubled the character is doubled in the X direction characters are doubled vertically Character rotation cannot be underlined The following characters can be rotated Extended graphics characters Katakana characters Codepage 1252 Downloaded character Kanji Kanji quarter size characters User defined character Optional font cannot be rotated The four rightmost dots of 24 16 dots fonts of extended gr...

Page 88: ... 0 dot Only the seven significant bits of n are valid n must be 0 to 127 dots The character right side spacing for double width mode is twice the value set by this command It can be expanded to up to 254 dots This command does not change the spacing of 2 byte characters This also does not change the spacing of 1 byte characters in the Kanji ROM See FS S for details on the spacing of 2 byte charact...

Page 89: ...erLine 280 PRINT 1 CHR H1B W0 DoubleWidth 290 PRINT 1 CHR H1B w0 DoubleHeight 300 PRINT 1 CHR H1B F Emphasize 310 PRINT 1 CHR H1B CHR HB8 CollectivelySet 320 PRINT 1 CHR H1B CHR H00 CollectivelyClear 330 PRINT 1 CHR H12 Y2 Rotation Left 340 PRINT 1 CHR H12 Y1 Rotation Right 350 PRINT 1 CHR H12 Y0 Rotation Off CHR H0D CHR H0D 360 PRINT 1 Character space 370 FOR I 0 TO 25 380 PRINT 1 CHR H1B CHR I 3...

Page 90: ...6 43 Figure 6 10 Print Sample 5 ...

Page 91: ...de 1CH 2EH Function Cancels Kanji mode This command is ignored when Shift JIS is selected as the Kanji code system Default Cancel Kanji mode FS C n Select Kanji Code System Code 1CH 43H n Function Selects Kanji code system Only the least significant bit of n is valid n 0 JIS code system n 1 Shift JIS code system The Kanji mode is canceled and the Shift JIS is set to the Kanji code system when Shif...

Page 92: ...ined character or 1 byte characters in Kanji ROM Only 2330H to 2339H 0 to 9 can be printed as 16 dot Kanji quarter size characters The other alphanumeric Hiragana and Katakana have horizontal 8 dot spacing 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...

Page 93: ...1 or c2 is out of range the range is ignored and the following data will be processed as normal data Since 24 dot user defined character and 16 dot user defined character are registered in different areas up to 94 characters of each type can be defined at the same time Whether a 24 dot or 16 dot user defined character is registered according to the font selected when this command is input The numb...

Page 94: ... user defined character is erased and the user defined character definition commands are ignored The user defined character area after RAM initialization is 9784 bytes If the user defined character area is released the remaining capacity of the user area of RAM increases 9784 bytes The remaining capacity must be at least 9784 bytes to reallocate the user defined character area If the remaining cap...

Page 95: ...orizontal writing FS K Select Horizontal Writing Code 1CH 4BH Function Selects horizontal writing Valid in Kanji mode only Default Horizontal writing FS W n Select Cancel Quadruple size Kanji Character Code 1CH 57H n Function Selects or cancels quadruple size Kanji character Only the least significant bit of n is valid n 1 Select quadruple size Kanji character n 0 Cancel quadruple size Kanji chara...

Page 96: ...o all printing characters including character right side spacing However the underline is not attached when skipped by HT or other commands This command is not valid for 1 byte characters however underline setting is valid for 1 byte characters If the underline is canceled by n 0 the subsequent 2 byte characters are not underlined The underline mode can also be selected or canceled with FS but the...

Page 97: ...hs including right and left side character spacing However it is not attached to the characters skipped by HT or other commands or the characters rotated by 90 The underline width is specified by FS regardless of the character size When the underline width is not specified by FS default width is set as 1 dot underline This command does not affect 1 byte character however the only double width mode...

Page 98: ...ers Only the seven least significant bits of nl and nr are valid Up to 127 dots can be set The character spacing specified by this command does not apply to 1 byte characters The character spacing for double width mode is twice the value set by this command It can be expanded to up to 254 dots Default nl 0 nr 8 at shipping Printer initial state after power on can be changed by Set default Set test...

Page 99: ...NT 1 CHR H1C CHR I K 380 NEXT I 390 PRINT 1 CHR H1C K 400 FOR I 2 TO 0 STEP 1 410 PRINT 1 CHR H1C CHR I K 420 NEXT I 430 FOR I 2 TO 0 STEP 1 440 PRINT 1 CHR H12 Y CHR I K Rotation 450 NEXT I 460 PRINT 1 CHR H1C CHR HBD K 470 PRINT 1 CHR H1C CHR H0 K 480 FOR I 0 TO 18 490 PRINT 1 CHR H1C S CHR I CHR I Kanji space 500 PRINT 1 CHR H30 CHR H21 I 510 NEXT I PRINT 1 CHR H0D CHR H1C 520 CLOSE 1 530 END 5...

Page 100: ...6 53 Figure 6 12 Print Sample 6 ...

Page 101: ...8 dot double density 8 2 7 dots mm 832 8 dots mm 32 24 dot single density 24 8 dots mm 416 4 dots mm 33 24 dot double density 24 8 dots mm 832 8 dots mm If m is not one of the values listed above ESC m is ignored and the subsequent data will be processed as normal data Number of dots in the horizontal direction nhx256 nl If nl nh 0 the data before nh is ignored and the following data will be proce...

Page 102: ...6 55 8 dot mode 24 dot mode Bit image data LSB MSB d3 d2 d1 d7 d4 d1 d8 d5 d2 d9 d6 d3 Bit image data LSB MSB Print data Print data ...

Page 103: ...e printer does not print data which exceeds right margin Ignores this command when xhxl or yhyl is 0 Ignores the setting of page length or bottom margin If there is any data in the line buffer the printer prints the raster bit image after data in the line buffer is printed The correspondence between the bits of image data can be selected by the Select image LSB MSB DC2 The LSB initially correspond...

Page 104: ...NT 1 24 dots Single density 190 PRINT 1 CHR H1B CHR 32 CHR D MOD 256 CHR D 256 200 GOSUB 260 210 N D 3 PRINT 1 24 dots Double density 220 PRINT 1 CHR H1B CHR 33 CHR D MOD 256 CHR D 256 230 GOSUB 260 240 CLOSE 1 250 END 260 FOR I 1 TO N 12 270 PRINT 1 CHR H33 CHR H33 CHR H33 280 PRINT 1 CHR H33 CHR H33 CHR H33 290 PRINT 1 CHR HCC CHR HCC CHR HCC 300 PRINT 1 CHR HCC CHR HCC CHR HCC 310 NEXT I PRINT ...

Page 105: ...ction does specify the registered stamp number and printing position and to print out the stamps overlapped with printed character or character spaces Specify the printing position in the horizontal direction by 8 dots Stamp print function code prints stamps without overlapping More than one stamp cannot be printed out simultaneously The stamp overlapping mode can be set to OR or XOR by the Select...

Page 106: ... most significant byte The least significant 3 bits of yh are valid Specify up to 07FFH 2047 dot lines with yl and yh If an invalid value beyond the range is specified for x yl or yh the command data is ignored up to that specification and the following data is processed as character codes Enter the stamp data in the horizontal direction by 8 dots as follows Total stamp data is expressed by the fo...

Page 107: ...ed the stamp selection is canceled and the newly specified stamp is selected While the selected stamp is being printed do not enter the function codes listed in Table 6 8 If function codes are entered at this time stamp printing will be aborted DC2 V Stamp Print Out Code 12H 56H Function Prints out all the selected stamps If stamp is not selected this function code is ignored If stamp is being sel...

Page 108: ...1 CHR H12 S CHR 10 CHR 50 190 GOSUB 290 200 PRINT 1 CHR H12 S CHR 10 CHR 1 210 PRINT 1 STAMP PRINT 220 PRINT 1 CHR H12 W 230 PRINT 1 STOP STAMP 240 PRINT 1 CHR H12 U CHR 10 250 PRINT 1 STAMP DELETED 260 PRINT 1 CHR H12 S CHR 10 CHR 0 270 PRINT 1 CHR H12 V 280 CLOSE 1 290 END 300 WELCOME 310 PRINT 1 WELCOME to 320 PRINT 1 CHR H1B w1 CHR HE STAMP 330 PRINT 1 CHR H1B w0 CHR HE World 340 PRINT 1 CHR H...

Page 109: ...NT 1 CHR H1B l CHR 10 Left Margin 10 char 130 PRINT 1 CHR H12 F0 16 dots Font 140 PRINT 1 CHR H1B W1 Double Width 150 PRINT 1 CHR H1B w1 Double Height 160 PRINT 1 CHR H1B CHR 10 Char Space 170 PRINT 1 CHR H12 Y1 Right Rotation 180 PRINT 1 RESET COMMAND TEST 190 PRINT 1 ABCDEFG 200 PRINT 1 CHR H1B Reset 210 FOR I 0 TO 999 NEXT I 220 PRINT 1 RESET COMMAND TEST 230 PRINT 1 ABCDEFG 240 PRINT 1 CHR H18...

Page 110: ... no ruler lines even when a character print or paper feed command is input Default Ruler line OFF DC3 A Ruler Line Buffer A Code 13H 41H Function Selects ruler line buffer A There are two ruler line buffers A and B This command selects ruler line buffer A Subsequently the printer writes ruler line data into ruler line buffer A and prints the image from ruler line buffer A when ruler line printing ...

Page 111: ... Code 13H 46H nl nh 0 nl 255 0 nh 255 Function Fills the selected ruler line buffer with the bit image data two bytes of the specified code nl indicates 8 dots in the left side and nh indicates 8 dots in the right side The correspondence between the bits of nl and nh and dots can be selected by the Select image LSB MSB DC2 The LSB initially corresponds to the leftmost dot DC3 L sl sh el eh Define ...

Page 112: ...2 The LSB initially corresponds to the leftmost dot DC3 P Print One dot Line after Printing Line Buffer Data Code 13H 50H Function If ruler line printing is ON this prints one dot line from the selected ruler line buffer after printing data in the line buffer If there is any data in the line buffer it is printed then one dot line is printed If ruler line printing is off the printer only feeds one ...

Page 113: ... X X2 415 X 220 PRINT 1 C 230 PRINT 1 L CHR X1 MOD 256 CHR X1 256 CHR 160 CHR 1 240 PRINT 1 D CHR X2 MOD 256 CHR X2 256 250 PRINT 1 P 260 NEXT I 270 PRINT 1 ACF CHR HFF CHR HFF 280 PRINT 1 BCL CHR 0 CHR 0 CHR 3 CHR 0 290 PRINT 1 L CHR 60 CHR 3 CHR 63 CHR 3 300 PRINT 1 D CHR 94 CHR 0 310 PRINT 1 D CHR 158 CHR 0 320 PRINT 1 CHR H13 APPPPB 330 PRINT 1 RULEDLINEPRINT 340 PRINT 1 CHR H13 APPB 350 PRINT...

Page 114: ...data required for one character in the horizontal direction is obtained by dividing x by 8 and rounding off decimals to the next whole number There are y dot lines in the vertical direction The amount of data of one character is calculated by the following formula Amount of data of one character INT x 7 8 y bytes If x is not a multiple of 8 the excess rightmost bits are ignored The total quantity ...

Page 115: ...nt is selected the character codes for which the optional font was defined are printed with the font Undefined character codes are printed with internal fonts If the downloaded character set and optional font are defined in the same character code and both character sets are selected the downloaded character set is given priority The optional font cannot be rotated by 90 Default n 0 Cancel DC2 Q O...

Page 116: ...EXT I 160 FOR I 0 TO 1 170 PRINT 1 CHR H12 O CHR I 180 FOR J 0 TO 1 190 PRINT 1 CHR H1B W CHR J 200 PRINT 1 CHR H1B w CHR J 210 PRINT 1 ABCDEFGHIJ 220 NEXT J NEXT I 230 CLOSE 1 240 END 250 FOR J 0 TO N 1 260 READ D PRINT 1 CHR VAL h D 270 NEXT J RETURN 280 8 16 Font 290 DATA 80 80 C0 C0 E0 E0 F0 F0 F8 F8 FC FC FE FE FF FF Figure 6 21 Program Sample 11 Figure 6 22 Print Sample 11 ...

Page 117: ...ow the bar code HRI characters are printed with the font selected by GS f Default n 0 Does not print GS f n Select HRI Character Font Code 1DH 66H n Function Selects the HRI character font used when printing a bar code Only the least significant bit LSB of n is valid n 0 24 12 dots font n 1 16 8 dots font Default n 0 24 12 dot font GS h n Set Bar Code Height Code 1DH 68H n 1 n 255 Function Sets th...

Page 118: ... A to D then input 00H CODE128 Input a start code as 103 to 105 and input arbitrary number as 0 to 102 then input a stop code as 103 or larger If the line buffer contains data it is printed and then the bar code is printed Paper is fed at the bar code height including the HRI character height when printing HRI characters regardless of the line feed set with ESC 2 and ESC 3 n If input data does not...

Page 119: ... 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 Moreover specify printing motor speed as low speed by Motor Speed Select GS E command If ladder bar code is printed with the condition except above may cause loss of reading accuracy ...

Page 120: ...its bar is to be printed horizontally against paper feed direction If doing so may cause loss of reading accuracy Default n1 1 narrow width 3 dots n2 2 wide width 9 dots GS P n Set Bar Code Print Position Code 1DH 50H n Function Sets the bar code print position Only the two low order bits of n are valid n 0 Print a bar code at the left n 1 Print a bar code at the center n 2 Print a bar code at the...

Page 121: ...ge value is designated this command is ignored and the subsequent data is processed as normal data When setting more than data of 1024 bytes the printer processes the subsequent data as normal data However maximum value of data should be less than 1023 depending on the contents of data or error correction level so the printer discards data which is exceeding maximum value When there is the data in...

Page 122: ...lects a version according to input data number 1 v 40 Fixed version model 1 up to 14 mode Designates a data mode Mode Value Mode Name N 4EH Numerical mode A 41H Alphanumeric mode B 42H 8 bits byte mode K 4BH Kanji mode M 4DH Mixed mode nl nh Designates data number d QR Code data Set Kanji data in Shift JIS codes When out of range value is designated this command is ignored and the subsequent data ...

Page 123: ...his command is ignored When specifying any value exceeding 3116 bytes the subsequent data is processed as the normal print data The maximum value varies depending on the number of the modules for horizontal and vertical directions and storage data When specifying any data exceeding the maximum value it is discarded If data is remaining in the line buffer the printer prints bar code after sending d...

Page 124: ... When specifying any value of 139 or more bytes the subsequent data is processed as the normal print data The maximum data value will be 138 or less bytes depending on the mode When specifying any data exceeding the maximum value it is discarded If data is remaining in the line buffer the printer prints bar code after sending data When the barcode size includes a quiet zone exceeds the print area ...

Page 125: ...R H1D H CHR I MOD 4 Strings position 260 PRINT 1 CHR H1D f CHR I MOD 2 Storings Font Size 270 PRINT 1 CODE 280 IF I 7 THEN GOTO 300 290 PRINT 1 CHR H1D k CHR I DAT CHR 0 GOTO 320 Barcode Print 300 PRINT 1 CHR H1D k CHR I CODE128 print 310 PRINT 1 CHR 104 Start Code 320 PRINT 1 CHR 32 CHR 33 CHR 34 CHR 35 CHR 36 330 PRINT 1 CHR 106 Stop Code 340 PRINT 1 CHR H0D 350 NEXT I 360 CLOSE 1 370 END 380 BA...

Page 126: ...6 79 Figure 6 24 Print Sample 12 ...

Page 127: ...HR 1 Print of QR codes 250 PRINT 1 CHR 2 M CHR 0 M CHR 100 CHR 0 260 FOR I 1 TO 10 270 READ DAT 280 PRINT 1 DAT 290 NEXT I 300 PRINT 1 CHR H0A Data Matrix 310 PRINT 1 CHR H1D P CHR 2 Barcode print position setting left end 320 PRINT 1 CHR H1D p CHR 2 Print of DataMatrix 330 PRINT 1 CHR H00 CHR 0 CHR 0 CHR 100 CHR 0 340 FOR I 1 TO 10 350 READ DAT 360 PRINT 1 DAT 370 NEXT I 380 CLOSE 1 390 END 400 2...

Page 128: ...6 81 Figure 6 26 Print Sample 13 ...

Page 129: ... MOD 3 Barcode print position setting 270 PRINT 1 CHR H1D p CHR 3 Print of MaxiCode modes 4 5 280 PRINT 1 CHR I CHR 50 290 FOR J 1 TO 5 300 READ DAT 310 PRINT 1 DAT 320 NEXT J 330 PRINT 1 CHR H0A 340 NEXT I 350 CLOSE 1 360 END 370 2 Dimensional Code Data 380 DATA Mode2 123 456 7890123 is used for matching numbers of columns 390 DATA MaxiCode 2 0123456789 ABCDEFGHIJ KLMNOPQRST abcdefghij 400 DATA M...

Page 130: ...6 83 Figure 6 28 Print Sample 14 ...

Page 131: ...ata d indicates routine format data and dhX256 dl bytes of command data are sent Only the following commands can be set in routine formats If commands other than those listed below are registered they are ignored when executing the routine format A NAME Selects ruled line A FUNCTION Selects ruled line buffer A Same function as DC3 A B NAME Selects ruled line B FUNCTION Selects ruled line buffer B ...

Page 132: ...Sets parameter n Parameter data number FUNCTION Outputs parameter data with the parameter number specified by n to the line buffer If a registered routine format number is specified the old routine format is deleted the area is released and a new routine format is registered 10 bytes of memory control information is attached to a routine data Therefore all routine format data amount 10 bytes are u...

Page 133: ...Set print mode ESC SP n Set character spacing ESC m nl nh Set bit image mode FS n Select Kanji mode FS n Cancel Kanji mode FS n Select cancel Kanji underline mode FS n Set Kanji print mode FS S nl nr Set Kanji left and right side spacing DC2 Y n Character Rotation DC2 F n Select character font size DC2 O n Select optional font Character decoration is cleared and Kanji mode is canceled at the begin...

Page 134: ...routine format settings in the mode specified before executing the routine format This command cancels character decoration as follows Line buffer Cleared Ruled line buffer A Cleared Ruled line buffer B Cleared Ruled line Off Left margin Cleared Right margin Cleared Line feed 34 dots Character spaces 4 dots Kanji character space Left 0 Right 8 dots International language Japanese Kanji mode Cancel...

Page 135: ...T 1 CHR H12 E1 CHR 1 CHR 17 CHR 0 Parameter No 1 270 PRINT 1 CHR H12 F1 CHR H1B w1 Parameter1 280 PRINT 1 CHR H12 E1 CHR 2 CHR 22 CHR 0 Parameter No 2 290 PRINT 1 CHR H12 F1 CHR H1C 300 PRINT 1 CHR H44 CHR H6A CHR H37 CHR H3F 310 PRINT 1 CHR H25 CHR H51 CHR H25 CHR H69 320 PRINT 1 CHR H25 CHR H61 CHR H21 CHR H3C 330 PRINT 1 CHR H25 CHR H3F CHR H23 CHR H33 340 Format Execute 350 PRINT 1 CHR H12 E2 ...

Page 136: ...dot Specify the print direction of data with n 0 Normal direction 1 Rotated 90 clockwise Page length in normal direction is specified by yh and yl Page length in rotated 90 clockwise is specified by x When x yh and yl is out of range this command is ignored Ignores the Set page length at lines ESC C or Set bottom margin ESC N Ignores the setting of left margin and right margin Cancels the Stamp Se...

Page 137: ...DC2 z 4 n Page Mode Data Registration Code 12H 7AH 04H n 0 n 1 Function Registers page image as template data in the FLASH memory Specify the area of FLASH memory as n If image data already has been registered the printer deletes registered image and registers new one If the printer is not in the page mode this command is ignored DC2 z 5 n Page Mode Data Calling Code 12H 7AH 05H n 0 n 1 Function C...

Page 138: ... 1 Frame Release Specification 2 Fill Release Specification 3 Undefined 4 Undefined 5 Undefined 6 Undefined 7 Undefined Line frame and fill can be specified at the same time Rectangle print is enabled only in the page mode Rectangle print is ignored in the standard mode When the coordinates out of the print area are specified this command is ignored When the line or frame other than solid line is ...

Page 139: ...h property of lines and rectangles n Line width dot The line width is thickened at the center of the specified coordinates When any even number of dots is specified the line width is increased by 1 dot and equalized for upper and lower specified coordinates When the line is aslant line width may become thin Default n 1 DC2 4 n Fill Property Code 12H 24H 34H n 0 n 2 Function Specifies a paint type ...

Page 140: ...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 240 PRINT 1 CHR 1 CHR 0 CHR 200 CHR 0 CHR 160 CHR 0 CHR 0 CHR 2 CHR 2 250 PRINT 1 CHR H1D E CHR H10 260 PRINT 1 CHR H12 z CHR 1 270 CLOSE 1 280 END Figure 6 31 Program Sample 16 Figure 6 32 P...

Page 141: ... command The bits of the error status indicate the following error states Value Bit Function 0 1 0 Paper out OK Error 1 Head up OK Error 2 Vp voltage error OK Error 3 Head temperature error OK Error 4 DIP switch setting error OK Error 5 Battery voltage state See the list below See the list below 6 Battery voltage state See the list below See the list below 7 Reserved Fixed Battery voltage state Bi...

Page 142: ...ing DC2 q Send RAM Checksum Code 12H 71H Function Outputs the RAM checksum The RAM checksum is calculated and a 4 bytes hexadecimal number is transmitted DC2 l Send SWDIP Switch Settings Code 12H 6CH Function Sends the states of the SWDIP switches 1 to 4 8 bytes of 1 31H or 0 30H are sent as a SWDIP switch setting status The data is sent from the most significant bit of SWDIP switch 1 to the least...

Page 143: ...rinting at the same time Therefore command or printing termination can not be confirmed from outside By inserting this command the end of a command and or print sequence and checking the execute response code by this command however it is possible to confirm which commands have been executed if the execute response code is responded Specify the execute response code as n The code to be sent is the...

Page 144: ... 190 PRINT 1 CHR H12 e1 200 PRINT Indicate error when an error occurs 210 PRINT When you want to stop program press Ctrl Break key 220 LOOP 230 E ASC INPUT 1 1 240 IF E AND 1 0 THEN PRINT Paper empty error 250 IF E AND 2 0 THEN PRINT Head Up error 260 IF E AND 4 0 THEN PRINT Vp voltage error 270 IF E AND 8 0 THEN PRINT Head temperature error 280 IF E AND 16 0 THEN PRINT DIP_SW Setting write error ...

Page 145: ...de 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 Default Depends on the setting of SWDIP 2 6 ...

Page 146: ...A 160 PRINT 1 CHR J 170 NEXT J PRINT 1 CHR H0D 180 PRINT 1 CHR H1C 190 FOR J H21 TO H30 200 PRINT 1 CHR H30 CHR J 210 NEXT J PRINT 1 CHR H0D 220 PRINT 1 CHR H1C r CHR 0 230 FOR J H30 TO H39 240 PRINT 1 CHR H23 CHR J 250 NEXT J PRINT 1 CHR H0D 260 PRINT 1 CHR H0D CHR H1C 270 NEXT I PRINT 1 CHR H0D 280 CLOSE 1 290 END Figure 6 35 Program Sample 18 Figure 6 36 Print Sample 18 ...

Page 147: ... in case of not setting the print density in 100 verify the performance with your actual device before printing DC2 n Select Print Density Code 12H 7EH n 65 n 135 Function Sets the print density n must be in the range 65 to 135 which will set the print density to 65 35 to 135 35 of the rated energy If n is out of range the command is ignored Default Depends on the setting of SWDIP 3 6 and 3 7 NOTE...

Page 148: ...f The initial status after power up can be set by SWDIP 2 5 Default n 30 30 minutes Printer initial state after power on can be changed by Set default Set test print header DC2 i command DC2 n Select Overlap Mode Code 12H 23H n Function Sets the overlap mode for ruler lines and characters to either OR or XOR Only the least significant bit of n is valid n 0 OR overlap n 1 XOR overlap When OR overla...

Page 149: ...most significant bit for the data Only the least significant bit of n is valid n 0 The leftmost bit is LSB n 1 The leftmost bit is MSB This command is valid for the followings Define Optional Font Define Ruler Line with Repeating Patterns Ruler Line LSB MSB image Raster Bit Image Print Stamp Define Default n 0 The leftmost bit is LSB ...

Page 150: ...s data receiving GS g 1 m Maintenance Counter Preservation Code 1DH 67H 31H m m 0 Function Saves all maintenance counter values in the system area of the FLASH memory The paper feed line number and head activation count are returned in 1 100 unit Note Timing of saving maintenance counter except this command execution is as follows 1 Turn the power off except that unplug AC adapter or remove the ba...

Page 151: ... as nh 256 nl nh 256 nl Hexadecimal Decimal Counter type 14 20 Line number of paper feed in 100 dot line 15 21 Number of head activation times in 100 dot line 46 70 Drive time of printer unit in minutes 94 148 Line number of paper feed every 100 dot line 1 95 149 Number of head activation times every 100 dot line 1 C6 198 Drive time of printer unit in minutes 1 1 The value is accumulated without b...

Page 152: ...e state to Release state Specify data types as a a 0 Downloaded character a 1 User defined character a 2 Optional font a 3 Stamp a 4 Routine format a 5 Routine parameter Specify data ID as n a 3 selected Stamp number a 4 selected Routine format number a 5 selected Routine parameter number When selecting a as 0 to 2 the value of n is ignored The FLASH memory life is shortened if this command is use...

Page 153: ...ge data are all cleared and initialized The data in the line buffer is also cleared When initialization of the user area of RAM is selected After initialization the user area indicated in Table 6 6 is allocated If downloaded character or user defined character is registered in the FLASH memory the data of downloaded character or user defined character is copied after initialization See 6 4 2 FLASH...

Page 154: ... 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 An IrDA disconnect request is output and disconnection is complete NOTE When this command is sent please note that communication is disconnected regardless of existence of non tr...

Page 155: ...2 0 Left LSB Overlap print with OR 180 PRINT 1 CHR H13 B 190 PRINT 1 CHR H12 1 Left MSB Overlap print with XOR 200 PRINT 1 CHR H13 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 Figure 6 ...

Page 156: ...1 57600 bps 4 Rate bps 10 115200 bps 11 230400 bps 5 Mark Position Correct 1 Disable 0 Enable 6 Busy Output When Error Occurs Error 7 Fixed to 1 8 Bluetooth Link Key selection n1 SWDIP switch 1 bit 8 7 6 5 4 3 2 1 1 Baud Rate 000 1200 1 1 2 bps 011 9600 100 19200 101 38400 3 110 57600 111 115200 4 Bit length 1 8 bits 0 7 bits 5 Parity 1 Yes Even or Odd 0 None 6 Parity 1 Even 0 Odd 7 Stop Bit 1 1 b...

Page 157: ... 7FH 44H Kanji left side spacing 1 byte 00H data 7FH 45H Kanji right side spacing 1 byte 00H data 7FH 46H International character 1 byte 00H data 0CH 47H Left margin 1 byte 00H data FFH 48H Right margin 1 byte 00H data FFH 49H Automatic power off time 1 byte 00H data FFH 4AH Paper length to mark 2 bytes 00H data 03E8H 4BH Paper length of autoloading 1 byte 00H data FFH 60H Reading each default val...

Page 158: ...ooth device name and Bluetooth PIN code require the characters below 0 to 9 a to z A to Z _ SPACE 20H Perform the POWER OFF and ON or communication break after setting Writing Bluetooth device name or Writing Bluetooth PIN code Each default value for 42H to 4BH can be set one by one manually If an invalid value is set the value is ignored and the default is set instead of that If the right margin ...

Page 159: ...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 Character spaces 4 dots Line buffer Cleared Kanji character space Left 0 Right 8 dots International language Japanese Left margin Cleared Right margin Cleared Note Using much of this command may cause the FLASH memory damage It is recommended that this command be...

Page 160: ...Performs hardware reset This command is valid for download mode m Font Data Area of 2 Byte Character Download Code 2CH m Font Data 0 m 1 Function Downloads font set in the area of 2 byte character m Download CG 0 Japanese CG 1 Korean CG Number of font data required are 1048576 bytes Font is set as SII Japanese font set at shipping The printer deletes registered font set and replaces the font set w...

Page 161: ...during executing the command To print Japanese Kanji or Korean following the format below and creates font data Format for font data 1 byte download Format for font data 2 byte download d1 d2 16dots 24dots LSB MSB d3 d4 d47 d48 7 6 5 4 3 2 1 0 d1 d2 d16 8dots 16dots 24 dots font 24 16 16 dots font 16 8 d1 d2 24dots 24dots LSB MSB d4 d5 d70 d71 7 6 5 4 3 2 1 0 24 dots font 24 24 16 dots font 16 16 ...

Page 162: ...cated by b7 to b0 d1 d2 d1 d2 d47 d48 d47 d48 d1 d1 d2 d2 d15 d15 d16 d16 d3 d4 d3 d4 24 dots font data storing area 96 bytes 16 dots font data storing area 32 bytes d1 d2 d3 padding data d70 d71 d72 padding data d1 d2 d3 d4 d29 d30 d31 d32 d4 d5 d6 padding data 24 dots font data storing area 96 bytes 16 dots font data storing area 32 bytes A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4...

Page 163: ...and second byte of character code as K1 and K2 respectively Initial address K1 A1H 94 K2 A1H 104 Example Obtaining for initial address B5A4H B5H A1H 94 A4 A1H 104 14H 94 3H 104 2FCF8H Address Font data of 104 bytes from the address of 2FCF8H are registered ROM information Font information is registered in appropriate address Language Address FFFC0H Japanese JAPANESE 00H Total of 9 bytes Korean KOR...

Page 164: ...6 117 n Data Structure of a 2 Byte Character Code 7BH n 0 n 1 Function Selects the data structure of a 2 byte character n Function 0 Japanese 1 Korean Code This command is valid for download mode ...

Page 165: ...able Depend on the SWDIP switch setting Euro character Canceled Character space 1 4 dots at shipping Character decoration Canceled Downloaded character selection Canceled Kanji code system Depend on the SWDIP switch setting Kanji mode Canceled Vertical horizontal writing Horizontal writing 2 bytes character right and left side spaces 1 Left space 0 Right space 8 dots at shipping Kanji character de...

Page 166: ... on the SWDIP switch setting Auto power off Depend on the SWDIP switch setting Auto power off time 1 30 minutes at shipping Overlap mode selection OR overlap Select Image LSB MSB The leftmost bit is LSB Maximum paper feed length to mark detection 1 300 mm Amount of paper length by auto loading 1 50 mm Bluetooth PIN code 1 Not registered Bluetooth device name 1 DPU S445 1 The value can be changed b...

Page 167: ... after of completion of initialization When IrDA or Bluetooth selected Start initial automatic status transmission after establishment of the connection between the printer and computer When connection is not established the initial status is cleared as untransmitable data When BHT Ir selected The initial automatic status transmission is not performed Execute automatic status transmission command ...

Page 168: ...nh Set Relative Position 6 30 6 5 7 1 byte Character Set Selection Commands 6 32 ESC R n Select International Character 6 32 ESC t n Select Character Code Table 6 32 DC2 y n Euro Character Specify 6 33 6 5 8 1 byte Characters Definition Commands 6 35 ESC n Set Cancel Download Character Set 6 35 ESC s n m DATA Define Download Characters 6 35 DC2 D n Download Characters Area Operation 6 36 6 5 9 Cha...

Page 169: ...ine 6 59 DC2 S n x Stamp Select 6 60 DC2 V Stamp Print Out 6 60 DC2 W Stamp Abort 6 60 DC2 U n Stamp Clear 6 60 6 5 17 Other Commands 6 62 CAN Cancel Print Data in Buffer 6 62 6 5 18 Ruler Line Commands 6 63 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 nl nh Define Ruler Line by Dot 6 64 DC3 F ...

Page 170: ...n Line Width Property 6 92 DC2 4 n Fill Property 6 92 6 5 23 Status Commands 6 94 DC2 e n Enable Disable Automatic Status Transmission 6 94 DC2 r Send Remaining RAM Response 6 94 DC2 v Send VP Voltage 6 95 DC2 q Send RAM Checksum 6 95 DC2 l Send SWDIP Switch Settings 6 95 DC2 j n Execute Response Request 6 96 6 5 24 Character Set Command 6 98 DC2 F n Select Character Font Size 6 98 6 5 25 Auxiliar...

Page 171: ...et 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 ...

Page 172: ...IX 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 A 1 ...

Page 173: ...acter 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 7FH is ignored A 2 ...

Page 174: ...A 2 INTERNATIONAL CHARACTER SETS The following codes differ depending on the international character set selected A 3 ...

Page 175: ...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 Character codes for vertical writing 2921H to 295EH A 4 ...

Page 176: ...A 4 KANJI QUARTER SIZE CHARACTER SET A 5 ...

Reviews: