background image

6-101 

 

  GS 'g' '2' m nl nh 

Maintenance Counter Transmission 

Code 

1DH 67H 32H m nl nh 
m=0 
(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. Specifies the maintenance number 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 (in 100-dot line) * 

95 

149 

Number of head activation times (in 100-dot line)* 

C6 

198 

Drive time of printer unit (in minutes)* 

 

 

 

* The value is accumulated without being reset. 

 

Configuration of the maintenance counter data 

 

Hexadecimal

Decimal 

Number of data 

Data 

30H to 39H 

48 to 57 

10 bytes 

 

Содержание DPU-S245

Страница 1: ...DPU S245 SERIES THERMAL PRINTER TECHNICAL REFERENCE U00117152801 ...

Страница 2: ...ed 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 typographical arithmetic or listing errors is a trademark of Seiko Instruments Inc I...

Страница 3: ...ed to as printer Read the User s Guide supplied with the printer for details regarding basic operation and maintenance procedures DPU S245 series have the following models DPU S245 00A E Standard model DPU S245 01A E Bluetooth supporting model The printer complies with EU RoHS Directive 2002 95 EC ...

Страница 4: ...scribes 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 the fu...

Страница 5: ...OOTH INTERFACE 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 12 4 2 TEST PRINT 4 13 4 3 HEX DUMP MODE 4 14 CHAPTER 5 LAMP DISPLAY AND SWITCH FUNCTI...

Страница 6: ...6 5 13 Kanji Character Decoration Commands 6 47 6 5 14 Kanji Character Pitch Adjustment Command 6 50 6 5 15 Image Command 6 53 6 5 16 Stamp 6 57 6 5 17 Other Commands 6 61 6 5 18 Ruler Line Commands 6 62 6 5 19 Optional Font Commands 6 66 6 5 20 Bar Code Commands 6 69 6 5 21 Routine Commands 6 81 6 5 22 Page Mode 6 86 6 5 23 Status Commands 6 91 6 5 24 Character Set Command 6 95 6 5 25 Auxiliary F...

Страница 7: ...1 Printer Status Signals 5 1 Table 5 2 Error Recovery Procedure 5 2 Table 6 1 Command Summary 6 1 Table 6 2 Memory Sizes Right After Initialization 6 9 Table 6 3 Number of Bytes for Memory Control Information 6 9 Table 6 4 Commands for Allocating or Freeing Memory Area 6 10 Table 6 5 GS p 0 Used Memory Capacity of PDF417 Print Command 6 11 Table 6 6 GS p 1 Used Memory Capacity of QR Code Print Com...

Страница 8: ...Sample 7 6 56 Figure 6 14 Print Sample 7 6 56 Figure 6 15 Program Sample 8 6 60 Figure 6 16 Print Sample 8 6 60 Figure 6 17 Program Sample 9 6 61 Figure 6 18 Print Sample 9 6 61 Figure 6 19 Program Sample 10 6 65 Figure 6 20 Print Sample 10 6 65 Figure 6 21 Program Sample 11 6 68 Figure 6 22 Print Sample 11 6 68 Figure 6 23 Program Sample 12 6 76 Figure 6 24 Print Sample 12 6 77 Figure 6 25 Progra...

Страница 9: ...s 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 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 size characters and 2 byte size characters Table 1 1 lists the character types which can be pr...

Страница 10: ...cing Character spacing is the space between each character in the horizontal 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 do...

Страница 11: ...e 1252 character set JIS 1st and 2nd level of Kanji 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 width x depth x height 83mm x 130mm x 45mm Mass Approx 280g including the battery pack excluding paper Operating temperature and humidity range Temperature 10 to 50 ...

Страница 12: ...2 2 Dimensions 83 130 45 1 3 63 5 75 2 9 7 38 Unit mm Figure 2 1 Dimensions Paper Outlet ...

Страница 13: ... PD160R N Oji Paper Co Ltd P220VBB 1 MITSUBISHI PAPER MILLS LIMITED AP50KS FZ Jujo Thermal AP50KS D Jujo Thermal AF50KS E Jujo Thermal F5041 Mitsubishi Hi Tech Paper P5045 Mitsubishi Hi Tech Paper KT55F20 Papierfabrik August Koehler AG P300 Kanzaki Specialty Papers P350 Kanzaki Specialty Papers KIP370 Kanzaki Specialty Papers KIP470 Kanzaki Specialty Papers KF50 KANZAN Paper mode Paper roll KPR440...

Страница 14: ...4 2 2 1 Dimensions of Timing Mark Position Unit mm Figure 2 2 Dimensions of Timing Mark Position Back of thermal paper 58 0 1 0 11 7 5 b Cut Position a Print start position Unavailable pre print area 9 5 ...

Страница 15: ...tion e Print data within the printable area f Use Form Feed command to find the beginning of the next mark The print start position after the beginning of the next mark is placed at position a and the paper cut position is placed at b as shown in Figure 2 2 Repeat steps e to f NOTE When Mark Position Correct of SWDIP 4 5 is set as Enable the printer operates paper feeding to backward 5 mm just bef...

Страница 16: ... 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 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 ...

Страница 17: ...e 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 battery pack at low temperature will run out of power in a shorter time When printing ruled lines a 2 dot configuration is needed In case of a 1 dot configuration the printed lines may be invisible Always use the printer within the shadowed range depicted i...

Страница 18: ...f 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 the platen area If ethanol adheres except the platen area wipe it off immediately NOTE Refer to SAFET...

Страница 19: ...eral specifications Item Specification Synchronization Asynchronous Signal level MARK 3 0 to 15 0 V 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 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 2 Pin assignment Pin No Name I O Function 1 N C No connection 2 TXD O...

Страница 20: ...ing in the input buffer TXD outputs Xoff code 13H The host device does not transmit data while Xoff code is received When the input buffer is ready to receive data there are 129 bytes or more in the input buffer after stopping data reception TXD once again outputs Xon code When this control method is selected the RTS signal always outputs SPACE If an error occurs in the printer TXD outputs Xoff co...

Страница 21: ... 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...

Страница 22: ...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 tra...

Страница 23: ...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...

Страница 24: ...ues 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 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 S...

Страница 25: ...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 ...

Страница 26: ...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...

Страница 27: ...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 the input buffer of the printer If an error occurs the printer stop...

Страница 28: ...ter are stored in FLASH memory Once these are set these are stored until changing again The function settings are specified through the software DIP switch hereinafter referred to as SWDIP switch SWDIP1 to 4 Details for settings of SWDIP 1 to 4 are described below The value that is indicated by boldface and shaded cell show a default setting value The words in parentheses in the table are indicate...

Страница 29: ...ation as BUSY hardware control or Xon Xoff control In BUSY control flow control is performed using RTS signal in the printer In Xon Xoff control flow control is performed using codes of Xon 11H or Xoff 13H from the printer Stop Bit selection Select Stop Bit in serial communication as 1 bit or 2 bits Parity selection Select Parity in serial communication as Even Odd or None Parity SWDIP1 6 SWDIP1 5...

Страница 30: ...DIP1 3 SWDIP1 2 SWDIP1 1 1200 0 0 0 2400 0 0 1 4800 0 1 0 9600 0 1 1 19200 1 0 0 38400 1 0 1 57600 1 1 0 115200 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 ...

Страница 31: ...fer full may not work because status data can not 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 can be changed by Select Kanji code system FS C command 6 5 11 Kanji Character Set Selection Command Font Size selection Select Font Size in ...

Страница 32: ...to CHAPTER 3 INTERFACE for more detail Data Input Mode SWDIP2 2 SWDIP2 1 BHT Ir USB 0 0 Serial USB 0 1 IrDA USB 1 0 Bluetooth USB 1 1 This setting is enabled for Bluetooth supporting model only Bluetooth supporting model is shipped with this setting value Bluetooth USB ...

Страница 33: ...de assumes that to print the thermal paper roll a Process of out of paper detection The printer processes the error operation by lighting the lamp if out of paper error detected 2 Mark Roll Paper mode This mode assumes that to print the thermal paper roll with the printed mark at regular intervals on the back side which to detect paper position Refer to 2 2 SPECIFIED THERMAL PAPER SPECIFICATION fo...

Страница 34: ...or in case of not setting the print density in 100 verify the performance with your actual device before printing Thermal Paper selection Select the thermal paper by Paper Select Paper Select SWDIP3 5 SWDIP3 4 SWDIP3 3 SWDIP3 2 SWDIP3 1 TF50KS E2D TP S245L 1 0 0 0 0 0 TP50KJ R 0 0 0 0 1 Prohibition 0 0 0 1 0 PD160R 63 0 0 0 1 1 TL69KS LH 0 0 1 0 0 P220VBB 1 0 0 1 0 1 P300 0 0 1 1 0 P350 0 0 1 1 1 ...

Страница 35: ...Enable and PIN code is not specified in advance the printer processes PIN code as 0000 Busy Output When Error Occurs This function can select whether data reception becomes busy status or not when an error occurs If this function is disabled data reception does not become busy status while an error occurs and data reception is available However regardless of this setting if receiving buffer become...

Страница 36: ...election 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 When CTS Control selection 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 p...

Страница 37: ... six seconds and then release the POWER and FEED switches immediately c When the following message is printed press the FEED switch Hint When the POWER switch is pressed at this time the printer becomes in HEX dump mode If you do not press any switch within 30 seconds after a message is printed the printer turns off When the POWER and ERROR lamps start to blink release your finger from the POWER a...

Страница 38: ...der to ensure proper operation 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 in this operation are not changed and the next SWDIP switch is selected operation 1 Hint in the message indicates ...

Страница 39: ...t 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 Operation 3 Exiting function setting mode a If pressing the FEED switch after printing the message shown below the function setting shifts operation 1 If pressing the POWER switch after printing the message shown below the printer...

Страница 40: ... the printer and the printer is turned off If the thermal paper is not set set the thermal paper to the printer b Press the POWER switch and the FEED switch on the printer 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 ...

Страница 41: ... from host computer The data input through the printer interface is printed as hexadecimal code 8 bytes at a time If the input buffer contains less than 8 bytes of data it is printed when the FEED switch is pressed 8 bytes Input PRINT 1 abcdef to the host computer and press the Return key The printer prints abcdef in hexadecimal number and two control codes 0DH and 0AH Less than 8 bytes Input PRIN...

Страница 42: ...4 15 f Press the POWER switch to exit the HEX dump printing Hint Some BASIC use a PR statement instead of PRINT Refer to the computer manual for details on BASIC ...

Страница 43: ...nk twice 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...

Страница 44: ...ut of paper 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 head temperature error The printer returns to print ready status automatically if thermal head temperature becomes w...

Страница 45: ...tch 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 header DC2...

Страница 46: ...9 ESC O Cancel Bottom Margin 6 20 ESC Q Set Right Margin 6 20 ESC l Set Left Margin 6 21 ESC 0 Set 1 8 inch Line Spacing 6 23 ESC 2 Set 1 6 inch Line Spacing 6 23 ESC 3 Set n dot line Line Spacing 6 23 ESC B Set Vertical Tab Positions 6 25 ESC D Set Horizontal Tab Positions 6 26 CR Print and Carriage Return 6 27 LF Print and Line Feed 6 27 FF Page Feed form feed 6 27 ESC J Print and Feed Paper 6 2...

Страница 47: ...37 ESC Select Cancel Underline Mode 6 37 ESC Set Print Mode 6 38 DC2 Y Character Rotation 6 39 ESC SP Set Character Spacing 6 40 FS Select Kanji Mode 6 43 FS Cancel Kanji Mode 6 43 FS C Select Kanji Code System 6 43 FS r Select Kanji Quarter Size Character Mode 6 44 FS DC2 Cancel Kanji Quarter Size Character Mode 6 44 FS 2 Define User defined Character 6 45 DC2 G User defined Character Area Operat...

Страница 48: ... 6 67 GS H Select HRI Character Print Position 6 69 GS f Select HRI Character Font 6 69 GS h Set Bar Code Height 6 69 GS k Print Bar Code 6 70 GS w Set Width of Bar Code 6 71 GS P Set Bar Code Print Position 6 71 GS n Nominal Fine Element Width 6 71 GS o PDF Row Height 6 72 GS p 0 PDF417 Print 6 72 DC2 QR Code and Data Matrix Module Sizes 6 73 GS p 1 QR Code Print 6 73 GS p 2 Data Matrix Print 6 7...

Страница 49: ...8 GS E Motor Speed Select 6 98 DC2 a Set Automatic Power off Time 6 99 DC2 Select Overlap Mode 6 99 DC2 Select Image LSB MSB 6 99 GS g 0 Maintenance Counter Initialization 6 100 GS g 1 Maintenance Counter Preservation 6 100 GS g 2 Maintenance Counter Transmission 6 101 DC2 User Area Data Registration Clears 6 102 DC2 1 User Area Defragment 6 102 DC2 2 Remaining User Area Response 6 102 DC2 R User ...

Страница 50: ...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...

Страница 51: ...yte 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 characters 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 If the codes other than the above are not comm...

Страница 52: ...FH is defined as downloaded character and download 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 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 characters Fir...

Страница 53: ...es other than the above are ignored and processed as 1 byte character Second byte If the first byte is A0H A1H FEH The codes are processed as the second byte of user defined characters If the first byte is A1H FDH A1H FEH The codes are processed as the second byte of Korean If the codes other than the above are not commands these codes are ignored with the first byte The next data to be received i...

Страница 54: ...User defined characters 9784 Available Downloaded characters 6248 Available Optional fonts 0 Available Routine command DC2 E 0 Available Stamp 0 Available Memory area of User defined characters and downloaded characters are set at initialization Memory area can be cleared by a command and can be increased for optional fonts routine command or stamp When registering optional fonts routine command o...

Страница 55: ...y The printer does not erase the content of the memory using the AC adapter or the battery pack with active voltage even if Reset command or Power off command is input or the printer is turned the power off However the printer initializes the memory during its next start up when disconnecting the power supply or executing the User Area Initialization command 5 Memory usage at two dimensional bar c...

Страница 56: ...necessary for PDF417 print For an example when number of bar code data byte 15 error correction level 3 number of column 8 and number of row 20 Area1 15 1 16 bytes Area2 2048 bytes Area3 2 2 3 32 bytes Area4 8 7 20 2 600 bytes Total 2696 bytes Empty area size Even number of bytes Table 6 5 GS p 0 Used Memory Capacity of PDF417 Print Command Area Memory Usage Area1 N 1 bytes 1 Area2 2048 bytes Area...

Страница 57: ... Table 6 6 GS p 1 Used Memory Capacity of QR Code Print Command Area Memory usage 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 empty capacity of the external 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 the QR Code ...

Страница 58: ...5 Xm int bytes 3 5 1 N Number of bar code data When empty capacity of the external 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 value are decided from symbol sizes See Table 6 8 3 Area 4 A and area 4 B are used commonly The larger number will be...

Страница 59: ...2 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 24...

Страница 60: ...1 33 1 34 bytes Area 2 7684 bytes Total 7718 bytes Empty area size is an even byte number Table 6 9 GS p 3 Used Memory Capacity of MaxiCode Print Area Memory Usage Area 1 N bytes Area 2 7684 bytes N Number of bar code data When empty capacity of the extended 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 ...

Страница 61: ...ta are present in FLASH memory 1 User area in FLASH memory management Memory in the user area has the following states In use state storage state Released state Erasable state Empty state All Extension memories are in Empty state at shipping When some data is saved in the memory the memory turns to In use state When the data is in use state is released the memory turns to Released state Erasable c...

Страница 62: ...ailable amount of FLASH memory 2 Precautions on data in FLASH memory when rewriting freeing and allocating The maximum rewritable number of the FLASH memory is approximately 100000 times Execute the User Area Defragment command after getting low memory for restraining the numbers of the memory rewriting Do not turn the power off during FLASH memory writing erasing If doing so may cause FLASH memor...

Страница 63: ...6 18 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 ...

Страница 64: ... 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 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 Function Sets the bottom margin at n lines The...

Страница 65: ...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...

Страница 66: ...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...

Страница 67: ...in 5 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 17 Right Margin 17 char 190 PRINT 1 CHR H1B l CHR 5 Left Margin 5 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 ...

Страница 68: ...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 ...

Страница 69: ...120 PRINT 1 1 8 inch line space 130 PRINT 1 CHR H1B 2 140 PRINT 1 1 6 inch line space 150 FOR I 0 TO 96 STEP 24 160 PRINT 1 CHR H1B 3 CHR I 170 PRINT 1 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 ...

Страница 70: ...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...

Страница 71: ...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...

Страница 72: ...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 ...

Страница 73: ...ta before 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 the printer performs its operation as same as Page feed FF command In the Mark Roll Paper mode the printe...

Страница 74: ...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...

Страница 75: ...ne 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 H50 CHR H0 80 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 280 CL...

Страница 76: ...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...

Страница 77: ...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 ...

Страница 78: ...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...

Страница 79: ...cessed as normal data The font size of the download character registered is decided by current selected font size The download characters 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 Multiple c...

Страница 80: ... character is erased and the download character set specification is freed up The following commands are ignored ESC Define download character ESC Select cancel download character set The download character area after memory initialization is 6248 bytes long If the download character area is freed the remaining memory capacity increases by 6248 bytes The remaining memory capacity must be at least ...

Страница 81: ...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 frees up 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...

Страница 82: ...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...

Страница 83: ...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 ...

Страница 84: ...dth is 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 Download characters Kanji Kanji quarter size characters User defined characters Optional fonts cannot be rotated The four rightmost dots of 24 16 dots fonts of exte...

Страница 85: ... 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...

Страница 86: ...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...

Страница 87: ...6 42 Figure 6 10 Print Sample 5 ...

Страница 88: ...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...

Страница 89: ...efined characters 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 ...

Страница 90: ...t of range the range is ignored and the following data will be processed as normal data Since 24 dot User defined characters and 16 dot User defined characters 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 number of bytes...

Страница 91: ...d character is erased and the User defined character definition commands are ignored The User defined character area after memory initialization is 9784 bytes If the User defined character area is freed up the remaining memory capacity increases 9784 bytes The remaining memory capacity must be at least 9784 bytes to reallocate the User defined character area If the remaining memory capacity is ins...

Страница 92: ...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...

Страница 93: ...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...

Страница 94: ...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...

Страница 95: ...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...

Страница 96: ...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...

Страница 97: ...6 52 Figure 6 12 Print Sample 6 ...

Страница 98: ... dots mm 384 8 dots mm 32 24 dot single density 24 8 dots mm 192 4 dots mm 33 24 dot double density 24 8 dots mm 384 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 Only the 4 least significant bits of nh are valid Number of dots in the horizontal direction nhx256 nl If nl nh 0 the data before nh is ignored and the foll...

Страница 99: ...6 54 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 ...

Страница 100: ...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...

Страница 101: ...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 ...

Страница 102: ...mp selection 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...

Страница 103: ...east significant byte and yh represents 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 ...

Страница 104: ...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 4 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 select...

Страница 105: ...E STAMP 190 Print 1 Chr H1B w0 Chr HE World 200 Print 1 Chr H12 V 210 Print 1 Chr H12 S Chr 10 Chr 24 220 Print 1 WELCOME to 230 Print 1 Chr H1B w1 Chr HE STAMP 240 Print 1 Chr H1B w0 Chr HE World 250 Print 1 Chr H12 V 260 Print 1 Chr H12 S Chr 10 Chr 1 270 Print 1 STAMP PRINT 280 Print 1 Chr H12 W 290 Print 1 STOP STAMP 300 Print 1 Chr H12 U Chr 10 310 Print 1 STAMP DELETED 320 Print 1 Chr H12 S ...

Страница 106: ...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...

Страница 107: ... 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 ...

Страница 108: ...erns Code 13H 46H nl nr 0 nl 255 0 nr 255 Function Fills the selected ruler line buffer with the bit image data two bytes of the specified code nl indicates 8 dots in left side and nr indicates 8 dots in right side The correspondence between the bits of nl and nr 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 Rule...

Страница 109: ...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 ...

Страница 110: ...X X2 191 X 220 Print 1 C 230 Print 1 L Chr X1 Mod 256 Chr X1 256 Chr 192 Chr 0 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 124 Chr 1 Chr 127 Chr 1 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 Prin...

Страница 111: ...s of 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 quan...

Страница 112: ...onal font 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 download character set and optional font are defined in the same character code and both character sets are selected the download character set is given priority The optional fonts cannot be rotated by 90 Default n 0 Cancel DC2...

Страница 113: ...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 ...

Страница 114: ...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...

Страница 115: ...r 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 meet the code system it is ignored and the subsequent data is accepted as a character code Therefore no bar code is printed If the bar code length specified in input data exceeds the printable area no bar...

Страница 116: ...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...

Страница 117: ...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 li...

Страница 118: ...tion Selects 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 Set Kanji data in Shift JIS codes When out of range value is designated this command is ignored and the subsequent data are proc...

Страница 119: ...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...

Страница 120: ...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 t...

Страница 121: ...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...

Страница 122: ...6 77 Figure 6 24 Print Sample 12 ...

Страница 123: ...R 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 right 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 Dimensional C...

Страница 124: ... 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...

Страница 125: ...6 80 Figure 6 28 Print Sample 14 ...

Страница 126: ...mat 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 Same function as DC3 B C NA...

Страница 127: ...m the left margin S n NAME 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 data is added to each routine data Therefore all routine format data a...

Страница 128: ...e mode ESC n 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...

Страница 129: ...bined with 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 ...

Страница 130: ...R 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 F0 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 CHR 0 ...

Страница 131: ...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...

Страница 132: ...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...

Страница 133: ... 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 ...

Страница 134: ...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 ...

Страница 135: ...0 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...

Страница 136: ...e 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 SWDIP 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...

Страница 137: ...end External RAM Checksum Code 12H 71H Function Outputs the external RAM checksum The memory 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...

Страница 138: ...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...

Страница 139: ... 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 ...

Страница 140: ...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 bit 6 of SWDIP switch 2 ...

Страница 141: ...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 ...

Страница 142: ...3 KT55F20 n 14 F5041 n 15 KF50 n 16 AP50KS D n 17 KRP440 n 18 AP50KS FZ n 19 P5045 Default Depends on the setting of SWDIP 3 1 to 5 NOTE If too much energy is applied to 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 selecting the thermal paper that is different from the one specified in the thermal pape...

Страница 143: ...pan and cause the paper feed problem Set an accurate thermal paper selection and print density If selecting the thermal paper that is different from the one specified in the thermal paper selection or in case of not setting the print density in 100 verify the performance with your actual device before printing DC2 E n Motor Speed Select Code 1DH 45H n 0 n 255 Function Sets the motor speed high or ...

Страница 144: ...n 0 OR overlap n 1 XOR overlap When OR overlap mode is selected dots part in the image or character is printed in black XOR means exclusive OR When XOR overlap mode is selected the part where the image and character are overlapped is printed in white and the part where the image or character has a dot is printed in black Default n 0 OR overlap DC2 n Select Image LSB MSB Code 12H 3DH n Function Set...

Страница 145: ...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...

Страница 146: ... number 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 in 100 dot line 95 149 Number of head activation times in 100 dot line C6 198 Drive time of printer unit in minutes The value is accumulated without being re...

Страница 147: ...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 used many times The FLASH memory life Approx 100000 times DC2 1 User Area Defragment Code 12H 2AH 31H Function The printer performs the FLASH memory allocation again and keeps memory area Note The FLASH memory capacity cannot be increased by area control related commands The ...

Страница 148: ...gs default and test print header setting and maintenance counter are not initialized The FLASH memory life is shortened if this command is used many times The FLASH memory life Approx 100000 times ESC Initialize Printer Code 1BH 40H Function Initializes the printer to the initial status at power on The contents of the line buffers are cleared The registered User defined characters download charact...

Страница 149: ...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 S245 Power Off 270 PRINT 1 CHR H12 stp Power Off 280 CLOSE 1 290 END Figure 6 37 Program Sample 19 Figure 6 ...

Страница 150: ...tch 2 bit 8 7 6 5 4 3 2 1 1 Data Input Mode 00 BHT Ir USB 01 Serial USB 2 10 IrDA USB 11 Bluetooth USB 3 Fixed to 1 4 Character set 1 ANK 0 IBM Compatible 5 Auto Power Off 1 Disable 0 Enable 6 Font size 1 24 dots 0 16 dots 7 Kanji Code 1 JIS code 0 Shift JIS code 8 Auto Status Output 1 Disable 0 Enable n3 SWDIP switch 3 bit 8 7 6 5 4 3 2 1 1 Paper Select 00000 TF50KS E2D 00001 TP50KJ R 2 4 5 6 Pri...

Страница 151: ...er spacing 1 byte 00H data 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 60H Reading each default values 1 byte 42H data 4BH Up...

Страница 152: ...mand is ignored Bluetooth 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...

Страница 153: ... 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 Character spaces 4 dots Kanji character space Left 0 Right 8 dots International character 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 used 10 t...

Страница 154: ...erforms 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 255 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 ...

Страница 155: ...uring 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 d...

Страница 156: ...es 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 A3 A2 A1 A0 0 ...

Страница 157: ...nting first byte 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...

Страница 158: ...6 113 n Data Structure of 2 Byte Character Code 7BH n 0 n 255 Function Selects the data structure of a 2 byte character n Function 0 Japanese 1 Korean Code This command is valid for download mode ...

Страница 159: ...e Depend on the SWDIP switch setting Euro character Canceled Character space 4 dots at shipping Character decoration Canceled Download character selection Canceled Kanji code system Depend on the SWDIP switch setting Kanji mode Canceled Vertical horizontal writing Horizontal writing 2 bytes size character right and left side spaces Left space 0 Right space 8 dots at shipping Kanji character decora...

Страница 160: ...int density selection Depend on the SWDIP switch setting Auto power off Depend on the SWDIP switch setting Auto power off time 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 300 mm Bluetooth PIN code Not registered Bluetooth device name DPU S245 The value can be changed by Set default Set test print ...

Страница 161: ... 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 ...

Страница 162: ... nh Set Absolute Position 6 29 ESC nl nh Set Relative Position 6 29 6 5 7 1 byte character Set Selection Commands 6 31 ESC R n Select International Character 6 31 ESC t n Select Character Code Table 6 31 DC2 y n Euro Character Specify 6 32 6 5 8 1 byte characters Definition Commands 6 34 ESC n Set Cancel Download Character Set 6 34 ESC s n m DATA Define Download Characters 6 34 DC2 D n Download Ch...

Страница 163: ... xh yl yh DATA Raster Bit Image Print 6 55 6 5 16 Stamp 6 57 DC2 T n x yl yh Image Data Stamp Define 6 58 DC2 S n x Stamp Select 6 59 DC2 V Stamp Print Out 6 59 DC2 W Stamp Abort 6 59 DC2 U n Stamp Clear 6 59 6 5 17 Other Commands 6 61 CAN Cancel Print Data in Buffer 6 61 6 5 18 Ruler Line Commands 6 62 DC3 Ruler Line ON 6 62 DC3 Ruler Line OFF 6 62 DC3 A Ruler Line Buffer A 6 62 DC3 B Ruler Line ...

Страница 164: ... yeL yeH mode Rectangle Print 6 88 DC2 2 n Line Type Property 6 89 DC2 3 n Line Width Property 6 89 DC2 4 n Fill Property 6 89 6 5 23 Status Commands 6 91 DC2 e n Enable Disable Automatic Status Transmission 6 91 DC2 r Send Remaining Memory Capacity 6 91 DC2 v Send VP Voltage 6 92 DC2 q Send External RAM Checksum 6 92 DC2 l Send SWDIP Switch Settings 6 92 DC2 j n Execute Response Request 6 93 6 5 ...

Страница 165: ...s 6 105 DC2 i m DATA Set Default Set Test Print Header 6 106 6 5 26 Download Mode 6 109 DC2 DC2 Download Mode Selection 6 109 Hardware Reset 6 109 m Font Data Area of 2 Byte Character Download 6 109 n Data Structure of 2 Byte Character 6 113 ...

Страница 166: ...PENDIX 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 ...

Страница 167: ...haracter 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 ...

Страница 168: ...A 3 A 2 INTERNATIONAL CHARACTER SETS The following codes differ depending on the international character set selected ...

Страница 169: ...els 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 ...

Страница 170: ...A 5 A 4 KANJI QUARTER SIZE CHARACTER SET ...

Отзывы: