background image

                   

REGO Thermal Printer Technical Manual

 

 

 
 

 

www.regotek.com                           

                                                         

16

 

 

Decimal    

27     

69     

 

[Range]   

        0 ≤ n ≤ 255 

[Description]   

Turn emphasized mode on or off. 
When the LSB of n is 0, emphasized mode is turned off. 
When the LSB of n is 1, emphasized mode is turned on. 

[Notes] 

 

Only the least significant bit of n is enabled. 
This command and ESC ! turn on and off emphasized mode in the same way. 
Be careful when this command is used with ESC !. 

[Default]

          n = 0 

[Reference]

      ESC ! 

[Example]

 

char SendStr[11] = {0x31,0x32,0x33,0x0A,0x1B,0x45,0x01,0x31,0x32,0x33,0x0A};                               

SendData(SendStr, 11);       

 
 
 
 
 
 

ESC G n    Turn on/off double-strike mode 

[Name]

            Turn on/off double-strike mode 

[Format]   

      ASCII   

 

ESC   G     

Hex   

 

1B     

47     

Decimal    

27     

71     

 

[Range] 

        0 ≤ n ≤ 255 

[Description]   

Turns double-strike mode on or off. 
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. 

[Notes] 

 

 

Only the lowest bit of n is enabled. 
Printer output is the same in double-strike mode and in emphasized mode. 

[Default] 

        n = 0 

[Reference]

      ESC E 

[Example]

 

char SendStr[11] = {0x31,0x32,0x33,0x0A,0x1B,0x47,0x01,0x31,0x32,0x33,0x0A};                               

                  SendData(SendStr, 11);           
 
 
 
 
 
 

ESC M n    Select character font 

[Name] 

          Select character font 

[Format]

          ASCII   

 

ESC           M     

Hex   

 

1B     

4D     

123 

123 

123 

123 

Содержание RG-DTP58

Страница 1: ...REGO Thermal Printer Technical Manual www regotek com 1 REGO Thermal Printer Technical Manual V 1 02 Beijing RuiGong Tech Co Ltd...

Страница 2: ...C t n Select character code table 18 ESC n Turn upside down print mode on off 19 GS n Select character size 20 GS B n Turn white black reverse printing mode 21 ESC c 5 n Enable disable panel buttons 2...

Страница 3: ...50 FS C n Select Chinese character code system 51 FS S n1 n2 Set left and right side Chinese character spacing 51 FS W n Turn quadruple size mode on off for Chinese characters 52 GS H n Select printin...

Страница 4: ...REGO Thermal Printer Technical Manual www regotek com 4 7 Appendix B Pre printed black mark Description 71...

Страница 5: ...e should be repeated k times Range Gives the allowable ranges if any for the command parameters Description Describes the function of the command Notes Provides important information on setting and us...

Страница 6: ...et by command Printing area must be smaller or equal to effective printing width Ignore In this state all the codes including parameters are invalid without any action Black mark mode Black mark is a...

Страница 7: ...mand In page mode prints all the data in buffer and switches to standard mode from page mode clear all the data in the buffer If the paper type is black mark or label paper In standard mode feeds pape...

Страница 8: ...ce ESC L ESC W Example char SendStr 21 0x1B 0x4C 0x1B 0x57 0x20 0x00 0x00 0x00 0x40 0x01 0x90 0x01 0x31 0x32 0x33 0x0A 0x1B 0x0C 0x18 0x1B 0x0C SendData SendStr 21 ESC J n Print and feed paper Name Pr...

Страница 9: ...n This command is used to switch from standard mode to page mode ESC S Select standard mode Name Select standard mode Format ASCII ESC S Hex 1B 53 Decimal 27 83 Description This command is used to swi...

Страница 10: ...e height is 4mm about 1 6 inch Reference ESC 2 GS P Example char SendStr 29 0x31 0x32 0x33 0x0A 0x31 0x32 0x33 0x0A 0x1B 0x33 0xFF 0x31 0x32 0x33 0x0 A 0x31 0x32 0x33 0x0A 0x1B 0x32 0x31 0x32 0x33 0x0...

Страница 11: ...l and vertical In addition to the space and 90 clockwise rotation of the characters set by HT the rest characters can be underlined The thickness of the underline is that selected by ESC regardless of...

Страница 12: ...7 0 d 255 k c2 c1 1 Description Define user defined characters y specifies the number of bytes in the vertical direction c1 specifies the beginning character code for the definition and c2 specifies t...

Страница 13: ...REGO Thermal Printer Technical Manual www regotek com 13 Reference ESC ESC Example When font A 12 24 is selected When font B 9 17 is selected...

Страница 14: ...REGO Thermal Printer Technical Manual www regotek com 14 ESC n Turn underline mode on off Name Turn underline mode on off Format ASCII ESC n Hex 1B 2D n...

Страница 15: ...nderline thickness Underline mode can also be turned on or off by using ESC Note however that the last received command is effective This command does not affect the setting of Chinese characters Defa...

Страница 16: ...01 0x31 0x32 0x33 0x0A SendData SendStr 11 ESC G n Turn on off double strike mode Name Turn on off double strike mode Format ASCII ESC G n Hex 1B 47 n Decimal 27 71 n Range 0 n 255 Description Turns d...

Страница 17: ...1B 4D 00 B9 FE B9 FE B9 FE 0A 1B 4D 01 B9 FE B9 FE B9 FE 0A SendData SendStr 20 ESC R n Select an international character set Name Select an international character set Format ASCII ESC R n Hex 1B 52...

Страница 18: ...on the underline can t be rotated 90 clockwise When turns 90 clockwise rotation mode on the function of double width and double height is just opposite to it in standard mode Default n 0 Reference ES...

Страница 19: ...Thai 1 27 CP720 Arabic 28 CP855 29 CP857 Turkish 30 WCP1250 Central Eurpoe 31 CP775 32 WCP1254 Turkish 33 WCP1255 Hebrew 34 WCP1256 Arabic 35 WCP1258 Vietnam 36 ISO 8859 2 Latin 2 37 ISO 8859 3 Latin...

Страница 20: ...er 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 and then prints it Default n...

Страница 21: ...width and double height modes on or off However the last received command is effective Default n 0 Reference ESC Example char SendStr 14 0x1D 0x21 0x77 0x31 0x32 0x33 0x0A 0xB9 0xFE 0xB9 0xFE 0xB9 0x...

Страница 22: ...35 n Decimal 27 99 53 n Range 0 n 255 Description Enable or disable the panel buttons When the LSB of n is 0 the panel buttons are enabled When the LSB of n is 1 the panel buttons are disabled Notes...

Страница 23: ...the paper end sensor is selected as the paper sensor outputting paper end signals When all the sensors are disabled the paper end signal always outputs a paper status Default n 3 ESC c 4 n Select pap...

Страница 24: ...Name Set absolute print position Format ASCII ESC nL nH Hex 1B 24 nL nH Decimal 27 36 nL nH Range 0 nL 255 0 nH 255 Description Moves the print position to nL nH 256 vertical or horizontal motion uni...

Страница 25: ...f 65536 When pitch N is specified 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 u...

Страница 26: ...ESC Default n 0 Example GS L nL nH Set left margin Name Set left margin Format ASCII GS L nL nH Hex 1D 4C nL nH Decimal 29 76 nL nH Range 0 nL 255 0 nH 255 Description Set the left margin using nL and...

Страница 27: ...y GS P Changing the horizontal and vertical motion units does not affect the current left margin The horizontal motion unit is used for calculating the printing area width Default nL nH 256 576 80mm p...

Страница 28: ...fied by ESC T within the printing area If horizontal starting position printing area width exceeds the printable area the printing area width is automatically set to horizontal printable area horizont...

Страница 29: ...int starting position to buffer character data in page mode This command sets the absolute print position to nL nH x 256 x 0 125 mm Notes This command is effective only in page mode If the nL nHx 256...

Страница 30: ...on in page mode n specifies the print direction and starting position as follows Notes When the command is input in standard mode the printer executes only internal flag operation This command does no...

Страница 31: ...ty 24 203 DP 203 DPI nL nH 256 3 Notes If the values of m is out of the specified range nL and data following are processed as normal data The nL and nH indicate the number of dots of the bit image in...

Страница 32: ...rmal Printer Technical Manual www regotek com 32 When 24 dot bit image is selected GS x y d1 d x y 8 Define downloaded bit image Name Define downloaded bit image Format ASCII GS x y d1 dk Hex 1D 2A x...

Страница 33: ...is out of the specified range this command is disabled The d indicates bit image data Data d specifies a bit printed to 1 and not printed to 0 The downloaded bit image definition is cleared when ESC...

Страница 34: ...rough a dedicated tool on the PC and writes the maximum width of the bit image depends on the maximum width of the corresponding printer bit image size is up to 64KB Notes This command is not effectiv...

Страница 35: ...d double strike upside down underline white black reverse printing etc Bit map beyond the printable area is not printed When this command is received during macro definition the printer ends macro def...

Страница 36: ...this command cannot be executed when the printer is busy This command is executed even when the printer is offline or in error status when Memory Switch 1 3 is on with a parallel interface model When...

Страница 37: ...a n Hex 1D 61 n Decimal 29 97 n Range 0 n 255 Description Enable or disable ASB and specifies the status items to include using n as follows Bit 1 0 Hex Decimal Status for ASB 0 0 00 0 Drawer kick ou...

Страница 38: ...aper is not being fed by using the PAPER FEED button 1 40 64 Paper is being fed by using the PAPER FEED button 7 0 00 0 Fixed value is 0 Second byte printer information Bit 1 0 Hex Decimal Printer Sta...

Страница 39: ...ts a paper end the printer goes off line and does not execute this command Therefore bits 2 and 3 do not transmit the status of paper end When the cover is opened the state is shown in the state of th...

Страница 40: ...s macro definition and clears the definition Macro is not defined when the power is turned on The defined contents of the macro are not cleared by ESC Therefore ESC can be included in the contents of...

Страница 41: ...e as follows m Cut paper mode 0 48 Full cut 1 49 Partial cut 65 Feed paper cutting position n vertical motion unit and full cut 66 Feed paper cutting position n vertical motion unit and partial cut No...

Страница 42: ...4 fn m t Decimal 16 20 fn m t Range fn 1 m 0 1 1 t 8 Description Outputs the pulse specified by t to connector pin m as follows m Connector pin 0 Drawer kick out connector pin 2 1 Drawer kick out conn...

Страница 43: ...the modes that were in effect when the power was turned on Keeps the following data Macro definition data Contents stored in the NV user memory Contents defined for the NV graphics NV bit image Maint...

Страница 44: ...pporting Chinese type Simplified Chinese Chinese Traditional Chinese Chinese BIG5 n 2 Type ID Bit 1 0 Hex Decimal Function 0 0 00 0 Two byte character code not supported 1 01 1 Two byte character code...

Страница 45: ...ting position is set to the upper right or lower left of the printing area using ESC T data is buffered in the paper feed direction Commands using x ESC 3 ESC J ESC W GS GS Commands using y ESC SP ESC...

Страница 46: ...ommand Name Enable disable real time command Format ASCII GS D pL pH m a1 b1 ak bk Hex 1D 28 44 pL pH m a1 b1 ak bk Decimal 29 40 68 pL pH m a1 b1 ak bk Range 3 pL pH 256 65535 0 pL 255 0 pH 255 m 20...

Страница 47: ...the printer may go into an abnormal condition Do not turn the power off or do not reset the printer via an interface while this command is being executed While processing this command the printer may...

Страница 48: ...mode is OFF 1 04 4 Double width mode is ON 3 0 00 0 Double height mode is OFF 1 08 8 Double height mode is ON 4 6 Undefined 7 0 00 0 Underline mode is OFF 1 80 128 Underline mode is ON Notes When both...

Страница 49: ...ding right and left side character spacing but cannot underline the space set by HT and 90 clockwise rotated characters After the underline mode for Chinese characters is turned off by setting n to 0...

Страница 50: ...c1 and c2 indicate character codes for the defined characters c1 FEH A1H c2 FEH 0 d 255 k 72 Description Define user defined Chinese characters for the character codes specified by c1 and c2 Notes c1...

Страница 51: ...Chinese models n 1 Traditional Chinese models FS S n1 n2 Set left and right side Chinese character spacing Name Set left and right side Chinese character spacing Format ASCII FS S n1 n2 Hex 1C 53 n1 n...

Страница 52: ...uple size mode on off for Chinese characters Format ASCII FS W n Hex 1C 57 n Decimal 28 87 n Range 0 n 255 Description Turn quadruple size mode on or off for Chinese characters When the LSB of n is 0...

Страница 53: ...Decimal 29 102 n Range n 0 1 48 49 Description Select a font for the HRI characters used when printing a bar code n selects a font from the following table n Font 0 48 Standard ASCII characters 12 24...

Страница 54: ...ODE93 1 n 255 0 d 127 73 CODE128 2 n 255 0 d 127 Notes for This command ends with a NUL code When the bar code system used is UPC A or UPC E the printer prints the bar code data after receiving 12 byt...

Страница 55: ...rint the bar code but moves the data buffer position to the left side out of the printing area When CODE128 m 73 is used Refer to Figure A CODE 128 for detailed information and character set When usin...

Страница 56: ...et bar code width Format ASCII GS w n Hex 1D 77 n Decimal 29 119 n Range 2 n 6 Description Set the horizontal size of the bar code n specifies the bar code width as follows n Module Width mm for Multi...

Страница 57: ...ndicates graph version o automatic selection r 76 77 81 72 Indicates error correction levels L 7 M 15 Q 25 H 30 Parameter k n nL nH d parameter meaning 1 k 6 Indicates vertical magnification 1 n 65535...

Страница 58: ...rst form the command to 00 end d1 Dn as bar code data when using the second form nH n after full character d1 Dn as bar code data mused to select the bar code type as follows m Bar Code Type Data leng...

Страница 59: ...be needed after the print commands If error happened during printing print again after recovery from error Example 0 200 200 210 1 TEXT 24 11 30 40 PRINT FORM Commands Name Positioning command Format...

Страница 60: ...ormal 1 2 twice height 10 2 twice width 2 3 20 3 3 4 30 4 4 5 40 5 5 6 50 6 6 7 60 7 7 8 70 8 Example Input 0 200 200 210 1 TEXT 24 11 30 40 Hello World PRINT LINE Commands Name Line printing command...

Страница 61: ...nes forming the box Example 0 200 200 210 1 BOX 0 0 200 200 1 PRINT SETBOLD Commands Name Set bold character Format command value Description command SETBOLD value bold or not 1 yes 0 no Example 0 200...

Страница 62: ...inate of top right corner for horizontal bottom left corner for vertical width Width of the inverse line Example 0 200 200 210 1 TEXT 24 11 30 45 SAVE TEXT 24 11 30 95 MORE INVERSE LINE 0 45 145 45 45...

Страница 63: ...60 Spread Spacing SETSP 0 T 24 11 0 110 Normal Spacing PRINT CENTER Commands Name Center Command Format command Description The content in current line to be showed in center LEFT Commands Name Left...

Страница 64: ...h Description command POSTFEED length dots 8dot mm Example 0 200 200 210 1 POSTFEED 40 TEXT 7 0 0 20 POSTFEED EXAMPLE PRINT Postfeed 40dots 5mm BARCOD TEXT Commands Name HRI character command Format c...

Страница 65: ...AN8 39 CODE39 CODABAR CODABAR 93 CODE93 128 CODE128 Auto width width of the narrow barcode ratio Ratio of the wide barcode to the narrow barcode height height of the barcode x Horizontal starting posi...

Страница 66: ...model number Range is 1 or 2 Default is 2 U n Width Height of the module Range is 1 to 6 default is 6 data QR barcode data See the following examples data includes some mode selection symbols in addit...

Страница 67: ...e Data size can be reduced to one half by utilizing the COMPRESSED GRAPHICS commands with the equivalent binary characters s of the hex data When using CG a single 8 bit character is sent for every 8b...

Страница 68: ...et A to character set B or B to convert from character set to character set A began to recover from the second character to SHIFT previously used character set SHIFT character set only character set c...

Страница 69: ...3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39...

Страница 70: ...62 63 64 65 66 67 68 69 F G H I J K L M N O P Q R S T U V W X Y Z _ a b c d e f g h i j k 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6...

Страница 71: ...12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 26 27 2...

Страница 72: ...d black mark otherwise it may cause the printer does not recognize the black mark Pre printed black mark specification Printing Position As shown above the black mark on the left edge of the text to b...

Отзывы: