background image

                   

REGO Thermal Printer Technical Manual

 

 

 
 

 

www.regotek.com                           

                                                         

71

 

 

Characters of Character Set C 
 

 
 

7.

 

Appendix B:Pre-printed black mark Description 

Charact
ers 

Transmit Data 

Charact
ers 

Transmit Data 

Charact
ers 

Transmit Data 

Hex 

Decimal 

Hex 

Decimal 

Hex 

Decimal 











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 

00 
01 
02 
03 
04 
05 
06 
07 
08 
09 
0A 
0B 
0C 
0D 
0E 
0F 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
1A 
1B 
1C 
1D 
1E 
1F 
20 
21 
22 
23 
24 
25 











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 

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 
28 
29 
2A 
2B 
2C 
2D 
2E 
2F 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
3A 
3B 
3C 
3D 
3E 
3F 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
4A 
4B 

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 

76 
77 
78 
79 
80 
81   
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
FNC1 
CODEA 
CODEB 

4C 
4D 
4E 
4F 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
5A 
5B 
5C 
5D 
5E 
5F 
60 
61 
62 
63 
7B,31 
7B,41 
7B,42 
 

76 
77 
78 
79 
80 
81   
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
123,49 
123,65 
123,66 
 

Summary of Contents for RG-DTP58

Page 1: ...REGO Thermal Printer Technical Manual www regotek com 1 REGO Thermal Printer Technical Manual V 1 02 Beijing RuiGong Tech Co Ltd...

Page 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...

Page 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...

Page 4: ...REGO Thermal Printer Technical Manual www regotek com 4 7 Appendix B Pre printed black mark Description 71...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: