Zebra EM 220 Specifications

Zebra EM 220 Specifications
EM 220
Mobile Printer Command Manual
P1007752-015
Rev. 1.00
EM 220
Table of Contents
1. Notice............................................................................................................................. 6
2. Control Commands List ............................................................................................... 6
3. Control Commands Details.......................................................................................... 8
3-1 Command Notation.................................................................................................... 8
3-2 Explanation of Terms................................................................................................. 8
3-3 Control Commands Details........................................................................................ 9
Rev. 1.00
-2-
Mobile Printer Command Manual
EM 220
■ Proprietary Statements
This manual contains proprietary information of Zebra Technologies Corporation. It is
intended solely for the information and use of parties operating and maintaining the equipment described herein. Such proprietary information may not be used, reproduced, or disclosed to any other parties for any other purpose without the expressed written permission
of Zebra Technologies Corporation.
Product Improvements
Since continuous product improvement is a policy of Zebra Technologies Corporation, all
specifications and signs are subject to change without notice.
FCC Compliance Statement
NOTE: This equipment has been tested and found to comply with the limits or a Class B
digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide
reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and
used in accordance with the instructions, may cause harmful interference to radio
communications. However, there is no guarantee that interference will not occur in a
particular installation. If this equipment does cause harmful interference to radio or
television reception, which can be determined by turning the equipment off and on, the
user is encouraged to try to correct the interference by one or more of the following
measures:
• Reorient or relocate the receiving antenna.
• Increase the separation between the equipment and receiver.
• Connect the equipment into an outlet or circuit different from that to which the receiver is
connected.
• Consult the dealer or an experienced radio/TV technician for help.
WARNING: Exposure to Radio Frequency radiation. To conform to FCC RF exposure requirements this device shall be used in accordance with the operating conditions and instructions listed in this manual.
NOTE: This unit was tested with shielded cables on the peripheral devices. Shielded
cables must be used with the unit to insure compliance.
Changes or modifications to this unit not expressly approved by Zebra Technologies Corporation could void the user’s authority to operate this equipment.
Rev. 1.00
-3-
Mobile Printer Command Manual
EM 220
Canadian Compliance Statement
This Class B digital apparatus complies with Canadian ICES-003.
Cet appareil numérique de la classe B est conforme á la norme NMB-003 du Canada.
“IC:” before the equipment certification number signifies that the Industry Canada technical
specifications were met. It does not guarantee that the certified product will operate to the
user’s satisfaction.
Liability Disclaimer
Inasmuch as every effort has been made to supply accurate information in this manual,
Zebra Technologies Corporation is not liable for any erroneous information or omissions.
Zebra Technologies Corporation reserves the right to correct any such errors and
disclaims liability resulting therefrom.
No Liability for Consequential Damage
In no event shall Zebra Technologies Corporation or anyone else involved in the creation,
production, or delivery of the accompanying product (including hardware and software) be
liable for any damages whatsoever (including, without limitation, damages for loss of
business profits, business interruption, loss of business information, or other pecuniary
loss) arising out of the use of or the results of use of or inability to use such product, even
if Zebra Technologies Corporation has been advised of the possibility of such damages.
Because some states do not allow the exclusion of liability for consequential or incidental
damages, the above limitation may not apply to you.
Rev. 1.00
-4-
Mobile Printer Command Manual
EM 220
Copyrights
The copyrights in this manual and the label print engine described therein are owned by
Zebra Technologies Corporation. Unauthorized reproduction of this manual or the software
in the label print engine may result in imprisonment of up to one year and fines of up to
$10,000 (17 U.S.C.506). Copyright violators may be subject to civil liability.
This product may contain ZPL®, ZPL II®, and ZebraLinktm programs; Element Energy
Equalizer® Circuit; E3®; and AGFA fonts. Software © ZIH Corp. All rights reserved
worldwide.
ZebraLink and all product names and numbers are trademarks, and Zebra, the Zebra logo,
ZPL, ZPL II, Element Energy Equalizer Circuit, and E3 Circuit are registered trademarks of
ZIH Corp. All rights reserved worldwide.
Monotype®, Intellifont® and UFST® are trademarks of Monotype Imaging, Inc. registered
in the United States Patent and Trademark Office and may be registered in certain jurisdictions.
AndyTM , CG PalacioTM, CG Century SchoolbookTM, CG TriumvirateTM, CG TimesTM,
Monotype KaiTM, Monotype MinchoTM and Monotype SungTM are trademarks of
Monotype Imaging, Inc. and may be registered in some jurisdictions.
HY Gothic HangulTM is a trademark of Hanyang Systems, Inc.
AngsanaTM is a trademark of Unity Progress Company (UPC) Limited.
Andale®, Arial®, Book Antiqua®, Corsiva®, Gill Sans®, Sorts® and Times New Roman®
are trademarks of The Monotype Corporation registered in the United States Patent and
Trademark Office and may be registered in certain jurisdictions.
Century Gothic™, Bookman Old StyleTM and Century SchoolbookTM are trademarks of
The Monotype Corporation and may be registered in certain jurisdictions.
HGPGothicB is a trademark of the Ricoh company, Ltd. and may be registered in some jurisdictions.
UniversTM is a trademark of Heidelberger Druckmaschinen AG, which may be registered
in certain jurisdictions, exclusively licensed through Linotype Library GmbH, a wholly
owned subsidiary of Heidelberger Druckmaschinen AG.
Futura® is a trademark of Bauer Types SA registered in the United States Patent and
Trademark Office and may be registered in some jurisdictions.
TrueType® is a trademark of Apple Computer, Inc. registered in the United States Patent
and Trademark Office and may be registered in certain jurisdictions.
All other product names are the property of their respective owners.
All other brand names, product names, or trademarks belong to their respective holders.
©2006 ZIH Corp.
Rev. 1.00
-5-
Mobile Printer Command Manual
EM 220
1. Notice
This Control Commands Manual contains information on the protocol and functions of all
control commands that can be used with this printer (EM 220).
2. Control Commands List
No
1
2
Command
HT
LF
3
FF
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CR
CAN
DLE
EOT n
ESC FF
ESC SP n
ESC ! n
ESC $
ESC *
ESC - n
ESC 2
ESC 3 n
ESC @
ESC D n
ESC E n
ESC G n
ESC J n
ESC L
ESC M n
ESC R n
ESC S
ESC T n
ESC W n
ESC \
ESC a n
ESC d n
ESC t n
Rev. 1.00
Name
Horizontal tab
Print and line feed
Print and return to standard mode
(in page mode)
Print and carriage return
Cancel print data in page mode
Set real-time command mode
Transmit status
Print data in page mode
Set right-side character spacing
Select print mode(s)
Set absolute print position
Select bit-image mode
Turn underline mode on/off
Select default line spacing
Set line spacing
Initialize printer
Set horizontal tab positions
Turn emphasized mode on/off
Turn double-strike mode on/off
Print and feed paper
Select page mode
Select character font or Set card reader mode
Select an international character set
Select standard mode
Select print direction in page mode
Set print area in page mode
Set relative print position
Select justification
Print and feed n lines
Select character code table
-6-
Function Type
Print Position
Print
Print
Print
Character
Status
Status
Print
Character
Character
Print Position
Bit-image
Character
Line Spacing
Line Spacing
Misc.
Print Position
Character
Character
Print
Misc.
Character/MSR
Character
Misc.
Print Position
Print Position
Print Position
Print Position
Print
Character
Mobile Printer Command Manual
EM 220
No
Command
31
ESC {
32
GS ! n
33
GS $ n
34
GS ( A
35
BS ^ E
36 BS ^ L or BS ^ 7
37
GS ( k
38
GS :
39
GS B n
40
GS H n
41
GS I b
42
GS I n
43
GS L
44
GS W
45
GS \
46
GS ^
47
GS f n
48
GS h n
49
GS k
50
GS r n
51
GS v 0
52
GS w n
53
FS .
54
FS &
55
US L R
56
US L L
57
US L A
Rev. 1.00
Name
Function Type
Turn upside-down print mode on/off
Character
Select character size
Character
Set absolute vertical print position in page mode Print Position
Execute test print
Misc.
Set user setup commands
Customize
Set graphics data
Bit-image
Select print control method(s)
Two dimension
Start/end macro definition
Macro
Turn white/black reverse print mode on/off
Character
Select print position of HRI characters
Bar code
Transmit battery power
Misc.
Transmit printer ID
Misc.
Set left margin
Print Position
Set print area width
Print Position
Set relative vertical print position in page mode
Print Position
Execute macro
Macro
Select font for HRI characters
Bar code
Set bar code height
Bar code
Print bar code
Bar code
Transmit status
Status
Print raster bit image
Bit-image
Set bar code width
Bar code
Cancel Kanji character mode
2bytes code
Select Kanji character mode
2bytes code
Change Receipt mode
Misc.
Change Label mode
Misc.
Execute auto calibration in label mode
Misc.
-7-
Mobile Printer Command Manual
EM 220
3. Control Commands Details
3-1 Command Notation
[Name]
The name of the command.
[Format]
The code sequence: ASCII indicates the ASCII character equivalents.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[Range]
[ ] k indicates that the content of the [ ] should be repeated k times.
Provides the allowable ranges for the arguments.
[Description]
Describes the function of the command.
3-2 Explanation of Terms
LSB
Rev. 1.00
Least Significant Bit
-8-
Mobile Printer Command Manual
EM 220
3-3 Control Commands Details
HT
[Name]
[Format]
Horizontal tab.
ASCII
Hex
Decimal
HT
09
9
[Description]
▪ Moves the print position to the next horizontal tab position.
LF
[Name]
Print and line feed.
[Format]
[Description]
FF
[Name]
[Format]
[Description]
Rev. 1.00
ASCII
Hex
Decimal
LF
0A
10
▪ In standard mode, prints the data in the print buffer and feeds one line
based on the current line spacing.
▪ In page mode, only the print position moves, and the printer does not
perform actual printing
If in page mode, after printing, the printer is returned to standard mode.
If the label function is set, the paper is fed to the next printing position.
ASCII
Hex
Decimal
FF
0C
12
▪ All data collected to the current point is printed, and then the printer is
converted from page mode to standard mode.
▪ After printing, the printer does not clear the buffer data of page mode.
▪ If the label function is set, the paper is fed to the next printing position.
-9-
Mobile Printer Command Manual
EM 220
CR
[Name]
[Format]
Print and carriage return.
ASCII
Hex
Decimal
CR
0D
13
[Description]
▪ This command is ignored CR.
CAN
[Name]
Cancel print data in page mode.
[Format]
ASCII
Hex
Decimal
CAN
18
24
[Description]
▪ In page mode, deletes all the print data in the current print area.
DLE
[Name]
Set real-time command mode.
[Format]
[Description]
ASCII
Hex
Decimal
DLE
10
16
▪ Set real-time command mode.
▪ A single command following this command is regarded as a real time
command that the printer executes upon receiving it.
▪ The real time command mode using DLE is activated for following
commands.
Command
EOT
GS r
Function
Transmit printer status
Transmit status
GS I
Transmit printer ID
Rev. 1.00
- 10 -
Mobile Printer Command Manual
EM 220
EOT n
[Name]
Transmit status
[Format]
ASCII
Hex
Decimal
[Range]
1≤n≤4
[Description]
▪ Transmits the status specified by n as follows:
n
1
2
3
4
EOT
04
4
N
n
n
Function
Transmit printer status
Transmit off-line status
Transmit error status
Transmit paper roll sensor status
▪ This printer transmits the following status.
n=1: Printer status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
Off
On
On
Off
On
Off
On
Off
Rev. 1.00
Hex
00
02
00
00
08
10
00
20
00
40
00
Decimal
0
2
0
0
8
16
0
32
0
64
0
Function
Fixed
Fixed
Fixed
On-Line
Off-Line
Fixed
Off line waiting status
On line waiting status
Paper FEED button is turned Off
Paper FEED button is turned On
Fixed
- 11 -
Mobile Printer Command Manual
EM 220
n=2: Off-line status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
On
Off
On
Off
On
Off
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
Function
Fixed
Fixed
Cover is closed
Cover is open
Paper is not being fed by using the paper FEED button
Paper is being fed by the paper FEED button
Fixed
No paper-end stop
Printing is being stopped
No error
Error has occurred
Fixed
n=3: Error status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
Off
On
Off
Off
Off
Hex
00
02
00
00
10
00
00
00
Decimal
0
2
0
0
16
0
0
0
Function
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
n=4: Continuous paper sensor status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
Off
On
Off
On
Off
On
Off
Rev. 1.00
Hex
00
02
00
00
10
00
20
00
40
00
Decimal
0
2
0
0
16
0
32
0
64
0
Function
Fixed
Fixed
Fixed
Fixed
Fixed
Paper end sensor; paper present
Paper end sensor; paper not present
Paper end sensor; paper present
Paper end sensor; paper not present
Fixed
- 12 -
Mobile Printer Command Manual
EM 220
[Notes]
This is a status request command to determine if the printer is off-line or if
an error condition has occurred. Take the following into consideration:
• If this command interrupts the code string of another command, this
command is processed as a parameter of the other command; therefore,
the print result will not be correct.
• If a command such as graphics data or defined data has a code string
that is the same as a code string in a parameter, the printer processes and
then continues with the bit-image or other command.
• This command following DLE can be executed in real-time command
mode.
This command is ignored when transmitting block data (Header ~ NUL).
ESC FF
[Name]
[Format]
[Description]
ESC SP n
[Name]
Print data in page mode.
ASCII
Hex
Decimal
ESC
1B
27
FF
0C
12
▪ In page mode, prints all buffered data in the print area.
▪ After printing, the printer does not clear the buffer data.
▪ This command is used when the page mode data is printed repeatedly.
Set right-side character spacing.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[Description]
▪ Sets the character spacing for the right side of the character to
[n ×horizontal or vertical motion units].
▪ The maximum right-side character spacing is:
- 31.875mm.
Rev. 1.00
ESC
1B
27
SP
20
32
n
n
n
- 13 -
Mobile Printer Command Manual
EM 220
ESC ! n
[Name]
Select print mode(s).
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[Description]
▪ Selects print mode(s) using n as follows:
Bit
ESC
1B
27
Off/On
Off
0
On
1,2
Off
Off
3
On
Off
4
On
Off
5
On
6
Off
Off
7
On
!
21
33
n
n
n
Hex Decimal
00
0
01
1
00
0
00
0
08
8
00
0
10
16
00
0
20
32
00
0
00
0
80
128
Function
Character font A (12 × 24) selected.
Character font B (9 x 24) selected.
Reserved.
Emphasized mode not selected.
Emphasized mode selected.
Double-height mode not selected.
Double-height mode selected.
Double-width mode not selected.
Double-width mode selected.
Reserved.
Underline mode not selected.
Underline mode selected.
ESC $ nL nH
[Name]
Set absolute print position.
[Format]
ASCII
Hex
Decimal
ESC
1B
27
$
24
36
nL
nL
nL
nH
nH
nH
[Range]
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nH ≤ 255, 0 ≤ nL ≤ 255)
[Description]
▪ Sets the next print starting position, and the absolute print position, in
reference to the left margin. The distance from the beginning of the line to
the left margin is [(nL + nH x 256) x (vertical or horizontal motion units)].
Rev. 1.00
- 14 -
Mobile Printer Command Manual
EM 220
ESC * m nL nH d1...dk
[Name]
Select bit image mode.
[Format]
ASCII
Hex
Decimal
ESC
1B
27
*
2A
42
m
m
m
nL
nL
nL
nH
nH
nH
d1...dk
d1...dk
d1...dk
[Range]
m=0, 1, 32, 33
1 ≤ (nL + nH x 256) ≤ 1023 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 3)
0 ≤ d ≤ 255
[Description]
▪ Specifies the bit image in m mode for the number of dots specified by nL
and nH.
* dpi : dots per 25.4mm {1”}
m
0
1
32
33
Mode
8-dot
single-density
8-dot
double-density
24-dot
single-density
24-dot
double-density
ESC – n
[Name]
[Format]
Number of dots in
vertical direction
Vertical dot
density
Horizontal
dot density
Number of bytes (k)
8
203/3 dpi
203/2 dpi
nL + nH x 256
8
203/3 dpi
203 dpi
nL + nH x 256
24
203 dpi
203/2 dpi
(nL + nH x 256) x 3
24
203 dpi
203 dpi
(nL + nH x 256) x 3
Turn underline mode on/off.
ASCII
Hex
Decimal
ESC
1B
27
[Range]
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Default]
n=0
2D
45
n
n
n
[Description] ▪ Turn underline mode on or off, based on the following values of n:
n
0,48
1,49
2,50
Rev. 1.00
Function
Turns off underline mode.
Turns on underline mode, set at 1-dot width.
Turns on underline mode, set at 2-dot width.
- 15 -
Mobile Printer Command Manual
EM 220
ESC 2
[Name]
[Format]
[Description]
ESC 3 n
[Name]
Select default line spacing.
ASCII
Hex
Decimal
ESC
1B
27
2
32
50
▪ The default line spacing is approximately 3.75 mm, which is equivalent to
30 dots.
Set line spacing
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Default]
n = 30
[Description]
▪ The vertical or horizontal motion unit is approximately 0.125 mm {1/203
inches}. This value equals one dot pitch.
▪ Sets the current line spacing to [n x vertical motion units] inches.
▪ The maximum settable line spacing is 31.875mm.
ESC @
[Name]
[Format]
ESC
1B
27
3
33
51
n
n
n
Initialize printer.
ASCII
Hex
Decimal
ESC
1B
27
@
40
64
[Range]
32 ≤ n ≤ 126
[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.
Rev. 1.00
- 16 -
Mobile Printer Command Manual
EM 220
ESC D n1… nk NUL
[Name]
Set horizontal tab positions.
[Format]
ASCII
Hex
Decimal
ESC
1B
27
D
44
68
n1...nk
n1...nk
n1...nk
NUL
00
0
[Range]
1 ≤ n ≤ 255 , 0 ≤ k ≤ 32
[Default]
n=8, 16, 24, 32, 40,....., 232, 240, 248
(for font A in a standard character size width)
[Description]
▪ Sets horizontal tab positions.
- n specifies the number of digits from the setting position to the left
margin or the beginning of the line.
- k specifies the number of bytes set for the horizontal tab position.
▪ The horizontal tab position is stored as a value of [character width x n]
measured form the beginning of the line.
ESC E n
[Name]
Turn emphasized mode on / off.
[Format]
ASCII
Hex
Decimal
ESC
1B
27
E
45
69
n
n
n
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[Description]
▪ Turns 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.
Rev. 1.00
- 17 -
Mobile Printer Command Manual
EM 220
ESC G n
[Name]
Turn double-strike mode on/off.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[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.
ESC J n
[Name]
ESC
1B
27
G
47
71
n
n
n
Print and feed paper.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Description]
▪ Prints the data in the print buffer and feeds the paper [n X vertical motion unit].
ESC L
[Name]
Select page mode.
[Format]
[Description]
Rev. 1.00
ASCII
Hex
Decimal
ESC
1B
27
ESC
1B
27
J
4A
74
n
n
n
L
4C
76
▪ Switches from standard mode to page mode.
- 18 -
Mobile Printer Command Manual
EM 220
ESC M n
[Name]
[Format]
Select character font./ MSR card read
ASCII
Hex
Decimal
ESC
1B
27
M
4D
77
n
n
n
[Range]
n = 0, 1, 48, 49 , 67, 68, 69, 70, 71, 72, 73
[Default]
n=0
[Description]
▪ Selects only-byte character fonts
▪ Selects Card reader mode
n
0, 48
1, 49
70
71
72
73
67
68
69
66
99
Function
Character font A (12 × 24) selected
Character font B (9 × 24) selected
Set 1 track card reader mode
Set 2 track card reader mode
Set 1,2 track card reader mode
Transmits the MSR setting value(s)
Set 2 track card reader mode
Set 3 track card reader mode
Set 2,3 track card reader mode
Set 1,2,3 track card reader mode
Cancel MSR reader mode
Magnetic card read out put format
Track 1
02H 41H 31H 31H 1CH
DATA 76 characters 03H 0DH 0AH
Track 2
02H 42H 31H 31H 1CH
DATA 37 characters 03H 0DH 0AH
Track 1,2
02H 43H 31H 31H 1CH 1CH
DATA 76 characters 1CH
DATA 37 Characters 03H 0DH 0AH
Track 3
02H 44H 31H 31H 1CH
DATA104characters 03H 0DH 0AH
Track 2,3
02H 45H 31H 31H 1CH 1CH
DATA 37 characters 1CH
DATA104Characters 03H 0DH 0AH
Track 1,2,3
02H 46H 31H 31H 1CH 1CH DATA76
characters
Rev. 1.00
1CH
DATA37
characters
- 19 -
1CH DATA104
03H 0DH 0AH
characters
Mobile Printer Command Manual
EM 220
Transmits the setting value format
Hexadecimal
Header
37H
Flag
80H
Data
41H ~ 48H
NUL
00H
MSR Setting value
Hex.
41
42
43
44
45
46
47
48
ESC R n
[Name]
Decimal
55
128
65 ~ 72
0
Amount of Data
1 byte
1 byte
1 bytes
1 byte
Function
Track 1/2/3 read mode command (3 Track case)
Track 1 read mode AUTO trigger (3 Track case)
Track 2 read mode AUTO trigger (3 Track case)
Track 3 read mode AUTO trigger (3 Track case)
Track 1/2 read mode AUTO trigger (3 Track case)
Track 2/3 read mode AUTO trigger (3 Track case)
Track 1/2/3 read mode AUTO trigger (3 Track case)
MSR not used
Select an international character set.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 13
[Default]
n=0
ESC
1B
27
R
52
82
n
n
n
[Description] ▪ Selects international character set in from the following table:
n
Character set
n
Character set
0
U.S.A
7
Spain I
1
France
9
Norway
2
Germany
10
Denmark II
3
U.K
4
Denmark I
5
Sweden
6
Italy
ESC S
[Name]
[Format]
[Description]
Rev. 1.00
Select standard mode.
ASCII
Hex
Decimal
ESC
1B
27
S
53
83
▪ Switches from page mode to standard mode.
- 20 -
Mobile Printer Command Manual
EM 220
ESC T n
[Name]
[Format]
Select print direction in page mode.
ASCII
Hex
Decimal
ESC
1B
27
T
54
84
n
n
n
[Range]
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Default]
n=o
[Description]
▪ Selects the print direction and starting position in page mode.
n
0,48
1,49
2,50
3,51
Print Direction
Left right
Bottom to top
Right left
Top bottom
Starting Position
Upper left
Lower left
Lower right
Upper right
ESC W xL xH yL yH dxL dxH dyL dyH
[Name]
Set relative print position.
[Format]
ASCII
Hex
Decimal
ESC
1B
27
W
57
87
xL
xL
xL
xH
xH
xH
yL
yL
yL
yH
yH
yH
dxL
dxL
dxL
dxH
dxH
dxH
dyL
dyL
dyL
dyH
dyH
dyH
[Range]
0 ≤ (xL + xH x 256) ≤ 65535 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 255)
0 ≤ (yL + yH x 256) ≤ 65535 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 255)
1 ≤ (dxL + dxH x 256) ≤ 65535 (0 ≤ dxL ≤ 255, 0 ≤ dxH ≤ 255)
1 ≤ (dyL + dyH x 256) ≤ 65535 (0 ≤ dyL ≤ 255, 0 ≤ dyH ≤ 255)
[Default]
Horizontal logical origin and vertical logical origin = 0
xL=0, xH =0, yL=0, yH=0
dxL = 128, dxH = 1, dyL = 72, dyH = 3
[Description]
▪ When paper width of 58mm is selected:
(xL + xH x 256) = 0 (xL=0, xH=0)
(dyL + dyH x 256) = 840 (dyL=72, dyH=3)
▪ Set the position and the size of the printing area.
- Horizontal starting position = [(xL + xH x 256) x (horizontal motion units)].
- Vertical starting position = [(yL + yH x 256) x (vertical motion units)].
- Horizontal printing area width = [(dxL + dxH x 256) x (horizontal motion units)].
- Vertical printing area width = [(dyL + dyH x 256) x (vertical motion units)].
▪ The printer ignores any setting that exceeds the print area.
Rev. 1.00
- 21 -
Mobile Printer Command Manual
EM 220
ESC \ nL nH
[Name]
Set relative print position.
[Format]
ASCII
Hex
Decimal
ESC
1B
27
\
5C
92
nL
nL
nL
nH
nH
nH
[Range]
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL 255, 0 ≤ nH ≤ 255)
[Description]
▪ Set the print starting position based on the current position to [(nL + nH ×
256) × horizontal or vertical motion unit]
- When (nL + nH × 256 is a positive number, the print starting position is
specified to the right based on the current position.
- When (nL + nH × 256) is a negative number, the print starting position
is specified to the left based on the current position.
▪ The printer ignores any setting that exceeds the print area.
ESC a n
[Name]
[Format]
Select justification.
ASCII
Hex
Decimal
ESC
1B
27
a
61
97
n
n
n
[Range]
0 ≤ n ≤2, 48 ≤ n ≤50
[Default]
n=0
[Description]
▪ In standard mode, aligns all the data in one line to the position specified
by n as follows:
n
Justification
0, 48
Left justification
1, 49
Centering
2, 50
Right justification
ESC d n
[Name]
Print and feed n lines.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Description]
▪ Prints the data in the print buffer and feeds n lines.
Rev. 1.00
ESC
1B
27
d
64
100
n
n
n
- 22 -
Mobile Printer Command Manual
EM 220
ESC t n
[Name]
[Format]
Select character code table.
ASCII
Hex
Decimal
ESC
1B
27
t
74
116
n
n
n
[Range]
0 ≤ n ≤ 5, 16 ≤ n ≤ 19, 21 ≤ n ≤ 24, 27 ≤ n ≤ 29, n=21, n=33, 36 ≤ n ≤37
n=255
[Default]
n=0
[Description]
For model without Thai character support: n=0
▪ Selects a page n from the character code table.
n
0
1
2
3
4
5
16
17
18
19
21
22
23
24
25
26
27
28
29
30
31
33
34
35
36
37
38
39
40
Page
Page 0 437 (USA, Standard Europe)
Page 1 Katakana
Page 2 850 (Multilingual)
Page 3 860 (Portuguese)
Page 4 863 (Canadian-French)
Page 5 865 (Nordic)
Page 16 1252 (Latin I)
Page 17 866 (Cyrillic #2)
Page 18 852 (Latin 2)
Page 19 858 (Euro)
Page 21 862 (Hebrew DOS code)
Page 22 864 (Arabic)
Page 23 Thai42
Page 24 1253 (Greek)
Page 25 1254 (Turkish)
Page 26 1257 (Baltic)
Page 27 Farsi
Page 28 1251 (Cyrillic)
Page 29 737 (Greek)
Page 30 775 (Baltic)
Page 31 Thai14
Page 33 1255 (Hebrew New code)
Page 34 Thai 11
Page 35 Thai 18
Page 36 855 (Cyrillic)
Page 37 857 (Turkish)
Page 38 928 (Greek)
Page 39 Thai 16
Page 40 1256 (Arabic)
STD
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
Other
○
○
○
○
○
○
○
○
○
○
X
○
○
○
X
X
○
○
○
X
○
○
X
X
○
○
X
X
X
- Character codes support all the above listed code pages in the STD version,
and in all remaining versions, only the character codes displayed in Other are
supported.
Rev. 1.00
- 23 -
Mobile Printer Command Manual
EM 220
ESC { n
[Name]
Turns upside-down printing mode on/off.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[Description]
▪ Turns upside-down printing mode on or off.
- When the LSB of n is 0, upside-down printing mode is turned off.
- When the LSB of n is 1, upside-down printing mode is turned on.
▪ The upside-down print mode has no effect in page mode. If this command
is processed in page mode, upside-down printing mode is enabled when
the printer returns to standard mode.
▪ When upside-down print mode is turned on, the printer prints 180°
rotated characters from right to left.
Rev. 1.00
ESC
1B
27
{
7B
123
n
n
n
- 24 -
Mobile Printer Command Manual
EM 220
GS ! n
[Name]
[Format]
Select character size.
ASCII
Hex
Decimal
GS
1D
29
!
21
33
n
n
n
[Range]
0 ≤ n ≤ 255
(where 1 ≤ Enlargement in vertical direction ≤ 8, 1 ≤ Enlargement in
horizontal direction ≤ 8)
[Default]
n=0
[Description]
▪ Selects character size (enlargement in vertical and horizontal directions).
Bit
Function
Setting
0
1
2
3
4
5
6
7
Specifies the number of times
enlarged in the vertical
direction
Refer to Table 2
[Enlarged in vertical direction]
Specifies the number of times
enlarged in the horizontal
direction
Refer to Table 1
[Enlarged in horizontal
direction]
- Table 1 [Enlarged in horizontal direction]
Hex
Decimal
Enlargement
00
0
1 time (standard)
10
16
2 times
20
32
3 times
30
48
4 times
40
64
5 times
50
80
6 times
60
96
7 times
70
112
8 times
- Table 2 [Enlarged in vertical direction]
Hex
Decimal
Enlargement
00
0
1 time (standard)
01
1
2 times
02
2
3 times
03
3
4 times
04
4
5 times
05
5
6 times
06
6
7 times
07
7
8 times
Rev. 1.00
- 25 -
Mobile Printer Command Manual
EM 220
GS $ nL nH
[Name]
[Format]
Set absolute vertical print position in page mode.
ASCII
Hex
Decimal
GS
1D
29
$
24
36
nL
nL
nL
nH
nH
nH
[Range]
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255)
[Description]
▪ Sets the absolute vertical print starting position to [(nL + nH × 256) ×
(vertical or horizontal motion units)].
GS ( A pL pH n m
Execute test print.
[Name]
[Format]
ASCII
Hex
Decimal
GS
1D
29
(
28
40
A
41
65
pL
pL
pL
pH
pH
pH
n
n
n
m
m
m
[Range]
(pL + pH x 256) = 2 (pL=2, pH=0)
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
1 ≤ m ≤ 3, 49 ≤ m ≤ 51
[Description]
▪ Executes a test print with a specified test pattern on a specified paper
type (roll paper).
- n specifies the paper type as listed below to be tested:
m
Paper type
0, 48
1, 49
Paper roll
2, 50
- m specifies a test pattern as listed below:
m
Test pattern
1, 49
Hexadecimal dump
2, 50
Self Test Printing
3, 51
Self Test rolling pattern
[Notes]
▪ If this command is processed while a macro is being defined, the printer
cancels macro definition and starts processing this command. At that time,
the macro becomes undefined.
▪ After processing this command, the printer performs a software reset.
Rev. 1.00
- 26 -
Mobile Printer Command Manual
EM 220
BS ^ E pL pH fn [parameter]
[Name]
Customize NV memory area.
[Description]
▪ Customize the NV user memory area. The table below explains the
functions available in this command. Executes commands related to the
user setting mode by specifying the function code fn.
fn
1
Format
BS ^ E pL pH fn
No.
1
2
BS ^ E pL pH fn
2
3
BS ^ E pL pH fn [b18...b11]...
[bk8...bk1]
3
4
BS ^ E pL pH fn a
4
11
BS ^ E pL pH fn d1...dk
11
12
BS ^ E pL pH fn a
12
[Notes]
Rev. 1.00
Function
Changes into the user setting mode.
Ends the user setting mode session.
(Performs a soft reset.)
Sets value(s) for the memory switch.
Transmits the settings of the memory
switch to the host.
Sets the communication conditions for the
serial interface.
Transmits the communication conditions for
the serial interface.
▪ pL, pH specifies (pL + pH x 256) the number of bytes after pH (fn and
[parameter]).
▪ The user setting mode is a special mode to change the values in the NV
user memory with this command.
▪ In Function 2, the printer performs software reset. Therefore, the printer
clears the receive and print buffers, and resets all settings (user-defined
characters, macros, and the character style) to the mode in effect at power
on.
▪ Frequent write commands by this command, may damage the NV memory.
Therefore, it is recommended to write to NV memory no more than 10
times a day.
▪ While processing this command, the printer is BUSY when writing data to
the user NV memory and stops receiving data. Therefore, it is prohibited to
transmit data including real-time commands during the execution of this
command.
- 27 -
Mobile Printer Command Manual
EM 220
<Function 1> BS ^ E pL pH fn (fn=1)
[Format]
ASCII
BS
^
E
Hex
08 5E 45
Decimal 08
94 69
[Range]
(pL + pH x 256) = 1
fn=1
pL
pL
pL
pH
pH
pH
fn
fn
fn
(pL=1, pH=0)
▪ Enter the user setting mode and notifies that the mode has changed.
[Description]
Hexadecimal
Decimal
Number of Data
Header
37H
55
1 byte
Flag
20H
32
1 byte
NUL
00H
0
1 byte
▪ The following commands are enabled in the user setting mode.
<Function 2> through
<Function 2> BS ^ E pL pH fn d1 d2 d3
[Format]
ASCII
GS
(
E
Hex
1D 28 45
Decimal 29 40 69
[Range]
(pL + pH x 256) = 1
fn=2
(fn=2)
pL pH
pL pH
pL pH
fn
fn
fn
(pL=1, pH=0)
[Description] ▪ Ends the user setting mode and performs a software reset. Therefore, the
printer clears the receive and print buffers, and resets all (downloaded bit
images, macros, and the print mode) to the mode that was in effect at
power on.
▪ This function code (fn=2) is enabled only in the user setting mode.
Rev. 1.00
- 28 -
Mobile Printer Command Manual
EM 220
<Function 3> BS ^ E pL pH fn [b18...b11]...[ bk8...bk1]
[Format]
ASCII
BS
^
E pL pH
Hex
08 5E 45 pL pH
Decimal
08 94 69 pL pH
[Range]
(fn=3)
fn
fn
fn
[b18...b11]... [bk8...bk1]
[b18...b11]... [bk8...bk1]
[b18...b11]... [bk8...bk1]
9≤ (pL + pH x 256) ≤ 65535
fn=3
b=48, 49, 50
[Default]
[Description] ▪ All switches are set to Off (b=48).
▪Changes all the Memory Switch 1~8 to the value specified by b at a time.
- When b=48, the applicable bit is turned to Off.
- When b=49, the applicable bit is turned to On.
- When b=50, the applicable bit is not changed.
▪ b1 value is set the memory switch 1 as follows:
Set Value
Msw
Function
3 2 1
1-1~3
1-4
1-5
1-6
48 48 48
print density 130%
48 48 49
print density 120%
48 49 48
print density 110%
48 49 49
print density 150%
49 48 48
print density 100%
49 48 49
print density 140%
49 49 48
print density 90%
49 49 49
print density 80%
48
2 byte character mode not selected
49
2 byte character mode selected
48
print speed 80mm/s
49
print speed 50mm/s
48
not used
▪ b2 value is set the memory switch 2 as follows:
Msw
2-1
2-2
2-3
Rev. 1.00
Set Value
48
48
48
Function
not used
not used
not used
- 29 -
Mobile Printer Command Manual
EM 220
▪ Code Page Settings
Msw2-8
Msw2-7
Msw2-6
Msw2-5
Msw2-4
Character
Table
STD Other
48
48
48
48
48
PC437
○
48
48
48
48
49
Katakana
○
48
48
48
49
48
PC850
○
48
48
48
49
49
PC860
○
48
48
49
48
48
PC863
○
48
48
49
48
49
PC865
○
48
48
49
49
48
WPC1252 ○
48
48
49
49
49
PC866
○
48
49
48
48
48
PC852
○
48
49
48
48
49
PC858
○
48
49
48
49
48
PC862
○
48
49
48
49
49
PC864
○
48
49
49
48
48
Thai42
○
48
49
49
48
49
WPC1253 ○
48
49
49
49
48
WPC1254 ○
48
49
49
49
49
WPC1257 ○
49
48
48
48
48
Farsi
○
49
48
48
48
49
WPC1251 ○
49
48
48
49
48
PC737
○
49
48
48
49
49
PC775
○
49
48
49
48
48
Thai 14
○
49
48
49
48
49
not used
○
49
48
49
49
48
WPC1255 ○
49
48
49
49
49
Thai 11
○
49
49
48
48
48
Thai 18
○
49
49
48
48
49
PC855
○
49
49
48
49
48
PC857
○
49
49
48
49
49
PC928
○
49
49
49
48
48
Thai 16
○
49
49
49
48
49
WPC1256 ○
49
49
49
49
48
not used
49
49
49
49
49
not used
For versions other than the STD version, only code pages displayed in
Other can be selected.
Rev. 1.00
- 30 -
○
○
○
○
○
○
○
○
○
○
×
○
○
○
×
×
○
○
○
×
○
○
○
×
×
○
○
×
×
×
Mobile Printer Command Manual
EM 220
▪ b3 value is set the memory switch 3 as follows:
Msw
3-1
3-2
3-3
3-4
Set Value
Function
48
PDF417 not selected
49
PDF417 selected
48
DATAMATRIX not selected
49
DATAMATRIX selected
48
MAXI CODE not selected
49
MAXI CODE selected
48
QR CODE not selected
49
QR CODE selected
▪ b4 value is set the memory switch 5 as follows:
Specify the length of idle time before the printer enters the power-down mode.
When memory switch value is 0, the power-down mode is not active.
MSW5-8
MSW5-7
MSW5-6
MSW5-5
MSW5-4
MSW5-3
MSW5-2
MSW5-1
Value
48
48
48
48
48
48
48
48
0
48
48
48
48
48
48
48
49
1
48
48
48
48
48
48
49
48
2
48
48
48
48
48
48
49
49
3
48
48
48
48
48
49
48
48
4
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
48
49
48
49
49
48
49
48
90
▪ b5 value is set the memory switch 6 as follows:
Minimum = 10 seconds
Maximum = 255 seconds
Set the standby time before the printer enters the power saving mode.
When memory switch value is 0, the power saving mode does not work.
Rev. 1.00
MSW6-8
MSW6-7
MSW6-6
MSW6-5
MSW6-4
MSW6-3
MSW6-2
MSW6-1
Value
48
48
48
48
49
48
49
48
10
48
48
48
48
49
48
49
49
11
48
48
48
48
49
49
48
48
12
48
48
48
48
49
49
48
49
13
48
48
48
48
49
49
49
48
14
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
49
49
49
49
49
49
49
49
- 31 -
255
Mobile Printer Command Manual
EM 220
▪ b6 value is set the memory switch 7 as follows:
MSW
7-5~8
8 7
6
5
Function
48 48 48 49
Track 1/2/3 read mode command
48 48 49 48
Track 1 read mode AUTO trigger
48 48 49 49
Track 2 read mode AUTO trigger
48 49 48 48
Track 3 read mode AUTO trigger
48 49 48 49
Track 1/2 read mode AUTO trigger
48 49 49 48
Track 2/3 read mode AUTO trigger
48 49 49 49
Track 1/2/3 read mode AUTO trigger
49 48 48 48
MSR not used
▪ b7 value is set the memory switch 8 as follows:
Msw
Setting Value
Function
8-1
48
Reserved
48
12X24 font
49
9X24 font
48
No beeps for roll paper end
49
Beeps for roll paper end
48
Beeps for low battery status
49
No beeps low battery status
48
Label function deactivated
49
Label function activated
8-6
48
Reserved
8-7
48
Reserved
8-8
48
Reserved
8-2
8-3
8-4
8-5
Rev. 1.00
- 32 -
Mobile Printer Command Manual
EM 220
<Function 4> BS ^ E pL pH fn a (fn=4)
[Format]
ASCII
BS
(
E
Hex
08 5E 45
Decimal 08 94 69
pL pH
pL pH
pL pH
fn
fn
fn
a
a
a
[Range]
(pL + pH x 256) = 2
fn=4
a=1, 2, 3, 5, 6, 7, 8
(pL=2, pH=0)
[Description]
▪ Transmits the setting value(s) of the memory switch specified by a.
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
21H
33
1 byte
Data
30H or 31H
48 or 49
8 bytes
NUL
00H
0
1 byte
▪ Data for the setting is transmitted as 8 bytes or a data string in the order
from bit 8 to bit 1, as follows:
- Off : Hexadecimal = 30H / Decimal = 48
- On : Hexadecimal = 31H / Decimal = 49
<Function 11>BS ^ E pL pH fn a d1….dk (fn=11)
ASCII
BS
^
E pL pH fn d1
[Format]
Hex
08 5E 45 pL pH 0B d1
Decimal 08 94 69 pL pH 11 d1
dk
dk
dk
[Range]
8<=(pL + pH x 256) <=10 (8<=pL<=10,0<= pH<=255)
fn=11,
48<=d<=57
7<=k<=9
[Default]
Baud rate: 115200,
[Description]
When (pL+pH x256) =10
d1~d6 is Baud rate value
d7 is parity setting value
d8 is Flow control setting value
d9 is Data length setting value
Parity: 48, Flow control: 48, Data length: 56
When (pL+pH x256) =9
d1~d5 is Baud rate value
d6 is parity setting value
d7 is Flow control setting value
d8 is Data length setting value
When (pL+pH x256) =8
d1~d4 is Baud rate value
d5 is parity setting value
d6 is Flow control setting value
d7 is Data length setting value
Rev. 1.00
- 33 -
Mobile Printer Command Manual
EM 220
Sets the configuration item for the serial interface specified by d1..dk
Setting Oder
1
2
3
4
Configuration item
Transmission speed
Parity
Flow control
Data length
Example : When defining 19200 bps and Noparity, DTR/DSR, 8bit Data
length : d1~dk(Hexadecimal = 32H,30H,30H,30H,30H,38H
/Decimal= 49,57,50,48,48,48,48,56)
Baud rate is specified by d1~dk-3 as follows:
d1~dk-3
“115200”
“57600”
“38400”
“19200”
“9600”
“4800”
“2400”
Function
Baud rate 115200
Baud rate 57600
Baud rate 38400
Baud rate 19200
Baud rate 9600
Baud rate 4800
Baud rate 2400
Parity is specified by dk-2 as follows:
dk-2
48
49
50
Function
Select no parity
Select odd parity
Select even parity
Flow control is specified by dk-1 as follows:
dk-1
48
49
Function
Select Flow control DTR/DSR
Select Flow control XON/XOFF
Data Length(a=4) is specified by dk as follows:
dk
55
56
Rev. 1.00
Function
Select 7bit length
Select 8bit length
- 34 -
Mobile Printer Command Manual
EM 220
<Function 12> BS ^ E pL pH fn a (fn=12)
[Format]
ASCII
BS
^
E pL pH
Hex
08 5E 45 pL pH
Decimal 08 94 69 pL pH
fn
fn
fn
a
a
a
[Range]
(pL + pH x 256) = 2 (pL=2, pH=0)
fn=12, 1 ≤ a ≤ 4
[Description]
▪ Transmits the communication conditions of the serial interface specified by a.
a
Communication Condition
1
Baud rate
2
Parity
3
Flow control
4
Data length
Hexadecimal
37H
33H
Header
Flag
Type of communication
31H - 34H
condition
Separator
1FH
Setting value
30H - 39H
NUL
00H
▪ Configuration of the setting value
- When the baud rate (a=1) is specified:
Baud rate (bps)
d1
d2
2400
50
52
4800
52
56
9600
57
54
19200
49
57
38400
51
56
57600
53
55
115200
49
49
Decimal
55
39
Amount of Data
1 byte
1 byte
49 - 52
1 byte
31
48 - 57
0
1 byte
1 - 6 bytes
1 byte
d3
48
48
48
50
52
54
53
d4
48
48
48
48
48
48
50
d5
---48
48
48
48
d6
------48
▪ When the parity setting (a=2) is specified:
d1
Parity
48
No parity
49
Odd parity
50
Even parity
- When the flow control setting (a=3) is specified:
d1
Flow control
48
DTR / DSR (Fixed)
49
XON / XOFF
- When the data length setting (a=4) is specified:
d1
Data length
55
7 bits
56
8 bits
▪ If a is out of range, this command ignores the value which is specified with a.
Rev. 1.00
- 35 -
Mobile Printer Command Manual
EM 220
BS ^ L pL pH fn [parameter], BS ^ 7 p1 p2 p3 p4 fn [parameter]
[Name]
Select graphics data.
[Format]
ASCII
BS ^
L pL pH fn [parameter]
Hex
08 5E 4C pL pH fn [parameter]
Decimal 08 94 76 pL pH fn [parameter]
ASCII
BS ^
7 p1 p2 p3 p4 fn [parameter]
Hex
08 5E 37 p1 p2 p3 p4 fn [parameter]
Decimal 08 94 55 p1 p2 p3 p4 fn [parameter]
[Description]
▪ In the description below, BS ^ L is used for the explanation.
▪ Processes graphics data according to the function code fn.
fn
Format
Function No.
2, 50
BS ^ L pL pH fn
Function 50
65
BS ^ L pL pH fn
Function 65
66
BS ^ L pL pH fn c
Function 66
67
69
112
BS ^ 7 p1 p2 p3 p4 fn N {b
xL xH yL yH [c
d1...dk]1}...{ b xL xH yL yH
[c d1 dk]N}
BS ^ L pL pH fn c x y
BS ^ L pL pH fn a bx by c
xL xH yL yH d1...dk
Function 67
Function 69
Function 112
Function
Prints the graphics data in the print
buffer.
Deletes all NV graphics data.
Deletes the specified NV graphics
data.
Defines the graphics data in the nonvolatile memory.
Prints the specified NV graphics data.
Stores the graphics data in the print
buffer memory.
▪ pL, pH specifies (pL + pH x 256) the number of bytes after pH(m, fn, and
[parameter]).
▪ Frequent write command executions may damage the NV memory.
Therefore, it is recommended to write to the NV memory no more than
10 times a day.
▪ While processing this command, the printer is BUSY writing data to the
NV graphics memory and stops receiving data. Therefore, it is prohibited
to transmit data including the real-time commands during the execution of
this command.
<Function 50> BS ^ L pL pH fn (fn=2, 50)
[Format]
ASCII
BS
^
Hex
08
5E
Decimal
08
94
L
4C
76
pL
pL
pL
pH
pH
pH
fn
fn
fn
[Range]
(pL + pH x 256) = 1 (pL=2, pH=0)
m=48, fn=2, 50
[Description]
▪ Prints the buffer graphics that are stored by the process of Function 112.
▪ Feeds paper by the amount corresponding to the number of dots in the y
direction of the buffered graphics.
Rev. 1.00
- 36 -
Mobile Printer Command Manual
EM 220
<Function 65> BS ^ L pL pH fn (fn=65)
[Format]
ASCII
BS
^
Hex
08
5E
Decimal
08
94
L
4C
76
pL
pL
pL
[Range]
(pL + pH x 256) = 1 (pL=1, pH=0)
fn=65
[Description]
▪ Deletes all defined NV graphics data.
<Function 66> BS ^ L pL pH fn c (fn=66)
[Format]
ASCII
BS
^
L
Hex
08
5E
4C
Decimal
08
94
76
pL
pL
pL
pH
pH
pH
fn
fn
fn
pH
pH
pH
fn
fn
fn
c
c
c
[Range]
(pL + pH x 256) = 2 (pL=2, pH=0)
fn=66
0 ≤ c ≤ 77
[Description]
▪ Deletes the NV graphics data defined by the key codes c
<Function 67> BS ^ 7 p1 p2 p3 p4 fn N {b xL xH yL yH [c d1...dk]1}...{b xL xH yL yH [c d1...dk]N}(fn=67)
ASCII
BS
^
7 P1 p2 p3 p4 fn N {b xL xH yL yH [c d1...dk]1}
[Format]
...{b xL xH yL yH [c d1...dk]N}
Hex
08 5E 37 P1 p2 p3 p4 fn N {b xL xH yL yH [c d1...dk]1}
...{b xL xH yL yH [c d1...dk]N}
[Range]
Decimal
08 94 55 P1 p2 p3 p4 fn N {b xL xH yL yH [c d1...dk]1}
...{b xL xH yL yH [c d1...dk]N}
▪ BS ^ 7 parameter
3 ≤ (p1 + p2 x 256+p3 x 65536 + p4 x 16777216) ≤ 262144
(0 ≤ p1 ≤ 255, 0 ≤ p2 ≤ 255, 0 ≤ p3 ≤ 255, 0 ≤ p4 ≤ 255)
fn=67
1 ≤ c ≤ 255
b=1
1 ≤ (xL + xH x 256) ≤ 1024
1 ≤ (yL + yH x 256) ≤ 1200
c=49
0 ≤ d ≤ 255
k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
0 ≤ N ≤ 77
[Description]
Rev. 1.00
▪ The total capacity of the NV graphic memory is only 256K bytes
▪ Defines the raster graphics data in the NV graphics area.
- b specifies the number of the color of the defined data.
- N specifies the number of the NV graphics data.
- xL, xH specifies the defined data in the horizontal direction to (xL + xH x
256) dots.
- 37 -
Mobile Printer Command Manual
EM 220
- yL, yH specifies the defined data in the vertical direction to (yL + yH x
256) dots.
[Notes]
- c specifies the color of the defined data.
C
Defined data color
49
Color 1
- Color 1 means black
- When NV graphics data is saved, existing data in NV memory is
removed and updated with new one.
- When NV graphics data are saved, Key codes are given automatically.
<Function 69> BS ^ L pL pH fn c x y (fn=69)
[Format]
ASCII
BS
^
L
pL
Hex
08
5E 4C pL
Decimal
08
94
76
pL
pH
pH
pH
fn
fn
fn
c
c
c
x
x
x
y
y
y
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
fn=69
0 ≤ c ≤ 77
x=1, 2
y=1, 2
[Description]
▪ Prints the NV graphics data defined by the key codes c. The graphics
data is enlarged by x and y in the horizontal and vertical directions.
<Function 112> BS ^ L pL pH fn a bx by c xL xH yL yH d1...dk (fn=112)
ASCII
BS
^
L
pL pH fn a bx by c xL xH yL yH d1...dk
[Format]
Hex
08 5E 4C
pL pH fn a bx by c xL xH yL yH d1...dk
Decimal 08 94 76
pL pH fn a bx by c xL xH yL yH d1...dk
▪ BS ^ L parameter
[Range]
11 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
fn=112, a=48
bx=1, 2
by=1, 2
c=49
1 ≤ (xL + xH x 256) ≤ 1024
1 ≤ (yL + yH x 256) ≤ 1200 (when by = 1)
[Description]
[Notes]
Rev. 1.00
k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
▪ Stores the raster graphics data, enlarged by bx and by in the horizontal
and vertical directions to the print buffer.
- xL, xH specifies the raster graphics data in the horizontal direction
as (xL + xH x 256) dots.
- yL, yH specifies the raster graphics data in the vertical direction to
(yL + yH x 256) dots.
- c specifies the color of the defined data.
c
Printing color
49
Color 1
- Color 1 means black
▪ In standard mode, each color can be defined only once.
- 38 -
Mobile Printer Command Manual
EM 220
GS ( k pL pH cn fn [parameter]
Specify and print the symbol.
[Name]
[Description] ▪ Processes the data concerning two-dimensional code.
- Symbol type is specified by cn.
- Function is specified by fn.
cn
Type of Symbol
48
PDF417 (2-dimensional code)
49
QR CODE (2-dimensional code)
50
MAXI CODE(2-dimensional code)
51
DATAMATRIX(2-dimensional code)
cn
48
49
50
fn
65
66
67
68
69
70
Function 065
Function 066
Function 067
Function 068
Function 069
Function 070
80
Function 080
81
Function 081
82
Function 082
65
67
69
Function 165
Function 167
Function 169
80
Function 180
81
Function 181
82
Function 182
65
Function 265 MAXI CODE: mode selection
MAXI CODE: saving of symbol data in storage
Function 280
area
MAXI CODE: printing of symbol data saved in
Function 281
storage area
Function 367 DATAMATRIX: module size selection
DATAMATRIX: saving of symbol data in
Function 380
storage area
DATAMATRIX: printing of symbol data saved in
Function 381
storage area
80
81
67
51
80
81
Rev. 1.00
Function
PDF417 : Specify the number of columns
PDF417 : Specify the number of rows
PDF417 : Specify the width of module
PDF417 : Specify the module height
PDF417 : Specify the error correction level
PDF417 : Specify the option
PDF417 : Store the received data in the symbol
save area
PDF417 : Print the symbol data in the symbol
save area
PDF417 : Send the size information of the
symbol data in the symbol save area
QR CODE: module selection
QR CODE: module size selection
QR CODE: error level setting
QR CODE: saving of symbol data in storage
area
QR CODE: printing of symbol data saved in
storage area
QR CODE: transmission of size information of
symbol data saved in storage area
- 39 -
Mobile Printer Command Manual
EM 220
[Notes]
For PDF417 symbol data (when cn=48)
▪ The symbol data specified by Function 080 d1...dk is stored in the printer
and is printed by the specification of Function 081. The symbol data in the
save area is reserved until the following processing is performed:
- Function 080 is executed
- ESC @ is executed
- The printer is reset or the power is turned off
▪ When processing Function 081 or 082, the setting values of Functions
065 to 070 are used. If the printable area is not large enough, the symbol
may not be printed.
▪ Executing Function 081 after executing Function 080 repeatedly prints the
same symbol data.
▪ By using Functions 065 to 070 combined with Function 081, the same
symbol data d1...dk is printed differently.
▪ By using Function 082, the symbol size printed by Function 081 is
available.
QRCODE Symbol Data (cn = 49)
▪ Symbol data is saved according to <Function 180> and printed according
to <Function 181>. The symbol data in the storage area is saved until the
following actions:
- Execution of Function 180
- Execution of ESC @
- Turn off printer power
▪ When either Function 181 or Function 182 is executed, the setting values
of Functions 165~169 are used. If the printable area is insufficient in size,
the symbol data is not printed.
▪ According to the settings of <Function 165> to <Function 169>, <Function
181> has and prints the same data d1….dk.
▪ <Function 182> uses the size printed by <Function 181>.
Rev. 1.00
- 40 -
Mobile Printer Command Manual
EM 220
MAXI CODE Symbol Data (cn = 50)
▪ Symbol data is saved according to <Function 280> and printed according
to <Function 281>. The symbol data in the storage area is saved until the
following actions:
- Execution of Function 280
- Execution of ESC @
- Turn off printer power
▪ When either <Function 281> or <Function 282> is executed, the setting
value of <Function 265> is used.
DATAMATRIX Symbol Data (cn=51)
▪ Symbol data is saved according to <Function 380> and printed according
to <Function 381>. The symbol data in the storage area is saved until the
following actions:
- Execution of Function 380
- Execution of ESC @
- Turn off printer power
▪ When <Function 381> is executed, the setting value of <Function 367> is
used.
Rev. 1.00
- 41 -
Mobile Printer Command Manual
EM 220
<Function 065> GS ( k pL pH cn fn n (fn=65)
[Format]
ASCII
GS
(
k
Hex
1D
28
6B
Decimal
29
40
107
pL
03
3
pH
00
0
cn
30
48
fn
41
65
n
n
n
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48, fn=65
0 ≤ n ≤ 30
[Default]
n=0
[Description]
Specifies the number of columns of the data area of PDF417.
- n=0 specifies auto processing
- When n is not 0, specifies the number of columns of the data area as
n code word.
[Notes]
▪ Settings of this function affect the processing of Functions 081 and 082.
▪ When auto processing (n=0) is specified, the maximum number of
columns in the data area is 30 columns.
▪ The following data is not included in the number of columns :
- Start pattern and stop pattern
- Indicator code word of left and right
▪ When auto processing (n=0) is specified, the number of columns is
calculated by the printing area when processing Functions 081, 082,
module width (Function 067), and option setting (Function 070).
▪ This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
<Function 066> GS ( k pL pH cn fn n (fn=66)
[Format]
ASCII
GS (
k
pL pH cn fn
Hex
1D 28 6B 03 00 30 42
Decimal 29 40 107 3
0 48 66
n
n
n
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48, fn=66
n=0, 3 ≤ n ≤ 90
[Default]
n=0
[Description]
Specifies the number of rows of data area of PDF417.
- n=0 specifies auto processing
- When n is not 0, specifies the number of rows of the symbol as n rows.
▪ Settings of this function effect the processing of Functions 081 and 082.
▪ When auto processing (n=0) is specified, the maximum number of rows is 90.
▪ When auto processing (n=0) is specified, the number of rows is calculated
by the printing area when processing Functions 081, 082, module height
(Function 068).
▪ This function is effective until ESC @ is executed, the printer is
reset, or the power is turned off.
[Notes]
Rev. 1.00
- 42 -
Mobile Printer Command Manual
EM 220
<Function 067> GS ( k pL pH cn fn n (fn=67)
[Format]
ASCII
GS (
k
pL pH cn fn
Hex
1D 28 6B 03 00 30 43
Decimal 29 40 107 3
0 48 67
n
n
n
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=67
2≤n≤3
[Default]
n=3
[Description]
Specifies the width of a module of PDF417 symbol.
[Notes]
▪ Settings of this function affect the processing of Functions 081 and 082.
▪ The setting unit differs, depending on the printer models.
▪ This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
<Function 068> GS ( k pL pH cn fn n (fn=68)
[Format]
ASCII
GS (
k
pL pH cn fn
Hex
1D 28 6B 03 00 30 44
Decimal 29 40 107 3
0 48 68
n
n
n
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=68
2≤n≤8
[Default]
n=3
[Description]
Specifies the module height of PDF417 symbol.
- Specify the height to [a module width x n].
[Notes]
▪ Settings of this function affect the processing of Functions 081 and 082.
▪ This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
Rev. 1.00
- 43 -
Mobile Printer Command Manual
EM 220
<Function 069> GS ( k pL pH cn fn m n (fn=69)
[Format]
ASCII
GS
(
k
pL
pH
Cn
fn
m
n
Hex
1D
28
6B
04
00
30
45
m
n
Decimal
29
40
107
4
0
48
69
m
n
[Range]
(pL + pH x 256) = 4 (pL=4, pH=0)
cn=48
fn=69
m=48
48 ≤ n ≤ 8 [m=48]
[Default]
n=1
[Description] Specifies the error correction level of PDF417.
M
Function
48
The error correction level is specified by “level”
[Notes]
▪ Settings of this function affect the processing of Functions 081 and 082.
▪ Error correction level is specified by “level”.
▪ Error correction level specified by “level” (m=48) is as follows:
The number of the error correction code word is fixed regardless of the
number of code words in the data area.
M
Function
Number of error correction code word
48
Error correction level 0
2
49
Error correction level 1
4
50
Error correction level 2
8
51
Error correction level 3
16
52
Error correction level 4
32
53
Error correction level 5
64
54
Error correction level 6
128
55
Error correction level 7
256
56
Error correction level 8
512
<Function 070> GS ( k pL pH cn fn m (fn=70)
[Format]
ASCII
GS (
k
pL pH cn fn m
Hex
1D 28 6B 03 00 30 46 m
Decimal 29 40 107 3
0 48 70 m
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=70
m=0,1
[Default]
m=0
[Description] Set or cancels the option of PDF417.
M
Function
0
Cancels the processing of simplified PDF417 symbol.
1
Sets the processing of simplified PDF417 symbol.
- m=0 cancels the processing of simplified PDF417 symbol.
- m=1 sets the processing of simplified PDF417 symbol.
[Notes]
▪ Settings of this function affect the processing of Functions 081 and 082.
▪ When simplified PDF417 symbol is canceled, standard PDF417 symbol is
automatically selected.
▪ This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
Rev. 1.00
- 44 -
Mobile Printer Command Manual
EM 220
<Function 080> GS ( k pL pH cn fn m d1...dk (fn=80)
[Format]
ASCII
GS
(
k
pL
pH
cn
fn
m
d1...dk
Hex
1D
28
6B
pL
pH
30
50
30
d1...dk
Decimal
29
40
107
pL
pH
48
80
48
d1...dk
[Range]
4 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
cn=48
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) - 3
[Description] Stores the PDF417 symbol data (d1...dk) in the symbol save area.
[Notes]
▪ Data stored in the symbol save area by this function are processed by
Function 081 and 082. The data in the symbol save area are reserved
after processing Function 081 or 082.
▪ k bytes of d1...dk are processed as symbol data.
▪ Specify only the data code word of the symbol with this function. Do not
include the following data in the data d1..dk as this information is
automatically added by the printer:
- Start pattern and stop pattern.
- Indicator code word of left and right.
- The descriptor of symbol length. (the first code word in the data area)
- The error correction code word calculated by modulus 929.
▪ This function is effective until the following processing is
performed:
- Function 080 or 180 is executed.
- ESC @ is executed.
- The printer is reset or the power is turned off.
<Function 081> GS ( k pL pH cn fn m (fn=81)
[Format]
ASCII
GS
(
k
pL
pH
cn
fn
m
Hex
1D
28
6B
03
00
30
51
m
Decimal
29
40
107
3
0
48
81
m
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=81
m=48
[Description] Encodes and prints the PDF417 symbol data in the symbol save area.
[Notes]
▪ In standard mode, use this function when printer is “at the beginning of a
line,” or “there is no data in the printer buffer.”
▪ A symbol with a size that exceeds the printing area can not be printed.
▪ If there is any error described below in the data of the symbol save area, it
cannot be printed.
- There is no data (Function 080 is not processed).
- If [(number of columns x number of rows) < number of code word] when
auto processing is specified for number of columns and number of
rows.
- Number of code word exceeds 928 in the data area.
Rev. 1.00
- 45 -
Mobile Printer Command Manual
EM 220
▪ The following data is added automatically by the encode processing:
- Start pattern and stop pattern.
- Indicator code word of left and right.
- The descriptor of symbol length. (the first code word in the data area)
- The error correction code word calculated by modulus 929.
- Pad codeword.
▪ The data area includes the following code words:
- Data specified by Function 080.
- The descriptor of symbol length. (the first code word in the data area)
- The error correction code word calculated by modulus 929.
- Pad codeword.
▪ When auto processing (Function 065) is specified, the number of
columns is calculated by the current printing area, module width (Function
067), option setting (Function 070), and the code word in the data area.
The maximum number of columns is 30.
▪ When auto processing (Function 066) is specified in page mode, the
number of rows is calculated by the current printing area, module height
(Function 068), and the code word in the data area. The maximum number
of rows is 90.
▪ Printing of symbol is not affected by print mode (emphasized, doublestrike, underline, white/black reverse printing, or 90˚ clockwise-rotated),
except for character size and upside-down printing mode.
▪ In standard mode, this command executes paper feeding for the amount
needed for printing the symbol, regardless of the paper feed amount set by
the paper feed setting command. The printing position returns to the left
side of the printable area after printing the symbol, and printer is in the
status “beginning of the line,” or “ there is no data in the print buffer.”
▪ In page mode, the printer stores the symbol data in the print buffer without
executing actual printing. The printer moves printing position to the next
dot of the last data of the symbol.
▪ The quiet zone is not included in the printing data. Be sure to include the
quiet zone when using this function.
Rev. 1.00
- 46 -
Mobile Printer Command Manual
EM 220
<Function 082> GS ( k pL pH cn fn m (fn=82)
[Format]
ASCII
GS
(
k
Hex
1D
28
6B
Decimal
29
40
107
pL
03
3
pH
00
0
cn
30
48
fn
52
82
m
m
m
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=82
m=48
[Description]
Encodes and sends size information of the PDF417 symbol data in the
symbol save area.
[Notes]
▪ In standard mode, use this function when the printer is “at the beginning of
a line,” or “there is no data in the printer buffer.”
▪ The size information for each data is as follows:
Send data
Hex
Decimal
Header
37H
55
Flag
2FH
47
Width
30H – 39H
48 – 57
Separator
1FH
31
Height
30H – 39H
48 – 57
Separator
1FH
31
Fixed value
31H
49
Separator
1FH
31
Other information
30H or 31H
48 or 49
NUL
00H
0
Data
1 byte
1 byte
1 – 5 byte
1 byte
1 – 5 byte
1 byte
1 byte
1 byte
1 byte
1 byte
▪ Description of the width and height of the data sent:
- The height and width values of the symbol data are in dot units.
▪ Description of the other information data sent:
Hex
Decimal
Condition
30H
48
Printing is possible
31H
49
Printing is impossible
▪ This command does not print the PDF417 symbols.
▪ Users must consider the quiet zone for the PDF417 symbols (upward and
downward spaces and left and right spaces for the PDF417 symbols
specified in the specifications for the PDF417 symbols.)
Rev. 1.00
- 47 -
Mobile Printer Command Manual
EM 220
<Function 165> GS ( k pL pH cn fn n1 n2 (fn=65)
[Format]
ASCII
GS
(
k
pL
Hex
1D
28
6B
04
Decimal
29
40
107
3
[Range]
[Defaults]
[Description]
[Notes]
pH
00
0
cn
31
49
fn
41
65
n1
n1
n1
n2
0
0
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=65
n1 = 49, 50
n2 =0
n1=50, n2 =0
Sets the QR code model
N1
49
50
Function
Model 1
Model 2
▪ The setting of this function impacts <Function 181> and <Function 182>.
▪ This function is effective until ESC @ is executed or the printer power is
turned off.
<Function 167> GS ( k pL pH cn n
[Format]
ASCII
GS
Hex
1D
Decimal
29
(fn=67)
(
k
28
6B
40
107
pL
03
3
pH
00
0
cn
31
49
fn
43
67
n
n
n
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=67
0<=n<9
[Default]
n=3
[Description]
Sets the size of the QR code module
▪ It impacts the execution of <Function 181> and <Function 182>.
▪ This function is effective until ESC @ is executed or the printer power is
turned off.
▪ n becomes the value for the module width and height.
(The QR CODE module is square-shaped.)
Rev. 1.00
- 48 -
Mobile Printer Command Manual
EM 220
<Function 169> GS ( k pL pH cn n
[Format]
ASCII
GS
Hex
1D
Decimal
29
(fn=69)
(
k
28
6B
40
107
pL
03
3
pH
00
0
cn
31
49
fn
45
69
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=69
48≤n≤51
[Default]
n=48
[Description]
Sets the error correction level of the QR code
N
Function
Recovery Amount (%)
48
Error Correction Level L
7
49
Error Correction Level M
15
50
Error Correction Level Q
25
51
Error Correction Level H
30
n
n
n
▪ The setting of this function impacts the execution of <Function 181> and
<Function 182>.
▪ This function is effective until ESC @ is executed or the printer power is
turned off.
▪ For correction with regard to the continuous error correction of the QR
code, the Reed-Solomon correction method is used.
Rev. 1.00
- 49 -
Mobile Printer Command Manual
EM 220
<Function 180> GS ( k pL pH cn fn m d1...dk (fn=80)
[Format]
ASCII
GS
(
k
pL
pH
cn
fn
m
d1...dk
Hex
1D
28
6B
pL
pH
31
50
30
d1...dk
Decimal
29
40
107
pL
pH
49
80
48
d1...dk
[Range]
4 ≤ (pL + pH x 256) ≤7092 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 27)
cn=49
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) - 3
[Description] Saves symbol data of the QR CODE to the symbol storage area
[Notes]
▪ Execution of this command saves data to the data storage area and
executes Functions 181 and 182. Following execution of Functions 181
and 182, the data remains saved in the symbol storage area.
▪ k byte represents the symbol data of d1...dk.
Character Type
Usable Characters
Numeric Data
“0” ~ “9”
Alphanumeric Data
“0” ~ “9”, “A” ~ “Z”, SP, $, %, *, +, -, ., /, :
Kanji Data
Shift JIS value
8bit Byte Data
00H ~ FFH
▪ The setting impacts the function until the following actions are carried out:
- Execution of Function 180
- Execution of ESC @
- Turning off of printer power
Rev. 1.00
- 50 -
Mobile Printer Command Manual
EM 220
<Function 181> GS ( k pL pH cn fn m (fn=81)
[Format]
ASCII
GS
(
k
Hex
1D
28
6B
Decimal
29
40
107
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=81
m=48
[Description]
[Notes]
pL
03
3
pH
00
0
cn
31
49
fn
51
81
M
M
M
Encodes and prints QR CODE symbol data saved in the storage area
▪ This function is used in regular mode when the printer is at the first line or
no data is present in the printer buffer.
▪ If the size of any one symbol is larger than the print area, printing cannot
be done:
▪ If any of the following errors is present in the symbol storage area, printing
cannot be done.
- There is no data. (Function 180 cannot be executed)
- If [(number of columns x number of rows) < number of code words], the
numbers of columns and rows are automatically processed.
- The four types of data compression mode are as follows:
*Numeric Data Code
*Alphanumeric Data mode
*Kanji Data mode
*8 bit Data mode
Note: According to the symbol data in the data storage area, automatic
conversion to optimal compression is done.
▪ The following data is automatically added during encoding:
- Position sensor pattern
- Segregator for the position sensor pattern
- Timing pattern
- Format information
- Version information
- Error correction code text
- Pad code text
- Indicator for counting bits of bytes
- Mode indicator
- Concluder
- Queue pattern (when model 2 is selected)
- Expansion pattern (when model 1 is selected)
▪ During symbol printing, the printer mode has no effect (bold, underline,
reverse direction, contrast).
▪ In regular mode, this command supplies enough paper required for
symbol printing. If the paper supply is not sufficient, the paper supply
command is executed. When printing, the printing position is to the left
of the print area. After symbol printing, the printer returns to the start
position of the line, and the buffer is emptied.
Rev. 1.00
- 51 -
Mobile Printer Command Manual
EM 220
<Function 182> GS ( k pL pH cn fn m (fn=82)
[Format]
ASCII
GS
(
k
Hex
1D
28
6B
Decimal
29
40
107
pL
03
3
pH
00
0
cn
31
49
fn
52
82
m
m
m
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=82
m=48
[Description]
▪ Transmits size information of the QR CODE symbols encoded via
Function 180 to the host
▪ In regular mode, this function is executed when the printer is on standby
or the buffer is empty.
▪ The information size of each data item is as follows:
Transmission Data
Hex
Decimal
Header
37H
55
Flag
36H
54
Width
30H – 39H
48 – 57
Separator
1FH
31
Height
30H – 39H
48 – 57
Separator
1FH
31
Fixed Value
31H
49
Separator
1FH
31
Other Information
30H or 31H
48 or 49
NUL
00H
0
Data
1 byte
1 byte
1 – 5 byte
1 byte
1 – 5 byte
1 byte
1 byte
1 byte
1 byte
1 byte
▪ Description of Width & Height Transmission Data
- Height and width are dot unit values for symbol data.
▪ Description of Other Information
Hex
Decimal
Condition
30H
48
Can be printed
31H
49
Cannot be printed
▪ The user quiet zone is not included in size information.
Rev. 1.00
- 52 -
Mobile Printer Command Manual
EM 220
<Function 265> GS ( k pL pH cn fn n1 n2 (fn=65)
[Format]
ASCII
GS
(
k
pL
Hex
1D
28
6B
04
Decimal
29
40
107
3
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=50
fn=65
50 ≤ n ≤ 52
[Default]
n = 50
[Description]
Maxi Code Mode Settings
n
50
51
52
[Notes]
pH
00
0
cn
32
50
fn
41
65
n1
n1
n1
n2
0
0
Function
Mode 2 Setting
Mode 3 Setting
Mode 4 Setting
▪ The setting of this function impacts <Function 281> and <Function 282>.
▪ This function is effective until ESC @ is executed or the printer power is
turned off.
<Function 280> GS ( k pL pH cn fn m d1...dk (fn=80)
[Format]
ASCII
GS
(
k
pL
pH
Hex
1D
28
6B
pL
pH
Decimal
29
40
107
pL
pH
cn
32
5
fn
50
50
m
30
48
d1...dk
d1...dk
d1...dk
[Range]
4 ≤ (pL + pH x 256) ≤ 141 (4 ≤ pL ≤141, 0 ≤ pH ≤0)
cn=50
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) – 3
[Description]
Saves MAXI CODE symbol data in the symbol storage area
[Notes]
▪ Execution of this command saves data to the data storage area and
executes Functions 281 and 282. Following execution of Functions 281
and 282, the data remains saved in the symbol storage area.
▪ k byte represents the symbol data of d1...dk.
▪ The setting impacts the function until the following actions are carried out:
- Execution of Function 280
- Execution of ESC @
- Turning off of printer power
Rev. 1.00
- 53 -
Mobile Printer Command Manual
EM 220
<Function 281> GS ( k pL pH cn fn m
[Format]
[Range]
[Description]
[Notes]
ASCII
Hex
Decimal
GS
1D
29
(fn=81)
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
32
50
fn
51
81
m
m
m
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=50
fn=81
m=48
Encodes and prints QR CODE symbol data saved in the storage area
▪ This function is used in regular mode when the printer is at the first line or
no data is present in the printer buffer.
▪ If the size of any one symbol is larger than the print area, printing cannot
be done.
▪ If any of the following errors is present in the symbol storage area, printing
cannot be done.
- There is no data. (Function 280 cannot be executed)
- The number of numeric characters exceeds 138.
- The number of alphanumeric characters exceeds 93.
- When mode 2 is selected, the primary message does not include all of
the following:
Primary Message
Data Number
Character
Postal Code
1~9
Numeric
ISO Country Code
1~3
Numeric
Service Type Code
1~3
Numeric
- When mode 3 is selected, the primary message does not include all of
the following:
Primary Message
Data Number
Character
Postal Code
1~6
Setting Code A
ISO Country Code
1~3
Numeric
Service Type Code
1~3
Numeric
▪ Modes 2 and 3 are executed according to the following procedures:
(RS, GS indicate the control code of MAXI CODE. y indicates the 2byte
numeric data.)
a) 9 byte data including ”[]>”,”RS”,”01”,”GS”,”yy” are regarded as the
Header.
- The next data item after the Header is the Primary Message.
- When printing, the Header is inserted at the beginning of the
Secondary Message.
b) When Header data is absent, the Primary Message is regarded as
the first data item.
c) In the Primary Message, GS is regarded as the separator that divides
Rev. 1.00
- 54 -
Mobile Printer Command Manual
EM 220
the postal code, ISO country code, and service type code. The GS
text is ignored.
d) All data of the Secondary Message is regarded as symbol data.
▪ Mode 4 does not distinguish between the Primary Message and the
Secondary Message.
▪ In the detection and correction of errors, MAXI CODE uses the ReedSolomon algorithm.
▪ The following data is automatically added during the encoding process:
- Position sensor pattern
- Position pattern
- Error correction code text
- Mode separator
- Pad code text
▪ During symbol printing, the printer mode has no effect (bold, underline,
reverse direction, contrast).
▪ In regular mode, this command supplies enough paper required for
symbol printing. If the paper supply is not sufficient, the paper supply
command is executed. When printing, the printing position is to the left of
the print area. After symbol printing, the printer returns to the start
position of the line, and the buffer is emptied.
<Function 367> GS ( k pL pH cn n
[Format]
ASCII
GS
Hex
1D
Decimal
29
(fn=67)
(
k
28
6B
40
107
pL
03
3
pH
00
0
cn
33
51
fn
43
67
n
n
n
[Range]
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=51
fn=67
2<=n<7
[Default]
n=3
[Description]
Sets the DATAMATRIX code size
▪ It impacts the execution of <Function 381>.
▪ This function is effective until ESC @ is executed or the printer power is
turned off.
▪ n becomes the value for the module width and height.
(The DATAMATRIX module is square-shaped.)
Rev. 1.00
- 55 -
Mobile Printer Command Manual
EM 220
<Function 380> GS ( k pL pH cn fn m d1...dk (fn=80)
[Format]
ASCII
GS
(
k
pL
pH
Hex
1D
28
6B
pL
pH
Decimal
29
40
107
pL
pH
cn
32
5
fn
50
50
m
30
48
d1...dk
d1...dk
d1...dk
[Range]
0 ≤ (pL + pH x 256) ≤ 3116 (0≤ pL ≤255, 0 ≤ pH ≤13)
cn=51
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) – 3
[Description]
Saves DATAMATRIX symbol data to the symbol storage area
[Notes]
▪ Execution of this command saves data to the data storage area and
executes Function 281. Following execution of Function 281, the data
remains saved in the symbol storage area.
▪ k byte represents the symbol data of d1...dk.
▪ The setting impacts the function until the following actions are carried out:
- Execution of Function 380
- Execution of ESC @
- Turning off of printer power
Rev. 1.00
- 56 -
Mobile Printer Command Manual
EM 220
<Function 381> GS ( k pL pH cn fn m (fn=81)
[Format]
ASCII
GS
(
k
Hex
1D
28
6B
Decimal
29
40
107
[Range]
[Description]
[Notes]
pL
03
3
pH
00
0
cn
33
51
fn
51
81
m
m
m
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=51
fn=81
m=48
Encodes and prints DATAMATRIX symbol data saved in the storage area
▪ This function is used in regular mode when the printer is at the first line or
no data is present in the printer buffer.
▪ If the size of any one symbol is larger than the print area, printing cannot
be done.
▪ If any of the following errors is present in the symbol storage area, printing
cannot be done:
- There is no data. (Function 380 cannot be executed)
- The number of alphanumeric characters exceeds 2334.
- The number of 8bit byte characters exceeds 1558.
- The number of numeric characters exceeds 3116.
▪ DATAMATRIX uses ECC 200 symbols.
▪ In the detection and correction of errors, DATAMATRIX uses the ReedSolomon algorithm.
▪ The following data is automatically added during the encoding process:
- Position pattern
- Error correction code text
- Mode separator
- Pad code text
▪ During symbol printing, the printer mode has no effect (bold, underline,
reverse direction, contrast).
▪ In regular mode, this command supplies enough paper required for
symbol printing. If the paper supply is not sufficient, the paper supply
command is executed. When printing, the printing position is to the left
of the print area. After symbol printing, the printer returns to the start
position of the line, and the buffer is emptied.
Rev. 1.00
- 57 -
Mobile Printer Command Manual
EM 220
GS :
[Name]
[Format]
[Description]
GS B n
[Name]
Start/end macro definition.
ASCII
Hex
Decimal
GS
1D
29
:
3A
58
▪ Starts or ends macro definition.
- The contents of the macro can be defined up to 2048 bytes.
Turns white/black reverse printing mode on / off.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[Description]
▪ Turns white/black reverse printing mode on or off.
- When the LSB of n is 0, white/black reverse mode is turned off.
- When the LSB of n is 1, white/black reverse mode is turned on.
Rev. 1.00
GS
1D
29
B
42
66
- 58 -
n
n
n
Mobile Printer Command Manual
EM 220
GS H n
[Name]
[Format]
Selects the printing position of HRI characters.
ASCII
Hex
Decimal
GS
1D
29
H
48
72
n
n
n
[Range]
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Default]
n=0
[Description]
▪ Selects the printing position of HRI characters when printing a bar code.
- n selects the execution of printing and the printing position as follows:
n
Printing position
0, 48
Not printed.
1, 49
Above the bar code.
2, 50
Below the bar code.
3, 51
Both above and below the bar code.
GS I b
[Name]
[Format]
Transmits battery status.
ASCII
Hex
Decimal
GS
1D
29
I
49
73
b
62
98
[Description] Transmits the battery power status of the printer
[Notes]
The transmitted battery status from this printer is constructed by [Header ~
NUL] as shown in the table below.
Transmitted data
Header
Identifier
Battery remaining
NUL
Hex
37H
45H
30h-34H
00H
Decimal
55
69
48-52
0
Amount of data
1byte
1byte
1byte
1byte
“Battery remaining amount“ is as indicated in the following table:
Battery remaining amount
Information
Hex
Decimal
30H
48
Battery remaining amount : H level
31H
49
Battery remaining amount : M level
32H
50
Battery remaining amount : L level
33H
51
Battery remaining amount : S level
▪ You can confirm the battery remaining amount by looking at the battery
LED.
▪ When battery remaining amount is S level, the red LED of battery LED is
blinking.
• This command following DLE can be executed in real-time command
mode.
Rev. 1.00
- 59 -
Mobile Printer Command Manual
EM 220
GS I n
[Name]
Transmits printer ID.
[Format]
ASCII
Hex
Decimal
GS
1D
29
I
49
73
n
n
n
[Range]
1 ≤ n ≤ 69,
[Description]
▪ Transmits the printer ID specified.
- Transmits 1 byte of printer ID, using n as follows:
n
Printer ID
ID
1,49
Printer model ID
65
0(2byte character is not supported)
2,50
Type ID
or 1(2byte character is supported)
3, 51
Version ID
111
- Transmits specified printer information, using n as follows:
n
Printer ID type
ID
65
Firmware version
Depends on firmware version
66
Manufacturer
Zebra
EM 220
67
Printer name
Chinese : GB2312 or BIG5
Font of Language for Korea n : KS-5601
69
each country
Japanese : SHIFT-JIS
Each default code page
-Printer information (When n = 65, 66, 67, 69) consist of[Header ~ NULL]
as Shown in the following table:
Transmitted data
Header
Printer information
NUL
Hex
5FH
Depends on the
model
00H
Decimal
95
Depends on the
model
0
Amount of data
1byte
1byte
1byte
• This command following DLE can be executed in real-time command
mode.
Rev. 1.00
- 60 -
Mobile Printer Command Manual
EM 220
GS L nL nH
[Name]
[Format]
Set left margin.
ASCII
Hex
Decimal
GS
1D
29
L
4C
76
nL
nL
nL
nH
nH
nH
[Range]
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
[Default]
(nL + nH x 256)=0 (nL=0, nH=0)
[Description]
▪ Sets the left margin specified by nL and nH.
- The left margin is [(nL + nH x 256) x (horizontal motion units)].
Printable area
Left margin
GS W nL nH
[Name]
[Format]
[Range]
[Default]
[Description]
Printing area width
Set printing area width.
ASCII
GS
W
nL
nH
Hex
1D
57
nL
nH
Decimal
29
87
nL
nH
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
(nL + nH x 256)=384 (nL=128, nH=1) (for 58mm of the paper width)
▪ Sets the printing area width specified with nL and nH.
- The printing area width is [(nL + nH x 256) x (horizontal motion units)].
Printable area
Left margin
Printing area width
GS \ nL nH
[Name]
Set relative vertical print position in page mode.
[Format]
ASCII
Hex
Decimal
GS
1D
29
\
5C
92
nL
nL
nL
nH
nH
nH
[Range]
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
[Description]
▪ Sets the relative vertical print starting position from the current position in
page mode. The distance from the current position to the starting position is
[(nL + nH x 256) x (vertical or horizontal motion units)].
Rev. 1.00
- 61 -
Mobile Printer Command Manual
EM 220
GS ^ r t m
[Name]
Execute macro.
[Format]
ASCII
Hex
Decimal
[Range]
0 ≤ r ≤ 255
0 ≤ t ≤ 255
m=0, 1
[Description]
▪ Executes a macro.
- r specifies the number of times to execute the macro.
- t specifies the waiting time for executing the macro.
- m specifies macro executing mode from the table below.
m
0
1
GS
1D
29
^
5E
94
r
r
r
t
t
t
m
m
m
Function
Executes the macro r times at the interval specified by t.
After waiting for the time specified by t, the FEED button must be pressed. After
the button is pressed, the macro is executed once. This operation is then
repeated r times.
GS f n
[Name]
[Format]
Select font for HRI characters.
ASCII
Hex
Decimal
GS
1D
29
f
66
102
n
n
n
[Range]
n=0, 1, 48, 49
[Default]
n=0
[Description]
▪ Selects a font for the HRI characters used when printing a bar code.
- n specifies the font of the HRI characters as follows:
n
Font
0, 48
Font A (12 x 24)
1, 49
Font B (9 x 17)
GS h n
[Name]
[Format]
[Range]
[Default]
[Description]
Rev. 1.00
Selects bar code height.
ASCII
Hex
Decimal
GS
1D
29
h
68
104
n
n
n
1 ≤ nL ≤ 255
n=162
▪ Selects the height of the bar code as n dots.
- 62 -
Mobile Printer Command Manual
EM 220
① GS k m d1...dk NUL
② GS k m n d1...dn
[Name]
Print bar code.
[Format]
①
②
ASCII
Hex
Decimal
ASCII
Hex
Decimal
GS
1D
29
GS
1D
29
k
6B
107
k
6B
107
m
m
m
m
m
m
d1...dk
d1...dk
d1...dk
n
n
n
[Range]
① 0 ≤ m ≤ 6 (k and d depend on the bar code system used)
② 65 ≤ m ≤ 73 (n and d depend on the bar code system used)
[Description]
▪ Selects a bar code system and prints the bar code.
For ①
m Bar Code System
0
UPC-A
1
UPC-E
2
JAN13(EAN)
3
JAN8(EAN)
4
CODE39
1≤k
5
ITF
1 ≤ k (even number)
6
CODABAR
1≤k
For ②
m Bar Code System
65
UPC-A
66
UPC-E
67
JAN13(EAN)
68
JAN8(EAN)
[Notes]
Rev. 1.00
Range of k
11 ≤ k ≤ 12
11 ≤ k ≤ 12
12 ≤ k ≤ 13
7≤k≤8
Range of k
11 ≤ n ≤ 12
11 ≤ n ≤ 12
12 ≤ n ≤ 13
7≤n≤8
69
CODE39
1 ≤ n ≤ 255
70
ITF
1 ≤ n ≤ 255 (even number)
71
CODABAR
1 ≤ n ≤ 255
72
73
CODE93
CODE128
1 ≤ n ≤ 255
2 ≤ n ≤ 255
NUL
NUL
NUL
d1...dn
d1...dn
d1...dn
Range of d
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,
d=32,36,37,43,45,46,47
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68,
d=36,43,45,46,47,58
Range of d
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,
d=32,36,37,43,45,46,47
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68,
d=36,43,45,46,47,58
0 ≤ d ≤ 127
0 ≤ d ≤ 127
▪ The user must consider the quiet zone of the bar code (left and right
spaces of the bar code)
- 63 -
Mobile Printer Command Manual
EM 220
GS r n
[Name]
[Format]
[Range]
[Description]
Transmit status.
ASCII
Hex
Decimal
GS
1D
29
r
72
114
n
n
n
n=1, 2, 49, 50
▪ Transmits the normal status specified by n as follows:
n
Function
1, 49
Transmits paper sensor status.
▪ Paper sensor status (n=1, 49) :
Bit Off/On Hex Decimal
Function
Off
00
0
Reserved.
0, 1
On
03
3
Reserved.
Off
00
0
Paper roll end sensor; paper present.
2, 3
On
0C
12
Paper roll end sensor; paper not present.
4
Off
00
0
Fixed.
5
Off
00
0
Reserved.
6
Off
00
0
Reserved.
7
Off
00
0
Fixed.
- Bits 2 and 3: This command can not be executed when the printer is
offline due to the lack of paper. Therefore, the status of bit 2 (1) and
bit 3 (1) is not transmitted.
• This command following DLE can be executed in real-time command
mode.
GS v 0 m xL xH yL yH d1...dk
[Name]
Print raster bit image.
[Format]
ASCII
Hex
Decimal
GS
1D
29
v
76
118
0
30
48
M
M
M
xL xH yL yH d1...dk
xL xH yL yH d1...dk
xL xH yL yH d1...dk
[Range]
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
1 ≤ (xL + xH x 256) ≤ 128 (0 ≤ xL ≤ 128, xh=0)
1 ≤ (yL + yH x 256) ≤ 4095 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 15)
0 ≤ d ≤ 255
k = (xL + xH x 256) x (yL + yH x 256)
[Description]
▪ Prints a raster bit image in m mode.
- m specifies the bit image mode.
m
Mode
Vertical dot density
0, 48
Normal
203 dpi
1, 49
Double-width
203 dpi
2, 50 Double-height
203/2 dpi
3, 51
Quadruple
203/2 dpi
Horizontal dot density
203 dpi
203/2 dpi
203 dpi
203/2 dpi
dpi : dots per 25.4mm {1"}
- xL, xH specifies (xL + xH x 256) byte(s) in the horizontal direction for the bit image.
- yL, yH specifies (yL + yH x 256) dot(s) in the vertical direction for the bit image.
- d specifies the definition data of the bit image data.
Rev. 1.00
- 64 -
Mobile Printer Command Manual
EM 220
GS w n
[Name]
[Format]
[Range]
Set bar code width.
ASCII
Hex
Decimal
GS
1D
29
w
77
119
n
n
n
2 ≤ n ≤ 6 , n=3
[Description] ▪ Set the horizontal size of the bar code, using n as follows:
[Notes]
FS .
[Name]
[Format]
[Range]
n
Multi-level Bar Code
Module Width (mm)
2
3
4
5
6
0.250
0.375
0.500
0.625
0.750
Binary-level Bar Code
Thin element width
Thick element width
(mm)
(mm)
0.250
0.375
0.500
0.625
0.750
0.625
1.000
1.250
1.625
2.000
▪ Multi-level bar codes are as follows:
- UPC-A, UPC-E, JAN13, HAN8, CODE93, CODE128
▪ Binary-level bar codes are as follows:
- CODE39, ITF, CODABAR
Cancel Kanji character mode.
ASCII
Hex
Decimal
FS
1C
28
.
2E
45
n=0
[Description] ▪ Cancels Kanji character mode.
FS &
[Name]
[Format]
Select Kanji character mode.
ASCII
Hex
Decimal
FS
1C
28
&
26
38
[Description] ▪ Select Kanji character mode.
Rev. 1.00
- 65 -
Mobile Printer Command Manual
EM 220
US L R
[Name]
[Format]
Change receipt mode.
ASCII
Hex
Decimal
US
1F
31
L
4C
76
R
52
82
[Description]
[Notes]
▪ Change from label mode to receipt mode.
▪ The memory switch setting is changed.
US L L
[Name]
Change label mode.
[Format]
ASCII
Hex
Decimal
US
1F
31
L
4C
76
L
4C
76
[Description]
[Notes]
▪ Change from receipt mode to Label mode.
▪ The memory switch setting is changed.
US L A
[Name]
Execute auto calibration in label mode.
[Format]
[Description]
[Notes]
Rev. 1.00
ASCII
Hex
Decimal
US
1F
31
L
4C
76
A
41
65
▪ Execute auto calibration in label mode.
▪ Store the value for the liner into NV memory during three-label feed
process without printing.
▪ The leading edge of the label is positioned at the print line by the use of
the stored value.
- 66 -
Mobile Printer Command Manual
www.zebra.com
______________________________________________________________________
Zebra Technologies International, LLC
333 Corporate Woods Parkway
Vernon Hills, Illinois 60061, 3109 USA
Phone: +1.847.634.6700
Toll-Free: +1.800.423.0422
Fax: +1.847.913.8766
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement