Printek MtP Series Programmer's Manual

Printek MtP Series Programmer's Manual

Mtp series

Advertisement

Quick Links

MtP Series
Programmer's Manual
Printek, Inc.
1517 Townline Road
Benton Harbor, MI 49022
269-925-3200
www.printek.com
Printek Part Number 6035

Advertisement

Table of Contents
loading

Summary of Contents for Printek MtP Series

  • Page 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...
  • Page 2: Acknowledgements

    Zebra, ZPL-II, and Comtec are registered trademarks of Zebra Technologies, ZIH Corp. All other trademarks are the property of their respective owners. © 2004, 2005 By Printek, Inc., 1517 Townline Road, Benton Harbor, MI 49022. All rights reserved. Specifications subject to change without notice.
  • Page 3: Table Of Contents

    TABLE OF CONTENTS Acknowledgements...............................ii Introduction ................................1 Printer Models and Key Features ........................1 Manual Contents .............................1 Selecting Emulations ............................3 Printek Emulation ..............................5 Introduction ..............................5 Control Codes and Escape Sequences Grouped by Function................6 Communications ............................6 Character Size and Line Spacing ......................7 Character Attributes ..........................9 Character Sets ............................9...
  • Page 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.
  • Page 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.
  • Page 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.
  • Page 9: Printek Emulation

    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.
  • Page 10: Control Codes And Escape Sequences Grouped By Function

    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”...
  • Page 11: Character Size And Line Spacing

    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.
  • Page 12 Printek Emulation Set Printer to 22.6 cpi 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.
  • Page 13: Character Attributes

    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. Selection Emphasized Mode Off 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 effect.
  • Page 14: Horizontal Position

    Printek Emulation Horizontal Position Carriage Return 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.
  • Page 15: Vertical Tab Vt

    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: Hexadecimal:...
  • Page 16: Bar Codes

    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.
  • Page 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...
  • Page 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 80 Start C 1 Hexadecimal: 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.
  • Page 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.
  • Page 20: Graphics

    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 Hexadecimal: Codabar Specifications Description: Each symbol starts with Leading Quiet Zone, followed with Start Symbol, Data Symbols, ending with Stop Symbol and Trailing Quiet Zone.
  • Page 21 Printek Emulation Variable Value Description 1 ≤ h ≤ 255 Number of graphic lines in the data to follow. MtP300: 0 ≤ w ≤ 72 Number of bytes per graphic line in the data to MtP400: 0 ≤ w ≤ 104 follow.
  • Page 22: Storing And Printing Graphic Images And Logos

    Printek Emulation 0-255 Multiple “sets” of counters and data may be sent to the printer as necessary to describe the graphic pattern to be printed. The values specified by the counter(s) are interpreted as follows. The counter may be considered as either a signed 7 bit value or an unsigned 8 bit value.
  • Page 23: Black Mark Sensing

    Black Mark Sensing The MtP Series printers can print on preprinted forms on roll media by using a “black mark” to sense the beginning of each form. The black mark is located on the form in a position where the printer’s paper out sensor can be used to detect its presence.
  • Page 24: Black Mark Requirements

    Printek Emulation Black Mark Requirements The position described below is designed to be used when seeking a Black Mark at the beginning of a print job. This position and will require little or no reverse paper motion resulting in the fastest throughput and best printing alignment, and reduces the potential for paper jams.
  • Page 25: Black Mark Sensing Commands

    Printek Emulation 0.9” Tear edge. 0.15” Black Mark should span width of paper for best results. Front (thermal printed) side of form. Optimum Black Mark Position Black Mark Sensing Commands Set Paper Out Sensitivity ESC Q Q n This command sets the number of 0.125mm dot rows of paper motion that can occur after the paper out sensor detects the lack of paper before a paper out condition is displayed and the printer stops printing.
  • Page 26: Gap Sensing

    Printek Emulation Command sent to printer: Escape Sequence: ESC Hexadecimal: Response from printer: Escape Sequence: ESC Hexadecimal: Note that the values for n1 n2, or in this example “;” “7” in the response from the printer, represent the upper and lower nibbles, respectively, of the number of dot rows the paper was moved before detecting the beginning of the black mark.
  • Page 27: Printer Controls

    Printek Emulation Printer Controls Bell Causes the printer's bell to sound. Control code: Hexadecimal: CANCEL Deletes all data in the printer’s input buffer and resets the printer to power up default values. Refer to “Printer Reset Conditions” on page 49 for more information.
  • Page 28: Printer Status Commands

    Printek Emulation Buffer Mode ESC P # ESC P $ Buffer Mode may be used to force the printer to “hold” data until the entire print job is received. If Buffer Mode has been enabled, the printer continues to hold data in its input buffer until an EOT character (Hexadecimal 04) has been received.
  • Page 29 Printek Emulation Query Printer Status Each of these commands returns character strings which provide information regarding the current print buffer status and the magnetic card reader status. Additionally, SYN will return the current battery voltage. Each status is returned as an escape sequence and four ASCII hexadecimal digits followed by a Carriage Return and Line Feed.
  • Page 30 Printek Emulation Example: The following control code will return the status of the print buffer, the magnetic card reader, and the battery voltage. Control Code: Hexadecimal: The three sample status strings that would be returned in response to this command are as follows.
  • Page 31: Magnetic Card Reader

    Printek Emulation Example: This escape sequence requests the printer’s model and revision level. Escape Sequence: Hexadecimal: A sample string returned in response to this command is shown below and indicates that the printer is a model is an MtP400 SL with a Magnetic Card Reader, and is at hardware revision level “A”.
  • Page 32 Printek Emulation in either direction. If the read is successful, the MCR indicator will stay lit momentarily (not flashing) and the printer will transmit the data read and/or the status of the requested read operation. If a swipe does not result in a successful read, the Error Indicator will also begin to flash and an error message as described below will be transmitted.
  • Page 33: Control Code And Escape Sequence Summary

    Printek Emulation Control Code and Escape Sequence Summary Communications (RS-232C Serial Interface Only) End of Text Acknowledge (Transmitted by Printer) Printer Idle (Transmitted by Printer) Transmitter On (Transmitted by Printer) XON (DC1) Transmitter Off (Transmitted by Printer) XOFF (DC3) Character Size and Line Spacing...
  • Page 34 Printek Emulation Black Mark Sensing Set Paper Out Sensitivity ESC Q Q n Forward Seek Black Mark ESC Q F n Reverse Seek Black Mark ESC Q B n Printer Controls Sound Bell Cancel Reset Printer ESC c Print Contrast...
  • Page 35: Mt3 Emulation

    Selecting Mt3 Emulation allows applications written for the Printek Mt3 series printers to operate properly. When using this emulation in an MtP400, the printer matches the print width of the Printek Mt3 by only allowing printing to occur on the leftmost 2.83 inches (576 dots) of the print line.
  • Page 36 Mt3 Emulation Bar Codes Print Bar Code ESC z t n h data Print Bar Code With Human Readable Text ESC Z t n h data Graphics 8-Bit Graphics ESC V n1 n2 data 8 Bit Compressed Graphics ESC v h w c data [c data] [c data] … Storing and Printing Graphic Logos Enter Flash Logo Mode ESC D L...
  • Page 37: O'neil Emulation

    O’Neil Emulation O’Neil Emulation allows the Printek MtP Series printers to respond to commands designed to operate an O’Neil microFlash printer. The commands that are supported are listed below. Communications Same as Printek Emulation Line Printer Mode Character Size and Line Spacing...
  • Page 38: Easy Print Mode

    O’Neil Emulation Easy Print Mode Move Paper Forward {AHEAD:n} Move Paper Backward {BACK:n} Select Line Printer Mode {LP} Print Test Page {TP} Save Graphic {SAVE:n} This command has been added to provide a mechanism for storing graphic images. The image defined in the PRINT command that immediately follows will be stored as a graphic named “n”, where n is a string of up to five characters in length.
  • Page 39 O’Neil Emulation Font Mapping Line Printer Mode Easy Print Mode Font Used 0x20 MF102 10.2 cpi Sans Serif A 0x21 MF204 20.3 cpi Courier 0x22 MF072 10.2 cpi Sans Serif A 0x23 MF055 5.5 cpi Sans Serif A 0x24 MF185 18.5 cpi Courier 0x25 MF226...
  • Page 41: Zpl-Ii Emulation

    ZPL-II Emulation ZPL-II Emulation supports a subset of the Zebra ZPL-II command set and allows the Printek MtP Series printers to respond to commands designed to control a ZPL-II compatible printer. The commands that are supported are listed below. Select Font For Current Field...
  • Page 42 ZPL-II Emulation Bar Code and Font Indices Bar Code Index Interleaved 2 of 5 Code 39 PDF417 EAN-8 UPC-E Code 128 EAN-13 Codabar (ANSI) UPC-A Font Requested Index Font Used Zebra Font A 25.4 cpi Courier Zebra Font B 22.6 cpi Courier Zebra Font C 18.5 cpi Courier Zebra Font D...
  • Page 43: Cpcl Emulation

    CPCL Emulation CPCL Emulation supports a subset of the Comtec CPCL command set and allows the Printek MtP Series printers to respond to commands designed to control a CPCL compatible printer. The commands that are supported are listed below. Note: This emulation is only available in units with firmware version 2.0 or later.
  • Page 44 CPCL Emulation Utility Commands Set Line Printer Font SETLP {font number} {font size} {unit height} Set Line Feed Height SETLF {unit height} Set Horizontal Position X {unit value} Set Horizontal and Vertical Position XY {x unit value} {y unit value} Set Vertical Position Y {unit value} Move Horiz.
  • Page 45: Hex Dump Mode

    Hex Dump Mode Hex Dump provides a way to print, in a readable form, all the data received by the printer. This tool is useful to programmers for debugging programs when sending control codes and escape sequences to the printer. Hex Dump mode may also be used to detect what commands are being sent by a particular software application to help determine which emulation mode is needed for that application.
  • Page 47: Print & Font Samples

    Print & Font Samples These print samples were produced on an MtP400. Print Samples...
  • Page 48 Print & Font Samples Courier Font With International Extended Character Set Courier Font PC Line Drawing Extended Character Set...
  • Page 49 Print & Font Samples Sans Serif Font...
  • Page 51: Ascii Character Tables

    The following table is provided as a reference to the control character descriptions as provided by the ASCII definition. Not all of these definitions are supported by the Printek MtP Series printers and some are emulation dependent. For more information consult the appropriate chapter for the emulation being used.
  • Page 52: Decimal To Hexadecimal To Ascii Conversion Table

    ASCII Character Tables Decimal to Hexadecimal TO ASCII Conversion Table Dec Hex ASCII Dec Hex ASCII Dec Hex Dec Hex 13 XOFF “ & < >...
  • Page 53: Printer Reset Conditions

    Printer Reset Conditions The following list describes what conditions are assumed whenever the printer is powered on, the Setup Menus are exited, or a reset escape sequence is received when the printer is operating in an emulation mode which supports such a sequence. This list includes all variables which may be modified by the user for all emulations even though some emulations cannot modify all the variables shown.
  • Page 55: Glossary

    Glossary 802.11 Wireless networking communication standards created by IEEE. access point An interface between a wireless network and a wired network. Ad-Hoc A Wi-Fi network consisting of only stations (no access point). Same as Peer- to-Peer. ASCII American Standard Code for Information Interchange. authentication The process a Wi-Fi station uses to identify itself to another station.
  • Page 56 Glossary Internet Protocol. A specification for packets, or datagrams, of data and an addressing method to allow the exchange of data with another system. Must be combined with another protocol such as TCP to create a complete connection with the other system. Local Area Network.

This manual is also suitable for:

Mtp300Mtp300 lpMtp400Mtp400 lpMtp400 sl

Table of Contents