Unitech MP200 User Manual

MP200 Mobile Printer
Developer’s Manual
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
Rev. A
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
2
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
3
Preface
No part of this publication may be reproduced or used in any form, or by any electrical or mechanical means, without permission in writing from the manufacturer. This includes electronic or mechanical means, such as photocopying, recording, or information storage and retrieval systems. The material in this manual is subject to change without notice.
© Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved.
All product names mentioned in this manual may be trademarks or registered trademarks of their respective companies and are hereby acknowledged.
Support
Unitech’s professional support team is available to quickly answer your questions or technical-related issues. Should an equipment problem occur, please contact the Unitech regional service representatives nearest you. For complete contact information, please visit the Web sites listed below.
UTA (USA, Canada) http://www.ute.com
UTA (Latin America) http://www.latin.ute.com
General Precautions
• Before using this product be sure to read through this manual. After reading please
keep the manual in a safe place for future reference.
• The information contained is subject to change without notice.
• Unitech is not responsible for any operational results regardless of missing
information, errors or any misprinting in this manual.
• Unitech is not responsible for problems created as a result of using options and consumables not ofcially approved.
• This product is designed for servicing at an Authorized Service Center. Other than
routine maintenance described in this manual, the user should not attempt to repair, service or disassemble this product.
• Incorrect operation, handling, improper supplies and operating environments may
cause damage or otherwise affect the proper operation of this product. Such actions invalidate the product warranty.
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
4
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
5
Table of Contents
Preface
Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 1.0
Printer Character Set
1.0 Unitech MP200 Printer Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Control Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2 Printable Character Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2.1 ASCII and Extended International Character Set { 0x80..0xFF}. . . . . . . . . 8
1.2.2 ASCII and Extended PC Line Draw Character Set{0x80..0xFF} . . . . . . . 8
Chapter 2.0
Printer Font Control
2.0 Unitech MP200 Printer Font Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1 Printer Font Commands to select different character width . . . . . . . . . . . 9
2.2 Character Height Control Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Character Bold/Emphasized Print Control Commands . . . . . . . . . . . . . . 10
2.4 Line Spacing Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Chapter 3.0
8-Bit Dot Addressable Graphic Commands
3.0 8-Bit Dot Addressable Graphic Commands . . . . . . . . . . . . . . . . . . . . . . . .12
3.1 8- Bit Dot addressable Graphic Commands . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 8-Bit Compressed Graphic Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 A quick Review of Graphic Logo Commands. . . . . . . . . . . . . . . . . . . . . . .14
Chapter 4.0
Bar Codes
4.0 Bar Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.1 Code 39 specications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.2 Code 128 specications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.2.1 UCC/EAN-128 specications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.3 Interleaved 2 of 5 specications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.4 UPC/EAN/JAN specications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.5 Codabar Specications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Chapter 5.0
Print Contrast Control
5.0 Print Contrast Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1 Print Contrast Control Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.2 Printer Peak-Power Control Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.3 Printer Battery Voltage Monitor Commands. . . . . . . . . . . . . . . . . . . . . . . .22
5.4 Auto Power Down Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.5 Printer Operating Mode Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.6 Supervisory commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Chapter 6.0
Label and Form Printing; with Black Mark Option
6.0 Label and Form Printing With Black Mark Option . . . . . . . . . . . . . . . . . . .25
6.1 Black Mark Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.2 Black Mark Printer Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Chapter 7.0
Appendix A
A.1.0 Flash Based Font Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
A.1.1 Flash Based Font Download Commands . . . . . . . . . . . . . . . . . . . . . . . . 27
A.1.2 Flash Font Print Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
A.1.3 Default International and PC Line Graphic Font (08w x 23h) . . . . . . . . 30
A.1.4 Default International and PC Line Graphic Font (10w x 23h) . . . . . . . . 31
A.1.5 Default International and PC Line Graphic Font (12w x 23h) . . . . . . . . 32
A.1.6 EXAMPLE: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
A.2.0 Graphic Logo Print Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
A.2.1 Specication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
A.2.2 Graphic Logo Operation MP200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
A.2.3 Generating Graphic Logos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
A.2.4 Uploading Graphic Logos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Chapter 8.0
Appendix B Three Track Magnetic Card Reader Option
B.1.0 Card Specications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
B.2.0 Magnetic Card Read command strings. . . . . . . . . . . . . . . . . . . . . . . . . . 39
B.3.0 Magnetic Card Data Output Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
B.4.0 Magnetic Card Read Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
B.5.0 Interfacing to the Magnetic Card Reader . . . . . . . . . . . . . . . . . . . . . . . .41
Chapter 9.0
Appendix C Printer Congurations
C.1.0 Serial Communication Rate and Parity . . . . . . . . . . . . . . . . . . . . . . . . . .45
C.1.1 Serial Busy Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
C.1.2 XON/XOFF PROTOCOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
C.1.3 RS232C CONNECTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
C.1.4 RS232C TECHNICAL SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . 46
C.2.0 Infrared Communications (IrDA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
2.1 Direct IR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
C.3.0 Bluetooth Communications (Option): . . . . . . . . . . . . . . . . . . . . . . . . . . .47
C.3.1 The Bluetooth™ interface power modication . . . . . . . . . . . . . . . . . . . . . 48
C.3.2 MANUAL POWER OFF mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
C.3.3 EXTENDED CONTINUOUS ON mode . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Chapter 10.0
MP200 QUICK REFERENCE
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
6
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
7
Chapter 1.0
Printer Character Set
1.0 Unitech MP200 Printer Character Set
Character Sets can be grouped into 3 categories – Control Characters, ACII Print Characters and Extended Print Characters.
Control Characters• Dened as character encoding {0x00..0x1F}Designed to control the printer operation• ASCII Print Characters• Dened as character encoding {0x20..0x7F}• Factory default – ISO dened US-ASCII alpha-numeric character set• Extended Print Characters• Dened as character encoding {0x80..0xFF}• Factory default – “International” and User Selectable “PC Line Draw” character set.• ONLY ONE of the Extended Character Sets may be selected per print line
1.1 Control Characters
The following set of characters is reserved, for printer control. The printer also provides single byte responses to inform the host of the printer status.
Character Control Hex / Dec CONTROL ACTION
EOT ^D 0x04 / 04 End Of Text
BS ^H 0x08 / 08 Back Space Remove previous character in
HT ^I 0x09 / 09 Horizontal Tab Tab to 5,9,13,17,21,25,29,33,37
LF ^J 0x0A / 10 Line Feed Advance to beginning of next line.
VT ^K 0x0B / 11 Vertical Tab Advance 5 lines.
FF ^L 0x0C / 12 Form Feed Advance 10 lines.
CR ^M 0x0D / 13 Carriage Return Advance to beginning of next
SO ^N 0x0E / 14 Shift Out Printer defaults to 24 column mode
SI ^O 0x0F / 15 Shift In Printer defaults to 42-column mode.
XON ^Q 0x11 / 17 Transmitter On Printer to Host: Ready to
AUXON ^R 0x12 / 18 Host to printer: The host is ready to receive
XOFF ^S 0x13 / 19 Printer on Printer to Host: Printer is on line.
NORM ^T 0x14 / 20 Printer receiver is off Printer to Host: Print
AUXOFF ^U 0x15 / 21 Return to default 42 column mode
CANCEL ^X 0x18 / 24 Printer to Host: printer is off Transmitted to host
ESC ^[ 0x1B / 27 Cancel and reset printer Print buffer is reset
EXTEND ^\ 0x1C / 28 Escape Escape character precedes graphics
EXTEND OFF ^] 0x1D / 29 Extended print All characters following this
Table 1.0 - Control Characters
Printer sends an EOT character when buffer
is empty; tells the host device that printer is in
Transmitted after initial power up or clearing of
Buffer is full or other error condition. Host to
Printer: host device transmitter off.
and printer placed in initial power-up default
and printer operating modes. Refer to escape
command are printed double high.
Extended print off/Normal print All characters
following this command are printed normal
idle mode.
print buffer.
or to the beginning of next line.
line.
receive data.
data.
printer jam or paper reload.
before power down or paper out.
settings.
command section.
height.
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
8
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
9
1.2 Printable Character Sets
!
The printer has two resident character sets – namely Courier International and Courier PC Line Draw. Two commands are dened to select these character sets.
Command String Selected Character Set
Esc – ‘F’ –‘ 1’ Courier International Character Set
Esc – ‘F’ –‘ 2’ Courier PC Line- Draw Character Set
Table 1.1 - Printable Character Sets
Note: Printer default Character Set is set to Courier International Character Set
1.2.1 ASCII and Extended International Character Set { 0x80..0xFF}
ESC-‘F’-‘1’ command string selects the International character set. Printer defaults on
this character set on power up.
Figure 1.0 International Character Set
1.2.2 ASCII and Extended PC Line Draw Character Set{0x80..0xFF}
ESC-‘F’-‘2’ command string selects PC Line-draw character set.
Figure 1.2 – PC Line Draw Character Set
Chapter 2.0
Printer Font Control
2.0 Unitech MP200 Printer Font Control
Four commands are dened with the Unitech MP200 printer, which allow the user to
select different typefaces, change the character height, width as well as add emphasis
to the printed text if desired. The following sections explain in detail how to modify
each of the features listed in this paragraph.
2.1 Printer Font Commands to select different character width
Listed below are the fonts installed and the three-character command string to select them. Please note that the MSP fonts are not downloadable and can not be changed. For complete details on downloadable fonts refer to the Downloadable Flash Fonts section in this manual.
FONT NAME PITCH COLUMNS PER LINE CHARACTER SIZE
Courier Mode 5 24 CPI normal 48 8x23 ESC+’k’+’5’
Courier Mode 4 21 CPI normal 42 9x23 ESC+’k’+’4’
Courier Mode 3 19 CPI normal 38 10x23 ESC+’k’+’3’
Courier Mode 2 16 CPI normal 32 12x23 ESC+’k’+’2’
Courier Mode 1 12 CPI normal 24 16x23 ESC+’k’+’1’
Courier Mode 0 13 CPI rotated 24 (rows per line) 14x16 ESC+’k’+’0’
MSP Font Mode 4 24 ESC+’F’+’4’
MSP Font Mode 5 32 ESC+’F’+’5’
MSP Font Mode 6 38 ESC+’F’+’6’
MSP Font Mode 7 42 ESC+’F’+’7’
MSP Font Mode 8 48 ESC+’F’+’8’
MSP Font Mode 9 64 ESC+’F’+’9’
(WxH)
Table 2.0 – Installed Fonts
Note: Default printer settings are set to 21 CPI, 42 columns per line.
SOFTWARE COMMAND
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
10
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
11
2.2 Character Height Control Commands
A single byte control command is dened to control the printed character height.
Normal height of a character is 23. EXTEND control character (^ \) selects a double
height, which is equal to 46. EXTEND OFF control character (^]) selects a normal
height. The command is applied to all the characters on a line following the control character.
Character Control Hex/Dec Control Action
EXTEND ^\ 0x1C/28 Extended Print
All characters following this
command is printed double high.
EXTEND OFF ^] 0x1D/29 Extended Print Off/Normal Print
All characters following this
command are printed normal
height.
Table 2.1 – Height Control Commands
Note: Default printer settings are set to Normal Print.
2.3 Character Bold/Emphasized Print Control Commands
A line of text using a resident font may be emphasized with the three character
commands from the table below.
Command String Action Taken
Esc – ‘U’ – ‘1’ Enable emphasized print starting with the
current text line
Esc – ‘U’ – ‘0’ Disable emphasized print starting with the
current text line.
Table 2.2 – Character Emphasis Print Control
2.4 Line Spacing Commands
To set the line spacing between successive printed text lines and the number of line
feeds desired at the beginning of a line, use the three character commands from the
table below. It is important to mention that while printing PC Line-Draw characters, the line spacing must be set to zero, thus allowing graphic characters on successive lines
to be connected.
Command String Command Description
Esc – ‘a’ - n Where n is the number of graphic-line-spacing, in
increments of 0.125 mm. n = { 0..10}
Esc – ‘J’-n Where n is the number of desired 0.125mm graphic
line feeds n = {0..255}.
Table 2.3 – Character Line Spacing
Note: Printer default setting is 3-dot line spacing after each printed text line. Please
note that when a character has the ‘’ around it, this means that it has to be types
exactly as shown. On the other hand characters that don’t have the ‘’ around it like the “n” in the example above have to be entered while the Alt key on the keyboard is being
held.
Note: Default Printer Settings are set to Esc – U - 0
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
12
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
13
Chapter 3.0
8-Bit Dot Addressable Graphic Commands
3.0 8-Bit Dot Addressable Graphic Commands
The Unitech MP200 printer uses a single line thermal head, which has 384 heating elements, pitched at 0.125 mm. The total print width is 48 mm. The 8-bit graphic commands enable control of each one of the 384 heating elements and advancing of the paper by increments of 0.125 mm.
To select the 8-bit graphic mode the user application must issue the ESC-V command,
next the host application sends two bytes to indicate the number of the graphic lines
desired, followed with a packet of 48 bytes for each graphic line. The printer prints the
graphic line and advances to the next line automatically.
3.1 8- Bit Dot addressable Graphic Commands
The following table displays the 8-bit dot addressable graphic commands and the
printer actions. It also illustrates the Commands with an example. Please note that
characters <> ‘’ and ‘-‘ are not part of the command string.
Command String Printer Action
Esc-’V’-n1-n2 8-bit Graphic mode is selected.<n1> and <n2> is a 16-bit
integer indicating the number of graphic lines of 48 characters
each to be received. Valid Graphic character sets are from 0x00 to 0xFF Hex using bits 0-7.
Esc-’J’-n Performs <n*0.125mm> feed.
Esc-V-0x01-0x00 ’48 bytes of data’ This code prints a single line of graphic.
Table 3.0 – 8-bit Dot addressable Graphic Commands
3.2 8-Bit Compressed Graphic Commands
The two tables below describe the command used to print compressed graphics as
well as explain in detail each of the components of the command string.
Command String Printer Action
Esc-’v’-height-width-counter-data-counter-data…. Prints a compressed graphic
with the specied attributes.
Table 3.1 – 8-bit Compressed Graphic Commands
Graphic String
Function of the component
Component
HEIGHT(# of lines) An eight bit value representing the number of dot-lines
contained in the following data set
WIDTH (# of bytes in
each line)
An eight bit value representing the number of bytes to be contained in each dot-line of the following data set
An Eight bit value which describes how the following data will be processed
For Signed Values
{127 ≥ Counter ≥ 0 } Process the next (Counter + 1 ) bytes
of data as 8 bit graphics.
{0 > Counter ≥ -128} Repeat the next single byte of data ((
-Counter) + 1) times.
For Unsigned Values
{ 127 ≥ Counter ≥ 0} Process the next (Counter+1) bytes of
data as 8 bit graphics
{128 ≥ Counter ≤ 255} Repeat the next Singe byte of data, ((
256 – Counter)+1) times
Counter
Table 3.2 - Components of the compressed graphics command string
COMPRESSED GRAPHICS EXAMPLE:
The following graphics data is to be printed:
This data may be represented in hexadecimal:
0x55 0x55 0x00 0x00 0xAA 0x11
0x55 0x00 0x55 0x55 0x55 0x55
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
14
Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.
15
The RLE compressed graphics command:
Chapter 4.0
ESC ‘v’ height width counter data…
DEC 27 118 2 6 255 85 255
HEX 0x1B 0x76 0x02 0x06 0xFF 0x55 0xFF
DEC 0 3 170 17 85 0 253 85
HEX 0x00 0x03 0xAA 0x11 0x55 0x00 0xFD 0x55
3.3 A quick Review of Graphic Logo Commands
Graphic Images can be stored in the form of a logo. This allows the printer to store
them in memory locations and print them as needed. The Unitech MP200 printer
currently supports 8 logos. Single Byte Command is used to select a specic logo location. In the commands below ‘n’ can be any number from 0 – 7. For more detailed description of the Graphic Logo Commands please refer to the Flash Logo Commands
section in this document.
Command Command Description Printer Response
Esc – ‘D’-‘L’-n Select Flash Logo Mode ?
Esc – ‘L’-‘G’-n Load/Record Graphic Logo none
Esc- ‘L’-‘G’-<OxFF> Stop Loading Graphic Logo D!X
Esc-‘L’-‘g’-n Print Graphic Logo Printer Prints Logo n
Table 3.3 – Graphic Logo Commands
Bar Codes
4.0 Bar Codes
The Unitech MP200 printer supports several bar code symbologies. Two commands
are dened for printing bar codes.
Bar Code Command
Formats
Esc- ‘z’-n1-n2-L-[data] Prints Bar code only n1 bar code type
Esc- ‘Z’-n1-n2-L-[data] Prints Bar code and
All barcodes are printed with the minimum bar width (“x-dimension”) of 0.250mm, in compliance with the respective ofcial specication.
4.1 Code 39 specications
Description: Each symbol starts with Leading Quiet Zone, followed with
Start Symbol, Data Symbols, ending with Stop Symbol and Trailing Quiet Zone.
Character set: 36 alphanumeric (0-9, A-Z) and ‘-’ ‘space’ ‘$’ ‘/’ ‘+’ ‘%’ Note: Only capital letters are supported. Elements per symbol: 9 (5 bars, 4 spaces) Character density: 6.25 CPI Bar width: 0.25mm (narrow to wide ratio of 1:3). Characters per line: 9 with auto center (maximum).
Printer Action Command String Components
‘1’ Code 39
ASCII visible
‘2’ Code 128,UCC/EAN- 128
‘3’ Interleaved 2 of 5
‘4’ UPC/EAN/JAN ‘5’ Codabar n2 number of character bytes in data array 1-255 L Height of bar code printed in increments of 0.125mm
Table 4.0 – Bar Code Command Formats
Loading...
+ 18 hidden pages