REGO Thermal Printer Technical Manual Overview ........................... 5 Command format ........................5 Explanation of terms ......................... 5 ESC/POS Command Details ....................... 7 LF Print and feed one line ....................7 FF Print and feed paper to a black mark ................ 7 ESC FF Print data in buffer in page mode ...............
Page 3
REGO Thermal Printer Technical Manual ①GS V m ②GS V m n Select cut mode and cut paper ..........41 DLE ENQ n Real-time request to printer ............... 41 DLE DC4 fn m t (fn=1) Generate pulse at real-time ............42 ESC = n Set peripheral device ..................
Page 4
REGO Thermal Printer Technical Manual Appendix B:Pre-printed black mark Description ..............71 www.regotek.com...
REGO Thermal Printer Technical Manual 1. Overview This manual contains all the general control commands for the below REGO thermal printer models. It is about the use of various control commands and notes. However, different models have different specific parameters and functions, in this manual may not contain all of them. So please contact REGO technical team if there were any questions or supports required.
Page 6
REGO Thermal Printer Technical Manual Effective printing width It refers to the maximum printing width of the printer which depends on the printer itself. For example: for a 80mm paper width printer, its printing width is 72mm(576 dots), but for a 58mm paper width printer, the printing width can be 48mm(384 dots).
REGO Thermal Printer Technical Manual ESC/POS Command Details LF Print and feed one line [Name] Print and feed one line [Format] ASCII Decimal [Description] Prints the data in the print buffer and feeds one line, based on the current line spacing.
REGO Thermal Printer Technical Manual CR Print and carriage return [Name] Print and carriage return [Format] ASCII Decimal [Description] When the command is enabled, this command functions the same as LF; when disabled, this command is ignored. [Notes] Set the print starting position to the beginning of the line.
REGO Thermal Printer Technical Manual - When the starting position is set to the upper right or lower left of the printable area using ESC T, the horizontal motion unit (x) is used. Maximum paper feed amount is 1016 mm (40 inches). If you exceed this distance, using the maximum distance.
REGO Thermal Printer Technical Manual [Format] ASCII Decimal [Description] Set the line height to 4 mm ,1/6"-. [Notes] Line height is independent in standard mode and page mode. [Reference] ESC 3 ESC 3 n Set line height [Name] Set line height...
REGO Thermal Printer Technical Manual ESC ! n Select print mode(s) [Name] Select print mode(s) [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Select print mode(s) using n as follows: Decimal Function Standard ASCII font A (12 × 24) Compressed ASCII font B (9 ×...
REGO Thermal Printer Technical Manual ESC % n Select/cancel user-defined character set [Name] Select/cancel user-defined character set [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Select or cancel the user-defined character set. When the LSB of n is 0, the user-defined character set is canceled.
Page 13
REGO Thermal Printer Technical Manual [Reference] ESC %, ESC ? [Example] When font A (12 ×24) is selected. When font B (9 ×17) is selected. www.regotek.com...
REGO Thermal Printer Technical Manual Decimal [Range] 0 ≤ n ≤2, 48 ≤ n ≤ 50 [Description] Turn underline mode on or off, based on the following values of n: Function 0, 48 Turns off underline mode 1, 49 Turns on underline mode (1-dot thick)
REGO Thermal Printer Technical Manual Decimal [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.
REGO Thermal Printer Technical Manual Decimal [Range] n = 0, 1, 48, 49 [Description] Select character fonts. Function 0,48 Select Standard ASCII Font (12 × 24) ,Chinese Font (24 × 24) 1,49 Select Compressed ASCII Font (9 × 17) , Chinese Font (16 × 16)
REGO Thermal Printer Technical Manual [Range] 0 ≤ n ≤ 255 [Description] Turn upside-down print mode on or off. When the LSB of n is 0, upside-down print mode is turned off. When the LSB of n is 1, upside-down print mode is turned on.
REGO Thermal Printer Technical Manual When white/black reverse printing mode is on, it also applied to character spacing set by ESC SP. This command does not affect bit image, user-defined bit image, bar code, HRI characters, and spacing skipped by HT, ESC $, and ESC \.
REGO Thermal Printer Technical Manual Paper roll near-end sensor disabled Paper roll near-end sensor enabled Paper roll end sensor disabled Paper roll end sensor enabled Paper roll end sensor disabled Paper roll end sensor enabled Undefined [Notes] It is possible to select multiple sensors to output signals. Then, if any of the sensors detects a paper end, the paper end signal is output.
REGO Thermal Printer Technical Manual Decimal [Description] Move the print position to the next horizontal tab position. [Notes] This command is ignored if the next horizontal tab position hasn’t been set. If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1].
REGO Thermal Printer Technical Manual 0 ≤ k ≤ 32 [Description] Set horizontal tab positions. • n specifies the number of digits from the setting position to the left edge of the print area. • k is used to indicate the number of bytes set for the horizontal tab position.
REGO Thermal Printer Technical Manual [Description] Align all the data in one line to the specified position. n selects the justification as follows: Justification 0, 48 Left justification 1, 49 Centering 2, 50 Right justification [Notes] The command is enabled only when processed at the beginning of the line in standard mode.
REGO Thermal Printer Technical Manual GS W nL nH Set printing area width [Name] Set printing area width [Format] ASCII nL nH nL nH Decimal nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Description] Set the printing area width to the area specified by nL and nH.
Page 28
REGO Thermal Printer Technical Manual Each setting for the printing area is calculated as follows: x0 = [(xL + xH ´ 256) ´ 0.125 mm] y0 = [(yL + yH ´ 256) ´ 0.125 mm] dx = [(dxL + dxH ´ 256) ´ 0.125 mm] dy = [(dyL + dyH ´...
REGO Thermal Printer Technical Manual 0x0A,0x1D,0x24,0x20,0x00,0x33,0x33,0x33,0x33, 0x0A,0x0C}; SendData(SendStr, 29); 222222 ESC T n Select print direction in page mode [Name] Select print direction in page mode [Format] ASCII Decimal [Range] 0 ≤ n≤ 3, 48 ≤ n ≤ 51 [Description] Selects the print direction and starting position in page mode.
REGO Thermal Printer Technical Manual 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 d1...dk d1...dk www.regotek.com...
REGO Thermal Printer Technical Manual Decimal d1...dk [Range] 1 ≤ x ≤ 255 1 ≤ y ≤ 48 x × y ≤ 800 0 ≤ d ≤ 255 k=x× y× 8 [Description] Define a downloaded bit image using the number of dots specified by x and y x specifies the number of dots in the horizontal direction.
If the downloaded bit-image to be printed exceeds one line, the excess data is not printed. The bit image must be a binary bit image. It is required a specified tool to download the bit image, see REGO Tools. GS v 0 m xL xH yL yH d1 … dk Print raster bit image...
Page 36
REGO Thermal Printer Technical Manual The status is transmitted whenever the data sequence <10>H<04>H<n> (1 £ n £ 4) is received. Example: In ESC * m nL nH d1...dk, d1=<10>H, d2=<04>H, d3=<01>H Do not use this command within another command that consists of 2 or more bytes.
REGO Thermal Printer Technical Manual Undefined. No auto-cutter error. Auto-cutter error occurs. Fixed value is 1 No unrecoverable error. Unrecoverable error occurs. No auto-recoverable error. Auto recoverable error occurs. Fixed value is 0 n = 4: paper sensor status Decimal...
Page 38
REGO Thermal Printer Technical Manual and transmission are possible at the first time from when the printer is turned on. The following four status bytes are transmitted without confirming whether the host is ready to receive data. The four status bytes must be consecutive, except for the XOFF code.
REGO Thermal Printer Technical Manual Paper roll end sensor: paper not present. Fixed value is 0 5, 6 Undefined. Fixed value is 0 Fourth byte (paper sensor information) Decimal Printer Information Undefined. Fixed value is 0 5, 6 Undefined. Fixed value is 0...
REGO Thermal Printer Technical Manual Not used.Fixed value is 0 5, 6 Undefined. Not used.Fixed value is 0 [Notes] The command to the parallel port printer is invalid. This command is executed when the data in the receive buffer is developed. Therefore, there may be a time lag between receiving this command and transmitting the status, depending on the receive buffer status.
REGO Thermal Printer Technical Manual printer executes the macro once. The printer repeats the operation r times. [Notes] The waiting time is t × 100ms for every macro execution. If this command is received while a macro is being defined, the macro definition is aborted and the definition is cleared.
REGO Thermal Printer Technical Manual [Description] Responds to a request from the host computer. n specifies the requests as follows: Request Recover from an error and restart printing from the line where the error occurred Recover from an error aft clearing the receive and print buffers [Notes] This command is effective only when an auto-cutter error occurs.
REGO Thermal Printer Technical Manual Decimal [Range] 0≤ n ≤ 255 [Description] Selects the device to which the host PC transmits data, using n as follows: Function 1, 3 Printer enabled Printer disabled. [Notes] When the printer is disabled (n = 2), all data except this command and the real-time commands are ignored.
REGO Thermal Printer Technical Manual GS I n Check printer ID [Name] Check printer ID [Format] ASCII 49 n Decimal 73 n [Range] 1 ≤ n ≤ 3, 49 ≤ n ≤ 51, 65 ≤ n ≤ 69 [Description] Check printer ID specified by n as follows:...
Page 45
REGO Thermal Printer Technical Manual Set the horizontal and vertical motion units to approximately 25.4/x mm { 1/xinches} and approximately 25.4/y mm {1/y inches}, respectively. When x and y are set to 0, the default setting of each value is used.
Page 46
REGO Thermal Printer Technical Manual [Description] This command is enabled only when processed at the beginning of a line in standard mode. This command is no effect in page mode. When this command is received during macro definition, the printer ends macro definition and begins performing this command.
REGO Thermal Printer Technical Manual [Times] Number of auto cutter operations. [Times]. Duration printer operation. [Hours]. [Notes] The maintenance counter values are measurements; therefore, their values will be affected by the timing of errors and how and when the power is turned off.
REGO Thermal Printer Technical Manual FS & Select Chinese character mode [Name] Select Chinese character mode [Format] ASCII & Decimal [Description] Select Chinese character mode. [Notes] When the Chinese character mode is selected, the printer checks whether the code is for Chinese or not, then processed the first byte and the second byte if the code is for Chinese.
REGO Thermal Printer Technical Manual time as ASCII code. Chinese character mode is selected when the power is turned on. [Reference] FS &, FS C FS 2 c1 c2 d1...dk Define user-defined Chinese characters [Name] Define user-defined Chinese characters [Format] ASCII d1...dk...
REGO Thermal Printer Technical Manual FS C n Select Chinese character code system [Name] Select Chinese character code system [Format] ASCII Decimal [Range] n=0, 1, 48, 49 [Description] Select Chinese character code system Select Chinese character code system 0, 48...
REGO Thermal Printer Technical Manual [Notes] When double-width mode is set, the left- 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.
REGO Thermal Printer Technical Manual Printing position 0, 48 Not printed 1, 49 Above the bar code 2, 50 Below the bar code 3, 51 Both above and below the bar code HRI indicates Human Readable Interpretation. [Notes] HRI characters are printed using the font specified by GS f.
Page 54
REGO Thermal Printer Technical Manual [Format] ①ASCII GS d1...d k NUL d1...d k 00 Decimal d1...d k 0 ②ASCII GS d1... dn d1... dn Decimal d1... dn [Range] ① 0 ≤ m ≤ 6 (k and d depends on the bar code system used) ②...
Page 55
REGO Thermal Printer Technical Manual If the horizontal size exceeds printing area, the printer only feeds the paper. This command feeds as much paper as is required to print the bar code,regardless of the line spacing specified by ESC 2 or ESC 3.
REGO Thermal Printer Technical Manual command processing and processes the following data as normal 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 is space.
REGO Thermal Printer Technical Manual ESC Z m n k dL dH d1 …dn Print 2-D bar code [Name] Print 2-D bar code [Format] ASCII k nL nH d1 …dn 5A v k nL nH d1 …dn Decimal 90 v k nL nH d1 …dn...
REGO Thermal Printer Technical Manual 1 ≤ v ≤ 30 indicates the number of characters per line. Different models, different paper width, the maximum value of v should be within the max value of this model. 0 ≤ r ≤ 8 indicates error correction levels.
REGO Thermal Printer Technical Manual {height}: the max height of barcode, the unit is dot {qty}: the quantity of printed barcode, the most is 1024pcs. [Example]: ! 0 200 200 210 1 TEXT 24 0 30 40 Hello World FORM...
REGO Thermal Printer Technical Manual Choose Text type: TEXT(or T) Print text in normal direction TEXT90(T90) Print text in rotated 90 degree direction TEXT180(T180) Print text in rotated 180 degree direction Choose Font: font Font dot Character (12*24),Chinese character (24*24)
REGO Thermal Printer Technical Manual BOX Commands [Name] Box command [Format] {command} {x0} {y0 } {x1} {y1} {width} [Description] {command}:BOX {x0}: X-coordinate of the top left corner {y0}: Y-coordinate of the top left corner. {x1}: X-coordinate of the bottom right corner.
REGO Thermal Printer Technical Manual T 24 11 0 160 Normal PRINT Normal Underline One Dot Underline Two Dot Normal SETSP Commands [Name] Change spacing between text characters [Format] {command} {spacing} [Description] {command}:SETSP {spacing}:Spacing between characters, default is 0. [Example]...
REGO Thermal Printer Technical Manual BARCODE Commands [Name] Barcode Command 1D Barcode [Format] {command} {type} {width} {ratio} {height} {x} {y} {data} [Description] {command}: BARCODE(or B) {type}:Barcode type Type Value Barcode type UPCA UPC-A UPCE UPC-E EAN13 JAN13 (EAN13) EAN8 JAN 8 (EAN8)
Page 66
REGO Thermal Printer Technical Manual {y}:Vertical starting position {XD n}:Width of the narrowest element. Range is 1 to 32, default is 2. {YD n}:Height of the narrowest element. Range is 1 to 32, default is 6. {C n}: Character numbers of each line. Range is 1 to 30, default is 3.
REGO Thermal Printer Technical Manual T 24 11 10 300 code ABC123 PRINT GRAPHICS Commands [Name] Graphics Command [Format] {command} {width} {height} {x} {y} {data} [Description] {command}:Choose from the following EXPANDED-GRAPHICS (or EG): Prints expanded graphics COMPRESSED-GRAPHICS (or CG): Prints compressed graphics...
Page 68
REGO Thermal Printer Technical Manual character set encoding of characters is as follows: · Character Set A: ASCII characters 00H to 5FH · Character Set B: ASCII characters 20H to 7FH · Character Set C: 00 ~ 99 of 100 digital CODE 128 code can also be encoded for the following special characters: ·...
REGO Thermal Printer Technical Manual A.2 Character Set Characters of Character Set A Transmit Data Transmit Data Transmit Data Charact Characters Characters Decimal Decimal Decimal NULL & FNC1 7B,3 123,49 FNC2 123,50 < FNC3 7B,3 123,51 FNC4 123,52 > SHIFT...
Page 70
REGO Thermal Printer Technical Manual Characters of Character Set B Transmit Data Transmit Data Transmit Data Charact Charact Charact Decimal Decimal Decimal " & 7B,7B 123,123 — FNC1 7B,31 123,49 FNC2 7B,32 123,50 FNC3 7B,33 123,51 FNC4 7B,34 123,52 SHIFT...
Page 71
REGO Thermal Printer Technical Manual Characters of Character Set C Transmit Data Transmit Data Transmit Data Charact Charact Charact Decimal Decimal Decimal FNC1 7B,31 123,49 CODEA 7B,41 123,65 CODEB 7B,42 123,66 7. Appendix B:Pre-printed black mark Description www.regotek.com...
Page 72
REGO Thermal Printer Technical Manual If you use pre-printed black mark to carry bill location, be sure to observe the following guidelines when printing pre-printed 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 be printed surface.
Need help?
Do you have a question about the RG-MTP58B and is the answer not in the manual?
Questions and answers