Partner RP-100-300II User manual

-------------Thermal Printer-------------
Programmer Manual

-------------Thermal Printer-------------
1
1. COMMANDS
1.1 Command Notation
[Name] The name of the command.
[Format] The code sequence.
[Range] Gives the allowable ranges for the arguments.
[Description] Describes the command’s function.
[Details] Describes the usage of the command in detail.
[Notes] Provides important information on setting and using the printer command, if necessary.
[Default] Gives the default values, if any, for the command parameters.
[Reference] Lists related commands.
[Example] Gives examples of how to use the command.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ]k indicates the contents of the [ ] should be repeated ktimes.
1.2 Explanation of Terms
(1) Receive buffer
The receive buffer is a buffer that stores, as is, the data received from the host (the reception data). The
reception data is stored in the receive buffer temporarily, and is then processed sequentially.
(2) Print buffer
The print buffer is a buffer that stores the image data to be printed.
(3) Print buffer full
This is the state where the print buffer is full. If new print data is input while the print buffer is full,
the data in the print buffer is printed out and a line feed is executed. This is the same operation as the
LF operation.
(4) Start of line
The start of line state satisfies the following condition:
•There is no print data (including spaces and portions of data skipped due to bit image data) currently in
the print buffer.
•There is no print data (including portions of data skipped due to HT)
•The print position is not specified by the ESC $ or ESC \ command.
(5) Printable area
The maximum range within which printing is possible under the printer specifications. The printable area
for this printer is as follows:
①
The length of the horizontal direction in standard mode:
approximately 72.1 mm {576/203"}
②
The length of the horizontal direction in page mode:
approximately 72.1 mm {576/203"}
③
The length of the vertical direction in page mode: approximately 117.3 mm {1662/360’1}
(6) Printing area
Printing range is set by the command. It must be printing area ≦printable area.

-------------Thermal Printer-------------
2
(7) Ignore
The state in which all codes, including parameters, are read in and discarded, and nothing happens.
(8) Inch
A unit of length. One inch is 25.4 mm.
(9) MSB
Most Significant Bit
(10) LSB
Least Significant Bit
(11) Base line
Standard position when character data is stored in the print buffer.
Normal character in standard mode and page mode:

-------------Thermal Printer-------------
3
Command List
HT
Horizontal tab
LF
Print and line feed
FF (*)
Print and return to standard mode in page mode
CAN (*)
Cancel print data in page mode
DLE EOT n (*)
Real-time status transmission
DLE ENQ n (*)
Real-time request to printer
DLE DC4 n m t H
Generate pulse at real-time
ESC FF (*)
Print data in page mode
ESC SP n
Set right-side character spacing
ESC ! n
Select print mode(s)
ESC $ nL nH
Set absolute print position
ESC % n
ESC &yc1c2 [x1 d1...d(y X x1)]...[xk d1 …d(y X
xk
)
】
Select/cancel user-defined character set
Define user-defined characters
ESC * m nL nH d1 …dk
Select bit-image mode
ESC-n
Turn underline mode on/off
ESC 2
Select default line spacing
ESC 3n
Set line spacing
ESC = n (*)
Set peripheral device
ESC? n
Cancel user-defined characters
ESC@
Initialize printer
ESC D n1..nk NUL
Set horizontal tab positions
ESC E n
Turn emphasized mode on/off
ESCG n
Turn on/off double-strike mode
ESCJ n
Print and feed paper
ESC L (*)
Select page mode
ESC M n (*)
Select character font
ESC Rn
Select an international character set
ESC S (*)
Select standard mode
ESC T n (*)
Select print direction in page mode
ESC V n (*)
Turn 90°clockwise rotation mode on/off
ESC W xL xH yL yH dxL dxH dyL dyH
n
Set printing area in page mode
ESC \ nL nH
Set relative print position
ESC a n
Select justification
ESC c 3 n (*)
Select paper sensor(s) to output paper end signals
ESC c 4 n (*)
Select paper sensor(s) to stop printing
ESC C 5 n
Enable/disable panel buttons
ESCd n
Print and feed nlines
ESC pmt1t2
Generate pulse

-------------Thermal Printer-------------
4
ESCtn
Select character code table
ESC{n
Turns on/off upside-down printing mode
FS p n m (*)
Print NV bit image
FS q n [xL xH yL yH d1...dk]1...[xL
xH yL yH d1...dk]n (*)
Define NV bit image
GS ! n (*)
Select character size
GS $ nL nH (*)
Set absolute vertical print position in page mode
GS * x y d1 …d(x x y x 8)
Define downloaded bit image
GSI m
Print downloaded bit image
GS: (*)
Start/end macro definition
GSBn (*)
Turn white/black reverse printing mode
GS H n
Select printing position for HRI characters
GS L nL nH
Set left margin
GS P x y (*)
Set horizontal and vertical motion units
①GSVm ②GSVm/i
Select cut mode and cut paper
GS W nLnH
Set printing area width
GS\nLnH
Set relative vertical print position in page mode
GS ^r t m (*)
Execute macro
GS a n (*)
Enable/Disable Automatic Status Back (ASB)
GS f n (*)
Select font for Human Readable Interpretation (HRI) characters
GS h n
Select bar code height
①GS k m d1...dk NUL
Print bar code
②GS k m n d1..dn
GS r n (*)
Transmit status
GS v 0 m xL xH yL yH d1-.dk
Print raster bit image
GS w n
Set bar code width
FS! n
Set print mode(s) for Kanji characters
FS&
Select Kanji character mode
FS-n
Turn underline mode on/off for Kanji characters
FS.
Cancel Kanji character mode
FS 2 c1 c2 d1...dk
Define user-defined Kanji characters
FS S n1 n2
Set left- and right-side Kanji character spacing
FS W n
Turn quadruple-size mode on/off for Kanji characters
ESC B n t
Printer Beeper Notification [For GP-80220II, III]
ESC C m t n
Printer Beeper and Alarm Notification [For GP-80250I]

-------------Thermal Printer-------------
5
1.3 Control Commands
HT
[Name] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Description] Moves the print position to the next horizontal tab position.
[Details]
•This command is ignored unless the next horizontal tab position has been set.
•If the next horizontal tab position exceeds the printing area, the printer sets the printing position to
[Printing area width + 1].
•Horizontal tab positions are set with ESC D.
•If this command is received when the printing position is at [printing area width
+ 1], the printer executes print buffer-full printing of the current line and horizontal tab processing
from the beginning of the next line.
•The default setting of the horizontal tab position for the paper roll is font A (12 X 24) every 8th
character (9th, 17th, 25th,... column).
[Reference] ESC D
LF
[Name] Print and line feed
[Format] ASCII LF
Hex OA
Decimal 10
[Description] Prints the data in the print buffer and feeds one line based on the current line spacing.
[Note ] This command sets the print position to the beginning of the line
[Reference] ESC 2, ESC 3
FF(*)
[Name] Print and return to standard mode in page mode
[Format] ASCII FF
Hex OC
Decimal 12
[Description] Prints the data in the print buffer collectively and returns to standard mode.
[ Details] The buffer data is deleted after being printed.
•The printing area set by ESC W is reset to the default setting.
•The printer does not execute paper cutting.
•This command sets the print position to the beginning of the line.
•This command is enabled only in page mode.
[Reference] ESC FF, ESC L, ESC S

-------------Thermal Printer-------------
6
[Details] •This command is enabled only in page mode.
•If data that existed in the previously specified printing area also exists in the
currently specified printing area, it is deleted.
[Reference] ESC L, ESC W
DLE EOT n (*)
[Name] Real-time status transmission
[Format] ASCII DLE EOT n
Hex 10 04 n
Decimal 16 4 n
[Range] 1 ≤n ≤4
[Description] Transmits the selected printer status specified by n in real-time, according to the
following parameters:
n = 1: Transmit printer status
n = 2: Transmit off-line status
n = 3: Transmit error status
n = 4: Transmit paper roll sensor status
[Details] •The status is transmitted whenever the data sequence of <10>H<04>H< n>
(1 ≤n ≤4) is received.
Example:
In ESC * m m_nHd1...dk, d1=<10>H, d2=<04>H, d3=<01>H
•This command should not be used within the data sequence of another
command that consists of 2 or more bytes.
Example:
If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host
computer) goes to MARK before n is transmitted and then DLE EOT 3
interrupts before n is received, the code <10>H for DLE EOT 3 is processed as
the code for ESC 3 <10>H.
•Even though the printer is not selected using ESC = (select peripheral device),
this command is effective.
•The printer transmits the current status. Each status is represented by onebyte
data.
•The printer transmits the status without confirming whether the host computer
can receive data.
•The printer executes this command upon receiving it.
CAN(*)
[Name] Cancel print data in page mode
[Format] ASCII CAN
Hex 18
Decimal 24
[Description] In page mode, deletes all the print data in the current printable area

-------------Thermal Printer-------------
7
•This command is executed even when the printer is off-line, the receive buffer is
full, or there is an error status with a serial interface model.
•With a parallel interface model, this command can not be executed when the
printer is busy. This command is executed even when the printer is off-line or
there is an error status when DIP switch 2-1 is on with a parallel interface
model.
•When Auto Status Back (ASB) is enabled using the GS a command, the status
transmitted by the DLE EOT command and the ASB status must be
differentiated.
n = 1: Printer status
n = 2: Off-line status
Bit
Off/On
Hex
Decimal
Function
0
0
00
0
Not used. Fixed to Off.
1
1
02
2
Not used. Fixed to On.
2
0
00
0
Cover is closed.
1
04
4
Cover is open.
3
0
00
0
Paper is not being fed by using the FEED button.
1
08
8
Paper is beginning fed by the FEED button.
4
1
10
16
Not used. Fixed to On.
5
0
00
0
No paper-end stop.
1
20
32
Printing is being stopped.
6
0
00
0
No error.
1
40
64
Error occurs.
7
0
00
0
Not used. Fixed to Off.
n = 3: Error status
Bit
Off/On
Hex
Decimal
Function
0
0
00
0
Not used. Fixed to Off.
1
1
02
2
Not used. Fixed to On.
2
-
-
-
Undefined.
Bit
Off/On
Hex
Decimal
Function
0
0
00
0
Not used. Fixed to Off.
1
1
02
2
Not used. Fixed to On.
2
0
00
0
Drawer open/close signal is LOW(connector pin3)
1
04
4
Drawer open/close signal is LOW(connector pin3)
3
0
00
0
On-line
1
08
8
Off-line
4
1
10
16
Not used. Fixed to On.
5,6
Undefined.
7
0
00
00
Not used. Fixed to Off.

-------------Thermal Printer-------------
8
3
0
00
0
No auto-cutter error.
1
08
8
Auto-cutter error occurs.
4
1
10
16
Not used. Fixed to On.
5
0
00
0
No unrecoverable error.
1
20
32
Unrecoverable error occurs.
6
0
00
0
No auto-recoverable error.
1
40
64
Auto recoverable error occurs.
7
0
00
0
Not used. Fixed to Off.
3
0
00
0
No auto-cutter error.
1
08
8
Auto-cutter error occurs.
4
1
10
16
Not used. Fixed to On.
5
0
00
0
No unrecoverable error.
1
20
32
Unrecoverable error occurs.
6
0
00
0
No auto-recoverable error.
1
40
64
Auto recoverable error occurs.
7
0
00
0
Not used. Fixed to Off.
n = 4: Continuous
paper sensor status
Bit
Off/On
Hex
Decimal
Function
0
0
00
0
Not used. Fixed to Off.
1
1
02
2
Not used Fixed to On.
2,3
0
00
0
Paper roll near-end sensor: paper adequate.
1
0C
12
Paper near-end is detected by the paper roll
near-end sensor.
4
1
10
16
Not used. Fixed to On.
5,6
0
00
0
Paper roll sensor: Paper present.
1
60
96
Paper roll end detected by paper roll sensor.
7
0
00
0
Not used. Fixed to Off.
[Reference] DLE ENQ, GS a, GS r
DLE ENQ n (*)
[Name] Real-time request to printer
[Format] ASCII DLE ENQ n
Hex 10 05 n
Decimal 16 5 n
[Reference] 1 ≤n≤2
[Description] Responds to a request from the host computer. n specifies the requests as follow:
[Details] •This command is effective only when an auto-cutter error occurs.
•The printer starts processing data upon receiving this command.
•This command is executed even when the printer is off-line, the receive buffer is
full, or there is an error status with a serial interface model.
n
Request
1
Recover from an error and restart printing from the line where the error occurred
2
Recover from an error aft clearing the receive and print buffers

-------------Thermal Printer-------------
9
•With a parallel interface model, this command can not be executed when the
printer is busy. This command is executed even when the printer is off-line or
there is an error status when DIP switch 2-1 is on with a parallel interface model.
•The status is also transmitted whenever the data sequence of <10>H<05>H< n> (1
< n < 2) is received.
Example:
In ESC * m nl nH dk, d1 = <10>H, d2 = <05>H, d3 = <01>H
•This command should not be contained within another command that consists of
two or more bytes.
Example:
If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host
computer) goes to MARK before n is transmitted, and DLE ENQ 2 interrupts
before n is received, the code <10>H for DLE ENQ 2 is processed as the code
for ESC 3 <10>H.
•DLE ENQ 2 enables the printer to recover from an error after clearing the data in
the receive buffer and the print buffer. The printer retains the settings (by ESC !,
ESC 3, etc.) that were in effect when the error occurred. The printer can be
initialized completely by using this command and ESC@. This command is
enabled only for errors that have the possibility of recovery, except for print head
temperature error.
•When the printer is disabled with ESC = (Select peripheral device), the error
recovery functions (DLE ENQ 1 and DLE ENQ 2) are enabled, and the other
functions are disabled.
[Reference] DLE EOT
DLE DC4 n m t (*)
[Name] Generate pulse at real-time
[Format] ASCII DLE DC4 n m
Hex 10 14 n m
Decimal 16 20 n m
[Range] n = 1
m = 0, 1
1≦t≦8
[Description] Outputs the pulse specified by t to connector pin m as follows:
The pulse ON time is [ t x 100 ms] and the OFF time is [ t x 100ms].
[Details]
•When the printer is in an error status when this command is processed, this
command is ignored.
•When the pulse is output to the connector pin specified while ESC p or DEL DC4
is executed while this command is processed, this command is ignored.
•The printer executes this command upon receiving it.
•With a serial interface model, this command is executed even when the printer is
m
Connector pin
0
Drawer kick-out connector pin 2.
1
Drawer kick-out connector pin 5.

-------------Thermal Printer-------------
10
off-line, the receive buffer is full, or there is an error status.
•With a parallel interface model, this command cannot be executed when the
printer is busy. This command is executed even when the printer is off-line or
there is an error status when DIP switch 2-1 is on.
•If print data includes the same character strings as this command, the printer
performs the same operation specified by this command. The user must consider
this.
•This command should not be used within the data sequence of another
command that consists of 2 or more bytes.
•This command is effective even when the printer is disabled with ESC = (Select
peripheral device).
[Reference] ESC p
ESC FF(*)
[Name] Print data in page mode
[Format] ASCII ESC FF
Hex 1B 0C
Decimal 27 12
[Description] In page mode, prints all buffered data in the printing area collectively.
[Details] •This command is enabled only in page mode.
•After printing, the printer does not clear the buffered data, setting values for ESC T and ESC W,
and the position for buffering character data.
[Reference] FF, ESC L,ESC S
ESC SP n
[Name] Set right-side character spacing
[Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
[Range] 0 ≤n ≤255
[Description] Sets the character spacing for the right side of the character to [ n . horizontal or vertical motion
units].
[Details] •The right-side character spacing for double-width mode is twice the normal
value. When characters are enlarged, the right-side character spacing is n
times normal value.
•This command does not affect the setting of kanji characters.
•This command sets values independently in each mode (standard and page
modes).
•The horizontal and vertical motion unit are specified by GS P. Changing the
horizontal or vertical motion unit does not affect the current right-side
spacing.
•The GS P command can change the horizontal (and vertical) motion unit.
However, the value cannot be less than the minimum horizontal movement
amount, and it must be in even units of the minimum horizontal movement
amount.
•In standard mode, the horizontal motion unit is used.
•In page mode, the horizontal or vertical motion unit differs in page mode,
depending on starting position of the printable area as follows:
1When the starting position is set to the upper left or lower right of the
printable area using ESC T, the horizontal motion unit (x) is used.
2When the starting position is set to the upper right or lower left of the
printable area using ESC T, the vertical motion unit (y) is used.
the maximum right-side spacing is 255/180 inches. Any setting exceeding the maximum is

-------------Thermal Printer-------------
11
converted to the maximum automatically

-------------Thermal Printer-------------
12
[Default] n = 0
[Reference] GS P
ESC ! n
[Name] Select print mode(s)
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
[Range] 0 ≤n ≤255
[Description] Selects print mode(s) using n as follow:
[Details]
•When both double-height and double-width modes are selected, quadruple size characters are printed.
•The printer can underline all characters, but can not underline the space set by HT or 90°
clockwise rotated characters.
•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 Kanji. All print modes except
emphasized mode is effective only for alphanumeric.
[Default] n = 0
[Reference] ESC -, ESC E, GS !
ESC $ nL nH
[Name] Set absolute print position
[Format] ASCII ESC $ nL nH
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Character font A(12 X 24).
On
01
1
Character font B (9 X 17).
1
-
-
-
Undefined.
2
-
-
-
Undefined.
3
Off
00
0
Emphasized mode not selected.
On
08
8
Emphasized mode selected.
4
Off
00
0
Double-height mode not selected.
On
10
16
Double-height mode selected.
5
Off
00
0
Double-width mode not selected.
On
20
32
Double-width mode selected.
6
-
-
-
Undefined.
7
Off
00
0
Underline mode not selected.
On
80
128
Underline mode selected.

-------------Thermal Printer-------------
13
Hex 1B 24 nL nH
Decimal 27 36 nL nH
[Range] 0≤nL≤255
0≤nH≤255
[Description] Sets the distance from the beginning of the line to the position at
which subsequent characters are to be printed.
[Details]•The distance from the beginning of the line to the print position is [(nL +nH
X 256) X (vertical or horizontal motion unit)] inches.
•Settings outside the specified printable area are ignored.
•The horizontal and vertical motion unit are specified by GS P.
•The GS P command can change the horizontal (and vertical) motion unit.
However, the value cannot be less than the minimum horizontal movement
amount, and it must be in even units of the minimum horizontal movement
amount.
•In standard mode, the horizontal motion unit (x) is used.
•In page mode, horizontal or vertical motion unit differs depending on the
starting position of the printable area as follows:
1When the starting position is set to the upper left or lower right of the printable
area using ESC T, the horizontal motion unit (x) is used.
2When the starting position is set to the upper right or lower left of the
printable area using ESC T, the vertical motion unit (y) is used.
[Reference] ESC\, GS $, GS\, GS P
ESC % n
[Name] Select/cancel user-defined character set
[Format] ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n
[Range] 0 ≤nL≤255
[Description] Selects or cancels the user-defined character set.
•When the LSB of nis 0, the user-defined character set is canceled.
•When the LSB of n is 1, the user-defined character set is selected.
[Details] •When the user-defined character set is canceled, the internal character set is
automatically selected.
•nis available only for the least significant bit.
[Default] n = 0
[Reference] ESC, & ESC ?
ESC & y c1[x1 d1...d(y×x1)]...[xk d1...d(y × xk)]
[Name] Define user-defined characters
[Format] ASCII ESC & y c1 c2[ ×1 d1...d(y×x1)]…[xk d1...d(y×xk)]
Hex 1B 26 y c1 c2[ ×1 d1...d(y×x1)]...[xk d1...d(y×xk)]
Decimal 27 38 y c1 c2[ ×1 d1...d(y×x1)]...[xk d1...d(y×xk)]
[Range] y=3
32≦C1≦C2≦126
0≦x≦12 Font A (12 X 24)
0≦<x≦9 Font B (9 X 17)
0≦d1...d(y X xk) ≦255
[Description] Defines user-defined characters.
•yspecifies the number of bytes in the vertical direction.
•c1 specifies the beginning character code for the

-------------Thermal Printer-------------
14
definition, and c2 specifies the final code.
•xspecifies the number of dots in the horizontal direction.
[Details]• 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.
•dis 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 x) bytes.
•Set a corresponding bit to 1 to print a dot or 0 to not print a dot.
•This command can define different user-defined character patterns by each fonts. To select a font, use ESC!
•A user-defined character and a downloaded bit image cannot be defined simultaneously. When this command is
executed, the downloaded bit image is cleared.
•The user-defined character definition is cleared when:
①ESC@ is executed.
②ESC ? is executed.
③FS q is executed.
④GS *is executed.
⑤The printer is reset or the power is turned off.
•When the user-defined characters are defined in font B (9 X 17), only the most significant bit of the 3rd byte of d
ata in vertical direction is effective.
[Default] The internal character set
[Reference] ESC %,ESC ?
[Example]
•When font A (12 X 24) is selected

-------------Thermal Printer-------------
15

-------------Thermal Printer-------------
16
ESC * m nL nH d1...dk
[Name] Select bit-image mode
[Format] ASCII ESC * m nL nH d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 27 42 m nL nL d1...dk
[Range] m = 0,1, 32, 33
0≤nL≤255
0≤nH≤3
0≤d≤255
[Description] Selects a bit-image mode using m for the number of dots specified by nL and nH,as follows:
m
Mode
Vertical Direction
Horizontal Direction
Number of
Dots
Dot
Density
Dot
Density
Number of Data (K)
0
8-dot single-density
8
67 DPI
100 DPI
nL + nH X256
1
8-dot double-density
8
67 DP
200 DPI
nL + nH X256
32
24-dot single-density
24
200DPI
100 DPI
(nL + nH X 256)X 3
33
24-dot double-density
24
200 DPI
200DPI
(nL+nHX256
;
X 3
[Details] •If the values of mis 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 the horizontal direction. The
number of dots is calculated by nL +nH X 256.
•If the bit-image data input exceeds the number of dots to be printed on a line, the excess
data is ignored.
•dindicates the bit-image data. Set a corresponding bit to 1 to print a dot or to 0 to not print
a dot.
•If the width of the printing area set by GS L and GS W less than the width required by the
data sent with the ESC * command, the following will be performed on the line in question
(but the printing cannot exceed the maximum printable area):
①The width of the printing area is extended to the right to accommodate the
amount of data.
②If step ①does not provide sufficient width for the data, the left margin is
reduced to accommodate the data.
•After printing a bit image, the printer returns to normal data processing mode.
•This command is not affected by print modes (emphasized, double-strike, underline,
character size or white/black reverse printing), except upside-down printing mode.
•The relationship between the image data and the dots to be printed is as follows:
•When 8-dot bit image is selected:

-------------Thermal Printer-------------
17
•When 24-dot bit image is selected:

-------------Thermal Printer-------------
18
ESC-n
[Name] Turn underline mode on/off
[Format] ASCII ESC - n
Hex 1B 2D n
Decimal 27 45 n
[Range] 0 ≤n ≤2, 48 ≤n ≤50
[Description] Turns underline mode on or off, based on the following values of n:
[Details] •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 Kanji characters.
[Reference] ESC!
[Description] Sets the line spacing to[n Xvertical or horizontal motion unit] inches.
[Details] •The line spacing can be set independently in standard mode and in page mode
•The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical
motion unit does not affect the current line spacing.
•The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be
less than the minimum vertical movement amount, and it must be in even units of the minimum vertical
movement amount.
•In standard mode, the vertical motion unit (y) is used.
In page mode, this command functions as follows, depending on the starting position of the printable
area:
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)
[Default] n = 0
ESC 2
[Name] Select default line spacing
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Description] Selects 1/ 6-inch line (approximately 4.23mm) spacing
[Details] •The line spacing can be set independently in standard mode and in page mode.
[Reference] ESC 3
ESC 3 n
[Name] Set line spacing
[Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 27 51 n
[Range] 0≤n≤255

-------------Thermal Printer-------------
19
①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.
②When the starting position is set to the upper right or lower left of the print able area using ESC T, the
horizontal motion unit (x) is used.
•The maximum paper feed amount is 1016 mm (40 inches). Even if a paper feed amount of more than
1016 mm (40 inches) is set, the printer feeds the paper only 1016 mm (40 inches).
[Default] Line spacing equivalent to approximately 4.23mm (1/6 inches).
[Reference] ESC 2, GS P
ESC = n(*)
[Name] Set peripheral device
[Format] ASCII ESC = n
Hex 1B 3D n
Decimal 27 61 n
[Range] 1≤n≤255
[Description] Selects device to which host computer sends data, using n as follows:
[Details] . When the printer is disabled, it ignores all data except for error-recovery commands (DLE EOT, DLE
ENQ, DLE DC4) until it is enabled by this command.
[Default] n = 1
ESC ? n
[Name] Cancel user-defined characters
[Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 63 n
[Range] 32≤n≤126
[Description] Cancels user-defined characters.
[Details] •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 @
[Name] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Description] Clears the data in the print buffer and resets the printer mode to the mode that was in effect when
the power was turned on.
[Details] •The DIP switch settings are not checked again.
•The data in the receive buffer is not cleared.
•The macro definition is not cleared.
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Printer disabled
On
01
1
Printer enabled
1-7
-
-
-
Undefined
Other manuals for RP-100-300II
1
Table of contents