Inhaltszusammenfassung zur Seite Nr. 1
MtP Series
Programmer’s Manual
Printek, Inc.
1517 Townline Road
Benton Harbor, MI 49022
269-925-3200
www.printek.com
Printek Part Number 6035
Inhaltszusammenfassung zur Seite Nr. 2
Manual Revision Notes: Released as Part Number 5886 in October, 2004 • Original release for the MtP400 Series printers. • Based on MtP Series firmware version 1.7. Released as Part Number 6035 in March, 2005 • Added support for the MtP300 Series printers. • Based on MtP Series firmware version 2.0. Acknowledgements Printek is a registered trademark of Printek, Inc. Bluetooth is registered trademark of Bluetooth SIG, Inc. O’Neil is a trademark of O’Neil Produ
Inhaltszusammenfassung zur Seite Nr. 3
TABLE OF CONTENTS Acknowledgements...............................................................................................................................................ii Introduction ..........................................................................................................................................................1 Printer Models and Key Features ................................................................................................................
Inhaltszusammenfassung zur Seite Nr. 4
Inhaltszusammenfassung zur Seite Nr. 5
Introduction This manual is intended to be used by software developers for the purpose of creating and/or modifying applications to make use of the special features offered by the Printek MtP Series of mobile thermal printers. This section of the manual describes the various models of printers and the features supported by this manual and the information contained in other sections. For printer set up and operating information for users, system integrators and information technology pers
Inhaltszusammenfassung zur Seite Nr. 6
Introduction O’Neil Emulation provides a summary of the commands that are supported when emulating an O’Neil microFlash4t printer. ZPL-II Emulation provides a summary of the commands that are supported when emulating a Zebra ZPL-II compatible printer. CPCL Emulation provides a summary of the commands that are supported when emulating a Comtec CPCL compatible printer. Hex Dump describes the printer’s output while in Hex Dump mode, and how it may be used to debug software problems. Print
Inhaltszusammenfassung zur Seite Nr. 7
Selecting Emulations The emulations offered by Printer Mobile Thermal Printers allow for a great deal of language commonality between the various series of Printek printers as well as compatibility with systems and software that have been created for printers offered by other manufacturers. The Printek MtP Series printers offer Printek, O’Neil, ZPL-II and CPCL emulations plus a Printek Mt3 emulation to allow the printers to work with existing three inch applications. The printer’s defaul
Inhaltszusammenfassung zur Seite Nr. 8
Inhaltszusammenfassung zur Seite Nr. 9
Printek Emulation Introduction This section describes the control codes and escape sequences comprising Printek emulation. This emulation may be selected by setting “Emulation” to “Printek” in the appropriate interface setup menu, or via software with the ESC ESC 1 sequence. While this emulation is selected, control codes and escape sequences from other emulations are not available. Control codes and escape sequences are used to control printer operation. An ASCII control code is a si
Inhaltszusammenfassung zur Seite Nr. 10
Printek Emulation Control Codes and Escape Sequences Grouped by Function Communications This section describes various methods of controlling the flow of data to and from the printer. Unlike other sections describing printer commands, the descriptions in this section indicate whether the command is one that is “received” by the printer, or “transmitted” by the printer. Note that some handshaking methods are only supported by the RS-232C Serial interface and are not supported for the IrD
Inhaltszusammenfassung zur Seite Nr. 11
Printek Emulation Transmitter Off (Transmitted by Printer, Serial Only) XOFF (DC3) When enabled for the Serial Interface (refer to the Operator’s Manual), this character is transmitted by the printer to indicate that the printer’s input buffer is nearly full and that the host computer should stop sending data. When the printer is able to accept data again, it will transmit DC1/XON. Control Code: XOFF Hexadecimal: 13 Character Size and Line Spacing Select Character Pitch ESC K n Sets t
Inhaltszusammenfassung zur Seite Nr. 12
Printek Emulation Set Printer to 22.6 cpi SI Sets the character size to 22.6 cpi. This is equivalent to sending ESC k 4. This command must be sent prior to any printable characters on the line. If sent after printable characters are received, a Carriage Return and Line Feed will be inserted and a new line started before the command takes effect. Control Code: SI Hexadecimal: 0F Set Printer to 22. 6 cpi DC4 Sets the character size to 22.6 cpi. This is equivalent to sending ESC k 4.
Inhaltszusammenfassung zur Seite Nr. 13
Printek Emulation Character Attributes Select Emphasized Mode ESC U n Selects emphasized printing mode. Emphasized mode may be used to highlight text by giving it a more bold appearance. n Selection 0 Emphasized Mode Off 1 Emphasized Mode On This command must be sent prior to any printable characters on the line. If sent after printable characters are received, a Carriage Return and Line Feed will be inserted and a new line started before the command takes e
Inhaltszusammenfassung zur Seite Nr. 14
Printek Emulation Horizontal Position Carriage Return CR Causes the current line to be printed and the paper to advance to the next line. The current print position is set to the beginning of the next line. Note that either a Carriage Return (CR) or a Line Feed (LF) will cause both functions to be performed. However, a Carriage Return and Line Feed “pair” (CRLF) will only perform a single line feed. Control code: CR Hexadecimal: 0D Backspace BS Removes the previous character from t
Inhaltszusammenfassung zur Seite Nr. 15
Printek Emulation Note that either a Carriage Return (CR) or a Line Feed (LF) will cause both functions to be performed. However, a Carriage Return and Line Feed “pair” (CRLF) will only perform a single line feed. Control code: LF Hexadecimal: 0A Variable Size Line Feed ESC J n Causes paper to be moved forward n x 0.125mm. 0 ≤ n ≤ 255. A Carriage Return is also performed which places the current print position at the beginning of the next line. Example: The following escape sequence p
Inhaltszusammenfassung zur Seite Nr. 16
Printek Emulation Bar Codes The MtP Series printers will automatically print several types barcode symbols using the following command. The specification for each bar code type is also described. Print Bar Code ESC a t n h data Printek printers support several bar code symbologies including Code 39, Code 128, UCC/EAN-128, Interleaved 2 of 5, UPC/EAC/JAN, and Codabar. The following table describes the Bar Code command. Details for each specific bar code type, including examples, are fo
Inhaltszusammenfassung zur Seite Nr. 17
Printek Emulation Code 128 Specifications Description: Each symbol starts with Leading Quiet Zone, followed with Start Symbol, Data Symbols, ending with Stop Symbol and Trailing Quiet Zone. Character set: 256 ASCII via three Code Sets and an “Extend” function. Elements per symbol: 6 (3 bars, 3 spaces) Character density: 9.1 CPI Bar width: 0.25mm The first character position in the data portion of the escape sequence must contain a “Start Character”, as defined below. This Start
Inhaltszusammenfassung zur Seite Nr. 18
Printek Emulation Example 2: The following escape sequence will print a bar code using numeric pairs of numeric characters containing “123456” that is 10mm high without human readable text. Escape Sequence: ESC z 2 7 80 Start C 1 2 3 4 5 6 Hexadecimal: 1b 7A 32 07 50 89 31 32 33 34 35 36 Example 3: The following escape sequence will print the same data as in Example 1, “ABC123”, using Code Sets that allow a mixture of alphanumeric character and numeric pairs. The bar code will be 20mm
Inhaltszusammenfassung zur Seite Nr. 19
Printek Emulation Elements per symbol: 4 (2 bars, 2 spaces) Character density: 14.5 CPI Bar width: 0.25mm Characters Note: When specifying the bar code height that h represents the total height including a 1.25mm drop bar pattern printed after the barcode pattern. Example 1: The following escape sequence will print a UPC-A bar code containing “12345678901” that is 30mm high followed by human readable text. Note that a check digit “9” is also sent, but will be ignored and reca
Inhaltszusammenfassung zur Seite Nr. 20
Printek Emulation Example: The following escape sequence will print a bar code containing “123456” that is 10mm high followed by human readable text. Escape Sequence: ESC Z 3 6 80 1 2 3 4 5 6 Hexadecimal: 1B 5A 33 06 50 31 32 33 34 35 36 Codabar Specifications Description: Each symbol starts with Leading Quiet Zone, followed with Start Symbol, Data Symbols, ending with Stop Symbol and Trailing Quiet Zone. Character set: 0-9, $, -, :, /, ., + and the start/stop pairs of A/T, B/N, C/*