background image

Confidential                                              BTP-R880NP Programming Manual

 

- 1 - 

REVISION HISTORY 

Date

 

Version

 

Description

 

Drafted by

 

2010-7-13 V100 

Release 

Ding Jinfeng, Cao 
Yongkang 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Summary of Contents for BTP-R880NP

Page 1: ...Receipt Printer BTP R880NP PROGRAMMING MANUAL ...

Page 2: ...Confidential BTP R880NP Programming Manual 1 REVISION HISTORY Date Version Description Drafted by 2010 7 13 V100 Release Ding Jinfeng Cao Yongkang ...

Page 3: ... information of this manual you must inform ORIENT Technologies or SNBC quickly and also agree that you shall cooperate or assist with ORIENT Technologies or SNBC reasonably during the negotiation ORIENT Technologies or SNBC has the right to disclose its confidential information and does not be responsible for the loss or damages caused from the wrong usage or reference of this manual by users Inf...

Page 4: ... Website www orient technologies com via Contact button 1 Overview 1 1 1 COMMANDS CLASSIFICATION 1 1 2 KEY TERMS 1 1 3 COMMAND FORMAT 2 2 Command Description 3 2 1 PRINT COMMAND 3 LF 3 FF 3 CR 3 ESC FF 3 ESC J n 4 ESC d n 5 2 2 LOCATION COMMAND 5 HT 5 ESC nL nH 6 ESC D n1 nk NUL 7 ESC T n 7 ESC W xL xH yL yH dxL dxH dyL dyH 9 ESC nL nH 11 ESC a n 11 GS nL nH 13 GS L nL nH 13 GS P x y 14 GS W nL nH...

Page 5: ... FS C n 33 FS S n1 n2 34 FS W n 35 2 4 BITMAP COMMAND 35 ESC m nL nH d1 dk 35 ESC n 37 GS x y d1 d x y 8 37 GS m 38 GS v 0 m xL xH yL yH d1 dk 38 FS p n m 39 FS q n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n 40 2 5 STATUS COMMAND 42 DLE EOT n 42 GS a n 44 GS r n 45 2 6 BARCODE COMMAND 46 GS H n 46 GS f n 46 GS h n 48 GS k m d1 dk NUL GS k m n d1 dn 48 GS s n1 n2 n3 n4 n5 n6 n7 n8 Set barcode paramete...

Page 6: ...1 n2 n3 n4 n5 water print bitmap parameter setting 59 GS w n enter exit water print mode 60 2 10 GREYSCALE PRINTING COMMANND 60 FS r n xl xh yl yh zl zh d1 d2 d3 d k FLASH grayscale bitmap download 60 ESC c 6 n yl yh zl zh d1 d2 d3 d k RAM grayscale bitmap download 62 ESC c 7 n print RAM grayscale bitmap 63 2 11 OTHER COMMANDS 64 DLE ENQ n 64 DLE DC4 n m t 64 ESC 2 65 ESC 3 n 65 ESC n 65 ESC 66 ES...

Page 7: ...nds 1 2 Key terms Real time commands These commands are acted on immediately upon being received by the printer Print buffers used to store figure data to be printed Page mode Under this mode the printer possesses all data in specified memory and thinks of this as a virtual page The page is printed when the printer receives print command either FF or ESC FF Standard mode Standard mode is the defau...

Page 8: ...ices of commands Default The initial value used after the printer initialized Relative Other commands related to current commend Example Example used for current or relative commands All command data in programming Demo use HEX All normal font characters are data There is no explanation for the data of command such as 42 43 which is data The font character underlined and emphasized is a command su...

Page 9: ... command is valid only in page mode The buffer data is deleted after being printed The printer does not execute paper cutting This command sets the print position to the beginning of the line Relevant command ESC FF ESC L ESC S CR Function When the command is enabled it equals to LF it is ignored when disabled Format ASCII CR Hex 0D Decimal 13 Notes Sets the print starting position to the beginnin...

Page 10: ...pecified by GS P In standard mode the printer uses the vertical motion unit y In page mode this command functions as follows depending on the starting position of the printable area 1 When the starting position is set to the upper left or lower right of the printable area using ESC T the vertical motion unit y is used 2 When the starting position is set to the upper right or lower left of the prin...

Page 11: ...nt and feed 2 characters line spacing 2 6 inches 42 42 42 42 42 42 42 0A datas waiting for printing Results 2 2 Location command HT Function Moves the print position to the next horizontal tab position Format ASCII HT Hex 09 Decimal 9 Notes This command is ignored unless the next horizontal tab position has been set If the next horizontal tab position exceeds the printing area the printer sets the...

Page 12: ...3 33 09 the same as above 33 33 33 33 09 the same as above 33 33 33 33 0A print 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 0A print Results ESC nL nH Function Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed The distance from the beginning of the line to the print position is nL nH 256 vertica...

Page 13: ...s are set with twice the width of normal characters This command cancels the previous horizontal tab settings When setting n 8 the print position is moved to column 9 by sending HT Up to 32 tab positions k 32 can be set Data exceeding 32 tab positions is processed as normal data Transmit n k in ascending order and place a NUL code 0 at the end When n k is less than or equal to the preceding value ...

Page 14: ...mands using vertical motion units ESC 3 ESC J GS GS 2 If the starting position is the upper right or lower left of the printing area data is buffered in the paper feed direction Commands using horizontal motion units ESC 3 ESC J GS GS Commands using vertical motion units ESC SP ESC ESC Default n 0 Reference ESC ESC L ESC W ESC GS GS P GS Example 1B 4C enter page mode 1D 50 CB CB set printer resolu...

Page 15: ... vertical starting position printing area width and printing area height are defined as x0 y0 dx dy setting for the printing area is calculated as follows x0 xL xH 256 horizontal motion unit y0 yL yH 256 vertical motion unit dx dxL dxH 256 horizontal motion unit dy dyL dyH 256 vertical motion unit The printing area is set as shown in the figure below This command does not affect printing in standa...

Page 16: ...l starting position vertical starting position printing area width and printing area height are defined as X Y Dx and Dy respectively the printing area is set as shown in the figure below Default Decided by printer configuration Reference CAN ESC L ESC T GS P Example 0A 1D 50 CB CB set printer solution 203 203 1B 4C enter page mode 1B 57 20 00 00 00 40 01 90 01 set print area in page mode 1B 24 00...

Page 17: ...d to the left nL nH 256 65536 N The print starting position moves from the current position to N horizontal or vertical motion unit The horizontal and vertical motion units are specified by GS P In standard mode the horizontal motion unit is used In page mode the horizontal or vertical motion unit differs as follows depending on the starting point of the printing area 1 When the starting position ...

Page 18: ... mode If this command is input in page mode the printer performs only internal flag operations This command justifies the space area according to HT ESC or ESC Default n 0 Example 0A Entering line mode 1B 40 Initialization 1B 61 00 Setting left justification 41 42 43 0A 41 42 43 44 0A 41 42 43 44 45 0A 1B 61 01 Setting centering 41 42 43 0A 41 42 43 44 0A 41 42 43 44 45 0A 1B 61 02 Setting right j...

Page 19: ... printing area specified by ESC T 1 When the starting position is set to the upper left or lower right this command sets the absolute position in the horizontal direction 2 When the starting position is set to the upper right or lower left this command sets the absolute position in the vertical direction The horizontal and vertical motion units are specified by GS P Reference ESC ESC T ESC W ESC G...

Page 20: ...0 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 0A Results GS P x y Function Sets the horizontal and vertical motion units to approximately 25 4 x mm 1 x inches and approximately 25 4 y mm 1 y inches respectively Format ASCII GS P x y Hex 1D 50 x y Decimal 29 80 x y Range 0 x 255 0 y 255 Notes When x and y are set to 0 the default setting of each value is used The horizontal direction i...

Page 21: ...mm and the vertical distance is about 1 8mm Reference ESC SP ESC ESC 3 ESC J ESC W ESC GS GS L GS V GS W GS GS W nL nH Function Set printing area width Format ASCII GS W nL nH Hex 1D 57 nL nH Decimal 29 87 nL nH Range 0 nL 255 0 nH 255 Notes The printing area width is set to nL nH 256 horizontal motion unit inches The command is effective only processed at the beginning of the line In page mode th...

Page 22: ... starting position is set to the upper left printing from left to right or lower right printing from left to right of the printing the vertical motion unit y is used When the starting position is set to the upper right printing from up to down or lower left printing from down to up of the printing area the horizontal motion unit x is used The horizontal and vertical motion unit are specified by GS...

Page 23: ... 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 1B 57 44 00 10 00 7C 01 AA 00 Setting the size of page need to be deleted 18 Delete data in page buffer 1B 24 64 00 Setting abosulute h...

Page 24: ...used 2 When the starting position is set to the upper right or lower left of the printable area using ESC T the vertical motion unit y is used The maximum right side spacing is 255 180 inches Any setting exceeding the maximum is converted to the maximum automatically Default n 0 Example 1B 40 1B 20 00 Set right side character spacing as 0 41 41 41 41 41 0A 1B 20 06 Set character spacing as 6 203 i...

Page 25: ... by HT or 90 clockwise rotated characters The thickness of the underline is that selected by ESC regardless of the character size When some characters in a line are double or more height all the characters on the line are aligned at the baseline ESC E can also turn on or off emphasized mode However the setting of the last received command is effective ESC can also turn on or off underline mode How...

Page 26: ... compress font mode 48 1B 21 08 Select emphasized mode 48 1B 21 10 Select double height mode 48 1B 21 20 Select double width mode 48 1B 21 80 Select underline mode 48 1B 21 B9 Select compress emphasized double width double height and underline mode 48 0A Results ...

Page 27: ...al 27 38 y c1 c2 x1 d1 d y x1 xk d1 d y xk Range y 3 32 c1 c2 127 0 x 12 Standard ASCII font 12 24 0 x 9 Compress ASCII font 9 17 0 d1 d y xk 255 y specifies the number of bytes in the vertical direction c1 specifies the beginning character code for the definition and c2 specifies the final code x specifies the number of dots in the horizontal direction Notes The allowable character code range is ...

Page 28: ...tial BTP R880NP Programming Manual 22 2 The power is turned off Default The internal character set Reference ESC ESC Example When standard ASCII font 12 24 is selected When compress ASCII font 9 17 is selected ...

Page 29: ... mode on or off based on the following values of n n Function Turns off underline mode Turns on underline mode 1 dot thick Turns on underline mode 2 dots thick The printer can underline all characters including right side character spacing but cannot underline the space set by HT The printer cannot underline 90 clockwise rotated characters and white black inverted characters ...

Page 30: ...k underline 41 41 41 41 41 41 0A 1B 2D 01 1 dot thick underline 42 42 42 42 42 42 0A 1B 2D 00 Turn off underline 43 43 43 43 43 43 0A Results ESC n Function Cancel user defined characters Format ASCII ESC n Hex 1B 3F n Decimal 27 63 n Range 32 n 127 Notes This command cancels the pattern defined for the character code specified by n After the user defined characters are canceled the corresponding ...

Page 31: ...mode is not selected 42 42 42 42 42 0A Results ESC G n Function Turn on off double strike mode Format ASCII ESC G n Hex 1B 47 n Decimal 27 71 n Range 0 n 255 Notes When the LSB of n is 0 double strike mode is turned off When the LSB of n is 1 double strike mode is turned on Only the lowest bit of n is enabled Printer output is the same in double strike mode and in emphasized mode Default n 0 Refer...

Page 32: ... 42 42 30 30 30 31 31 31 0A 1B 4D 00 Standard font selected 41 41 41 42 42 42 30 30 30 31 31 31 0A Results ESC R n Function Select an international character set Format ASCII ESC R n Hex 1B 52 n Decimal 27 82 n Range 0 n 13 Notes Selects an international character set n from the following table Character set 0 U S A 1 France 2 Germany 3 U K 4 Denmark I 5 Sweden 6 Italy 7 Spain I 8 Japan 9 Norway ...

Page 33: ...ctive only in standard mode When underline mode is turned on the printer does not underline 90 clockwise rotated Double width and double height commands in 90 rotation mode enlarge characters in the opposite directions from double height and double width commands in normal mode Default n 0 Reference ESC ESC Example 1B 40 1B 56 01 Turn 90 clockwise rotation mode on 41 41 41 42 42 42 0A 1B 56 00 Tur...

Page 34: ... the LSB of n is 1 upside down printing mode is turned on Only the lowest bit of n is valid This command is enabled only when processed at the beginning of a line in standard mode When this command is input in page mode the printer performs only internal flag operations This command does not affect printing in page mode In upside down printing mode the printer rotates the line to be printed by 180...

Page 35: ...ouble height 20 32 3 02 2 3 30 48 4 03 3 4 40 64 5 04 4 5 50 80 6 05 5 6 This command is effective to all characters alphanumeric and Kanji except for HRI characters If n is outside of the defined range this command will be ignored In standard mode the vertical direction is the paper feed direction and the horizontal direction is perpendicular to the paper feed direction However when character ori...

Page 36: ...eric and Kanji except for HRI characters When white black reverse printing mode is on it also applied to character spacing set by ESC SP This command does not affect bitmap user defined bitmap bar code HRI characters and spacing set by HT ESC and ESC This command does not affect the space between lines White black reverse mode has a higher priority than underline mode Even if underline mode is on ...

Page 37: ... of the characters in a line are double or more height all the characters on the line are aligned at the baseline It is possible to emphasize the Kanji character using FS W or GS the setting of the last received command is effective It is possible to turn under line mode on or off using FS and the setting of the last received command is effective Default n 0 Reference FS FS W GS Example Refers to ...

Page 38: ... changed The default underline thickness is 1 dot The specified line thickness does not change even when the character size changes It is possible to turn underline mode on or off using FS and the last received command is effective Default n 0 Reference FS Example Refers to ESC_ FS Function Cancel Kanji character mode Format ASCII FS Hex 1C 2E Decimal 28 46 Description Cancels Kanji character mode...

Page 39: ...dicates the dot data Set a corresponding bit to 1 to print a dot or to 0 to not print a dot Default No user defined Chinese Kanji Reference FS C The relationship between user defined Chinese Kanji and data FS C n Function Select Japanese character mode Format ASCII FS C n Hex 1C 43 n Hecimal 28 67 n Range 0 n 1 48 n 49 Notes choose Japanese character mode according to the value of n ...

Page 40: ...tical motion units Notes When double width mode is set the left side and right side character spacing is twice the normal value The horizontal and vertical motion units are set by GS P The previously specified character spacing does not change even if the horizontal or vertical motion unit is changed using GS P In standard mode the horizontal motion unit is used In page mode the horizontal or vert...

Page 41: ...re aligned at the baseline FS or GS can also select and cancel quadruple size mode by selecting double height and double width modes and the setting of the last received command is effective Default n 0 Reference FS GS 2 4 Bitmap Command ESC m nL nH d1 dk Function Select bit image mode Format ASCII ESC m nL nH d1 dk Hex 1B 2A m nL nH d1 dk Decimal 27 42 m nL nH d1 dk Range m 0 1 32 33 0 nL 255 0 n...

Page 42: ... ignored d indicates the bit image data Set a corresponding bit to 1 to print a dot or to 0 to not print a dot After printing a bitmap the printer returns to normal data processing mode This command is not affected by print modes emphasized double strike underline character size or white black reverse printing except upside down printing mode The relationship between the image data and the dots to...

Page 43: ... Hex 1D 2A x y d1 d x y 8 Decimal 29 42 x y d1 d x y 8 Range 1 x 255 1 y 48 x y 912 0 d 255 Description Defines a downloaded bitmap using the number of bytes specified by x and y x specifies the number of dots in the horizontal direction y specifies the number of dots in the vertical direction The number of dots in the horizontal direction is x 8 in the vertical direction it s y 8 If x y is out of...

Page 44: ...ize or white black reverse printing except for upside down printing mode If the downloaded bit image to be printed exceeds the printable area the excess data is not printed This command print bitmap in RAM but not in FLASH the number of bitmap is defined by GS Reference GS GS GS v 0 m xL xH yL yH d1 dk Function Print raster bitmap Format ASCII GS v 0 m xL xH yL yH d1 dk Hex 1D 76 30 m xL xH yL yH ...

Page 45: ...he bit image data Set a bit to 1 prints a dot and setting it to 0 does not print a dot Example When xL xH 256 64 FS p n m Function Print NV bitmap Format ASCII FS p n m Hex 1C 70 n m Decimal 28 112 n m Range 1 n 255 0 m 3 48 m 51 Notes Prints a NV bitmap n using the mode specified by m m Mode Vertical Resolution DPI Horizontal Resolution DPI 0 48 Normal 203 203 1 49 Double width 203 101 2 50 Doubl...

Page 46: ... which can be checked through printing self test page n specifies the number of the defined NV bitmap xL xH specifies xL xH 256 8 dots in the horizontal direction for the NV bitmap you are defining yL yH specifies yL yH 256 8 dots in the vertical direction for the NV bitmap you are defining Frequent write command execution may cause damage the NV memory Therefore it is recommended to write the NV ...

Page 47: ...ap 01H and the last data group xL xH yL yH d1 dk is NV bitmap n The total agrees with the number of NV bitmaps specified by command FS p A definition data of a NV bitmap consists of xL xH yL yH d1 dk Therefore when only one NV bitmap is defined n 1 the printer processes a data group xL xH yL yH d1 dk once The printer uses data xL xH 256 yL yH 256 8 header 4 bytes of NV memory The download area in ...

Page 48: ... selected using ESC select peripheral device this command is effective The printer transmits the current status Each status is represented by one byte data The printer transmits the status without confirming whether the host computer can receive data The printer executes this command upon receiving it This command is effective to serial bi direction parallel and USB printer This command is execute...

Page 49: ...not end 1 20 32 Paper is end 6 0 00 0 No error 1 40 64 Error occurs 7 0 00 0 Not used Fixed to 0 n 3 Error status Bit 0 1 Hex Decimal Function 0 0 00 0 Not used Fixed to 0 1 1 02 2 Not used Fixed to 1 2 Undefined 3 0 00 0 No auto cutter error 1 08 8 Auto cutter error occurs 4 1 10 16 Not used Fixed to 1 5 0 00 00 Not used Fixed to 0 6 0 00 0 Temperature of printhead is normal 1 40 64 Temperature o...

Page 50: ...ts the status whenever the enabled status item changes When n is equal to 0 the ASB function is ineffective The following four status bytes are transmitted without confirming whether the host is ready to receive data This command is executed with other command in turns so there will have some time delay between sending command and setting ASB is available Even the printer is disabled by ESC Select...

Page 51: ...rature drops sufficiently Third byte paper sensor information Bit Off On Hex Decimal Printer Status 0 1 Off 00 0 Paper is not near end On 03 3 Paper near end 2 3 Off 00 0 Paper present On 0C 12 Paper end 4 Off 00 0 Not used Fixed to Off 5 6 Undefined 7 Off 00 0 Not used Fixed to Off Fourth byte paper sensor information Bit Off On Hex Decimal Status for ASB 0 3 Undefined 4 Off 00 0 Not used Fixed t...

Page 52: ...ned 7 Off 00 0 Not used Fixed to Off Reference DLE EOT GS a 2 6 Barcode command GS H n Function Select printing position for HRI characters Format ASCII GS H n Hex 1D 48 n Decimal 29 72 n Range 0 n 3 48 n 51 Description Selects the printing position of HRI characters when printing a barcode n selects the printing position as follows n Printing position 0 48 Not printed 1 49 Above the bar code 2 50...

Page 53: ... Manual 47 n selects a font from the following table Notes HRI indicates Human Readable Interpretation HRI characters are printed at the position specified by GS H Default n 0 Reference GS H GS k n Font 0 48 Font A 12 24 1 49 Font B 9 17 ...

Page 54: ... n 162 Reference GS k GS k m d1 dk NUL GS k m n d1 dn Function Select a barcode type and print barcode Format ASCII GS k m d1 d k NUL Hex 1D 6B m d1 d k 00 Decimal 29 107 m d1 d k 0 ASCII GS k m n d1 dn Hex 1D 6B m n d1 dn Decimal 29 107 m n d1 dn Range 0 m 6 10 m 12 k and d depends on the barcode system used 65 m 73 75 m 77 n and d depends on the barcode system used Range Selects a barcode type a...

Page 55: ...tructure mode input specific identify symbol D This mode is optional and the following three paramaters and separator should be assigned if this mode is selected m Bar Code type Number of Characters d 0 UPC A 11 k 12 48 d 57 1 UPC E 11 k 12 48 d 57 d1 48 2 JAN13 EAN13 12 k 13 48 d 57 3 JAN 8 EAN8 7 k 8 48 d 57 4 CODE39 1 k 255 45 d 57 65 d 90 32 36 37 43 5 ITF 1 k 255 48 d 57 6 CODABAR 1 k 255 48 ...

Page 56: ... 9 A Mixed by alphabet and numbers 0 9 A Z SP Bxxxx 8Bit byte mode 0x00 0xFF K JIS The legal width of the bar The ratio of the bar is not changeable Example 1D 6B 0B 51 41 2C 30 31 32 33 34 35 36 37 38 39 41 42 43 44 20 32 44 20 63 6F 64 65 00 Automatic mode is recommended and the character symbol A can be omitted 1D 6B 4c 12 48 4D 2C 4E 31 32 33 34 35 36 37 38 39 31 32 33 34 35 1D 6B 0B 4D 4D 2C ...

Page 57: ...r printing barcode this command sets the print position to the beginning of the line This command is not affected by print modes emphasized double strike underline character size white black reverse printing or 90 rotated character etc except for upside down printing mode Notes in page mode This command develops bar code data in the print buffer but does not print it After processing barcode data ...

Page 58: ...essing and ignore the following data The printer does not print HRI characters that correspond to the shift characters or code set selection characters HRI character for the function character are not printed HRI characters for the control character 00 H to 1F H and 7F H are not printed Relative GS H GS f GS h GS w Appendix A Notes 1B 40 Initialize printer 4A 41 4E 31 33 0A 1D 48 01 Set the width ...

Page 59: ... n1 7 1 n2 6 2 n3 250 1 n4 10 1 n5 10 2 n6 20 4 n6 20 1 n7 4 0 n8 1 Notes Whether GS1 barcode is separate or composite barcode is distinguished by data delimiter If there is in the programmed data it is composite barcode otherwise it is separate DataBar The part before is DataBar of the composite barcode and the part after it is the data of 2D barcode n1 stands for barcode type and character set a...

Page 60: ... to the left of the data and the bits after the first 14th bits will not be printed out 2D barcode of the character set in composite barcode 0 9 A Z a z _ blank FNC1 FNC1 is indicated by 1 n2 indicates basic element length n3 indicates the height of the DataBar Stacked stacked omnidirectional expanded stacked barcode indicate the height of each row of barcode n4 indicates the basic element height ...

Page 61: ...S p n Function Set barcode parameter of barcode PDF417 Format ASCII GS p nA nB nC nD nE nF Hex 1D 70 nA nB nC nD nE nF Decimal 29 112 nA nB nC nD nE nF Range 1 nA 10 1 nB 100 3 nC 90 1 nD 30 1 nE 7 2 nF 25 Description The meaning of parameter n is shown as below Parameter Meaning nA Appearance to height nB Appearance to width nC Lines limit nD Columns limit nE Basic element width nF Basic element ...

Page 62: ...es are as follows UPC A UPC E JAN13 EAN13 JAN8 EAN8 CODE93 CODE128 Binary level bar codes are as follows CODE39 ITF CODABAR Default n 2 Relative GS k 2 7 Bi colour command ESC r n enter exit bi colour print mode Function enter exit bi colour print mode Format ASCII ESC r n Hex 1B 72 n Hecimal 27 114 n Range 0 n 1 Notes n 0 exit bi colour mode n 1 enter bi colour mode Default n 1 Reference ESC C Ex...

Page 63: ... in the beginning of the inverted page The part behind the command is the content to be printed It cannot be printed out immediately but it is stored in page buffer When the printer incept the cut paper command GS V or when it exits upside down printing mode print the content upside down This command can only be used in the beginning of the row otherwise it will be ignored This command should coop...

Page 64: ...r bitmap data 1D 28 7A 02 00 30 53 enter upside down printing mode 1C 70 01 00 print the bitmap downloaded into FLASH 1D 28 7A 02 00 30 45 print FLASH bitmap and exit upside down printing mode perform the command immediately In upside down printing mode this kind of command will be performed before printing Details are as folloes Command Function GS a Automatically back to state DLE ENQ n Real tim...

Page 65: ...ting will not be able to perform 2 9 water print command GS w f n1 n2 n3 n4 n5 water print bitmap parameter setting Function Set water print bitmap parameter and enter water print mode Format ASCII GS w f n1 n2 n3 n4 n5 Hex 1D 7B 77 02 n1 n2 n3 n4 n5 Decimal 29 123 119 02 n1 n2 n3 n4 n5 Range 0 n1 1 0 n2 2 1 n3 255 0 n4 255 1 n5 255 Notes n1 indicates water print mode n1 0 Water print bitmap when ...

Page 66: ...number 1 Flash bitmap as water print bitmap GS w n enter exit water print mode Function enter exit water print mode Format ASCII GS w n Hex 1D 7B 77 n Decimal 29 123 119 n Range 0 n 1 Notes n 0 Exit water print mode n 1 Enter water print mode This command is only valid in the beginning of each row Before using this command use water print setting command to set water print parameter after use this...

Page 67: ...ap which is defined in a non volatile memory by FS rand printed by FS p In standard mode this command is effective only when processed at the beginning of the line This 9 bytes from FS zH is command data but not data of image In the first group of NV bitmaps when any of the parameters yL yH zL zH is out of the definition range this command is disabled In groups of NV bitmaps other than the first o...

Page 68: ...t line Data of the second dot line Data of the third dot line Data of the fourth 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 10 1 0 1 0 11 1 0 1 1 12 1 1 0 0 13 1 1 0 1 14 1 1 1 0 15 1 1 1 1 Reference FS p ESC c 6 n yl yh zl zh d1 d2 d3 d k RAM grayscale bitmap download Function Define RAM grayscale bitmap download Format ASCII ESC c 6 n yl y...

Page 69: ...a of the four dot lines of data The corresponding relation is as below Real greyscale rank Data of the first dot line Data of the second dot line Data of the third dot line Data of the fourth 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 10 1 0 1 0 11 1 0 1 1 12 1 1 0 0 13 1 1 0 1 14 1 1 1 0 15 1 1 1 1 ESC c 7 n print RAM grayscale bitmap Funct...

Page 70: ...vice the command is still available Do not insert the command into the data sequence of over 2 or more bytes Reference DLE EOT DLE DC4 n m t Function Generate pulse at real time to open cash drawer Format ASCII DLE DC4 n m t Hex 10 14 n m t Decimal 16 20 n m t Range n 1 m 0 1 1 t 6 Description Outputs the pulse specified by t to connector pin m as follows m Connector pin 0 Drawer kick out connecto...

Page 71: ... in standard mode and in page mode The horizontal and vertical motion units are specified by GS P Changing the horizontal or vertical motion unit does not affect the current line spacing In standard mode the vertical motion unit y is used In page mode this command functions as follows depending on the starting position of the printable area 1 When the starting position is set to the upper left or ...

Page 72: ...SC L Function Select page mode Format ASCII ESC L Hex 1B 4C Decimal 27 76 Notes This command is enabled only when processed at the beginning of a line in standard mode This command has no effect in page mode After printing by FF is completed or by using ESC S the printer returns to standard mode This command sets the position where data is buffered to the position specified by ESC T within the pri...

Page 73: ...ff ESC 4 Set left margin GS L 5 Set printable area width GS W The printer returns to standard mode when power is turned on the printer is reset or ESC is used Reference FF CAN ESC FF ESC S ESC T ESC W GS GS ESC S Function Select standard mode Format ASCII ESC S Hex 1B 53 Decimal 27 83 ...

Page 74: ...ed in standard mode 1 Set absolute vertical print position in page mode GS 2 Set relative vertical print position in page mode GS Standard mode is selected automatically when power is turned on the printer is reset or command ESC is used Reference FF ESC FF ESC L ESC c 0 n Function Selects the paper type Format ASCII ESC c 0 n Hex 1B 63 30 n Decimal 27 99 40 n Range 0 n 2 Notes Selects the paper t...

Page 75: ...end the paper end signal can output The command is available only with a parallel interface and is ignored with a serial interface If either bit 0 or bit 1 is on value is 1 the paper near end sensor is selected as the paper sensor outputting paper end signals If either bit 2 or bit 3 is on value is 1 the paper end sensor is selected as the paper sensor outputting paper end signals When two sensors...

Page 76: ...uttons are disabled Only the lowest bit of n is valid When the panel buttons are disabled none of them are usable when pressed When execute macro commands the FEED button is always enabled Default n 0 ESC p m t1 t2 Function Outputs the pulse specified by t1 and t2 to connector pin Format ASCII ESC p m t1 t2 Hex 1B 70 m t1 t2 Decimal 27 112 m t1 t2 Range m 0 1 48 49 0 t1 255 0 t2 255 Notes M select...

Page 77: ...urn double strike mode on off ESC J 1B 4A 27 74 n Print and feed paper ESC L 1B 4C 27 76 Select page mode ESC M 1B 4D 27 77 Select character font ESC R 1B 52 27 82 Select an international character set ESC S 1B 53 27 83 Select standard mode ESC T 1B 54 27 84 Select print direction in page mode ESC V 1B 56 27 86 Turn 90 clockwise rotation mode on off ESC W 1B 57 27 87 Set printing area in page mode...

Page 78: ...ble Automatic Status Back ASB GS f 1D 66 29 102 Select font for HRI characters GS h 1D 68 29 104 Set bar code height GS k 1D 6B 29 107 Print bar code GS p 1D 70 29 112 Set barcode parameter of barcode PDF417 GS q 1D 71 29 113 Set correction grade of barcode PDF417 GS r 1D 72 29 114 Transmit status GS v 0 1D 76 30 19 118 48 Print raster bitmap GS w 1D 77 29 119 Set bar code width FS 1C 21 28 33 Set...

Reviews: