Rego RG-MTP58B User manual

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

REGO Thermal Printer Technical Manual
www.regotek.com 2
1. Overview ...................................................................................................................................5
2. Command format......................................................................................................................5
3. Explanation of terms .................................................................................................................5
4. 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.......................................................................7
CR Print and carriage return...........................................................................................8
CAN Delete data in buffer in page mode........................................................................8
ESC J n Print and feed paper...........................................................................................8
ESC L Select page mode..................................................................................................9
ESC S Select standard mode...........................................................................................9
ESC d n Print and feed n lines.........................................................................................9
ESC 2 Select default line height......................................................................................9
ESC 3 n Set line height..................................................................................................10
ESC SP n Set right-side character spacing.....................................................................10
ESC ! n Select print mode(s).........................................................................................11
ESC % n Select/cancel user-defined character set .......................................................12
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Define user-defined characters ..12
ESC - n Turn underline mode on/off.............................................................................14
ESC ? n Cancel user-defined characters .......................................................................15
ESC E n Turn emphasized mode on/off ........................................................................15
ESC G n Turn on/off double-strike mode......................................................................16
ESC M n Select character font ......................................................................................16
ESC R n Select an international character set ..............................................................17
ESC V n Turn 90°clockwise rotation mode on/off........................................................18
ESC 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 .......................................................................22
ESC c 3 n Select paper sensor(s) to output paper end signals .....................................22
ESC c 4 n Select paper sensor(s) to stop printing.........................................................23
HT Horizontal tab .........................................................................................................23
ESC $ nL nH Set absolute print position .......................................................................24
ESC D n1...nk NUL Set horizontal tab positions............................................................24
ESC \ nL nH Set relative print position .........................................................................25
ESC a n Select justification ...........................................................................................25
GS L nL nH Set left margin............................................................................................26
GS W nL nH Set printing area width.............................................................................27
ESC W xL xH yL yH dxL dxH dyL dyH Set printing area in page mode...........................27
GS \ nL nH Set relative vertical print position in page mode .......................................29
GS $ nL nH Set absolute vertical print position in page mode .....................................29
ESC T n Select print direction in page mode ................................................................30
ESC * m nL nH d1... dk Select bit-image mode..........................................................31
GS * x y d1...d(x × y × 8) Define downloaded bit image...............................................32
GS / m Print downloaded bit image .............................................................................33
FS P n Print NV bit image..............................................................................................34
Print raster bit image ....................................................34
DLE EOT n Real-time status transmission.....................................................................35
GS a n Enable/Disable Automatic Status Back (ASB)....................................................37
GS r n Transmit status ..................................................................................................39
GS : Start/end macro definition ...................................................................................40
GS ^ r t m Execute macro .............................................................................................40

REGO Thermal Printer Technical Manual
www.regotek.com 3
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.......................................................................................42
ESC @ Initialize printer.................................................................................................43
ESC p m t1 t2 Generate pulse.......................................................................................43
GS I n Check printer ID .................................................................................................44
GS P x y Set horizontal and vertical motion units.........................................................44
GS ( A pL pH n m Execute test print..............................................................................45
Enable/disable real-time command ........................46
GS ( H pL pH fn m d1 d2 d3 d4 (fn=48)Set the process ID response.......................46
GS g 0 m nL nH Initialize maintenance counter............................................................47
GS g 2 m nL nH Transmit maintenance counter...........................................................47
FS ! n Set print mode(s) for Chinese characters ...........................................................48
FS & Select Chinese character mode............................................................................49
FS - n Turn underline mode on/off for Chinese characters ..........................................49
FS . Cancel Chinese character mode ............................................................................49
FS 2 c1 c2 d1...dk Define user-defined Chinese characters..........................................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 printing position for HRI characters.......................................................52
GS f n Select font for Human Readable Interpretation (HRI) characters......................53
GS h n Select bar code height ......................................................................................53
k m n d1...dn Print bar code ..........................................53
GS w n Set bar code width ...........................................................................................56
GS Z n Select 2-D code type .........................................................................................56
Print 2-D bar code..............................................................57
Print 2-D bar code .................57
5. CPCL Command Details ...........................................................................................................58
START commands....................................................................................................................58
PRINT Commands....................................................................................................................59
FORM Commands ...................................................................................................................59
TEXT Commands......................................................................................................................59
LINE Commands ......................................................................................................................60
BOX Commands.......................................................................................................................61
SETBOLD Commands...............................................................................................................61
INVERSE-TEXT Commands.......................................................................................................61
INVERSE-LINE Commands .......................................................................................................62
UNDERLINE-TEXT Commands..................................................................................................62
SETSP Commands....................................................................................................................63
CENTER Commands.................................................................................................................63
LEFT Commands......................................................................................................................63
RIGHT Commands ...................................................................................................................63
PREFEED Commands ...............................................................................................................64
POSTFEED Commands.............................................................................................................64
BARCOD-TEXT Commands.......................................................................................................64
BARCODE Commands..............................................................................................................65
1D Barcode......................................................................................................................65
2D Barcode......................................................................................................................65
GRAPHICS Commands.............................................................................................................67
6. Appendix A: CODE128 code ....................................................................................................67
A.1 CODE128 code ..................................................................................................................67
A.2 Character Set.....................................................................................................................69

REGO Thermal Printer Technical Manual
www.regotek.com 5
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.
Emulation
Models supported
Notice
ESC/POS Line mode
Mobile: RG-MTP58B, RG-MTP80B, RG-MLP80A
POS: RG-P58B, RG-P80A
Kiosk: RG-K628, RG-K220, RG-K532, RG-K532-H
Desktop: RG-DTP58
ESC/POS Page mode
RG-MLP80A
CPCL
RG-MLP80A
Notice: RG-MLP80A supports both ESC/POS and CPCL.
2. Command format
[Name] The name of the command.
[Format] The code sequence.
ASCII indicates the ASCII equivalents.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ]k indicates the contents of the [ ] 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 using the printer command, if
necessary.
[Default] Gives the default values, if any, for the arguments.
[Reference] Gives the references, if any.
[Example] Provides examples for using the command.
3. Explanation of terms
Receive Buffer
The receive buffer is used to store data from the Host. All received data is stored in this buffer
temporarily and processed in the order received.
Print line buffer
Print line buffer is used to store one line of the data which will be sent to printer.
Print line buffer is full
It means current line buffer space is not enough to contain the current processing data.
Print line buffer empty
the line).
The beginning of one line
The pointer is at the beginning of the printing line. It will not meet such requirement if the print
line buffer was not empty or the command had set the print position.

REGO Thermal Printer Technical Manual
www.regotek.com 6
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).
Printing area
The printing area can be set 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 black block which is pre-printed on the paper and through it you can achieve
positioning. The printer can be set to Black Mark mode, in this situation, if you sent the command
FF or press the feed button, the printer will reach a black mark position. Please check FF
command to get detailed process of positioning, and check the specifications of black mark in
Appendix B.

REGO Thermal Printer Technical Manual
www.regotek.com 7
4. ESC/POS Command Details
LF Print and feed one line
[Name] Print and feed one line
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Prints the data in the print buffer and feeds one line, based on the current line
spacing.
[Notes] The command set the current position at the beginning of a line.
[Reference] ESC 2, ESC 3
[Example] char SendStr[10] = {0x31,0x0A,0x32,0x33,0x0A,0x0A,0x34,0x35,0x36, 0x0A};
SendData(SendStr, 10);
FF Print and feed paper to a black mark
[Name] Print and feed paper to a black mark
[Format] ASCII FF
Hex 0C
Decimal 12
[Description]
If the paper type is continuous paper,
In standard mode: ignore the command.
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 paper to a black mark.
In page mode: prints all the data in buffer and switches to standard mode from page mode, clear
all the data in the buffer and feeds paper to a black mark. If theres no mark, feeds paper to 30cm
and stops.
ESC FF Print data in buffer in page mode
[Name] Print data in buffer in page mode
[Format] ASCII ESC FF
Hex 1B 0C
Decimal 27 12
[Description] In page mode, prints all the data in buffer.
[Notes]
This command is only valid in page mode.
If the paper type is label paper, this command wont effect label positioning after printing.
It wont clear the data in buffer after printing. And commands ESC T, ESC W are invalid.
[Reference] FF, ESC L, ESC S
1
23
456

REGO Thermal Printer Technical Manual
www.regotek.com 8
CR Print and carriage return
[Name] Print and carriage return
[Format] ASCII CR
Hex 0D
Decimal 13
[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.
The command is ignored with a serial interface model.
This command is valid according to printer setting with a parallel interface model printer.
[Reference] LF
CAN Delete data in buffer in page mode
[Name] Delete data in buffer in page mode
[Format] ASCII CAN
Hex 18
Decimal 24
[Description] In page mode, prints all the data in buffer.
[Notes] This command is only valid in page mode.
[Reference] 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] Print and feed paper
[Format] ASCII ESC J n
Hex 1B 4A n
Decimal 27 74 n
[Range]
[Description] Print the data in the print buffer and feed the paper [n × (vertical or horizontal
motion unit)].
[Notes]
After printing, the current print position is at the beginning of a line.
Paper feed distance is not affected by command ESC 2 or ESC 3.
Horizontal and vertical motion units are set by the GS P.
In standard mode, the vertical motion unit (y) is used.
In page mode, this command functions as follows, depending on direction of the printing area
and the starting position of the printable area:
¬ 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.
123

REGO Thermal Printer Technical Manual
www.regotek.com 9
-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.
[Reference] GS P
[Example] char SendStr[10] = {0x31,0x32,0x33,0x1B,0x4A,0x60,0x34,0x35,0x36,0x0A};
SendData(SendStr, 10);
ESC L Select page mode
[Name] Select page mode
[Format] ASCII ESC L
Hex 1B 4C
Decimal 27 76
[Description] 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 switch from page mode to standard mode.
ESC d n Print and feed n lines
[Name] Print and feed n lines
[Format] ASCII ESC d n
Hex 1B 64 n
Decimal 27 100 n
[Range]
[Description] Prints the data in the print buffer and feeds the paper [n x (current line spacing)].
[Notes]
The maximum paper feed amount is 1016 mm(40 inch)
[Reference] ESC 2, ESC 3
[Example] char SendStr[10] = {0x31,0x32,0x33,0x1B,0x64,0x05,0x31,0x32,0x33,0x0A};
SendData(SendStr, 10);
ESC 2 Select default line height
[Name] Select default line height
123
456
123
123

REGO Thermal Printer Technical Manual
www.regotek.com 10
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Description]
[Notes] Line height is independent in standard mode and page mode.
[Reference] ESC 3
ESC 3 n Set line height
[Name] Set line height
[Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 27 51 n
[Range]
[Description] Set the line height to [n ×(vertical or horizontal motion unit)].
[Notes]
[Default] Default line 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,0x0A,0x31,0x32, 0x33,0x0A};
ESC SP n Set right-side character spacing
[Name] Set right-side character spacing
[Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
[Range]
[Description] Sets the right-side character spacing to [n × horizontal or vertical motion unit].
[Notes]The maximum amount is 255/203 inches.
[Default] n = 0
[Reference] GS P
[Example] char SendStr[11] = {0x31,0x32,0x33,0x0A,0x1B,0x20,0x08,0x31,0x32,0x33,0x0A};
SendData(SendStr, 11);
123
123
123
123
123
123
123
1 2 3

REGO Thermal Printer Technical Manual
www.regotek.com 11
ESC ! n Select print mode(s)
[Name] Select print mode(s)
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
[Range]
[Description] Select print mode(s) using n as follows:
Bit
1/0
HEX
Decimal
Function
0
0
00
0
Standard ASCII font A (12 × 24)
1
01
1
Compressed ASCII font B (9 × 17)
1,2
0
00
0
Undefined.
3
0
00
0
Emphasized mode not selected.
1
08
8
Emphasized mode selected.
4
0
00
0
Double-height mode not selected.
1
10
16
Double-height mode selected.
5
0
00
0
Double-width mode not selected.
1
20
32
Double-width mode selected.
6
0
00
0
Undefined.
7
0
00
0
Underline mode not selected.
1
80
128
Underline mode selected.
[Notes]
When double-width and double-height modes are selected, the characters are enlarged twice in
the horizontal 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 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. However, the setting of the last received command
is effective.
GS ! can also select character size. However, the setting of the last received command is effective.
Emphasized mode is effective for alphanumeric and Chinese. All print modes except emphasized
mode is effective only for alphanumeric.
[Default] n = 0
[Reference] ESC -, ESC E, GS !
[Example] char SendStr[7] = {0x1B,0x21,0x00,0x31,0x32,0x33,0x0A};
SendData(SendStr, 7);
char SendStr[7] = {0x1B,0x21,0xB9,0x31,0x32,0x33,0x0A};
SendData(SendStr, 7);
123
123

REGO Thermal Printer Technical Manual
www.regotek.com 12
ESC % n Select/cancel user-defined character set
[Name] Select/cancel user-defined character set
[Format] ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n
[Range]
[Description] Select or cancel the user-defined character set.
When the LSB of n is 0, the user-defined character set is canceled.
When the LSB of n is 1, the user-defined character set is selected.
[Notes]
When the user-defined character set is canceled, the internal character set is automatically
selected.
n is available only for the least significant bit.
[Default] n = 0
[Reference] ESC &, ESC ?
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Define user-defined characters
[Name] Define user-defined characters
[Format] ASCII ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
Hex 1B 26 y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
Decimal 27 38 y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)]
[Range]
y = 3
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 the final code.
x specifies the number of dots in the horizontal direction.
[Notes]
The allowable character code range is from ASCII code <20>H to <7E>H (95 characters).
It is possible to define multiple characters for consecutive character codes.
If only one character is desired, use c1 = c2.
d is the dot data for the characters. The dot pattern is in the horizontal direction from the left
side. Any remaining dots on the right side are blank.
The data to define a user-defined character is (y× x) bytes.
Set a corresponding bit to 1 to print a dot or 0 to not print a dot.
The user-defined character definition is cleared when:
-ESC @ is executed.
-ESC ? is executed.
-FS q is executed.
- GS * is executed.
-2-D bar code is executed.
-The printer is reset or the power is turned off.
When the user-defined characters are defined in font B (9 × 17), only the most significant bit of
the 3rd byte of data in vertical direction is effective.
[Default] The internal character set

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.

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

REGO Thermal Printer Technical Manual
www.regotek.com 15
Decimal 27 45 n
[Range]
[Description] Turn underline mode on or off, based on the following values of n:
n
Function
0, 48
Turns off underline mode
1, 49
Turns on underline mode (1-dot thick)
2, 50
Turns on underline mode (2-dots thick)
[Notes]
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.
When underline mode id turned off by setting the value of n to 0 or 48, the following data is not
underlined, and the underline thickness set before the mode is turned off does not change. The
default underline thickness is 1 dot.
Changing the character size does not affect the current underline 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.
[Default] n = 0
[Reference] ESC !
[Example] char SendStr[7] = {0x1B,0x2D,0x01,0x31,0x32,0x33,0x0A};
SendData(SendStr, 7);
ESC ? n Cancel user-defined characters
[Name] Cancel user-defined characters
[Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 63 n
[Range] 32
[Description] Cancel user-defined characters.
[Notes]
This command cancels the pattern defined for the character code specified by n. After the
user-defined characters is canceled, the corresponding pattern for the internal character is
printed.
This command deletes the pattern defined for the specified code in the font selected by ESC !.
If a user-defined character has not been defined for the specified character code, the printer
ignores this command.
[Reference] ESC &, ESC %
ESC E n Turn emphasized mode on/off
[Name] Turn emphasized mode on/off
[Format] ASCII ESC E n
Hex 1B 45 n
123

REGO Thermal Printer Technical Manual
www.regotek.com 16
Decimal 27 69 n
[Range]
[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 n
Hex 1B 47 n
Decimal 27 71 n
[Range]
[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 n
Hex 1B 4D n
123
123
123
123

REGO Thermal Printer Technical Manual
www.regotek.com 17
Decimal 27 77 n
[Range] n = 0, 1, 48, 49
[Description] Select character fonts.
n
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)
[Default] n = 0
[Example] char SendStr[7] = {0x1B,0x4D,0x01,0x31,0x32,0x33,0x0A};
SendData(SendStr, 7);
char SendStr[20] = {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 n
Decimal 27 82 n
[Range]
[Description] Select an international character set n from the following table:
n
Character Set
0
U.S.A.
1
France
2
Germany
3
U.K.
4
DenmarkⅠ
5
Sweden
6
Italy
7
Spain Ⅰ
8
Japan
9
Norway
10
Denmark Ⅱ
11
Spain Ⅱ
12
Latin
13
Korea
14
Slovenia/Croatia
15
China
[Default] n=15, [Simplified Chinese]
n=0,[Other models except simplified Chinese]
123
哈哈哈
哈哈哈

REGO Thermal Printer Technical Manual
www.regotek.com 18
ESC V n Turn 90°clockwise rotation mode on/off
[Name] Turn 90°clockwise rotation mode on/off
[Format] ASCII ESC V n
Hex 1B 56 n
Decimal 27 86 n
[Range]
[Description] Turns 90°clockwise rotation mode on/off .n is used as follows:
n
Function
0,48
Turns off 90°clockwise rotation mode
1,49
2,50
Turns on 90°clockwise rotation mode
[Notes]
This command is only valid in standard mode. However, the setting is always effective.
When underline mode is turned on, the underline cant 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] ESC !, ESC
[Example] char SendStr[7] = {0x1B,0x56,0x01,0x31,0x32,0x33,0x0A};
SendData(SendStr, 7);
ESC t n Select character code table
[Name] Select character code table
[Format] ASCII ESC t n
Hex 1B 74 n
Decimal 27 116 n
[Range]
[Description] Selects the page n from the character code table.
n
Code Page
0
CP437 [U.S.A., Standard Europe]
1
Katakana
2
PC850 [Multilingual]
3
PC860 [Portuguese]
4
PC863 [Canadian-French]
5
PC865 [Nordic]
6
WCP1251 [Cyrillic]
7
CP866 Cyrillic #2
8
MIK[Cyrillic /Bulgarian]
9
CP755 [East Europe,Latvian 2]
3
2
1

REGO Thermal Printer Technical Manual
www.regotek.com 19
10
Iran
11
reserve
12
reserve
13
reserve
14
reserve
15
CP862 [Hebrew]
16
WCP1252 Latin I
17
WCP1253 [Greek]
18
CP852 [Latina 2]
19
CP858 Multilingual Latin Ⅰ+Euro)
20
Iran II
21
Latvian
22
CP864 [Arabic]
23
ISO-8859-1 [West Europe]
24
CP737 [Greek]
25
WCP1257 [Baltic]
26
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 3]
38
ISO-8859-4[Baltic]
39
ISO-8859-5[Cyrillic]
40
ISO-8859-6[Arabic]
41
ISO-8859-7[Greek]
42
ISO-8859-8[Hebrew]
43
ISO-8859-9[Turkish]
44
ISO-8859-15 [Latin 3]
45
Thai2
46
CP856
[Default] n = 0
ESC { n Turn upside-down print mode on/off
[Name] Turn upside-down print mode on/off
[Format] ASCII ESC { n
Hex 1B 7B n
Decimal 27 123 n

REGO Thermal Printer Technical Manual
www.regotek.com 20
[Range]
[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.
[Notes]
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°and then prints it.
[Default] n = 0
[Example]
GS ! n Select character size
[Name] Select character size
[Format] ASCII GS ! n
Hex 1D 21 n
Decimal 29 33 n
[Range]
(1 vertical number of times8, 1horizontal number of times8)
[Description]
Select the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as
follows:
Bit
0/1
Hex
Decimal
Function
0~3
Character height selection. See Table 1
4~7
Character width selection. See Table 2
Other manuals for RG-MTP58B
2
This manual suits for next models
9
Table of contents
Other Rego Printer manuals