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
About This Manual
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.
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 ofcially 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.
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•
Dened as character encoding {0x00..0x1F}•
Designed to control the printer operation•
ASCII Print Characters•
Dened as character encoding {0x20..0x7F}•
Factory default – ISO dened US-ASCII alpha-numeric character set•
Extended Print Characters•
Dened 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.
CharacterControlHex / DecCONTROL ACTION
EOT^D0x04 / 04End Of Text
BS^H0x08 / 08Back Space Remove previous character in
HT^I0x09 / 09Horizontal Tab Tab to 5,9,13,17,21,25,29,33,37
LF^J0x0A / 10Line Feed Advance to beginning of next line.
VT^K0x0B / 11Vertical Tab Advance 5 lines.
FF^L0x0C / 12Form Feed Advance 10 lines.
CR^M0x0D / 13Carriage Return Advance to beginning of next
SO^N0x0E / 14Shift Out Printer defaults to 24 column mode
SI^O0x0F / 15Shift In Printer defaults to 42-column mode.
XON^Q0x11 / 17 Transmitter On Printer to Host: Ready to
AUXON^R0x12 / 18Host to printer: The host is ready to receive
XOFF ^S0x13 / 19Printer on Printer to Host: Printer is on line.
NORM ^T0x14 / 20Printer receiver is off Printer to Host: Print
AUXOFF ^U0x15 / 21Return to default 42 column mode
CANCEL ^X 0x18 / 24Printer to Host: printer is off Transmitted to host
ESC ^[0x1B / 27Cancel and reset printer Print buffer is reset
EXTEND ^\0x1C / 28Escape Escape character precedes graphics
EXTEND OFF ^]0x1D / 29Extended 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 dened to select these character sets.
Command StringSelected 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 dened 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 NAMEPITCHCOLUMNS PER LINE CHARACTER SIZE
Courier Mode 524 CPI normal 488x23ESC+’k’+’5’
Courier Mode 421 CPI normal 429x23ESC+’k’+’4’
Courier Mode 319 CPI normal 3810x23ESC+’k’+’3’
Courier Mode 216 CPI normal 3212x23ESC+’k’+’2’
Courier Mode 112 CPI normal 2416x23ESC+’k’+’1’
Courier Mode 013 CPI rotated 24 (rows per line)14x16ESC+’k’+’0’
MSP Font Mode 424ESC+’F’+’4’
MSP Font Mode 532ESC+’F’+’5’
MSP Font Mode 638ESC+’F’+’6’
MSP Font Mode 742ESC+’F’+’7’
MSP Font Mode 848ESC+’F’+’8’
MSP Font Mode 964ESC+’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 dened 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.
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 StringAction 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 StringCommand Description
Esc – ‘a’ - nWhere n is the number of graphic-line-spacing, in
increments of 0.125 mm. n = { 0..10}
Esc – ‘J’-nWhere 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 StringPrinter Action
Esc-’V’-n1-n28-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’-nPerforms <n*0.125mm> feed.
Esc-V-0x01-0x00’48 bytes of data’ This code prints a single line of graphic.
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 StringPrinter Action
Esc-’v’-height-width-counter-data-counter-data….Prints a compressed graphic
with the specied 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:
0x550x550x000x000xAA0x11
0x550x000x550x550x550x55
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…
DEC271182625585255
HEX0x1B 0x760x020x06 0xFF0x550xFF
DEC031701785025385
HEX0x000x03 0xAA0x11 0x550x000xFD0x55
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 specic 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.
CommandCommand DescriptionPrinter Response
Esc – ‘D’-‘L’-nSelect Flash Logo Mode?
Esc – ‘L’-‘G’-nLoad/Record Graphic Logonone
Esc- ‘L’-‘G’-<OxFF>Stop Loading Graphic LogoD!X
Esc-‘L’-‘g’-nPrint Graphic LogoPrinter 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 dened 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 ofcial specication.
4.1 Code 39 specications
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 ActionCommand 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
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.