Rego RG-MTP58B Technical Manual

Rego RG-MTP58B Technical Manual

Hide thumbs Also See for RG-MTP58B:
Table of Contents

Advertisement

REGO Thermal Printer Technical Manual
REGO Thermal Printer
Technical Manual
V 1.02
Beijing RuiGong Tech Co.,Ltd.
www.regotek.com
- 1 -

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RG-MTP58B and is the answer not in the manual?

Questions and answers

Summary of Contents for Rego RG-MTP58B

  • Page 1 REGO Thermal Printer Technical Manual REGO Thermal Printer Technical Manual V 1.02 Beijing RuiGong Tech Co.,Ltd. www.regotek.com - 1 -...
  • Page 2: Table Of Contents

    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...
  • Page 5: Overview

    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).
  • Page 7: Esc/Pos Command Details

    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.
  • Page 8: Cr Print And Carriage Return

    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.
  • Page 9: Esc L Select Page Mode

    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.
  • Page 10: Esc 3 N Set Line Height

    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...
  • Page 11: Esc ! N Select Print Mode(S)

    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 ×...
  • Page 12: Esc % N Select/Cancel User-Defined Character Set

    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...
  • Page 14: Esc - N Turn Underline Mode On/Off

    REGO Thermal Printer Technical Manual ESC - n Turn underline mode on/off [Name] Turn underline mode on/off [Format] ASCII ESC - www.regotek.com...
  • Page 15: Esc ? N Cancel User-Defined Characters

    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)
  • Page 16: Esc G N Turn On/Off Double-Strike Mode

    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.
  • Page 17: Esc R N Select An International Character Set

    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)
  • Page 18: Esc V N Turn 90° Clockwise Rotation Mode On/Off

    REGO Thermal Printer Technical Manual ESC V n Turn 90° clockwise rotation mode on/off [Name] Turn 90° clockwise rotation mode on/off [Format] ASCII Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Description] Turns 90°clockwise rotation mode on/off .n is used as follows:...
  • Page 19: Esc { N Turn Upside-Down Print Mode On/Off

    REGO Thermal Printer Technical Manual Iran reserve reserve reserve reserve CP862 [Hebrew] WCP1252 Latin I WCP1253 [Greek] CP852 [Latina 2] CP858 Multilingual Latin Ⅰ+Euro) Iran II Latvian CP864 [Arabic] ISO-8859-1 [West Europe] CP737 [Greek] WCP1257 [Baltic] Thai 1 CP720[Arabic] CP855...
  • Page 20: Gs ! N Select Character Size

    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.
  • Page 21: Gs B N Turn White/Black Reverse Printing Mode

    REGO Thermal Printer Technical Manual Character Height Selection Character Width Selection Decimal Vertical Enlarge Decimal Horizontal Enlarge 1 (normal) 1 (normal) 2(2 double-height) 2(2 double-width) Table 1 Table 2 [Notes] This command is effective for all characters (ASCII and Chinese) except for HRI characters.
  • Page 22: Esc C 5 N Enable/Disable Panel Buttons

    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 \.
  • Page 23: Esc C 4 N Select Paper Sensor(S) To Stop Printing

    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.
  • Page 24: Esc $ Nl Nh Set Absolute Print Position

    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].
  • Page 25: Esc \ Nl Nh Set Relative Print Position

    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.
  • Page 26: Gs L Nl Nh Set Left Margin

    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.
  • Page 27: Gs W Nl Nh Set Printing Area Width

    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 ´...
  • Page 29: Gs \ Nl Nh Set Relative Vertical Print Position In Page Mode

    REGO Thermal Printer Technical Manual GS \ nL nH Set relative vertical print position in page mode [Name] Set relative vertical print position in page mode [Format] ASCII nL nH nL nH Decimal nL nH [Range] 0 ≤ nL ≤ 255 0 ≤...
  • Page 30: Esc T N Select Print Direction In Page Mode

    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.
  • Page 31: Esc * M Nl Nh D1

    REGO Thermal Printer Technical Manual ESC * m nL nH d1... dk Select bit-image mode [Name] Select bit-image mode [Format] ASCII nL nH d1...dk nL nH d1...dk Decimal nL nH d1...dk [Range] m = 0, 1, 32, 33 0 ≤ nL ≤ 255 0 ≤...
  • Page 32: Gs * X Y D1

    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...
  • Page 33: Gs / M Print Downloaded Bit Image

    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.
  • Page 34: Fs P N Print Nv Bit Image

    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 35: Dle Eot N Real-Time Status Transmission

    REGO Thermal Printer Technical Manual 1 ≤ (yL + yH × 256) ≤ 2303 (0 ≤ yL ≤ 255, 0≤ yH ≤ 8) 0 ≤ d ≤ 255 k = (xL + xH × 256) × (yL + yH × 256) ( k ≠ 0)
  • 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.
  • Page 37: Gs A N Enable/Disable Automatic Status Back (Asb)

    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.
  • Page 39: Gs R N Transmit Status

    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...
  • Page 40: Gs : Start/End Macro Definition

    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.
  • Page 41: ①Gs V M ②Gs V M N Select Cut Mode And Cut Paper

    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.
  • Page 42: Dle Dc4 Fn M T (Fn=1) Generate Pulse At Real-Time

    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.
  • Page 43: Esc @ Initialize Printer

    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.
  • Page 44: Gs I N Check Printer Id

    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.
  • Page 47: Gs G 0 M Nl Nh Initialize Maintenance Counter

    REGO Thermal Printer Technical Manual GS g 0 m nL nH Initialize maintenance counter [Name] Initialize maintenance counter [Format] ASCII nL nH 30 m nL nH Decimal 48 m nL nH [Range] m =0 (nL + nH × 256) = 20, 21, 50, 70 (nL = 20, 21, 50, 70, nH = 0) [Description] Set the resettable maintenance counter specified by (nL + nH×256) to 0.
  • Page 48: Fs ! N Set Print Mode(S) For Chinese Characters

    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.
  • Page 49: Fs & Select Chinese Character Mode

    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.
  • Page 50: Fs 2 C1 C2 D1

    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...
  • Page 51: Fs C N Select Chinese Character Code System

    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...
  • Page 52: Fs W N Turn Quadruple-Size Mode On/Off For Chinese Characters

    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.
  • Page 53: Gs F N Select Font For Human Readable Interpretation (Hri) Characters

    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.
  • Page 56: Gs W N Set Bar Code Width

    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.
  • Page 57: Esc Z M N K Dl Dh D1

    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...
  • Page 58: Cpcl Command Details

    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.
  • Page 59: Print Commands

    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...
  • Page 60: Line Commands

    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)
  • Page 61: Box Commands

    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.
  • Page 62: Inverse-Line Commands

    REGO Thermal Printer Technical Manual T 24 11 0 10 Normal Display INVERSE-TEXT 1 T 24 11 0 60 Inverse Display INVERSE-TEXT 0 T 24 11 0 110 Normal Display PRINT Normal Display Inverse Display Normal Display INVERSE-LINE Commands [Name]...
  • Page 63: Setsp Commands

    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]...
  • Page 64: Prefeed Commands

    REGO Thermal Printer Technical Manual PREFEED Commands [Name] Prefeed dots(length) before printing [Format] {command} {length} [Description] {command}:PREFEED { length }: dots(8dot/mm) [Example] ! 0 200 200 210 1 PREFEED 40 TEXT 7 0 0 20 PREFEED EXAMPLE PRINT Prefeed 40dots(5mm)
  • Page 65: Barcode Commands

    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.
  • Page 67: Graphics Commands

    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: ·...
  • Page 69: A.2 Character Set

    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.

Table of Contents