Bematech LR2000 Programming Manual

  • Hello! I am an AI chatbot trained to assist you with the Bematech LR2000 Programming Manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
LR2000 POS THERMAL PRINTER
PROGRAMMING MANUAL
LR2000 Programming Manual V1.2
Copyright© by Bematech
All rights reserved.
No part of this publication may be copied, reproduced, adapted or translated without the prior
written permission of Bematech, except when allowed by patent rights.
Information in this publication is purely informative, subjected to change without notice and no
liability is assumed with respect to its use. However, as product improvements become available,
Bematech will make every effort to provide updated information for the products described in this
publication. The latest version of this manual can be obtained through Bematech web site:
www.bematechus.com
Notwithstanding the other exceptions contained in this Manual, the consequences and
responsibility are assumed by the Purchaser of this product or third parties as a result of: (a)
intentional use for any improper, unintended or unauthorized applications of this product, including
any particular purpose; (b) unauthorized modifications, repairs, or alterations to this product; (c)
use of the product without complying with Bematech Corporation’s operating and maintenance
instructions; (d) use of the product as component in systems or other applications in which the
failure of this could create a situation where personal injury or material damages may occur. In the
events described above, Bematech and its officers, administrators, employees, subsidiaries,
affiliates and dealers shall not be held responsible or respond by any claim, costs, damages,
losses, expenses and any other direct or indirect injury, as well as claims which alleges that
Bematech was negligent regarding the design or manufacture of the product.
Bematech shall not be liable against any damages or problems arising from the use of any options
or any consumable products other than those designated as original Bematech products or
approved products by Bematech
Any product names or its logotypes mentioned in this publication may be trademarks of its
respective owners and shall be here recognized.
Product warranties are only the ones expressly mentioned in the User’s Manual. Bematech
disclaims any and all implied warranties for the product, including but not limited to implied
warranties of merchantability or fitness for a particular purpose. In addition, Bematech shall not be
responsible or liable for any special, incidental or consequential damages or lost profits or savings
arising from the use of the product by the Purchaser, the User or third parties.
BEMATECH, International Division
999 S. Oyster Bay Rd
Building #104
Bethpage, NY 11714
TEL: (516) 248-0400
FAX: (516) 248-0443
Email: support@bematechus.com
www.bematechus.com
LR2000 Programming Manual V1.2
TABLE OF CONTENTS
1 Overview ........................................................................................................................................... 5
1.1 Appearance .................................................................................................................................... 5
1.2 Rear panel I/O connectors ........................................................................................................... 5
2 Command List .................................................................................................................................... 6
3 Command Set Details ......................................................................................................................... 9
HT .............................................................................................................................................................. 9
LF ............................................................................................................................................................. 10
CR ............................................................................................................................................................ 10
DLE EOT n ................................................................................................................................................ 10
DLE ENQ n ............................................................................................................................................... 12
DLE DC4 n m t ......................................................................................................................................... 13
ESC SP n .................................................................................................................................................. 14
ESC ! n ..................................................................................................................................................... 14
ESC $ nL nH ............................................................................................................................................. 15
ESC % n ................................................................................................................................................... 16
ESC & y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(y xk)] .............................................................................. 16
ESC m nL nH d1...dk ............................................................................................................................. 19
ESC - n ..................................................................................................................................................... 21
ESC 2 ....................................................................................................................................................... 22
ESC 3 n .................................................................................................................................................... 22
ESC = n .................................................................................................................................................... 22
ESC ? n .................................................................................................................................................... 23
ESC @ ...................................................................................................................................................... 23
ESC B n t(Only for page mode and general 347) .................................................................................... 23
ESC E n .................................................................................................................................................... 24
ESC G n .................................................................................................................................................... 25
ESC J n ..................................................................................................................................................... 25
ESC M n ................................................................................................................................................... 25
ESC R n .................................................................................................................................................... 26
LR2000 Programming Manual V1.2
ESC V n .................................................................................................................................................... 27
ESC \ nL nH .............................................................................................................................................. 27
ESC a n .................................................................................................................................................... 28
ESC c 5 n .................................................................................................................................................. 28
ESC d n .................................................................................................................................................... 29
ESC p m t1 t2 ........................................................................................................................................... 29
ESC t n ..................................................................................................................................................... 30
ESC { n ..................................................................................................................................................... 31
ESC i (for cut) .......................................................................................................................................... 31
ESC m (for cut) ........................................................................................................................................ 31
ESC 9 n .................................................................................................................................................... 32
FS p n m .................................................................................................................................................. 32
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n ............................................................................. 33
GS ! n ....................................................................................................................................................... 36
GS * x y d1…d(x×y×8) .......................................................................................................................... 37
GS / m ..................................................................................................................................................... 38
GS B n ...................................................................................................................................................... 38
GS I n ....................................................................................................................................................... 39
GSH pl pH fn m d1 d2 d3 d4 (fn=48) ................................................................................................... 40
GS H n ..................................................................................................................................................... 40
GS L nL nH ............................................................................................................................................... 41
GS V m GS V m n ............................................................................................................................ 41
GS W nL nH ............................................................................................................................................. 42
GS : .......................................................................................................................................................... 43
GS ^ r t m ................................................................................................................................................ 44
GS a n ...................................................................................................................................................... 44
GS f n ....................................................................................................................................................... 45
GS h n ...................................................................................................................................................... 46
GS k m d1...dk NUL GS k m n d1...dn ............................................................................................. 46
GS r n ...................................................................................................................................................... 49
GS v 0 m xL xH yL yH d1....dk .................................................................................................................. 50
GS w n ..................................................................................................................................................... 51
LR2000 Programming Manual V1.2
GS x n ...................................................................................................................................................... 52
GS P x y ................................................................................................................................................... 52
KANJI CONTROL COMMANDS ................................................................................................................... 52
FS ! n ....................................................................................................................................................... 52
FS & ......................................................................................................................................................... 53
FS - n ....................................................................................................................................................... 54
FS ............................................................................................................................................................ 54
FS 2 c1 c2 d1...dk .................................................................................................................................... 55
FS S n1 n2 ................................................................................................................................................ 55
FS W n ..................................................................................................................................................... 56
PAGE MODE COMMANDS ......................................................................................................................... 57
FF ............................................................................................................................................................ 57
ESC FF ...................................................................................................................................................... 57
ESC L ........................................................................................................................................................ 58
ESC S ....................................................................................................................................................... 58
ESC T n .................................................................................................................................................... 59
ESC W xL xH yL yH dxL dxH dyL dyH ....................................................................................................... 59
GS $ nL nH ............................................................................................................................................... 61
GS \ nL nH ............................................................................................................................................... 61
SPECIAL PRINTING COMMANDS ................................................................................................................ 62
ESC Z m n k dL dH d1…dn........................................................................................................................ 62
GS Z n ...................................................................................................................................................... 62
GS ( k pL pH cn fn n (cn=48, fn=65) ........................................................................................................ 63
GS ( k pL pH cn fn n (cn=48, fn=66)......................................................................................................... 63
GS ( k pL pH cn fn n (cn=48, fn=67)......................................................................................................... 63
GS ( k pL pH cn fn n (cn=48, fn=68)......................................................................................................... 64
GS ( k pL pH cn fn m n (cn=48, fn=69) .................................................................................................... 64
GS ( k pL pH cn fn n (cn=48, fn=70)......................................................................................................... 65
GS ( k pL pH cn fn m d1 ... dk (cn=48, fn=80) .......................................................................................... 66
GS ( k pL pH cn fn m (cn=48, fn=81) ....................................................................................................... 66
GS ( k pL pH cn fn m (cn=48, fn=82) ....................................................................................................... 67
GS ( k pL pH cn fn n1 n2 (cn=49, fn=65) ................................................................................................. 68
LR2000 Programming Manual V1.2
GS ( k pL pH cn fn n (cn=49, fn=67)......................................................................................................... 69
GS ( k pL pH cn fn n (cn=49, fn=69)......................................................................................................... 69
GS ( k pL pH cn fn m d1…dk (cn=49, fn=80) ............................................................................................ 69
GS ( k pL pH cn fn m (cn=49, fn=81) ....................................................................................................... 70
GS ( k pL pH cn fn m (cn=49, fn=82) ....................................................................................................... 70
GS ( A pL pH n m ..................................................................................................................................... 71
GS ( F pL pH a m nL nH ............................................................................................................................ 72
GS FF ....................................................................................................................................................... 73
GS C 0 n m ............................................................................................................................................... 73
GS C 1 aL aH bL bH n r ............................................................................................................................. 74
GS C 2 nL nH ............................................................................................................................................ 75
GS C ; sa ; sb ; sn; sr; sc; .......................................................................................................................... 75
GS c ......................................................................................................................................................... 76
LR2000 Programming Manual V1.2
1 Overview
The LR2000 is a fast high quality POS printer using thermal technology for printing. It is
compatible with most point-of-sale systems on the market. The printer can be used with
computer peripheral systems, ECR and POS systems. The LR2000 was designed to facilitate
simple and efficient operations.
1.1 Appearance
1.2 Rear panel I/O connectors
At the rear panel of the LR2000 is a row of external I/O device connectors detailed as
follows:
USB
RS232
ETHERNET
(LE2000E)
CASH
DRAWER
DC IN
LR2000 Programming Manual V1.2
2 Command List
A command set describes the behavior of the printer when sequences of bytes are received
through the communication interface. The command set available with LR2000 is ESC/POS®.
It is a standard defined by Seiko Epson Corporation. ESC/POS® commands can be classified as
executing or setting. An executing command cause the printer to execute something and does
not affect further incoming data. On the other hand, a setting command cause the printer to
change its internal flags that may affect incoming data. ESC/POS® commands supported by
LR2000 are summarized in the following table.
Type
Command
Name
Print Command
LF
Print and line feed
CR
Print and carriage return
HT
JMP to the next TAB position
ESC D n
Set horizontal tab positions
ESC J n
Print and Feed n dots paper
ESC d n
Print and Feed n lines
ESC = n
Toggle the printer online or offline
DC2 T
Printing test page
Line spacing
Command
ESC 2
Select default line spacing
ESC 3 n
Set line spacing
ESC a n
Select justification
GS L nL nH
Set the left blank margin with dots
ESC \nl nh
Set relative print position
GS W nL nH
Set printing area width
ESC $
Set absolute print position
Character
Command
ESC ! n
Select print mode(s)
GS ! n
Set or Cancel the double width and height
GS B
Turn white/black reverse printing mode
ESC V n
Turn 90°clockwise rotation mode on/off
ESC M n
Select character font
ESC G n
Turn on/off double-strike mode
ESC E n
Set or Cancel bold font
ESC SP n
Set the space between chars
LR2000 Programming Manual V1.2
Type
Command
Name
ESC { n
Turn upside-down printing mode on/off
ESC - n
Set the underline dots(0,1,2)
ESC % n
Select/Cancel user-defined characters
FS &
Select Chinese mode
FS .
Select character mode
FS!
Set print mode for Kanji characters
FS-n
Turn underline mode on/off for characters
FS 2 c1 c2
Define user-defined Kanji characters
FS S n1 n2
Set left and right -side Kanji character spacing
ESC &
Define user-defined characters
ESC ? n
Cancel user-defined characters
ESC R n
Select and international character set
ESC t n
Select character code table
Bit Image
Command
ESC *
Select bit-image mode
GS *
Define downloaded bit image
GS /
Print downloaded bit image
GS v
Print the bitmap with width and height
FS p n m
Print NV bitmap
FS q n
Define NV bitmap
Init Command
ESC @
Initialize printer
Status
Command
DLE EOT n
Real-time status transmission
DLE ENQ n
Real-time request to printer
DLE DC4 n m t
Generate pulse at real-time
GS r n
Transmit status
ESC p m
Generate pulse
GS a n
Enable/Disable ASB
GS I
Read Print ID
GS ( H
Set process ID response
Bar Code
Command
GS H
Select printing position of human readable characters
GS h
Set bar code height
GS w
Set bar code width
GS f n
Select font for HRI characters
GS k
Print bar code
LR2000 Programming Manual V1.2
Type
Command
Name
GS x
Set barcode printing left space
Printer Control
Command
ESC c 5 n
Select/Cancel panel button
GS V m
GS V m n
Select cut mode and cut paper
GS :
Start/end macro definition
GS^ r t m
Execute macro
ESC B n t
Set beep tone
ESC i
Cut Paper (For cut)
ESC m
Partial Cut Paper (For cut)
ESC 9
Select Chinese code format
Page mode
command
ESC FF
Print data in mode page
FF
Print and return to standard mode in page mode
ESC L
Select page mode
ESC S
Select standard mode
ESC T
Select print direction in page mode
ESC W
Set printing area in page mode
ESC Z
Print 2D barcode
FS W
Turn quadruple-size mode on/off for Kanji characters
GS FF
Feed marked paper to print starting position
GS $
Set absolute vertical print position in page mode
GS ( A
Execute test print
GS C 0
Select counter print mode
GS C 1
Select count mode (A)
GS C 2
Set counter
GS C;
Select count mode (B)
GS Z
Select 2D barcode type
GS \
Set relative vertical print position in page mode
GS c
Print counter
GS P
Set horizontal and vertical motion unit
LR2000 Programming Manual V1.2
3 Command Set Details
This section presents detailed information about each ESC/POS® command implemented by
the LR2000 printer. Some terms used in the description of ESC/POS command set need further
explanation, as described below.
Print buffer: a buffer that stores the image data to be printed.
Print buffer full: 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.
Start of line: a state that satisfies the following conditions:
Print buffer is empty.
There is no data to print (including portions of data skipped due to HT).
The print position has not been specified by the ESC $ or ESC \ command.
Printable area: the maximum space available for printing. The printable area under
ESC/POS for LR2000 is specified by horizontal direction (72mm or 2.84).
Printing area: a value set by the command. It must be always less than or equal to
printable area.
Ignore: a state in which all codes, including parameters, are read in and discarded, and
nothing happens.
MSB: Most Significant Bit
LSB: Least Significant Bit
HT
[Name] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Description] Moves the print position to the next horizontal tab position.
[Notes]
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.
[Reference] ESC D
LR2000 Programming Manual V1.2
LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Prints the data in the print buffer and feeds one line, based on the cu rrent line
spacing.
[Note] This command sets the print position to the beginning of the line.
[Reference] ESC 2, ESC 3
CR
[Name] Print and carriage return
[Format] ASCII CR
Hex 0D
Decimal 13
[Description] When automatic line feed is enabled, this command functions the same as LF; when
automatic line feed is disabled, this command is ignored.
[Notes]
This command line feed is ignored with a serial interface model.
Sets the print starting position to the beginning of the line.
[Reference] LF
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 offline status
n = 3: Transmit error status
n = 4: Transmit paper roll sensor status
[Notes]
The status is transmitted whenever the data sequence <10>H<04>H<n>
(1 n 4) is received.
Example:
LR2000 Programming Manual V1.2
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.
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.
The printer transmits the current status. Each status item is represented by one-byte
of data.
The printer transmits the status without confirming whether the host computer can
receive data.
The printer executes this command upon receiving it.
This command is executed even when the printer is offline, the receive buffer is full, or
there is an error status with a serial interface model.
With a parallel interface model, this command cannot be executed when the printer is
busy. This command is executed even when the printer is offline or in error status, 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
Bit
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to Off.
1
On
02
2
Not used. Fixed to On.
2
Off
00
0
Drawer open/close signal is LOW.(connector pin3)
On
04
4
Drawer open/close signal is HIGH.(connector pin3)
3
-
-
-
Undefined.
4
On
10
16
Not used. Fixed to On.
5.6
--
--
--
Undefined.
7
Off
00
0
Not used. Fixed to Off.
n = 2: Offline status
Bit
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to Off.
1
On
02
2
Not used. Fixed to On.
2
Off
00
0
Platen is closed.
On
04
4
Platen is opened.
3
Off
00
0
Paper is not being fed by using the FEED button.
On
08
8
Paper is being fed by the FEED button.
4
On
10
16
Not used. Fixed to On.
5
-
-
-
Undefined.
6
Off
00
0
No error.
LR2000 Programming Manual V1.2
On
40
64
Error occurred.
7
Off
00
0
Not used. Fixed to Off.
n = 3: Error status
Bit
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to Off.
1
On
02
2
Not used. Fixed to On.
2
--
--
--
Undefined.
3
Off
00
0
No autocutter error.
On
08
8
Autocutter error occurred.
4
On
10
16
Not used. Fixed to On.
5
Off
00
0
No unrecoverable error.
On
20
32
Unrecoverable error occurred.
6
Off
00
0
No auto-recoverable error.
On
40
64
Auto recoverable error occurred.
7
Off
00
0
Not used. Fixed to Off.
Bit 6: Bit 6 is On when printing is stopped due to high print head temperature until the
print head temperature drops sufficiently or when the paper roll cover is opened
during printing.
n = 4: Continuous paper sensor status
Bit
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to Off.
1
On
02
2
Not used. Fixed to On.
2.3
-
-
-
Undefined.
4
On
10
16
Not used. Fixed to On.
5.6
off
00
0
Paper roll sensor: Paper present.
on
60
96
Paper roll end detected by paper roll sensor.
7
Off
00
0
Not used. Fixed to Off.
[Reference] DLE ENQ, GS a
DLE ENQ n
[Name] Real-time request to printer
[Format] ASCII DLE ENQ n
Hex 10 05 n
Decimal 16 5 n
[Range] 1 n 2
[Description] Responds to a request from the host computer. n specifies the requests as follows:
LR2000 Programming Manual V1.2
n
Request
1
Recover from an error and restart printing from the line where the error occurred
2
Recover from an error at clearing the receive and print buffers
[Notes]  This command is effective only when an auto cutter error, a black mark detecting
error or a platen-open error occurs.
 The printer starts processing data upon receiving this command.
 This command is executed even when the printer is offline, the receive buffer is full,
or there is an error status with a serial interface model.
 With a parallel interface model, this command cannot be executed when the printer
is busy.
 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 (byESC !,
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.
[Reference] DLE EOT
DLE DC4 n m t
[Name] Generate pulse at real-time
[Format] ASCII DLE DC4 n m t
Hex 10 14 n m t
Decimal 16 20 n m t
[Range] n=1,m=0,1
1t 8
[Description] Outputs the pulse specified by t to connector pn m as follows:
m
Connector pin
0
Drawer kick-out connector pin2
1
Drawer kick-out connector pin5
LR2000 Programming Manual V1.2
The pulse ON time is [t x 100 ms] and the OFF time is [ t x 100 ms].
[Details]  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.
 With a serial interface model, this command is executed even when the printer is
receive the command.
 With a parallel interface model, this command is not executed even when the printer
is receive the command.
 If printer 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 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×0.141 mm (n×
0.0055")].
[Notes]  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 standard mode.
[Default] n = 0
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 follows:
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Character Font A (12×24).
On
01
1
Character Font B (9×17).
LR2000 Programming Manual V1.2
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.
[Notes]  When both double-height and double-width modes are selected, quadruple-size
characters are printed.
 The printer can underline all characters, but cannot 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 in the
line are aligned at the baseline.
 ESC M can also select character font type. However, the setting of the last
received command is effective.
 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 are 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
Hex 1B 24 nL nH
Decimal 27 36 nL nH
[Range] 0 nL 255
0 nH 255
LR2000 Programming Manual V1.2
[Description]  Sets the distance from the beginning of the line to the position at which subsequent
characters are to be printed.
 The distance from the beginning of the line to the print position is [(nL + nH×256)×
0.141 mm].
[Notes]  Settings outside the specified printable area are ignored.
 In standard mode, the horizontal motion unit (x) is used.
[Reference] ESC \, GS $, GS \
ESC % n
[Name] Select/cancel user-defined character set
[Format] ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n
[Range] 0 n 255
[Description] Selects or cancels 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 built-in 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)]
[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
32 c1 c2 126
0 x 12 (when Font A (12×24) is selected)
0 x 9 (when Font B (9×17) is selected)
0 d1 ... d(y × xk) 255
[Description] Defines 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.
LR2000 Programming Manual V1.2
[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 user-defined characters is (y×x) bytes.
 Set a corresponding bit to 1 to print a dot or 0 not to print a dot.
 This command can define different user-defined character patterns for each font.
To select a font, use ESC ! or ESC M.
 User-defined characters 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:
1) ESC @ is executed.
2) GS is executed.
3) ESC ? is executed.
4) The power is turned off.
 When 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
[Reference] ESC %, ESC ?
[Example]
 When Font A (12×24) is selected.
LR2000 Programming Manual V1.2
d1= <0F>H d4 = <30>H d7 = <40>H . . . .
d2 = <03>H d5 = <80>H d8 = <40>H . . . .
d3 = <00>H d6 = <00>H d9 = <20>H . . . .
When font B (9×17) is selected.
/