Zebra Technologies ZQ110 user guide

ZQ110
Mobile Printer Command Manual
P1069085-001 Rev. A
ZQ110
Mobile Printer Command Manual
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
ZQ110
Mobile Printer Command Manual
Proprietary Statements
This manual contains proprietary information for Zebra Technologies Corporation. It is intended solely for the information and use of parties operating and maintaining the equip­ment described herein. Such proprietary information may not be used, reproduced, or dis­closed 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 of 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 equip­ment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference with 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 the receiver.
• Connect the equipment to 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 re­quirements this device shall be used in accordance with the operating conditions and in­structions 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 ensure 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
ZQ110
Mobile Printer Command Manual
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
ZQ110
Mobile Printer Command Manual
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 ZebraLink 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. Andy, CG Palacio, CG Century Schoolbook, CG Triumvirate, CG Times, Monotype Kai, Monotype Mincho and Monotype Sung are trademarks of Monotype Imaging, Inc. and may be registered in some jurisdictions. HY Gothic Hangul is a trademark of Hanyang Systems, Inc. Angsana 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 Style™ and Century Schoolbook 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. Univers 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. ©2014 ZIH Corp.
Rev. 1.00
ZQ110
Mobile Printer Command Manual
No
Command
Name
1
EOT
Transmit status
2
HT
Horizontal tab
3
LF
Print and line feed
4
FF
Form feed (in page mode)
5
CR
Print and carriage return
6
DLE
Set real-time command mode
7
CAN
Cancel the print data in page mode
8
ESC SP
Set the character right space
9
ESC !
Set print mode
10
ESC $
Set absolute print position
11
ESC *
Specify bit image mode
12
ESC -
Turn underline mode on/off
13
ESC 2
Select default line spacing
14
ESC 3
Set line spacing
15
ESC =
Select peripheral device
16
ESC @
Initialize printer
17
ESC D
Set horizontal tab positions
18
ESC E
Turn emphasized mode on/off
19
ESC G
Turn double-strike mode on/off
20
ESC J
Print and feed paper
21
ESC L
Select page mode
22
ESC M
Select character font/ MSR card read
23
ESC R
Specify an international character set
24
ESC S
Select standard mode
25
ESC T
Select print direction in page mode
26
ESC W
Set print area in page mode
27
ESC \
Set relative print position
28
ESC a
Set position alignment
29
ESC d
Print and feed n lines
30
ESC t
Select character code table
1. Notice
This manual contains information on the protocol and functions of all control commands that can be used with the ZQ110 printer.
2. Control Commands List
Rev. 1.00
ZQ110
Mobile Printer Command Manual
No
Command
Name
31
ESC {
Turn upside-down print mode on/off
32
FS &
Select Kanji character mode
33
FS .
Cancel Kanji character mode
34
GS !
Select character size
35
GS $
Set absolute vertical print position in page mode
36
GS ( A
Execute test print
37
GS ( F
Set black mark control functions
38
GS ( k
Specify and print the symbol
39
GS ( E
Set NV user memory area
40
GS ( L
GS 8 L
Select graphics data
41
GS :
Start/end macro definition
42
GS B
Turn white/black reverse print mode on/off
43
GS H
Select print position of HRI characters
44
GS I
Transmit printer ID
45
GS I b
Transmit battery status
46
GS L
Set left margin
47
GS T
Set print position to the beginning of print line
48
GS W
Set print area width
49
GS \
Set relative vertical print position in page mode
50
GS ^
Execute macro
51
GS a
Enable/disable Automatic Status Back (ASB)
52
GS f
Select font for HRI characters
53
GS h
Set bar code height
54
GS k
Print bar code
55
GS r
Transmit status
56
GS v 0
Print raster bit image
57
GS w
Set bar code width
58
BS L A
Execute automatic calibration in Black mark mode
59
BS L L
Select Black mark mode
60
BS L R
Select Receipt mode
61
BS M
Select device font type
62
BS M S
Sentinel character set up commands
63
US US i
Get B/T configuration
64
US US p
Set B/T configuration
65
WLAN
WLAN configuration
Rev. 1.00
Mobile Printer Command Manual
3-1 Command Notation
[Name] [Format]
[Range]
[Description]
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.
3-2 Explanation of Terms
LSB
Least Significant Bit
3. Control Commands Details
ZQ110
Rev. 1.00
Mobile Printer Command Manual
3-3 Control Commands Details
EOT n
[Name]
[Format]
[Range] [Description]
Transmit status
ASCII
EOT n
Hex
04 n
Decimal
4 n
1 ≤ n ≤ 4 ▪ Transmits the status specified by n as follows:
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.
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
Off
00
0
On-Line
On
08
8
Off-Line
4
On
10
16
Fixed
5
Off
00
0
Fixed
6
Off
00
0
Fixed
7
Off
00
0
Fixed
n=2: Off-line status
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Fixed
1
On
02
2
Fixed
2
Off
00
0
Cover is closed
On
04
4
Cover is open
3
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
4
On
10
16
Fixed
5
Off
00
0
No paper-end stop
On
20
32
Printing is being stopped
6
Off
00
0
Fixed
7
Off
00
0
Fixed
ZQ110
Rev. 1.00
ZQ110
Mobile Printer Command Manual
n=3: Error 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
Off
00
0
Fixed
6
Off
00
0
Fixed
7
Off
00
0
Fixed
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
Off
00 0 Paper end sensor; paper present
On
20
32
Paper end sensor; paper not present
6
Off
00 0 Paper end sensor; paper present
On
40
64
Paper end sensor; paper not present
7
Off
00
0
Fixed
[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).
Rev. 1.00
ZQ110
Mobile Printer Command Manual
HT
[Name] [Format]
[Description] [Example]
Horizontal tab.
ASCII
HT
Hex
09
Decimal
9
Moves the print position to the next horizontal tab position. Input:
0x54 0x45 0x53 0x54 0x0a 0x54 0x09 0x45 0x09 0x53 0x09 0x54 0x0a
Output:
LF
[Name] [Format]
[Description]
[Example]
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
perform actual printing
Input:
0x31 0x0a 0x32 0x0a 0x0a 0x33 0x0a 0x0a 0x0a 0x34 0x0a
Output:
Rev. 1.00
ZQ110
Mobile Printer Command Manual
FF
[Name]
[Format]
[Description]
[Example]
If in page mode, after printing, the printer is returned to standard mode.
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. Input:
0x1b 0x4c 0x1b 0x57 0x00 0x00 0x00 0x00 0x80 0x01 0xf0 0x00 0x50 0x61 0x67 0x65 0x20 0x6d 0x6f 0x64 0x65 0x0a 0x0c
Output:
CR
[Name] [Format]
[Description]
Print and carriage return.
ASCII
CR
Hex
0D
Decimal
13
This command is ignored CR.
Rev. 1.00
ZQ110
Mobile Printer Command Manual
DLE
[Name] [Format]
[Description]
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.
Command
Function
EOT
Transmit printer status
GS r
Transmit status
GS I
Transmit printer ID
CAN
[Name] [Format]
[Description] [Example]
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. Input:
0x54 0x45 0x53 0x54 0x31 0x0a 0x1b 0x4c 0x1b 0x57 0x00 0x00 0x00 0x00 0x80 0x01 0xf0 0x00 0x54 0x45 0x53 0x54 0x32 0x0a 0x18 0x0c 0x54 0x45 0x53 0x54 0x33 0x0a
Output:
Rev. 1.00
ZQ110
Mobile Printer Command Manual
ESC SP
[Name] [Format]
[Range] [Default] [Description]
[Example]
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
[n ×horizontal or vertical motion units].
The maximum right-side character spacing is:
- 31.875mm.
Input:
0x1b 0x20 0x20 0x31 0x32 0x33 0x0a 0x1b 0x20 0x40 0x31 0x32 0x33 0x0a 0x1b 0x20 0x60 0x31 0x32 0x33 0x0a
Output:
Rev. 1.00
Mobile Printer Command Manual
ESC !
[Name] [Format]
[Range] [Default] [Description]
[Example]
Select print mode(s).
ASCII
ESC ! n
Hex
1B
21 n
Decimal
27
33 n
0 ≤ n ≤ 255 n=0 Selects print mode(s) using n as follows:
Bit
Off/On
Hex
Decimal
Function
0
Off
00 0 Character font A (12 × 24) selected.
On
01 1 Character font B (9 x 17) selected.
1,2
Off
00
0
Reserved.
3
Off
00 0 Emphasized mode not selected.
On
08
8
Emphasized mode selected.
4
Off
00 0 Double-height mode not selected.
On
10
16
Double-height mode selected.
5
Off
00 0 Double-width mode not selected.
On
20
32
Double-width mode selected.
6
Off
00
0
Reserved.
7
Off
00
0
Underline mode not selected.
On
80
128
Underline mode selected.
Input:
0x1b 0x21 0x00 0x46 0x6f 0x6e 0x74 0x41 0x0a 0x1b 0x21 0x01 0x46 0x6f 0x6e 0x74 0x42 0x0a 0x1b 0x21 0x08 0x45 0x6d 0x70 0x68 0x61 0x73 0x69 0x7a 0x65 0x64 0x20 0x6d 0x6f 0x64 0x65 0x0a 0x1b 0x21 0x30 0x44 0x6f 0x75 0x62 0x6c 0x65 0x20 0x73 0x69 0x7a 0x65 0x0a 0x1b 0x21 0x80 0x55 0x6e 0x64 0x65 0x72 0x6c 0x69 0x6e 0x65 0x20 0x6d 0x6f 0x64 0x65 0x0a
Output:
ZQ110
Rev. 1.00
ZQ110
Mobile Printer Command Manual
ESC $
[Name] [Format]
[Range] [Description]
[Example]
Set absolute print position.
ASCII
ESC
$
nL
nH
Hex
1B
24
nL
nH
Decimal
27
36
nL
nH
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nH ≤ 255, 0 ≤ nL ≤ 255) ▪ 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)].
Input:
0x41 0x1b 0x24 0x20 0x00 0x42 0x1b 0x24 0x50 0x00 0x43 0x1b 0x24 0xa0 0x00 0x44 0x0a
Output:
Rev. 1.00
Mobile Printer Command Manual
ESC *
[Name] [Format]
[Range]
[Description]
[Example]
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
m=0, 1, 32, 33
1 ≤ (nL + nH x 256) ≤ 1023 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 3) 0 ≤ d ≤ 255
Specifies the bit image in m mode for the number of dots specified by nL
and nH.
* dpi : dots per 25.4mm {1”}
m
Mode
Number of
dots in vertical
direction
Vertical dot
density
Horizontal
dot density
Number of bytes (k)
0
8-dot
single-density
8
203/3 dpi
203/2 dpi
nL + nH x 256
1
8-dot
double-density
8
203/3 dpi
203 dpi
nL + nH x 256
32
24-dot
single-density
24
203 dpi
203/2 dpi
(nL + nH x 256) x 3
33
24-dot
double-density
24
203 dpi
203 dpi
(nL + nH x 256) x 3
Input:
0x1b 0x2a 0x00 0x0f 0x00 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 0x40 0x20 0x10 0x08 0x04 0x02 0x01 0x0a 0x1b 0x2a 0x01 0x0f 0x00 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 0x40 0x20 0x10 0x08 0x04 0x02 0x01 0x0a
Output:
ZQ110
Rev. 1.00
ZQ110
Mobile Printer Command Manual
ESC –
[Name] [Format]
[Range] [Default] [Description]
[Example]
Turn underline mode on/off.
ASCII
ESC - n
Hex
1B
2D n
Decimal
27
45 n
0 ≤ n ≤ 2, 48 ≤ n ≤ 50 n=0 Turn underline mode on or off, based on the following values of n:
n
Function
0,48
Turns off underline mode.
1,49
Turns on underline mode, set at 1-dot width.
2,50
Turns on underline mode, set at 2-dot width.
Input:
0x1b 0x2d 0x00 0x54 0x45 0x53 0x54 0x30 0x30 0x0a 0x0a 0x1b 0x2d 0x01 0x54 0x45 0x53 0x54 0x30 0x31 0x0a 0x0a 0x1b 0x2d 0x02 0x54 0x45 0x53 0x54 0x30 0x32 0x0a
Output:
Rev. 1.00
Mobile Printer Command Manual
ESC 2
[Name] [Format]
[Description]
Select default line spacing.
ASCII
ESC 2
Hex
1B
32
Decimal
27
50
The default line spacing is approximately 3.75 mm, which is equivalent to
30 dots.
ESC 3
[Name] [Format]
[Range] [Default] [Description]
[Example]
Set line spacing
ASCII
ESC 3 n
Hex
1B
33 n
Decimal
27
51 n
0 ≤ n ≤ 255 n = 30 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.
Input:
0x54 0x45 0x53 0x54 0x30 0x30 0x1b 0x33 0x50 0x0a 0x54 0x45 0x53 0x54 0x30 0x31 0x1b 0x33 0xa0 0x0a 0x54 0x45 0x53 0x54 0x30 0x32 0x1b 0x33 0xff 0x0a 0x54 0x45 0x53 0x54 0x30 0x33 0x0a
Output:
ZQ110
Rev. 1.00
ZQ110
Mobile Printer Command Manual
ESC =
[Name] [Format]
[Range] [Default] [Description]
Select peripheral device
ASCII
ESC = n
Hex
1B
3D n
Decimal
27
61 n
1 ≤ n ≤ 3 n = 1 The selection of peripherals according to the n value is as follows.
n
Function
1,3
Printer Activation
2
Printer Deactivation
ESC @
[Name] [Format]
[Range] [Description]
Initialize printer.
ASCII
ESC @
Hex
1B
40
Decimal
27
64
32 ≤ n ≤ 126 ▪ 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.
ESC D
[Name] [Format]
[Range] [Default]
[Description]
Set horizontal tab positions.
ASCII
ESC
D
n1...nk
NUL
Hx
1B
44
n1...nk
00
Decimal
27
68
n1...nk
0
1 ≤ n ≤ 255 , 0 ≤ k ≤ 32
n=8, 16, 24, 32, 40,....., 232, 240, 248
(for font A in a standard character size width) 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.
Rev. 1.00
ZQ110
Mobile Printer Command Manual
[Example]
Input:
0x48 0x09 0x48 0x09 0x48 0x09 0x48 0x0a 0x1b 0x44 0x0a 0x14 0x1e 0x00 0x48 0x09 0x48 0x09 0x48 0x09 0x48 0x0a
Output:
ESC E
[Name] [Format]
[Range] [Default] [Description]
[Example]
Turn emphasized mode on / off.
ASCII
ESC E n
Hex
1B
45 n
Decimal
27
69 n
0 ≤ n ≤ 255 n=0 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.
Input:
0x1b 0x45 0x01 0x41 0x42 0x43 0x44 0x45 0x0a 0x1b 0x45 0x00 0x41 0x42 0x43 0x44 0x45 0x0a
Output:
Rev. 1.00
ZQ110
Mobile Printer Command Manual
ESC G
[Name] [Format]
[Range] [Default] [Description]
[Example]
Turn double-strike mode on/off.
ASCII
ESC G n
Hex
1B
47 n
Decimal
27
71 n
0 ≤ n ≤ 255 n=0 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.
Input:
0x1b 0x47 0x01 0x41 0x42 0x43 0x44 0x45 0x0a 0x1b 0x47 0x00 0x41 0x42 0x43 0x44 0x45 0x0a
Output:
Rev. 1.00
ZQ110
Mobile Printer Command Manual
ESC J
[Name] [Format]
[Range] [Description]
[Example]
Print and feed paper.
ASCII
ESC J n
Hex
1B
4A n
Decimal
27
74 n
0 ≤ n ≤ 255 ▪ Prints the data in the print buffer and feeds the paper [n X vertical
motion unit].
Input:
0x41 0x42 0x43 0x44 0x45 0x1b 0x4a 0x50 0x41 0x42 0x43 0x44 0x45 0x1b 0x4a 0xa0 0x41 0x42 0x43 0x44 0x45 0a
Output:
ESC L
[Name] [Format]
[Description]
Select page mode.
ASCII
ESC L
Hex
1B
4C
Decimal
27
76
Switches from standard mode to page mode.
Rev. 1.00
Mobile Printer Command Manual
ESC M
[Name] [Format]
[Range] [Default] [Description]
[Notes]
Select character font./ MSR card read
ASCII
ESC M n
Hex
1B
4D n
Decimal
27
77 n
n = 0, 1, 48, 49 , 67, 68, 69, 70, 71, 72, 73 n=0
Selects only-byte character fonts Selects Card reader mode
n
Function
0, 48
Character font A (12 × 24) selected
1, 49
Character font B (9 × 17) selected
2, 50
Character font B (9 × 24) selected
70
Set 1 track card reader mode
71
Set 2 track card reader mode
72
Set 1,2 track card reader mode
73
Transmits the MSR setting value(s)
68
Set 3 track card reader mode
69
Set 2,3 track card reader mode
66
Set 1,2,3 track card reader mode
99
Cancel MSR reader mode
Magnetic card read out put format
- When MSR set to Track 1 Read mode
START characters
(Max 10 byte)
Max DATA 76 characters
(1Track data)
END characters
(Max 10 byte)
0DH 0AH
- When MSR set to Track 2 Read mode
START characters
(Max 10 byte)
Max DATA 37 characters
(2Track data)
END characters
(Max 10 byte)
0DH 0AH
- When MSR set to Track 3 Read mode
START characters
(Max 10 byte)
Max DATA 104 characters
(3Track data)
END characters
(Max 10 byte)
0DH 0AH
- When MSR set to Track 1/2 Read mode
START characters
(Max 10 byte)
Max DATA 76 characters
(1Track data)
END characters
(Max 10 byte)
0DH 0AH
START characters
(Max 10 byte)
Max DATA 37 characters
(2Track data)
END characters
(Max 10 byte)
0DH 0AH
- When MSR set to Track 2/3 Read mode
START characters
(Max 10 byte)
Max DATA 37 characters
(2Track data)
END characters
(Max 10 byte)
0DH 0AH
START characters
(Max 10 byte)
Max DATA 104 characters
(3Track data)
END characters
(Max 10 byte)
0DH 0AH
Rev. 1.00
ZQ110
Mobile Printer Command Manual
[Example]
- When MSR set to Track 1/2/3 Read mode
START characters
(Max 10 byte)
Max DATA 76 characters
(1Track data)
END characters
(Max 10 byte)
0DH 0AH
START characters
(Max 10 byte)
Max DATA 37 characters
(2Track data)
END characters
(Max 10 byte)
0DH 0AH
START characters
(Max 10 byte)
Max DATA 104 characters
(3Track data)
END characters
(Max 10 byte)
0DH 0AH
Transmits the setting value format
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
80H
128
1 byte
Data
41H ~ 48H
65 ~ 72
1 byte
NUL
00H 0 1 byte
Header
37H
55
1 byte
MSR Setting value
Hex.
Function
41
Track 1/2/3 read mode command (3 Track case)
42
Track 1 read mode AUTO trigger (3 Track case)
43
Track 2 read mode AUTO trigger (3 Track case)
44
Track 3 read mode AUTO trigger (3 Track case)
45
Track 1/2 read mode AUTO trigger (3 Track case)
46
Track 2/3 read mode AUTO trigger (3 Track case)
47
Track 1/2/3 read mode AUTO trigger (3 Track case)
48
MSR not used
Input:
0x1b 0x4d 0x00 0x41 0x42 0x43 0x44 0x45 0x0a 0x1b 0x4d 0x01 0x41 0x42 0x43 0x44 0x45 0xa0 0x1b 0x4d 0x02 0x41 0x42 0x43 0x44 0x45 0a
Output:
ZQ110
Rev. 1.00
Mobile Printer Command Manual
ESC R
[Name] [Format]
[Range] [Default] [Description]
[Example]
Select an international character set.
ASCII
ESC R n
Hex
1B
52 n
Decimal
27
82 n
0 ≤ n ≤ 13 n=0 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
ermany
10
Denmark II
3
U.K
11
Spain II
4
Denmark I
12
Latin America
5
Sweden
13
Korea
6
Italy
Input:
0x1b 0x52 0x00 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x01 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x02 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x03 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x04 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x05 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x06 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x07 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x08 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x09 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a
Rev. 1.00
ZQ110
ZQ110
Mobile Printer Command Manual
0x1b 0x52 0x0a 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x0b 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x0c 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a 0x1b 0x52 0x0d 0x23 0x24 0x40 0x5b 0x5c 0x5d 0x5e 0x60 0x7b 0x7c 0x7d 0x7e 0x0a
Output:
ESC S
[Name] [Format]
[Description]
Select standard mode.
ASCII
ESC S
Hex
1B
53
Decimal
27
83
Switches from page mode to standard mode.
Rev. 1.00
Mobile Printer Command Manual
ESC T
[Name] [Format]
[Range] [Default] [Description]
[Example]
Select print direction in page mode.
ASCII
ESC T n
Hex
1B
54 n
Decimal
27
84 n
0 ≤ n ≤ 3, 48 ≤ n ≤ 51 n=o Selects the print direction and starting position in page mode.
n
Print Direction
Starting Position
0,48
Left right
Upper left
1,49
Bottom to top
Lower left
2,50
Right left
Lower right
3,51
Top bottom
Upper right
Input:
0x1b 0x4c 0x1b 0x57 0x00 0x00 0x00 0x00 0x80 0x01 0x80 0x01 0x1b 0x54 0x00 0x41 0x42 0x43 0x1b 0x54 0x01 0x41 0x42 0x43 0x1b 0x54 0x02 0x41 0x42 0x43 0x1b 0x54 0x03 0x41 0x42 0x43 0x0c
Output:
ZQ110
Rev. 1.00
Mobile Printer Command Manual
ESC W
[Name] [Format]
[Range]
[Default]
[Description]
[Example]
Set relative print position.
ASCII
ESC
W
xL
xH
yL
yH
dxL
dxH
dyL
dyH
Hex
1B
57
xL
xH
yL
yH
dxL
dxH
dyL
dyH
Decimal
27
87
xL
xH
yL
yH
dxL
dxH
dyL
dyH
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)
Horizontal logical origin and vertical logical origin = 0
xL=0, xH =0, yL=0, yH=0 dxL = 128, dxH = 1, dyL = 72, dyH = 3
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. Input:
0x1b 0x4c 0x1b 0x57 0x00 0x00 0x00 0x00 0x80 0x01 0x80 0x01 0x53 0x28 0x58 0x2e 0x59 0x29 0x1b 0x24 0x2c 0x01 0x1d 0x24 0x80 0x01 0x45 0x28 0x58 0x2e 0x59 0x29 0x0c
Output:
ZQ110
Rev. 1.00
Mobile Printer Command Manual
ESC
[Name] [Format]
[Range] [Description]
[Example]
Set relative print position.
ASCII
ESC
n
nH
Hex
1B
5C
nL
nH
Decimal
27
92
nL
nH
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL 255, 0 ≤ nH ≤ 255) ▪ 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. Input:
0x41 0x42 0x1b 0x24 0x50 0x00 0x43 0x0a 0x41 0x42 0x1b 0x5c 0x50 0x00 0x43 0x0a
Output:
ZQ110
Rev. 1.00
Loading...
+ 67 hidden pages