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.
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 Command Name Function Type
1 HT Horizontal tab
2 LF Print and line feed
3 FF
4 CR Print and carriage return
5 CAN Cancel print data in page mode
6 DLE Set real-time command mode
7 EOT n Transmit status
8 ESC FF Print data in page mode
9 ESC SP n Set right-side character spacing
10 ESC ! n Select print mode(s)
11 ESC $ Set absolute print position
12 ESC * Select bit-image mode
13 ESC - n Turn underline mode on/off
14 ESC 2 Select default line spacing
15 ESC 3 n Set line spacing
16 ESC @ Initialize printer
17 ESC D n Set horizontal tab positions
18 ESC E n Turn emphasized mode on/off
19 ESC G n Turn double-strike mode on/off
20 ESC J n Print and feed paper
21 ESC L Select page mode
22 ESC M n Select character font or Set card reader mode
23 ESC R n Select an international character set
24 ESC S Select standard mode
25 ESC T n Select print direction in page mode
26 ESC W n Set print area in page mode
27 ESC \ Set relative print position
28 ESC a n Select justification
29 ESC d n Print and feed n lines
30 ESC t n Select character code table
Print and return to standard mode
(in page mode)
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
Rev. 1.00
- 6 -
Mobile Printer Command Manual
EM 220
No Command Name Function Type
31 ESC { Turn upside-down print mode on/off
32 GS ! n Select character size
33 GS $ n Set absolute vertical print position in page mode
34 GS ( A Execute test print
35 BS ^ E Set user setup commands
36 BS ^ L or BS ^ 7 Set graphics data
37 GS ( k Select print control method(s)
38 GS : Start/end macro definition
39 GS B n Turn white/black reverse print mode on/off
40 GS H n Select print position of HRI characters
41 GS I b Transmit battery power
42 GS I n Transmit printer ID
43 GS L Set left margin
44 GS W Set print area width
45 GS \ Set relative vertical print position in page mode
46 GS ^ Execute macro
47 GS f n Select font for HRI characters
48 GS h n Set bar code height
49 GS k Print bar code
50 GS r n Transmit status
51 GS v 0 Print raster bit image
52 GS w n Set bar code width
53 FS . Cancel Kanji character mode
54 FS & Select Kanji character mode
55 US L R Change Receipt mode
56 US L L Change Label mode
57 US L A Execute auto calibration in label mode
Character
Character
Print Position
Misc.
Customize
Bit-image
Two dimension
Macro
Character
Bar code
Misc.
Misc.
Print Position
Print Position
Print Position
Macro
Bar code
Bar code
Bar code
Status
Bit-image
Bar code
2bytes code
2bytes code
Misc.
Misc.
Misc.
Rev. 1.00
- 7 -
Mobile Printer Command Manual
3. Control Commands Details
3-1 Command Notation
[Name]
[Format]
[Range]
[Description]
3-2 Explanation of Terms
LSB Least Significant Bit
The name of the command.
The code sequence: ASCII indicates the ASCII character equivalents.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ] k indicates that the content of the [ ] should be repeated k times.
Provides the allowable ranges for the arguments.
Describes the function of the command.
EM 220
Rev. 1.00
- 8 -
Mobile Printer Command Manual
3-3 Control Commands Details
HT
[Name]
[Format]
[Description]
LF
[Name]
[Format]
[Description]
Horizontal tab.
ASCII HT
Hex 09
Decimal 9
▪ Moves the print position to the next horizontal tab position.
Print and line feed.
ASCII LF
Hex 0A
Decimal 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
EM 220
FF
[Name]
[Format]
[Description]
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 FF
Hex 0C
Decimal 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.
Rev. 1.00
- 9 -
Mobile Printer Command Manual
CR
[Name]
[Format]
[Description]
CAN
[Name]
[Format]
[Description]
DLE
[Name]
[Format]
[Description]
Command Function
EOT Transmit printer status
GS r
Print and carriage return.
ASCII CR
Hex 0D
Decimal 13
▪ This command is ignored CR.
Cancel print data in page mode.
ASCII CAN
Hex 18
Decimal 24
▪ In page mode, deletes all the print data in the current print area.
Set real-time command mode.
ASCII DLE
Hex 10
Decimal 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.
Transmit status
EM 220
GS I
Rev. 1.00
Transmit printer ID
- 10 -
Mobile Printer Command Manual
EOT n
[Name]
[Format]
[Range]
[Description]
n Function
1 Transmit printer status
2 Transmit off-line status
3 Transmit error status
4 Transmit paper roll sensor status
▪ This printer transmits the following status.
Transmit status
ASCII EOT N
Hex 04 n
Decimal 4 n
1 ≤ n ≤ 4
▪ Transmits the status specified by n as follows:
EM 220
n=1: Printer status
Bit Off/On Hex Decimal Function
0 Off 00 0 Fixed
1 On 02 2 Fixed
2 Off 00 0 Fixed
3
4 On 10 16 Fixed
5
6
7 Off 00 0 Fixed
Off 00 0 On-Line
On 08 8 Off-Line
Off 00 0 Off line waiting status
On 20 32 On line waiting status
Off 00 0 Paper FEED button is turned Off
On 40 64 Paper FEED button is turned On
Rev. 1.00
- 11 -
Mobile Printer Command Manual
Bit Off/On Hex Decimal Function
0 Off 00 0 Fixed
1 On 02 2 Fixed
2
3
4 On 10 16 Fixed
5
6
7 Off 00 0 Fixed
Bit Off/On Hex Decimal Function
0 Off 00 0 Fixed
1 On 02 2 Fixed
2 Off 00 0 Fixed
3 Off 00 0 Fixed
4 On 10 16 Fixed
5 Off 00 0 Fixed
6 Off 00 0 Fixed
7 Off 00 0 Fixed
Off 00 0 Cover is closed
On 04 4 Cover is open
Off 00 0 Paper is not being fed by using the paper FEED button
On 08 8 Paper is being fed by the paper FEED button
Off 00 0 No paper-end stop
On 20 32 Printing is being stopped
Off 00 0 No error
On 40 64 Error has occurred
EM 220
n=2: Off-line status
n=3: Error status
n=4: Continuous paper sensor status
Bit Off/On Hex Decimal Function
0 Off 00 0 Fixed
1 On 02 2 Fixed
2 Off 00 0 Fixed
3 Off 00 0 Fixed
4 On 10 16 Fixed
5
6
7 Off 00 0 Fixed
Off 00 0 Paper end sensor; paper present
On 20 32 Paper end sensor; paper not present
Off 00 0 Paper end sensor; paper present
On 40 64 Paper end sensor; paper not present
Rev. 1.00
- 12 -
Mobile Printer Command Manual
[Notes]
ESC FF
[Name]
[Format]
[Description]
ESC SP n
[Name]
[Format]
[Range]
[Default]
[Description]
EM 220
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).
Print data in page mode.
ASCII ESC FF
Hex 1B 0C
Decimal 27 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.
ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
0 ≤ n ≤ 255
n=0
▪ Sets the character spacing for the right side of the character to
▪ 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)].
Off 00 0 Character font A (12 × 24) selected.
On 01 1 Character font B (9 x 24) selected.
Off 00 0 Emphasized mode not selected.
On 08 8 Emphasized mode selected.
Off 00 0 Double-height mode not selected.
On 10 16 Double-height mode selected.
Off 00 0 Double-width mode not selected.
On 20 32 Double-width mode selected.
Off 00 0 Underline mode not selected.
On 80 128 Underline mode selected.
Rev. 1.00
- 14 -
Mobile Printer Command Manual
ESC * m nL nH d1...dk
[Name]
[Format]
[Range]
[Description]
Select bit image mode.
ASCII ESC * m nL nH d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 27 42 m nL nH d1...dk
▪ 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.
▪ Sets the absolute vertical print starting position to [(nL + nH × 256) ×
(vertical or horizontal motion units)].
Execute test print.
ASCII GS ( A pL pH n m
Hex 1D 28 41 pL pH n m
Decimal 29 40 65 pL pH n m
(pL + pH x 256) = 2 (pL=2, pH=0)
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
1 ≤ m ≤ 3, 49 ≤ m ≤ 51
▪ 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:
0, 48
1, 49
2, 50
- m specifies a test pattern as listed below:
1, 49 Hexadecimal dump
2, 50 Self Test Printing
3, 51 Self Test rolling pattern
▪ 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.
EM 220
m Paper type
Paper roll
m Test pattern
Rev. 1.00
- 26 -
Mobile Printer Command Manual
EM 220
BS ^ E pL pH fn [parameter]
[Name]
[Description]
fn Format No.Function
1 BS ^ E pL pH fn 1 Changes into the user setting mode.
2 BS ^ E pL pH fn 2
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] ▪ pL, pH specifies (pL + pH x 256) the number of bytes after pH (fn and
BS ^ E pL pH fn [b18...b11]...
Customize NV memory area.
▪ 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.
Ends the user setting mode session.
(Performs a soft reset.)
[bk8...bk1]
[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.
▪ 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.
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
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
EM 220
Rev. 1.00
- 33 -
Mobile Printer Command Manual
EM 220
Sets the configuration item for the serial interface specified by d1..dk
Setting Oder Configuration item
1 Transmission speed
2 Parity
3 Flow control
4 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:
▪ In the description below, BS ^ L is used for the explanation.
▪ Processes graphics data according to the function code fn.
Prints the graphics data in the print
buffer.
Deletes all NV graphics data.
Deletes the specified NV graphics
data.
xL xH yL yH [c
Function 67
Defines the graphics data in the non-
volatile memory.
[c d1 dk]N}
Prints the specified NV graphics data.
Stores the graphics data in the print
buffer memory.
xL xH yL yH d1...dk
Function 112
[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 69> BS ^ L pL pH fn c x y (fn=69)
[Format]
[Range]
[Description]
<Function 112> BS ^ L pL pH fn a bx by c xL xH yL yH d1...dk (fn=112)
[Format]
[Range]
[Description]
[Notes]
- yL, yH specifies the defined data in the vertical direction to (yL + yH x
256) dots.
- 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.
ASCII BS ^ L pLpHfn c x y
Hex 08 5E4CpLpHfn c x y
Decimal 08 94 76 pLpHfn c x y
(pL + pH x 256) = 3 (pL=3, pH=0)
fn=69
0 ≤ c ≤ 77
x=1, 2
y=1, 2
▪ 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.
ASCII BS ^ L pL pH fn a bx by c xL xH yL yH d1...dk
Hex 08 5E4CpL pH fn a bx by c xL xH yL yH d1...dk
Decimal 08 9476pL pH fn a bx by c xL xH yL yH d1...dk
▪ BS ^ L parameter
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)
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.
EM 220
Rev. 1.00
- 38 -
Mobile Printer Command Manual
GS ( k pL pH cn fn [parameter]
[Name]
[Description]
Specify and print the symbol.
▪ 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 fn Function
65 Function 065PDF417 : Specify the number of columns
66 Function 066PDF417 : Specify the number of rows
67 Function 067PDF417 : Specify the width of module
68 Function 068PDF417 : Specify the module height
69 Function 069PDF417 : Specify the error correction level
70 Function 070PDF417 : Specify the option
48
80 Function 080
81 Function 081
EM 220
PDF417 : Store the received data in the symbol
save area
PDF417 : Print the symbol data in the symbol
save area
82 Function 082
65 Function 165QR CODE: module selection
67 Function 167QR CODE: module size selection
69 Function 169QR CODE: error level setting
80 Function 180
49
81 Function 181
82 Function 182
65 Function 265MAXI CODE: mode selection
80 Function 280
50
81 Function 281
67 Function 367DATAMATRIX: module size selection
80 Function 380
51
81 Function 381
PDF417 : Send the size information of the
symbol data in the symbol save area
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
MAXI CODE: saving of symbol data in storage
area
MAXI CODE: printing of symbol data saved in
storage area
DATAMATRIX: saving of symbol data in
storage area
DATAMATRIX: printing of symbol data saved in
storage area
Rev. 1.00
- 39 -
Mobile Printer Command Manual
[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>.
EM 220
Rev. 1.00
- 40 -
Mobile Printer Command Manual
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.
EM 220
Rev. 1.00
- 41 -
Mobile Printer Command Manual
<Function 065> GS ( k pL pH cn fn n (fn=65)
[Format]
[Range]
[Default]
[Description]
[Notes]
<Function 066> GS ( k pL pH cn fn n (fn=66)
[Format]
[Range]
[Default]
[Description]
[Notes]
ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B 03 00 30 41 n
Decimal 29 40 107 3 0 48 65 n
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48, fn=65
0 ≤ n ≤ 30
n=0
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.
▪ 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.
ASCII GS ( k pLpHcnfnn
Hex 1D 28 6B03003042n
Decimal 29 40 1073 0 48 66 n
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48, fn=66
n=0, 3 ≤ n ≤ 90
n=0
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.
EM 220
Rev. 1.00
- 42 -
Mobile Printer Command Manual
<Function 067> GS ( k pL pH cn fn n (fn=67)
[Format]
[Range]
[Default]
[Description]
[Notes]
<Function 068> GS ( k pL pH cn fn n (fn=68)
[Format]
[Range]
[Default]
[Description]
[Notes]
ASCII GS ( k pLpHcnfnn
Hex 1D 28 6B03003043n
Decimal 29 40 1073 0 48 67 n
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=67
2 ≤ n ≤ 3
n=3
Specifies the width of a module of PDF417 symbol.
▪ 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.
ASCII GS ( k pLpHcnfnn
Hex 1D 28 6B03003044n
Decimal 29 40 1073 0 48 68 n
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=68
2 ≤ n ≤ 8
n=3
Specifies the module height of PDF417 symbol.
- Specify the height to [a module width x n].
▪ 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.
EM 220
Rev. 1.00
- 43 -
Mobile Printer Command Manual
<Function 069> GS ( k pL pH cn fn m n (fn=69)
[Format]
[Range]
[Default]
[Description]
[Notes]
<Function 070> GS ( k pL pH cn fn m (fn=70)
[Format]
[Range]
[Default]
[Description]
[Notes]
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
(pL + pH x 256) = 4 (pL=4, pH=0)
cn=48
fn=69
m=48
48 ≤ n ≤ 8 [m=48]
n=1
Specifies the error correction level of PDF417.
M Function
48 The error correction level is specified by “level”
▪ 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
Decimal 29 40 1073 0 4870m
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=70
m=0,1
m=0
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.
▪ 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.
EM 220
Rev. 1.00
- 44 -
Mobile Printer Command Manual
<Function 080> GS ( k pL pH cn fn m d1...dk (fn=80)
[Format]
[Range]
[Description]
[Notes]
<Function 081> GS ( k pL pH cn fn m (fn=81)
[Format]
[Range]
[Description]
[Notes]
ASCII GS ( k pL pH cn fn m d1...dk
Hex 1D 28 6B pL pH 30 50 30 d1...dk
Decimal 29 40 107pL pH 48 80 48 d1...dk
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
Stores the PDF417 symbol data (d1...dk) in the symbol save area.
▪ 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.
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
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=81
m=48
Encodes and prints the PDF417 symbol data in the symbol save area.
▪ 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.
EM 220
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, double-
strike, 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
<Function 082> GS ( k pL pH cn fn m (fn=82)
[Format]
[Range]
[Description]
[Notes]
ASCII GS ( k pL pH cn fn m
Hex 1D 28 6B 03 00 30 52 m
Decimal 29 40 107 3 0 48 82 m
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=82
m=48
Encodes and sends size information of the PDF417 symbol data in the
symbol save area.
▪ 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 Data
Header 37H 55 1 byte
Flag 2FH 47 1 byte
Width 30H – 39H 48 – 57 1 – 5 byte
Separator 1FH 31 1 byte
Height 30H – 39H 48 – 57 1 – 5 byte
Separator 1FH 31 1 byte
Fixed value 31H 49 1 byte
Separator 1FH 31 1 byte
Other information 30H or 31H 48 or 49 1 byte
NUL 00H 0 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.)
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
▪ 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.
EM 220
Rev. 1.00
- 49 -
Mobile Printer Command Manual
<Function 180> GS ( k pL pH cn fn m d1...dk (fn=80)
[Format]
[Range]
[Description]
[Notes]
ASCII GS ( k pL pH cn fn m d1...dk
Hex 1D 28 6B pL pH 31 50 30 d1...dk
Decimal 29 40 107pL pH 49 80 48 d1...dk
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
Saves symbol data of the QR CODE to the symbol storage area
▪ 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.
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.
EM 220
Rev. 1.00
- 51 -
Mobile Printer Command Manual
<Function 182> GS ( k pL pH cn fn m (fn=82)
[Format]
[Range]
[Description]
ASCII GS ( k pL pH cn fn m
Hex 1D 28 6B 03 00 31 52 m
Decimal 29 40 107 3 0 49 82 m
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=82
m=48
▪ 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 Data
Header 37H 55 1 byte
Flag 36H 54 1 byte
Width 30H – 39H 48 – 57 1 – 5 byte
Separator 1FH 31 1 byte
Height 30H – 39H 48 – 57 1 – 5 byte
Separator 1FH 31 1 byte
Fixed Value 31H 49 1 byte
Separator 1FH 31 1 byte
Other Information 30H or 31H 48 or 49 1 byte
NUL 00H 0 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.
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
Saves MAXI CODE symbol data in the symbol storage area
▪ 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
<Function 281> GS ( k pL pH cn fn m (fn=81)
[Format]
[Range]
[Description]
[Notes]
ASCII GS ( k pL pH cn fn m
Hex 1D 28 6B 03 00 32 51 m
Decimal 29 40 107 3 0 50 81 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
EM 220
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 Reed-
Solomon 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 (fn=67)
[Format]
[Range]
[Default]
[Description]
ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B 03 00 33 43 n
Decimal 29 40 107 3 0 51 67 n
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
Saves DATAMATRIX symbol data to the symbol storage area
▪ 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
EM 220
Rev. 1.00
- 56 -
Mobile Printer Command Manual
<Function 381> GS ( k pL pH cn fn m (fn=81)
[Format]
[Range]
[Description]
[Notes]
ASCII GS ( k pL pH cn fn m
Hex 1D 28 6B 03 00 33 51 m
Decimal 29 40 107 3 0 51 81 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 Reed-
Solomon 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.
EM 220
Rev. 1.00
- 57 -
Mobile Printer Command Manual
GS :
[Name]
[Format]
[Description]
GS B n
[Name]
[Format]
[Range]
[Default]
[Description]
EM 220
Start/end macro definition.
ASCII GS :
Hex 1D 3A
Decimal 29 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.
ASCII GS B n
Hex 1D 42 n
Decimal 29 66 n
0 ≤ n ≤ 255
n=0
▪ 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
- 58 -
Mobile Printer Command Manual
GS H n
[Name]
[Format]
[Range]
[Default]
[Description]
GS I b
[Name]
[Format]
[Description]
[Notes]
EM 220
Selects the printing position of HRI characters.
ASCII GS H n
Hex 1D 48 n
Decimal 29 72 n
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
n=0
▪ 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.
Transmits battery status.
ASCII GS I b
Hex 1D 49 62
Decimal29 73 98
Transmits the battery power status of the printer
The transmitted battery status from this printer is constructed by [Header ~
NUL] as shown in the table below.
Transmitted data Hex DecimalAmount of data
Header 37H 55 1byte
Identifier 45H 69 1byte
Battery remaining 30h-34H48-52 1byte
“Battery remaining amount“ is as indicated in the following table:
NUL 00H 0 1byte
Battery remaining amount
Information
Hex Decimal
Rev. 1.00
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.
- 59 -
Mobile Printer Command Manual
GS I n
[Name]
[Format]
[Range]
[Description]
EM 220
Transmits printer ID.
ASCII GS I n
Hex 1D 49 n
Decimal 29 73 n
1 ≤ n ≤ 69,
▪ 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
2,50 Type ID
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
67 Printer name
69
Font of Language for
each country
-Printer information (When n = 65, 66, 67, 69) consist of[Header ~ NULL]
as Shown in the following table:
Transmitted data Hex Decimal Amount of data
Header 5FH 95 1byte
Printer information
NUL 00H 0 1byte
Depends on the
model
0(2byte character is not supported)
or 1(2byte character is supported)
EM 220
Chinese : GB2312 or BIG5
Korea n : KS-5601
Japanese : SHIFT-JIS
Each default code page
Depends on the
model
1byte
Rev. 1.00
• This command following DLE can be executed in real-time command
mode.
- The left margin is [(nL + nH x 256) x (horizontal motion units)].
Printable area
Left margin 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
Set relative vertical print position in page mode.
ASCII GS
\
Hex 1D 5C nL nH
Decimal 29 92 nL nH
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
▪ 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)].
nL nH
Rev. 1.00
- 61 -
Mobile Printer Command Manual
GS ^ r t m
[Name]
[Format]
[Range]
[Description]
m Function
0 Executes the macro r times at the interval specified by t.
1
GS f n
[Name]
[Format]
[Range]
[Default]
[Description]
GS h n
[Name]
[Format]
[Range]
[Default]
[Description]
Execute macro.
ASCII GS ^ r t m
Hex 1D 5E r t m
Decimal 29 94 r t m
0 ≤ r ≤ 255
0 ≤ t ≤ 255
m=0, 1
▪ 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.
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.
Select font for HRI characters.
ASCII GS f n
Hex 1D 66 n
Decimal 29 102 n
n=0, 1, 48, 49
n=0
▪ 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)
Selects bar code height.
ASCII GS h n
Hex 1D 68 n
Decimal 29 104 n
1 ≤ nL ≤ 255
n=162
▪ Selects the height of the bar code as n dots.
EM 220
Rev. 1.00
- 62 -
Mobile Printer Command Manual
① GS k m d1...dk NUL
② GS k m n d1...dn
[Name]
[Format]
[Range]
[Description]
Print bar code.
①
Hex 1D 6B m d1...dk NUL
Decimal 29 107 m d1...dk NUL
②
Hex 1D 6B m n d1...dn
Decimal 29 107 m n d1...dn
① 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)
▪ Selects a bar code system and prints the bar code.
For ①
m
Bar Code System
0 UPC-A 11 ≤ k ≤ 12 48 ≤ d ≤ 57
1 UPC-E 11 ≤ k ≤ 12 48 ≤ d ≤ 57
2 JAN13(EAN) 12 ≤ k ≤ 13 48 ≤ d ≤ 57
3 JAN8(EAN) 7 ≤ k ≤ 8 48 ≤ d ≤ 57
4 CODE39 1 ≤ k
5 ITF 1 ≤ k
6 CODABAR 1 ≤ k
For ②
m
Bar Code System
65 UPC-A 11 ≤ n ≤ 12 48 ≤ d ≤ 57
66 UPC-E 11 ≤ n ≤ 12 48 ≤ d ≤ 57
67 JAN13(EAN) 12 ≤ n ≤ 13 48 ≤ d ≤ 57
68 JAN8(EAN) 7 ≤ n ≤ 8 48 ≤ d ≤ 57
69 CODE39 1 ≤ n ≤ 255
70 ITF 1 ≤ n ≤ 255
[Notes]
71 CODABAR 1 ≤ n ≤ 255
72 CODE93 1 ≤ n ≤ 255 0 ≤ d ≤ 127
73 CODE128 2 ≤ n ≤ 255 0 ≤ d ≤ 127
▪ The user must consider the quiet zone of the bar code (left and right
spaces of the bar code)
EM 220
ASCII GS k m d1...dk NUL
ASCII GS k m n d1...dn
Range of k Range of d
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,
d=32,36,37,43,45,46,47
(even number)
Range of k Range of d
(even number)
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68,
d=36,43,45,46,47,58
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
Rev. 1.00
- 63 -
Mobile Printer Command Manual
GS r n
[Name]
[Format]
[Range]
[Description]
EM 220
Transmit status.
ASCII GS r n
Hex 1D 72 n
Decimal 29 114 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 DecimalFunction
0, 1
2, 3
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
• This command following DLE can be executed in real-time command
Off 00 0 Reserved
On 03 3 Reserved
Off 00 0 Paper roll end sensor; paper present.
On 0C 12
offline due to the lack of paper. Therefore, the status of bit 2 (1) and
bit 3 (1) is not transmitted.
Paper roll end sensor; paper not present.
.
.
mode.
GS v 0 m xL xH yL yH d1...dk
[Name]
[Format]
[Range]
[Description] ▪ Prints a raster bit image in m mode.
Print raster bit image.
ASCII GS v 0 M xL xH yL yH d1...dk
Hex 1D 76 30 M xL xH yL yH d1...dk
Decimal 29 118 48 M xL xH yL yH d1...dk
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)
- m specifies the bit image mode.
m Mode Vertical dot density Horizontal dot density