Home
        MtP Series & FieldPro Programmer`s Manual
         Contents
1.     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     18    Printek Emulation    The counter may be considered as either a signed 7 bit value or an unsigned 8 bit value     For signed 7 bit values  O lt c lt 127 Process the next  c   1  bytes as simple 8 bit graphic patterns    128 lt c lt  l Repeat the next byte   c   1  times     For unsigned 8 bit values  0  lt  c  lt  127 Process the next  c 1  bytes as simple 8 bit graphic patterns   128 lt c lt 255 Repeat the next byte  256   c   1  times     Example  The following escape sequence will print a graphic image that is two lines long and six bytes  48  bits  wide as shown below  Note that the outlines for each bit are shown only to explain this example and that  only the image represented by the black    bits    will actually be printed      A ol Ban K  K  Po      In the following escape sequence the data bytes are shown in binary  The hexadecimal values for each byte are  shown on the second line     ESC v 2 6 255 01010101 255 10101010 3 00010001 00100010 00110011 01000100 25310011001                      1B 76 02 06 FF 55 FF AA 03 11 22 33 44 FD 99  Vector Graphics ESC  gt  id lines size data  ESC  gt  id p data t    Note  This feature is only available in units with firmware version 2 8 or later     Vector graphics may be used to print images of straight lines  curved lines  or even mor
2.    For more information consult the appropriate chapter for the emulation being used     Control    Code    NUL  SOH  STX  ETX  EOT    Hexadecimal    Value    Description    Null   Start of Heading   Start of Text   End of Text   End of Transmission  Enquiry   Acknowledge   Bell   Backspace   Horizontal Tabulation  Line Feed   Vertical Tabulation  Form Feed   Carriage Return   Shift Out   Shift In   Data Link Escape  Device Control 1  XON   Device Control 2  Device Control 3  XOFF   Device Control 4  Negative Acknowledge  Synchronous Idle   End of Transmission Block  Cancel   End of Medium  Substitute   Escape   File Separator   Group Separator  Record Separator   Unit Separator    53    ASCII Character Tables    Decimal to Hexadecimal TO ASCII Conversion Table    Dec Hex ASCII Dec Hex ASCII Dec Hex Dec Hex  0 00 NUL 64 40   128 80 192 CO  1 Ol SOH 65 41 A 129 81 193 Cl  2 02 STX 66 42 B 130 82 194 C2  3 03 ETX 67 43 C 131 83 195 C3  4 04 EOT 68 44 D 132 84 196 C4  5 05 ENQ 69 45 E 133 85 197 C5  6 06 ACK 70 46 F 134 86 198 C6  7 07 BEL 71 4 G 135 87 199 C7  8 08 BS 72 48 H 136 88 200 C8  9 09 HT 73 4 I 137 89 201 C9  10 0A LF 74 4A J 138 8A 202 CA  ll OB VT 75 4B K 139 8B 203 CB  12 0C FF 76 4C L 140 8C 200 CC  13 0D CR 77 4D M 14  8D 205 CD  14 OE SO 78 4E N 142 8E 206 CE  15 OF SI 79 4F O 143 8F 207 CF  16 10 DLE 80 50 P 144 90 208 DO  17 11 XON 81 51 Q 145 91 200 DI  18 12 DCH 82 52 R 146 92 210 D2  19 13 XOFF 83 53 S 147 93 211 D3  20 14 DC4 84 54 T 148 94 212 D4  21 15 
3.    Form Feed   Backspace   I O Handshake  Printer Responds With ACK  Use Format File   Define Format File   Begin a Label Print Session  Single Utility Command  Multiple Utility Command    44    GAP SENSE    BAR SENSE    PCX  x   y   data    CONCAT  x   y   font   size   offset   data        font   size   offset   data  ENDCONCAT   VCONCAT  x   y   font   size   offset   data        font   size   offset   data  ENDCONCAT   LEFT  end    CENTER  end    RIGHT  end    CIRCLE  x   y   r   thick    LOGO  logoname   x   y   wscale   hscale    SAVE  logo ID   logo name     SETLP  font number   font size   unit height    SETLF  unit height    X  unit value    XY  x unit value   y unit value    Y  unit value    RX  unit x value to move relative to present position    RY  unit y value to move relative to present position    LMARGIN  dots to offset from left    SETBOLD  value    SETSP  unit to separate characters    SETFF  max feed   skip length    SETLP TIMEOUT  time in 1 8 seconds    PAGE WIDTH  PW  width    BARCODE  B  type j  width   ratio   height    x  ty   data    VBARCODE  VB  type    width   ratio   height    x  ty   data    BOX  x0   yO   x1   yl   width    LINE  L  x0   y0   x1   yl   width    TONE  level    PCX  x   y   data    RXY  x  ty   data     ESC g  00   width   CR    LF   FF   BS   ETX     USE FORMAT    UF  format name      DEFINE FORMAT   DF  format name       offset  200 200  height   qty      U1  single utility command      UTILITIES    U   multiple utility command
4.    This command causes the printer to move the paper forward up to n dot rows to seek the beginning of a black  mark on a form where 0  lt n  lt  255 0 250mm dot rows  If the black mark is found  the printer responds with the  escape sequence ESC Q     n  n2 where n  n2 represent the number of dot rows the paper was moved before  the black mark was detected  If the black mark is not found  the printer responds with ESC Q 0 0 n  n2 where  nl n2 represent the number of dot rows moved before the seek was aborted     Example  The following escape sequence commands the printer to move the paper forward up to 200   0 250  mm dot rows in search of a black mark on the form  This example also shows the printer   s response that it  found the beginning of the black mark in 183 dot rows     Command sent to printer     Escape Sequence  ESC Q F 200  Hexadecimal  IB 51 4 CN    Response from printer     Escape Sequence  ESC Q       7  Hexadecimal  IB 51 3F 3F 3B 37    Note that the values for n  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  Each of these values has been    or   ed    with 30 Hexadecimal in order to provide the    character shown  As a result  the value represented by         is 176  and the value represented by    7    is 7   indicating that the paper was moved 183 dot rows  or 45 75mm     Reverse S
5.  28 00 41  00 41 003A  00 1F 00 7E  00 4A 00 53  00 4D 00 61  00 47 00 58  00 5D 00 40  00 57 00 3C  00 5A 00 5C  00 63 00 5E  00 7D 00 56  00 7C 00 5E  00 8B 00 59  00 B8 00 51  00 B2 003D  00 C9 00 4C  00 C5 00 57  00 CB 00 58  00 D6 00 55  00 E2 00 53  00 F7 00 49    00    5B    00 2B 00 38  00 3F 004A  00 24 00 74  00 45 00 54  00 4F 00 60  00 4D 00 58  00 5A 00 36  00 5A 00 47  00 60 00 58  00 69 00 62  00 7F 00 56  00 7E 00 59  00 8B 00 5D  00 B8 00 57  00 B4 00 37  00 C7 00 53  00 CD 00 56  00 D3 00 5C  00 D3 00 53  00 E5 00 51  00 F1 00 48    id p data t    1 p   A variable number of prefix characters that may be inserted by some signature capturing  devices  These characters may not include a pair of adjacent characters that would  represent a valid hexadecimal value  00 FF  at any position in the string  These characters  will be ignored by the printer and are not required     data   xmsb xlsb ymsb ylsb   8 bit X position and 8 bit Y position of each node  xy   Each X  and Y value is sent as a pair of ASCII characters that represent the hexadecimal value of  the position  Maximum values  x   127  y  127  Multiple lines are drawn in a single  graphic image by setting the most significant bit of ymsb   1  0x80   This indicates the  beginning of a new line and will cause no line segment to be drawn between the previous  node this node     Terminating character  The vector graphic command is terminated by any ASCII control  character   lt  0x20  such as a Carriage Retur
6.  32 35 31 39    1 F 3 I  31 46 33 31    263 F  32 36 33 46    3 D 3 3  33 44 33 33    3 C 2 3  33 43 32 33  111F  31 31 31 46    0D2D  30 44 32 44    3   BR 3 S  33 42 33 35    Printek Emulation        CR    OD    Graphic images including logos may be stored permanently in the printer   s flash memory so that they may be  printed as often as needed without having to retransmit the graphic image each time  A total of IMB of Flash  memory is allocated to storing graphic images  The number of images that may be stored depends on the size  of the images     An Image is programmed into the printer s memory using a series of steps  or commands  as shown below     Step 1   Step 2     Step 3   Step 4     Step 5     Send the Load Graphic Image command to the printer   Send the image using up to 2 436 graphic lines as described in the Graphics section on page 17   The  8 Bit Compress Graphics command is not supported when defining logos    Send the Store Graphic Image command to the printer     Wait for the printer to respond with    D     Hexadecimal 44  indicating that the printer has begun    storing the image   Wait for the printer to respond with an Exclamation Point character  Hexadecimal 21  indicating that  the image has been stored     21    Printek Emulation    Load Graphic Image ESC LGn    This command indicates that graphic commands describing an image to be stored is to follow  The value of n is  used to identify this particular graphic image and may be any printable ASCII
7.  Level    Magnetic Card Reader  Read Magnetic Card Data    Cancel Magnetic Card Data Read Command    ESC QQn  ESC QFn  ESC QBn    BEL   CAN   ESC Pn   ESC P     ESC P     EOT   ESC In   ESC ESC n  ESC T type id size name data  ESC c  ESC   0  ESC   1    ESC P   STX  SYN  ESC P    ESC P     ESCMnIn2tCR  ESC C    33    Mt3 Emulation    Selecting Mt3 Emulation allows applications written for the Printek Mt3 series printers to operate properly   When using this emulation in an MtP400 or FieldPro RT43  the printer matches the print width of the Printek    Mt3     For information on selecting emulations using Escape Sequences  please refer to    Selecting Emulations    on  page 3  For information selecting emulations through the printer   s control panel set up  please refer to the    printer s Operator   s Manual     The following summary lists the commands supported when Mt3 Emulation is selected  For more detailed  information  please refer to the Mt3 Programmer   s Manual     Note  Items marked with an asterisk     are Printek extensions  Refer to the Printek Emulation section of    this manual     Communications  RS 232C Serial Interface Onl    End of Text   Acknowledge  Transmitted by Printer   Printer Idle  Transmitted by Printer   Transmitter On  Transmitted by Printer   Transmitter Off  Transmitted by Printer     Character Size and Line Spacing  Select Character Pitch    Set Printer to 12 cpi  Set Printer to 21 cpi  Set Printer to 21 cpi  Double High On  Double High Off   
8.  Printer Mode  Print Test Page   Save Graphic    Print Text Line Bar Code Graphic Image Line    BEL  CAN  ESC    ESC EZ     AHEAD n     BACK n     LP     TP     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      PRINT  GlobalOptions  Qrow column name FieldOptions data y    GlobalOptions  BACK  DEMAND  QUANTITY  QSTOP  STOP  ROT270    FieldOptions  Fonts   HMULTr  HMn   VMULTn  VMn   Bar Codes     HIGHn  Hn   WIDEn  Wn   Graphics   HMULTn  HMn   VMULTn  VMn   Lines     length z  Ln   thick n  Tn     Note  In addition to the standard fonts  specifying    MFDEF    will select the printer   s default font for the  currently selected Format  Refer to the printer   s operator   s manual for more information     Line Printer and Easy Print Modes    Query Commands    Print Status Request ESC  ST    Configuration Request ESC  CF    Battery Condition Request ESC BT    Version Request ESC VR    Memory Information Status Request ESC MY    Print Head Information Request ESC  PH    IrDA Configuration Information Request ESC  IR    Font List Request ESC  FN    Graphic List Request ESC  GR    Format List Request ESC  FM    Demand Quantity Remaining Request ESC  DQ    Cancel Demand Printing ESC CN    Reset Printer ESC  RE       38    Magnetic Card Reader Commands    O   Neil Emulation    
9.  character  0x21  lt  n  lt  0x7E    This same value is then used to print the graphic     The graphic data is sent using Graphic commands as described on page 17  The image may consist of up to  2 436 graphic lines  The loading process will terminate when 2 436 lines have been received  or upon receipt  of the Store Graphic Image command     Example  This escape sequence specifies that the following graphic command s  will define graphic image  AE    Escape Sequence  ESC L G A Graphics Data  Hexadecimal  IB 4C 47 4l Graphic commands as described on page 17     Note 1  This command may be used to store graphic images that can later be recalled and printed using  CPCL  ZPL II  and O   Neil Emulation Easy Print commands  The name used in the Easy Print  command would be    LOGOn     or    LOGOA    for the above example     Note 2  As of printer firmware revision 2 8  a special    Print Promo    feature is available that may be enabled  through the printer   s control panel  This feature allows an image that is stored with the value of  n   0x24           to automatically be printed at the end of each print job     Refer to the Options configuration section in the printer   s operator   s manual for more information     Note 3  As of printer firmware revision 3 1  a special    Print Header    feature is available that may be enabled  through the printer   s control panel  This feature allows an image that is stored with the value of  n   0x3F           to automatically be printe
10.  data that be transferred in a given period of time     The rate at which characters are transmitted over a serial interface  This is also  often referred to as bits per second     Base two numbering system  Digits are represented by the characters 0 and 1   A single binary digit    A definition for short range radio frequency communications    Any node on a network that requests services from another node  server      A single  non printing character which is used to control the configuration or  operation of the printer     The horizontal spacing of characters  Measured in cpi    Characters per inch    The line upon which the next character will be printed    The column on the current line where the next character will be printed   Value or configuration assumed when the printer is powered on or reset     Dynamic Host Configuration Protocol  A method used to centrally control the  assignment of IP addresses on a network     Dots per inch  Generally used to refer to graphics density or resolution     String of characters beginning with the escape  ESC  character which is used  to control the configuration or operation of the printer  The characters which  are part of this string are not printed     A group of characters of a given shape or style     Base sixteen numbering system  Digits are represented by the characters 0  through 9 and a through f     Institute of Electrical and Electronic Engineers    A Wi Fi network consisting of stations connecting to a wired network or 
11.  escape sequence as  described below     Select Emulation ESC ESC n    This command selects emulation mode n by which future commands will be interpreted as described in the  following table  The selected mode will be in effect until another Select Emulation command is received or  until the printer is reset via an escape sequence appropriate for the current emulation  or the printer is manually  reset by entering exit the front panel set up mode or cycling power on the printer     Once the emulation has been selected  please refer to the section of this manual that describes the commands  available for that emulation     Example  The following escape sequence will set the printer to Mt3 Emulation     Escape Sequence  ESC ESC 4    Hexadecimal  1B 1B 04  np Emulation  0 Test  reserved for factory use   1 Printek Emulation  2 O  Neil Emulation  3 ZPL II Emulation  4 Mt Emulation  5 CPCL Emulation  6   Hex Dump Mode    Previously Selected Emulation    Default Emulation    If more than one emulation has been selected  ESC ESC   will return to the previously selected emulation  This  is particularly useful when the previous emulation is unknown  Please beware that the memory  stack  is only  one level deep     ESC ESC   will return to the default emulation  as specified by the    Emulation    value in the Interface setup  menu     Note  Numeric values may be specified as either a binary or an ASCII value  As such  the example above  may be sent as either 1B 1B 04 or 1B 1B 34     P
12.  id    on the  top line and the name on the bottom line     The selected command will be executed when the   Increment Button is released   type   Type of command file   T   Text  a string of ASCII characters     Note  Using other values for type is not supported and may cause unpredictable  results     id  A single printable ASCII character used to identify the command file     size  Four byte value containing the number of command file bytes to follow  This size includes the  16 character name     name  Sixteen character command name  This name will be displayed on the printer   s front panel  when selecting a command file s  to perform  Names shorter than 16 characters must be  padded at the end with enough spaces to total 16 characters     data  Number of command bytes plus sixteen as specified by size     Example  This command will store a Text command file with the id of    1     the name    TestCmdFile    to display  on the printer  and will cause the printer to print    Hello world    followed by a CRLF     Escape Sequence  ESC T T 1 29 T e s t C m d F i 1 e SP  Hexadecimal  IB 54 54 31 0000001D 54 65 73 74 43 6D 64 46 69 6C 65 20   Continued  SP SP SP SP H e 1 1 o SPw o r 1 d CR LF    20 20 20 20 48 65 6C 6C 6F 20 77 6F 72 6C 64 OD 0A    26    Printek Emulation    Reset ESC c  ESC   0    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 55 for more information     Escap
13.  on     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  Refer to the appropriate section for the emulation being    used     Variable    Emulation   Line Printer Easy Print  Character Pitch Font  Extended Character Set  Double High   Double Wide   Double High Wide  Emphasized   Line Spacing   Left Margin   Right Margin   Print Contrast   Buffer Mode   Text in an Incomplete Line  Input Buffer   Magnetic Card Reader    Reset Condition    According to Interface Setup  Line Printer Mode  According to Format Setup  International   Off   Off   Off   Off   According to Format Setup  According to Format Setup  According to Format Setup  According to Format Setup  Disabled   Discarded   Cleared   Pending Read Canceled    55    802 11  access point    Ad Hoc    ASCII  authentication  bandwidth    baud rate    binary   bit  Bluetooth  client    control code    character pitch   cpi   current line   current print position  default   DHCP    dpi  escape sequence  font    hexadecimal    IEEE    infrastructure    interface    Glossary    Wireless networking communication standards created by IEEE   An interface between a wireless network and a wired network     A Wi Fi network consisting of only stations  no access point   Same as Peer   to Peer     American Standard Code for Information Interchange   The process a Wi Fi station uses to identify itself to another station   The amount of
14.  printable characters are  received  a Carriage Return and Line Feed will be inserted and a new line started before the command takes  effect     Example  The following escape sequence will set emphasized printing mode to On     Escape Sequence  ESC U 1  Hexadecimal  IB 55 31    Printek Emulation    Character Sets    Select Extended Character Set ESC Fn    Selects the character set to be used when printing extended characters  hexadecimal 80 FF      pn Character Set  1 International Character Set  2 PC Line Drawing Character Set    When using the PC Line Drawing Character Set  the Text Line Spacing should be set to zero  Doing so will  allow the vertical line characters to form continuous lines     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     Please refer to    Print  amp  Font Samples    on page 49 for information on the specific characters contained in each  character set     Example  The following escape sequence will select the International character set     Escape Sequence  ESC F 1  Hexadecimal  IB 46 31    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
15.  printer uses a single line thermal print head with elements spaced at 0 125mm  The maximum number of  graphic data bytes allowed for each model printer is shown for each command  After each line of graphic data   the paper is automatically advanced 0 125mm to position the paper for the next graphic line  To advance the  paper by additional graphic increments without printing  refer to    Variable Size Line Feed    on page 11     8 Bit Graphics ESC   h w data    This command may be used to print any graphics pattern  The height and width of the graphic image may be  specified as shown below  Each line must contain the same number of bytes  width      The image will be printed starting from the left margin and up to the right margin  If the width specified will  not fit within the margins  the right side of the image will be truncated              Variable Value Description  h 1 lt h lt 255 Number of graphic lines in the data to follow   w MtP300  0 lt w lt  72 Number of bytes per graphic line in the data to    MtP400  0    wx 104   follow  Each byte contains 8 bits   FieldPro RT43  0x wx 104  data A line of graphic data bytes h x w bytes per line are required   where the value of each byte  is 0 255                      Printek Emulation    Example 1  The following escape sequence will print a horizontal line 2mm long starting 2mm from the left  margin     Escape Sequence  ESC   1 4 0 0 255 255  Hexadecimal  IB 23 01 04 00 00 FF FF    Example 2  The following escape sequence 
16.  separated by CRLF   PRINT    CPCL Emulation    Additional Printer Control  Select Emulation ESC ESC n      Supported barcode types   UPCA UPCE EAN13 EAN8 39 39C IZOF5 IZOF5C  128  JCCEAN128 CODABAR CODABARI6     Additional command extensions     45    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     When the printer is operating in Hex Dump mode  control characters and escape sequences sent to the printer  are not recognized or processed  The hexadecimal representation of the control characters and escape  sequences will appear in the hex dump  but no other special processing will occur     To select Hex Dump mode  please refer to your printer   s Operator   s Manual     A sample hex dump for the MtP400 is shown below  Note that each line shows sixteen characters  first in  hexadecimal format and then in printable ASCII format  Certain  common nonprinting characters are  represented by special characters such as         and  gt   The Escape character is represented by a diamond shape      to help identify the beginning of command strings  All other unprintable ASCII characters  0x00 0x1F  are  represented by a perio
17.  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 the print buffer  Backspacing can be done up to  but not beyond  the  beginning of the line     Control code  BS  Hexadecimal  08    10    Printek Emulation    Horizontal Tab HT    Advances to the next horizontal tab stop  If no tab stop exists between the active column and the right margin   the print position will advance to the beginning of the next line     Horizontal tab stops are associated with columns  not absolute physical positions  Changing the character  spacing or font will change the physical position of the tab stops  Default tab stops are set to every fourth  column  i e  5 9 13 17 21 25 29 33 37         Control code  HT  Hexadecimal  09  Set Horizontal Margins ESC H r    Sets the left and right margins in millimeters    and r may be set from zero up to the line length   Example  The following escape sequence will set both the left and right margins to 10mm  0 394         Escape Sequence  ESC H 10 10  Hexadecimal  IB 48 0A OA    Vertical Position    Line Feed LF    Causes the current line to be printed and or advances the paper to the next line  The total distance the paper 1s  advanced is based on the vertical size of the current font plus the Text Line Spacing     A Carriage Return is also performed which places the current print position at the beginning 
18. 0 or later     CPCL Commands   Terminate and Print File   Form Feed   Place Text on Label   Place Text on Label  Rotated 90   CCW  Place Text on Label  Rotated 180     Place Text on Label  Rotated 270   CCW  Place Mult  Same Size Text Lines on Label    Set Font Magnification  Print Bar Code    Print Vertical Bar Code  Print PDF 417 Bar Code    Print Human Readable Text Under Bar Code  Place a Rectangular Box on Label   Place a Line on Label   Place Expanded Graphics on Label    Place Vertical Expanded Graphics on Label  Place Compressed Graphics on Label  Place Vertical Compressed Graphics on Label    Set Print Contrast Level   Set Print Tone Level   Set Page Width   Enable Pace Mode   Disable Pace Mode   Wait n 8 Seconds   Set Maximum Print Speed   Set Paper Feed Distance Before Printing  Set Paper Feed Distance After Printing  Sound Control Panel Bell for n 8 Seconds    PRINT  FORM  max feed   skip length   TEXT  T  font   size   x   y   data   TEXT90  VTEXT  T90  VT  font   size   x   y   data   TEXT180  T180  font   size   x   y   data   TEXT270  T270  font   size   x   y   data   MULTILINE  ML  height   text   font   size   ix  ty   data   ENDMULTILINE  ENDML  SETMAG  w   hj  BARCODE  B  type    width   ratio   height    x  ty   data   VBARCODE  VB  type    width   ratio   height   ix  ty   data   BARCODE PDF 417  x   y   XD n   YD n  C n   S n   data   ENDPDF  BARCODE TEXT  BT  font number   font size   offset   BOX  x0   y0   x1   yl   width   LINE  L  x0   y0   x1   y
19. 2 n3 n4 n5  lt data gt   AFD n   AFN n   AFO n1 n2   AFR   AFS or SI   AGB n1 n2 n3 n4 n5  AGC n1 n2 n3   AGD n1 n2 n3 n4 n5  HS   NID n1 n2   ML n1   AMM ni   AS n1 n2   JSN     MA    JZY    LH n1 n2    LR    LTn   AMCY   AMD n1   AME n1 n2   APMN      PQ n1 n2 n3 n4   APR    PW nl    41    ZPL II Emulation    Set absolute contrast    Select ZPL II    Adjust tear off position    Start Format  Recall Graphic  Recall Format  End Format    Additional Printer Control    Select Emulation    Bar Code and Font Indices    Bar Code  Interleaved 2 of 5  Code 39   PDF417   EAN 8   UPC E   Code 128  EAN 13   Codabar  ANSI   UPC A    Font Requested  Zebra Font A    Zebra Font B  Zebra Font C  Zebra Font D  Zebra Font E  Zebra Font F  Zebra Font G    Note  The font used will be equal to  or smaller than  the font requested with preference given to the Sans Serif    font     42    Index    C A m O so        tS    Index        m    O Z  gt     Font Used   25 4 cpi Courier  22 6 cpi Courier  18 5 cpi Courier  18 5 cpi Courier     SD nl   ASZ2   TA nl   AXA or STX  AXG n1 n2 n3  SXF n1 n2 n3  AXZ or ETX    ESC ESC n    10 2 cpi Sans Serif A    5 5 cpi Sans Serif A    10 7 cpi Sans Serif A    CPCL Emulation    CPCL Emulation supports a subset of the Comtec CPCL command set and allows Printek 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 
20. CDEF abcdef    Courier 12 7 cpi    Courier 12 7 cpi Emphasized    Courier 12 7 cpi Double High  Courier 12 7 cpi Double High Emphasized    49    Print  amp  Font Samples    Courier Font With International Extended Character Set       0123456789 ABCDEF  2 LZEESEIAE  x   EZ  318123456 789   lt   gt 9  4 0 ABCDEFGHIJKLNNO  5 P D R 5 TI U WAY Z Ess  6 abecdefghijklnno  Wipers tuumwmxuzlti    8 F i  amp              rc  amp   amp     i i i A A  9 E s  amp                            g    B x fF  Ala          n   a a ni b lb k i  lt      BIS F b s TAA A 01 D b A Z ya m  Cle Vx 16  a   i na K dtu  D  v          p   l la i   o 1 P  El   j G      a n pi 30 0 t          Fipt oeoff r nf v a a a ID     Courier Font PC Line Drawing Extended Character Set  0123456789ABCDEF                                                                 mm Oo D R o o       50    Print  amp  Font Samples    Sans Serif Font    0123456789 ABCDEF        30 12345 67 8 9    4   ABCDEFGH    JK LMNO         SIPPQRSTUVWXYZIL    Imno    k    s tu vw xy z       j    a b c de f ghi     lp q  8            0       ED    r      h       2 0    ti    fx    n       U S         1    C lA AA A A AE                   U    DIDNOOOOOx oU    UYPB       51    ASCII Character Tables    ASCII Control Code Definitions    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 Printek printers and some are emulation dependent
21. CR LF 1 344 bytes in input buffer     Hexadecimal  IB 42 30 30 34 32 OD OA   MCR Status  ESC M 0 1 2 4 CR LF Twelve seconds remain to read 1  amp  2   Hexadecimal  1B 4D 30 31 32 34 OD OA   Battery Voltage  ESC V 7 1 2 3 CR LF Battery Voltage is 7 123 Volts  Hexadecimal  IB 56 37 31 32 33 OD OA    28    Printek Emulation    Query Printer Firmware Version ESC P      This command returns a string containing the printer   s firmware version designation as three ASCII digits  The  three digits may be interpreted by adding a decimal point between the first two digits as shown in the example  below     Example  This following escape sequence requests the printer   s firmware version     Escape Sequence  ESC P    Hexadecimal  IB 50 28    A sample string returned in response to this command is shown below and indicates that the firmware version is     1 00        Firmware Version  ESC   1 0 0 SPACECR LF  Hexadecimal  IB 28 31 30 30 20 OD 0A    Query Printer Model and Hardware Revision Level ESC P     This command returns a string containing three digits that represent the printer model and a single character  that represents the printer s hardware revision level  The printer models indicated by the three digits are as  follows           Value Printer Model Value Printer Model Value Printer Model  300  MtP300 400 MtP400 4FO  FieldPro RT43  302 MtP300 with MCR 401 MtP400 SL 4F2  FieldPro RT43 with MCR  304 MtP300 LP 402 MtP400 with MCR    403 MtP400 SL with MCR  404 MtP400 LP    Exampl
22. Character     as    defined below  This Start Character defines the Code Set to be used to interpret the following data characters     Each Code Set has special character values defined that allow switching to a different Code Set s  within the                   bar code   Start Character   Code Set   Characters Sent To Printer   Characters Read By Scanner  20    5F 20    5F  ii a 60     7F 00    32  88 B 20     7F 20     7F  A Numeric Character Pairs  m S pump ee 30  30     39  39  00 99 Dec                        All character values shown in Hexadecimal     Special data characters are available for each Code Set that allow switching to a different Code Set and other  special functions  These characters have values of 80 86 Hexadecimal and their functions in each Code Set are  defined below                                Character Value Code Set A Code Set B Code Set C   Hex    80 FNC3 FNC3     81 FNC2 FNC2     82 Shift Shift     83 Switch to Code Set C Switch to Code Set C     84 Switch to Code Set B FNC4 Switch to Code Set B  85 FNC4 Switch to Code Set A Switch to Code Set A  86 FNCI FNCI FNCI                         FNC 1  Reserved for EAN use    FNC 2  Concatenate the data in this bar code with the data in the next bar code read  Not  supported by all bar code readers    FNC 3  Reset the bar code reader  Any other data in this bar code will be discarded    FNC 4  Extended characters  The bar code reader will add 128  80 Hex   to each character     Example 1  The followi
23. Configure Reader ESC CCR n   Configure MCR ESC  CMR n   Enable MCR ESC  ME    Disable MCR ESC MD    Zero MCR Data ESC  MZ    Read MCR Status ESC RS    Read MCR Data ESC  MR    Printer Controls  Select Emulation ESC ESC n  Font Mapping  Line Printer Mode Font Used   0x20 10 2 cpi Sans Serif A Bold   0x21 20 3 cpi Sans Serif A   0x22 10 2 cpi Sans Serif A   0x23 5 5 cpi Sans Serif A   0x24 18 5 cpi Sans Serif A   0x25 22 6 cpi Courier   0x26 10 7 cpi Sans Serif A Bold   0x28 10 7 cpi Sans Serif A   0x29 10 7 cpi Sans Serif A   0x2a 15 6 cpi Courier   0x2b 20 3 cpi Sans Serif A   0x41 34 0 cpi Sans Serif A   0x42 34 0 cpi Sans Serif A   0x43 25 4 cpi Courier   0x44 18 5 cpi Sans Serif A   0x45 14 5 cpi Courier Bold   0x46 12 7 cpi Courier Bold   0x47 12 7 cpi Courier Bold   0x48 10 2 cpi Courier Sans Serif A   0x49 10 2 cpi Courier Sans Serif A Bold   Ox4a 10 2 cpi Courier Sans Serif A Bold   0x4b 10 2 cpi Courier Sans Serif A   0x5b 22 6 cpi Courier   0x5d 12 7 cpi Courier   0x60 10 7 cpi Sans Serif A   0x61 12 7 cpi Courier   0x62 12 7 cpi Courier   0x63 12 7 cpi Courier   0x7a 25 4 cpi Courier    Notes  1  In Easy Print Mode  the font used will be equal to  or smaller than  the font requested with    preference given to the Sans Serif font     2  Any downloaded font with and ID of an internal font will override the internal font     39    ZPL II Emulation    ZPL I Emulation supports a subset of the Zebra ZPL II command set and allows Printek printers to respond to  commands d
24. NAK 85 5 U 149 95 213 DS  22 16 SYN 86 56 V 150 96 214 D6  23 17 ETB 87 57 W 151 97 215 D7  24 18 CAN 88 58 X 152 98 216 D8  25 19 EM 89 59 Y 153 99 217 D9  26 1A SUB 90 5A Z 154 9A 218 DA  27 1B ESC 91 SB   155 9B 219 DB  28 IC FS 92 SC   156 oC 220 DC  29 1D GS 93 5D    157 9D 221 DD  30 IE RS 94 SE   158 9E 222 DE  31 IF US 9 SFO 159 op 223 DF  32 20 SP 96 60   160 AO 224 EO  3 21   9 6l a 161 Al 225 El  34 2    9 62 b 162 A2 226 E2  35 23   9 6 c 163 A3 227 E3  36 24   100 64 d 164 A4 228 F4  37 25   101 65    165 A5 229 E5  38 26  amp  102 66 f 166 A6 230 E6  39 27   103 67 g 167 A7 231 E7  40 28   100 68 h 168 A8 232 E8  4 29   105 69 i 169 A9 233 E9  42 2A   106 6A  j 170 AA 234 EA  43 2B   107 6B k 171 AB 235 EB  44 2C 108 6C 1 172 AC 236 EC  45 2D   109 6D m 173 AD 237 ED  46 2E   110 6E n 174 AE 238 EE  47 2F   111 6F o 175 AF 239 EF  48 30 0 112 70 p 176 BO 240 FO  49 31 1 13 71 o 177 Bl 24 Fl  50 32 2 114 72 r 178 B2 242 F2  51 33 3 115 73 s 179 B3 243 F3  52 34 4 116 74 t 180 B4 244 F4  53 35 5 117 75 u 181 B5 245 FS  54 36 6 118 76 v 182 B6 246 F6  55 37 7 119 7 w 183 B7 247 F7  56 38 8 120 78 x 184 B8 248 F8  57 39 9 121 79 y 185 B9 249 F9  58 3A    122 7A z 186 BA 250 FA  59 3B   123 7B    187 BB 251 FB  60 3C  lt  124 7C   188 BC 252 FC  61 3D   125 7D   189 BD 253 FD  62 3E  gt  126 7E   190 BE 254 FE  63 3F   127 7F DEL 191 BF 255 FF    54    Printer Reset Conditions    The following list describes what conditions are assumed whenever the printer is powered
25. O PRINTEKMOBILE     MtP Series  amp  FieldPro    Programmer   s Manual    Printek  Inc   1517 Townline R  Benton Harbor  MI 49022  269 925 3200    www printek com    Manual Revision Notes     Released as Part Number 5886 in October  2004  e Original release for the MtP400 Series printers   e Based on MtP Series firmware version 1 7     Released as Part Number 6035 in March  2005  e Added support for the MtP300 Series printers   e Based on MtP Series firmware version 2 0     Released as Part Number 6035 Rev  A in October  2005  e Updated to reflect MtP Series firmware version 2 8     Released as Part Number 6035 Rev  B in February  2006  e Recommended black mark position dimension changed from 0 9    to 0 7092      e Updated to reflect MtP Series firmware version 2 9     Released as Part Number 6361 Rev  A in December  2006  e Added FieldPro RT43 support   e Updated to reflect firmware version 3 2     Released as Part Number 6361 Rev  B in March  2007  e Updated to reflect firmware version 3 6     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 Product Development  Inc    Palm OS is a trademark of PalmSource  Inc    PrintBoy is a registered trademark of Bachmann Software   PrinterCE is a registered trademark of Fieldsoftware Products   Wi Fi is a registered trademark of the Wi Fi Alliance   Windows is a registered trademark of Microsoft Corporation   Zebra  
26. Set Text Line Spacing    Character Attributes  Select Emphasized Mode    Character Sets  Select Extended Character Set    Horizontal Position  Carriage Return  Backspace   Horizontal Tab   Set Horizontal Margins      Vertical Position   Line Feed   Variable Size Line Feed  Variable Size Reverse Line Feed  Vertical Tab   Form Feed  ESC E       ETX  ACK   EOT   XON  DCI   XOFF  DC3     NORM  DC4    FS   GS   ESC an  ESC An    ESC Un    ESC Fn    CR  BS  HT  ESC H r    LF  ESC Jn  ESC QJn  VT   FF  ESCE    35    Mt3 Emulation    Bar Codes  Print Bar Code  Print Bar Code With Human Readable Text    Graphics  8 Bit Graphics    8 Bit Graphics    8 Bit Compressed Graphics    Storing and Printing Graphic Logos  Enter Flash Logo Mode    Load Graphic Logo  Store Graphic Logo  Print Graphic Logo    Black Mark Sensing   Set Paper Out Sensitivity  Forward Seek Black Mark  Reverse Seek Black Mark    Printer Controls  Sound Bell     Cancel   Print Contrast   Peak Power Mode  Enable Buffer Mode  Disable Buffer Mode  Print Buffer Contents  Buffer Mode   Select Emulation    Reset Printer     Turn Off Printer      Printer Status Commands  Print Battery Status  Query Print Buffer  amp  MCR Status    Query Print Buffer  MCR   amp  Battery Voltage Status    Query Printer Firmware Version    Query Printer Model and Hardware Revision Level    Magnetic Card Reader  Read Magnetic Card Data    Cancel Magnetic Card Data Read Command    36    ESC z tn h data  ESC Z tn h data    ESC V nl n2 data  ESC   h 
27. ZPL II  and Comtec are registered trademarks of Zebra Technologies  ZIH Corp     All other trademarks are the property of their respective owners        2004  2005  2006 By Printek  Inc   1517 Townline Road  Benton Harbor  MI 49022  All rights reserved     Specifications subject to change without notice     TABLE OF CONTENTS    GEA CARA Het ii  Acknowledgements    uy eee oeuvre A s ene A A Cn el qay Ve V BR NEU US vy Ye eS Sai geed eee ii   eren EE 1  Printer Models and Key Features                   esee eene nen reete nnne n rene enne ni nen rennen eren 1  Manual Contents  22 2  en WR aed dae tee O ie 1  Selecting EMU  AIONS eiii A A di ii 3  AAN IAN T  A 5  InttOduct Ons e A A e e e dide ie e A 5  Control Codes and Escape Sequences Grouped by Funcnon  eene 6  Commu  nic  tions     ccce citet et icd c e e RE Ue eee e d e RE e eT HE T AEN 6  Character Size and Line Spacing enne enne nnne terere neris T  Character Attributes ora t ie rena e ent tie vai beue 9  Character att tene Soe  see m desti ed tit sepes 10  Horizontal Position  eee A ee EE RE 10   Vertical P  SIfl  n       ie tanen ee ta dee e nun e HET tea e EATER TR Re tea SU heilen 11   Bat Codes ELEM I ld Pons oad age tot oy  dd toasts 13  Graphics 20 Kee Or ee ree Ps a O Me en ee tua ta 17   Storing and Printing Graphic Images and Logos                   sess 21   Bl  ck Mark Sensing  302 008 ev ee et i RETE ee i I c TREE NU RE 23   Black Mark Requirements    neces tecti e eec He He eerte ae e Tee eie 23   Black Mar
28. alent to sending ESC K 0x03     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  SO  Hexadecimal  OE  Set Printer to 22 6 cpi SI    Sets the character size to 22 6 cpi  This is equivalent to sending ESC K 0x0A     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  OF  Set Printer to 22  6 cpi DC4    Sets the character size to 22 6 cpi  This is equivalent to sending ESC K 0x0A     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  DC4  Hexadecimal  14    Double High On FS    Enables double high printing  This will cause the characters and the interline spacing to be doubled in height   Double high printing will be in effect until the Double High Off  GS  command is received     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 comm
29. and takes  effect     Control Code  FS  Hexadecimal  1C  Double High Off GS    Disables double high printing     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 GS  Hexadecimal  1D    Printek Emulation    Double High Wide On DC2 D    Enables double high wide printing   This command causes all characters on the current line to printed double high and double wide     Control Code DC2 D  Hexadecimal  12 44    Double High Wide Off DC2d    Disables double high wide printing   This command cancels double high wide printing for the current line     Control Code DC2 d  Hexadecimal  12 64    Set Text Line Spacing ESCan    Sets the number of dot rows the paper is to be moved after printing each row of text  Each dot row is 0 125mm   0 lt n lt l0     Example  The following escape sequence sets the line spacing to zero  as needed when printing line drawing  characters when the PC Line Drawing character set is selected      Escape Sequence  ESC a 0  Hexadecimal  IB 61 00    Character Attributes    Select Emphasized Mode ESC Un    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     Emphasized Mode On    This command must be sent prior to any printable characters on the line  If sent after
30. ar code height that   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  recalculated by the printer     Escape Sequence  ESC Z 4 12 240 1 2  3 4 5 6 7 8 9 0 1 9  Hexadecimal  1B SA 34 0C FO 31 32 33 34 35 36 37 38 39 30 31 39    Example 2  The following escape sequence will print a UPC E bar code containing    1234567    that is 30mm  high followed by human readable text     Escape Sequence  ESC Z 4 7 240 1 2 3 4 5 6 7  Hexadecimal  IB 5A 34 07 FO 31 32 33 34 35 36 37    Example 3  The following escape sequence will print an EAN JAN 8 bar code containing    1234567    that is  30mm high followed by human readable text  Note that a check digit    9    is also sent  but will be ignored and  recalculated by the printer     Escape Sequence  ESC Z 4 8 240 1 2 3 4 5 6 7 9  Hexadecimal  IB 5A 34 08 FO 31 32 33 34 35 36 37 39    Example 4  The following escape sequence will print an EAN JAN 13 bar code containing    123456789012     that is 30mm high followed by human readable text  Note that a check digit    9    is also sent  but will be ignored  and recalculated by the printer     Escape Sequence  ESC Z 4 13 240   2 3 4 5 6 7 8 9 0 1 2 9  Hexadecimal  IB 5A 34 08 FO 31 32 33 34 35 36 37 38 39 30 31 32 39    Inte
31. ch ESC Kn    Selects the character pitch according to the following table     Columns Per Line    Z  hex  Character Pitch Font Matrix MiP300     MtP400  amp  FieldPro RT43  00 5 5 cpi Sans Serif 37 x 60 13 22  01 10 2 cpi Sans Serif 20 x 26 28 41  02 10 7 cpi Sans Serif 19 x 26 30 43  03 12 7 cpi Courier 16 x 23 36 52  04 13 5 cpi Courier 15 x 23 38 55  05 14 5 cpi Courier 14x 23 41 59  06 15 6 cpi Courier 13 x 23 44 64  07 16 9 cpi Courier 12 x 23 48 69  08 18 5 cpi Courier 11 x 23 52 75  09 20 3 cpi Courier 10 x 23 57 83  0A 22 6 cpi Courier 9 x 23 64 92  0B 25 4 cpi Courier 8 x 23 72 104  0C 16 9 cpi Sans Serif 12 x 23 48 69  0D 18 5 cpi Sans Serif 11 x 23 52 75  OE 20 3 cpi Sans Serif 10 x 23 57 83  OF 4 2 cpi Sans Serif   48 x 60 12 17  ZS Downloaded Fonts      Only available in firmware version 3 2 and later      For downloaded fonts  use font ID  First font   A  second   B  etc     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     Example 1  The following escape sequence will select the 12 7 cpi Courier font     Escape Sequence  ESC K 3  Hexadecimal  IB 4B 03    Example 2  The following escape sequence will select the first downloaded font     Escape Sequence  ESC K A  Hexadecimal  1B 4B 4    Printek Emulation    Set Printer to 12 7 cpi so    Sets the character size to 12 cpi  This is equiv
32. d     54 68 69 73 20 69 73 20 61 20 73 61 6D 70 6C 65 This is a sample  20 68 65 78 20 64 75 6D 70 20 74 6F 20 69 6C 6C  hex dump to ill  75 73 74 72 61 74 65 20 68 65 78 20 64 75 6D 70 ustrate hex dump  66 6F 72 6D 61 74 OD OA OC 00 00 00 00 1B 1B 01 format  r    99     The format of the Hex Dump output for the MtP300 models will vary slightly due to constraints of printing on  the smaller width paper     Note  ETX ACK handshake will not operate properly in Hex Dump mode  When an ETX is received by the  printer  its hexadecimal representation will be printed in the hex dump  but no ACK will be sent to the  host computer  When using the printer in Hex Dump mode using the RS 232C Serial Interface  it is  recommended that the printer be configured for RTS CTS handshake or XON XOFF handshake     Note  The Hex Dump feature is only available in units with firmware version 2 0 or later     47    Print  amp  Font Samples    These print samples were produced on an MtP400     Print Samples    Sans Serif 5 5 c  012345 ABCDEF ab    Sans Serif 10 2 cpi  012345 ABCDEF abcdef    i  def    Sans Serif 10 7 cpi  012345 ABCDEF abcdef    Courier 12 7 cpi  012345 ABCDEF abcdef    Courier 13 5 cpi  812345 ABCDEF abcdef    Courier 14 5 cpi  012345 ABCDEF abcdef    Courier 15 6 cpi  012345 ABCDEF abcdef    Courier 16 9 cpi  012345 ABCDEF abcdef    Courier 18 5 cpi  012345 ABCDEF abcdef    Courier 20 3 cpi  012345 RBCDEF abcdef    Courier 22 3 cpi  012345 ABCDEF abedef    Courier 25 4 cpi  812345 AB
33. d    S     42 and 53 hex   and SPACE is the space  character  20 hex   An ASCII Control Code Table is provided on page 53 for your convenience  If you have  any doubt about how to interpret a documented control code or escape sequence  refer to the hexadecimal  representation in the example  The examples may also be helpful when analyzing a Hex Dump printed by the  printer  Please refer to the    Hex Dump     section of this manual on page 47     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 IrDA  Bluetooth  or Wi Fi interfaces     End of Text  Received by Printer  ETX    If    ETX ACK    is set to    On    in the Serial Interface Menu  refer to the Operator   s Manual   then processing of  an ETX from the printer   s input buffer causes the printer to transmit an ACK to the host computer     Since the ETX may be a legal value within an escape sequence  it is the user s responsibility to ensure that an  ETX used for data handshake is not sent within an escape sequence  The user must also ensure that the  maximum block 
34. d at the beginning of each print job     Refer to the Options configuration section in the printer   s operator   s manual for more information     Store Graphic Image ESC L G DEL    This command terminates the Load Graphic Image mode and causes the graphic image to be stored in the  printer   s Flash memory     After this command is received  the printer will transmit a    D     Hexadecimal 44  and begin saving the image   Once the image is stored  the printer will transmit a an Exclamation Point  Hexadecimal 21   The image may  now be printed using the Print Graphic Image command     Caution  The printer power must remain on throughout this entire process     Escape Sequence  ESC L G DEL  Hexadecimal  1B 4C 47 FF    Print Graphic Image ESCLgn    This command will print a graphic image that was previously stored using the Load Graphic Image command   Example  The following escape sequence will print the graphic logo stored as    A        Escape Sequence  ESC L g A  Hexadecimal  IB 4C 67 41    22    Printek Emulation    Black Mark Sensing    The MtP and FieldPro 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  Additionally  the MtP    LP    models are capable of sensing a black  mark on the back side of the form and for sensing the gap between labels  The recommended positio
35. e  This escape sequence requests the printer   s model and revision level     Escape Sequence  ESC P    Hexadecimal  IB 50 29    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        Printer Version  ESC   4 0 3 A CR LF  Hexadecimal  IB 29 34 30 33 41 OD OA    29    Printek Emulation    Magnetic Card Reader    Read Magnetic Card Data ESC M nl n2 t CR    If the optional Magnetic Card Reader  MCR  is installed in the printer  this command instructs the printer to  read data from a card such as a credit card or driver   s license  The MCR is a three track reader designed to read  magnetically encoded data conforming to ANSI ISO 7810  7811 standards  The card specifications are listed  below                                Track 1 Track 2 Track 3  ISO1  IATA    ISO2  ABA    ISO3  MINTS   Recording Density 210 bpi 75 bpi 210 bpi  Data Bits 7 5 7  Characters Per Track 79 40 107  Card Thickness 0 030     0 003     0 76mm  0 08mm                 The Read Magnetic Card Data command to allows an application to request that the MCR reads one  two  or  three tracks simultaneously within a specified number of seconds  where n  n2 are ASCII digits that specify the  number of seconds to wait for the user to successfully swipe a card before a    timeout    error occurs  and t is an  ASCII digit specifying the tracks to be read     Specifying a tim
36. e Sequence  ESC c    Hexadecimal  IB 63   Escape Sequence  ESC   0   Hexadecimal  1B 2A 00   Turn Printer Off ESC   1    Causes the printer to turn itself off    Escape Sequence  ESC   1  Hexadecimal  1B 2A 001    Printer Status Commands    Print Battery Status ESC P      This command will cause the printer to print the current battery voltage and charge status followed by a  Carriage Return and Line Feed     If a partial line exists in the buffer  it will be printed prior to printing the battery information     A    Escape Sequence  ESC P  Hexadecimal  IB 50 SE    Query Printer Status STX  SYN    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  The hexadecimal digits are nibbles that have been    OR   ed    with 0x30  The statuses returned  for each command are as follows                       Command Returned Strings Comment   STX ESC B bl b2 b3 b4 CR LF Print Buffer Status  ESC M m si s2 t CR LF MCR Status   SYN ESC B bl b2 b3 b4 CR LF Print Buffer Status  ESC M m si s2 t CR LF MCR Status  ESC V vl  v2 v3 v4 CR LF Battery Voltage Status       27       Printek Emulation    Print Buffer Status String    The print buffer status will be retuned as a four digits representing the number byt
37. e complex shapes such  as a person   s signature  Each shape is defined as one or more    line segments     A curved line is simply several  shorter  straight lines connected together  To define such a line  the data sent to the printer contains the  endpoints  or nodes  of each line segment and the printer will draw the entire line by drawing line segments  between the nodes     Note that the image will be automatically scaled  up or down  to fit between the currently defined left and right  margins     Vector graphic data may be sent in two different formats as specified by id and as described below   id lines size data    0 lines   Eight bit value indicating the number of lines to be drawn  This is the number of distinct  lines  not line segments     size   wmsb wlsb hmsb hlsb   16 bit width and 16 bit height of the grid that the image will be  specified in  The image does not have to be this large  but nodes may not be specified  outside of the grid size  Maximum values  w   65 535  h   32 767     data   xmsb xlsb ymsb ylsb   16 bit X position and 16 bit Y position of each node  Multiple  lines are drawn in a single graphic image by setting the most significant bit of ymsb   1   0x80   This indicates the end of the current line and will cause no line segment to be  drawn between this node and the next     Printek Emulation    Example  id   0    This example will print the following signature  The size of the grid that the image is specified in is 277 points  wide by 145 p
38. e empty  Other tracks  containing valid data will be returned  If an error occurs on any track  the track data portion of the  string for that track will contain a single    E     Hexadecimal 45      30    Printek Emulation    If for any reason the MCR is unable to read the card   s data  the printer will transmit an error message string in  the format shown below  The characters n  n2 represent an error number and error message is a description of  the error  Possible values are described in the subsequent table     ASCII  ESC E   nl n2   error message   CR LF  Hexadecimal  1B 45 2C     Aen E  is 2C OD OA    nln2 Error Message  05 Time out Expired    06 Invalid Character   07 Invalid Track Number   08 Unsupported Track Selected  09 Cancel Request    Cancel Read Magnetic Card Data Command ESC C    This command will cancel a pending MCR read command  The printer will transmit an    error    message  indicating that 1t has processed the cancel request and turn off the MCR indicator     Escape Sequence  ESC C  Hexadecimal  IB 43    31    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   Transmitter Off  Transmitted by Printer     Character Size and Line Spacing  Select Character Pitch    Set Printer to 12 7 cpi  Set Printer to 22 6 cpi  Set Printer to 22 6 cpi  Double High On  Double H
39. eek Black Mark ESCQBn    This command is identical to the Forward Seek Black Mark command described above except that the paper is  moved in the reverse direction in order to seek the bottom edge of the black mark  Care should be taken not to  move the paper very far in the reverse direction to avoid wrinkling the paper and creating the possibility of  paper jams     Note that reverse paper motion is not supported in MtP400 SL models and this command is ignored     Black Mark Found  Response From Printer  ESCQ   nl n2    This response is provided by the printer after detecting the presence of a black mark on the form in response to  either a Forward Seek Black Mark or Reverse Seek Black Mark command  Please refer to the example for  Forward Seek Black Mark  above     Black Mark Not Found  Response From Printer  ESC Q 0 0 nl n2    This response is provided by the printer when the presence of a black mark is not detected on the form in  response to either a Forward Seek Black Mark or Reverse Seek Black Mark command  Please refer to the  example for Forward Seek Black Mark  above     Gap Sensing    Gap sensing is only available on    LP    models and is used to sense the space between die cut labels  The  minimum space between labels is 0 125   3 2mm      Gap sensing is very similar to Black Mark sensing and uses the same commands  Refer to the Operator s  Manual for instructions on how to select Gap versus Black Mark sensing     24    Printek Emulation    Printer Controls    Be
40. eout value of    00    disables the timeout timer and allows the user to swipe a card until a  successful read is accomplished or until a cancel command  ESC C  is sent by the host     Tracks To Be Read  Track 1   Track 2   Track 3   Tracks 1  amp  2  Tracks 2  amp  3   Tracks 1  2  amp  3    Dub     S ja    After the printer receives the command  the 2 MCR indicator will begin to flash indicating to the user that  s he  may now pass the card to be read through the MCR slot near the front of the printer  The card may be swiped  in either direction  If the read is successful  the 2 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 A Error Indicator will also begin to flash and an error  message as described below will be transmitted  The card may be swiped multiple times until a successful read  occurs or until the specified timeout expires  Once the timeout occurs  the MCR will be disabled and both  indicators will be turned off     The data are returned as string s  of ASCII characters in the following format     ASCII      1   track 1 data 2 CR LF  Hexadecimal  25 2F 31  E me 3F OD OA  ASCII  S   2   track 2 data   CR LF  Hexadecimal  3B 2F 32 2F Be 3F OD OA  ASCII      3   track 3 data   CR LF  Hexadecimal  2B 2F 33 2F at 3F OD OA    Note  If no data is available for a track  the track data portion of the string will b
41. es in the buffer that remain to  be processed  divided by 32  For example  if b  b4      0020     this would indicate that there are at least 20 x 32   or 640  bytes remaining to be processed  A value of    0000    would indicate that the buffer is empty     Magnetic Card Reader Status String  The MCR status indicates the presence of a reader in the printer  and if present  its current status   m    0    if MCR is present     X    if not installed in printer     sl s2 Number of seconds remaining for a good card swipe  before the timeout specified in the read command  occurs  If this value is    00    and a non zero value for t  is returned  the reader will not time out and must be  cancelled by a Cancel Read Magnetic Card Reader  command     t The tracks to be read as specified by the read  command  If this value is zero and m and s1  s2 are  also zero  this indicates that the reader is present but  currently disabled  no read pending      Battery Voltage Status String    This string contains the current battery voltage in millivolts  A string where v1 through v4 contains    7123     would indicate that the battery voltage is currently 7123 millivolts  or 7 123 volts     Example  The following control code will return the status of the print buffer  the magnetic card reader  and the  battery voltage     Control Code  SYN  Hexadecimal  16    The three sample status strings that would be returned in response to this command are as follows     Print Buffer Status  ESC B 0 0 4 2 
42. esigned to control a ZPL II compatible printer  The commands that are supported are listed below     Select Font For Current Field  Interleaved 2 of 5 Bar Code   Code 39 Bar Code   PDF417 Bar Code   EAN 8 Bar Code   UPC E Bar Code   Code 128  A  B  C  Bar Code   EAN 13 Bar Code   ANSI Codabar Bar Code   UPC A Bar Code   Bar Code Field Default   Change format command prefix  default is     Change parameter delimiter  default is     Change control command prefix  default is     Change default font   Download Format   Download graphics  uncompressed ASCII   Download graphics   Field Data   Field Number   Field Origin   Field prints white over black and black over white  Field Separator   Graphic Box   Draw circle   Draw diagonal line   Send a status message to host   Delete object from RAM or flash   Load image to bitmap   Move image from storage to bitmap  Save label as image   Change Backfeed Sequence to Normal  Set 230 Dots Per Inch   Reprint After Error   Yes   Label Home   Label Reverse Print   Label Top   Map Clear   Yes   Relative contrast adjustment   Media Feed   Print Mirror Image   No   Print Quality   Print Rate   Maximum   Set page print width    NA n1 n2 n3 n4   AB2 n1 n2 n3 n4 n5  AB3 n1 n2 n3 n4 n5   B7 n1 n2 n3 n4 n5 n6  ABS n1 n2 n3 n4   ABI n1 n2 n3 n4 n5  ABC n1 n2 n3 n4 n5 n6  ABE n1 n2 n3 n4   ABK n1 n2 n3 n4 n5 n6 n7  ABU n1 n2 n3 n4 n5  ABY nl n2 n3  ACC  CC n1  ACD  CD n1  ACT  CT n1   ACF n1 n2 n3   ADF n1 n2 n3    DG n1 n2 n3 n4   lt data gt    DY n1 n
43. for allowable  characters and other specific requirements        Notes  All barcodes are printed with the minimum bar width     x dimension     of 0 250mm  in compliance with  the respective official specification   All barcodes are printed centered between the left and right margins  For information on setting  margins  please refer to the Operator   s Manual     Code 39 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  43 ASCII characters including A Z  uppercase only   0 9     period      dash                and SPACE    Elements per symbol  9  5 bars  4 spaces   Character density  6 25 CPI    Bar width  0 25mm  narrow to wide ratio   1 3     Example  The following escape sequence will print a bar code containing the characters  CODE 39  1 mm  high followed by human readable text     Escape Sequence  ESC Z 1 7 8 C O D E   3 9  Hexadecimal  lb SA 31 07 08 43 AE 44 45 2D 33 39    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   Character density   Bar width     6  3 bars  3 spaces   9 1 CPI  0 25mm    The first character position in the data portion of the escape sequence must contain a    Start 
44. ific model of interest     Printer Models and Key Features    Printek mobile thermal printers offer solutions for a wide variety of printing applications  The various models  support flexible paper widths  printing from roll stock or flat stock in easy loading cassettes  label printing  enhancements  and several host interface choices  The configuration options are shown below for each model   For additional information  please refer to the printer   s Operator   s Manual or visit www printek com     Max Paper Size    PS Host Interfaces  Model i   Label Ticket Printin   Width x Diameter  i S  RS 232   IrDA   Bluetooth   Wi Fi    MtP300 3 12    x 2 625    Roll Front Black Mark Std Opt Opt Opt  MtP300LP 3 12    x 2 625    Roll   Front Back Black Mark  Gap Std Opt Opt Opt    4 125    x 2 625    Roll  4 125    x 2 625    Roll  4 125    x 1 75    Roll                Manual Contents    The remaining sections of this manual provide information on printer commands offered for the various  emulations as well as additional information helpful to programmers  Descriptions of each section are shown  below     Selecting Emulations describes how to select the various printer emulations available   Printek Emulation describes in detail the Printek commands available   Mt3 Emulation provides a summary of the commands that are supported when emulating a Printek Mt3 printer     O   Neil Emulation provides a summary of the commands that are supported when emulating an O   Neil  microFlash4t pri
45. igh Off  Double High Wide On  Double High Wide Off  Set Text Line Spacing    Character Attributes  Select Emphasized Mode    Character Sets  Select Extended Character Set    Horizontal Position  Carriage Return  Backspace   Horizontal Tab   Set Horizontal Margins    Vertical Position   Line Feed   Variable Size Line Feed  Variable Size Reverse Line Feed  Vertical Tab   Form Feed    Bar Codes  Print Bar Code  Print Bar Code With Human Readable Text    Graphics   8 Bit Graphics   8 Bit Compressed Graphics  Vector Graphics    Storing and Printing Graphic Logos  Load Graphic Logo    Store Graphic Logo  Print Graphic Logo    32    ETX  ACK   EOT   XON  DCH  XOFF  DC3     ESC an  ESC An    ESC Un    ESC Fn    LF  ESC Jn  ESC QJn  VT   FF  ESCE    ESC z tn h data  ESC Z tn h data    ESC   h w data  ESC vh w c data  c data   c data       ESC  gt  id lines size data  ESC  gt  id p data t    ESCLGn  ESC L G DEL  ESCLgn    Printek Emulation    Black Mark Sensing  Set Paper Out Sensitivity    Forward Seek Black Mark  Reverse Seek Black Mark    Printer Controls   Sound Bell   Cancel   Print Contrast   Enable Buffer Mode  Disable Buffer Mode   Print Buffer Contents  Buffer Mode   Select Format   Select Emulation   Store Printer Command File  Reset Printer   Turn Printer Off    Printer Status Commands   Print Battery Status   Query Print Buffer  amp  MCR Status   Query Print Buffer  MCR   amp  Battery Voltage Status  Query Printer Firmware Version   Query Printer Model and Hardware Revision
46. ived  the printer will print the data in the input  buffer up to the EOT character     When Buffer Mode is not enabled  default  data are printed as received   Example 1  The following escape sequence enables Buffer Mode     Escape Sequence  ESC P    Hexadecimal  1B 4D 24    Example 2  This escape sequence disables Buffer Mode     Escape Sequence  ESC P it  Hexadecimal  1B 4D 23    25    Printek Emulation    Select Format ESC In    Causes the current line to be printed  and then loads the format parameters for Format n  1  gt  n gt  5  If Format n  is already selected  this command is ignored  Refer to the Printer Configuration section of the Operator   s  Manual for complete details     Example  This escape sequence selects Format 2     Escape Sequence  ESC 1 2  Hexadecimal  IB 6C 02    Select Emulation ESC ESC n    Select the printer emulation mode to be used for future commands  For complete details  refer to  Selecting  Emulations  on page 3     Store Printer Command File ESC T type id size name data    Stores a command file in the printer     This command file may be executed from the front panel of the printer by pressing and holding the   Increment  Button until    Recall File     is displayed  Continue to hold the   Increment Button and press the     Enter Button  to select which command file to execute  if more than one has been loaded  or to select    Exit    to cancel  performing the command  When selecting the command file  the printer will display    Recall File 
47. k Sensing Commands                     esses nennen ener enne 23   Gap Sensis Asie eS etse o tes p ee eade a QN 24   Prntet Controls  tee RU ea ete S wt DERI ed 25   Printer Status  Commands etae ln E E HERES ii sa a 27  Magnetic Card Reader a i epe aia 30   Control Code and Escape Sequence Summary sse eene 32  EAN AAA                                                                       35  IINE            H         M    MR 37  ZPL II E E 41  CP CL UE E 43  Hex D  mp Mode  aaa Svaseusesvseeseusvesesecsusdsesuseensedstucechsasvevaeceunsscuesdees 47   NOT 49  ASCH Character Tables sicsiscssssssscashssasacecenssostocasd once neg en sinasseuns EENEG GEES 53  ASCII Control Code Defmpons   n sns entente nnne nnne nnne 53  Decimal to Hexadecimal TO ASCII Conversion Table  54  Printer Reset Conditions  ciccsssssecsecseseduastennasonsscasvessesesueaseseasensssesseesenies cess M    55  COSSA E 57    111    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 and FieldPro 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  personnel  please refer to the printer   s Operator   s Manual for the spec
48. l   width   EXPANDED GRAPHICS  EG  width   height      x   y   data   VEXPANDED GRAPHICS  VEG  width   height      x  ty   data    COMPRESSED GRAPHICS  CG  width   height    x  ty   data    VCOMPRESSED GRAPHICS  VCG  width   height   ix  ty   data    CONTRAST  level    TONE  level    PAGE WIDTH PW  width    PACE   NO PACE   WAIT  delay time    SPEED  speed level    PREFEED  length    POSTFEED  length    BEEP  beep length     43    CPCL Emulation    CPCL Commands  Continued     Set Printer to Use Gap Sensing  LP Models Only   Set Printer to Use Back Mark Sensing  LP Only     Print PCX formatted Graphic  Print Different Character Styles On One Line    Print Different Character Styles Vertically    Left Justify Fields   Center Justify Fields   Right Justify Fields   Draw a Circle      Print a Logo Graphic     Save Label Job as Logo       Utility Commands    Set Line Printer Font   Set Line Feed Height   Set Horizontal Position   Set Horizontal and Vertical Position   Set Vertical Position   Move Horiz  Relative to Current Position  Move Vertically Relative to Current Position  Set Left Margin   Set Bold Mode   Set Spacing Between Characters   Align Media to Print Head   Set Start Printing Timeout to n 8 Seconds  Set Page Width   Print Bar Code    Print Vertical Bar Code    Print a Rectangular Box   Print a Line   Set Print Tone   Print PCX Formatted Graphic      Relative Move Horizontally  amp  Vertically       Line Print Mode Commands  Graphic Data   Carriage Return   Line Feed
49. ll BEL    Causes the printer s bell to sound     Control code  BEL  Hexadecimal  07  CANCEL CAN    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 55 for more information     Control Code  CAN  Hexadecimal  18    Print Contrast ESC Pn    Sets the contrast  or relative    darkness     of the characters or graphic images to be printed where 0     n  lt 9   hexadecimal 30 39   A value of zero provides the greatest contrast and also the slowest print speed  Likewise   a value of nine provides the lowest contrast  but the fastest print speed  The default value is    5        Since contrast is greatly affected by the quality of thermal paper being used  this command allows varying  grades of paper to be printed on successfully     In association with this setting  the printer automatically adjusts the contrast while printing in order to achieve  consistent output based on the current battery condition and print head temperature     Example  The following escape sequence with set the printer to a Print Contrast setting of    4        Escape Sequence  ESC P 4  Hexadecimal  1B 50 34    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  Once the EOT is rece
50. n  0x0d      20    Example     This example will print the following image  but it will be scaled to fit between the left and right margins     id  1         Escape Sequence   Hexadecimal     ESC  gt  1  IB 3E    x 45 y 19 128    x 44    y 17    xmsb xlsb ymsb ylsb xmsb xlsb ymsb ylsb    ESIG   v   31 455349473D 32 44 39    D 9    3 2    33 32 43    The entire string of data representing the graphic nodes for this example is     2 D93  32 44 39 33  24 1B  32 34 31 42      F 3 4  31 46 33 34    2 D 3 F  32 44 33 46  3 E 3 1  33 45 33 31    3 A 2 2  33 41 32 32    0 F 2 0  30 46 32 30    0 F 2 E  30 46 32 45    du Br 3 5  33 45 33 35    2 C 1 1  32 43 31 31    23 1 D  32 33 31 44    1 F 3 8  31 46 33 38    3 3 3 E  33 33 33 45    3 FE 2 F  33 46 32 46  2 B 1 F  32 42 31 46  0     2 2  30 43 32 32  11 2F  31 31 32 46    4334  34 33 33 34    2 A12  32 41 31 32  22 J  F  32 32 31 46    203A  32 30 33 41    3 6 3 C  33 36 33 43    3 F 2 B  33 46 32 42  1 E 1 E  3145 31 45    0 B 2 4  30 42 32 34    153 1  31 35 33 31    4 D3 1  34 44 33 31    28 14  32 38 31 34    202 4  32 30 32 34    2 2 E  32 32 33 43    383A  33 38 33 41    3 E 2 7  33 46 32 37  IBIE  31 42 31 45    0B 256  30 42 32 36    2634  32 36 33 34    4B3 1  34 42 33 31    2 6 1 6  32 36 31 36  1 F 2D  31 46 32 44    243 E  32 34 33 45    3 B 3 6  33 42 33 36    3cE  2 5  33 45 32 35    1 7 1 E  31 37 31 45    0B29  30 42 32 39    2834  32 38 33 34    Storing and Printing Graphic Images and Logos    1 1  31 31    25 19 
51. n for the  black mark is described below     Black Mark Requirements    For automatic label and ticket printing  the black mark should be positioned as shown in the illustration below   When using Mark Sensing mode  the MtP and FieldPro printers will automatically position the label for tear off  and printing following a Form Feed command or by pressing the Paper Feed button  Please refer to your  printer   s Operator   s Manual for information on selecting this operation mode     Perforation or tear position       0 15       Black Mark should span width  of paper for best results     Optimum Black Mark Position    Black Mark Sensing Commands    For non automatic paper positioning  the following commands may be used to cause the paper motion to stop  when the black mark is sensed     Set Paper Out Sensitivity ESC Q Qn    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  Using this  command to set a number of dot rows larger than the vertical size of the black mark  which looks like a lack of  paper  allows the printer to continue operating in the area of the black mark  0  lt  n  lt  255  the default value is  40     Example  The following escape sequence will set the paper out sensitivity to 50 dot rows     Escape Sequence ESC Q Q 50  Hexadecimal IB 51 51 32    23    Printek Emulation    Forward Seek Black Mark ESC QFn 
52. ncluding a Carriage Return and Line Feed  and then  the paper will be advanced as described below     For printers that use rolls of print media   not    SL    models   the paper will be advanced by the    FFeed  Distance    set for the current Format  refer to the Operator   s Manual for more information      For printers that use cassette media  MtP400 SL   the current sheet of paper will be ejected   A Carriage Return is also performed which places the current print position at the beginning of the next line     Control code  FF  Hexadecimal  0C    12    Printek Emulation    Bar Codes    Several types barcode symbols may be printed using the following command  The specification for each bar  code type is also described     Print Bar Code ESC atnh 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 found below                                                  Variable Value Description  p z  lower case    Print bar code only   Z  upper case    Print bar code and human readable text   1 Code 39  2 Code 128  UCC EAN 128  t 3 Interleaved 2 of 5  4 UPC EAN JAN  5 Codabar  n 1 lt n lt 255 Number of characters in bar code   h 1 lt h lt 255 Height of bar code in increments of 0 125mm   n characters to be represented in the bar code   data See individual bar code types 
53. ng escape sequence will print a bar code containing    ABC123    that is 10mm high and  is followed with human readable text     Escape Sequence  ESC Z 2 7 80 Start A B C 1 2 3  Hexadecimal  IB 5A 32 07 50 88 4 42 43 31 32 33    14    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 StartC 1 2 3 4 5 6  Hexadecimal  lb 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 high  without human readable text     Escape Sequence  ESC z 2 7 160 Start A A B C 1 Switch C 2 3  Hexadecimal  1B 7A 32 07 AO 87 41 42 43 31 83 3 33    UCC EAN 128 Specifications    Description  The UCC EAN 128 specification is an internationally recognized format for  application identifiers in code 128 bar codes  The bar code symbology is identical to  Code 128  Only recognized bodies of the UCC or EAN may assign application  identifiers  For more information visit www ean int org and www uc council org     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    Example  The following escape sequence prints an all numeric bar code co
54. ntaining    1234    in an EAN 128  format that is 10mm high followed by human readable text     Escape Sequence  ESC Z 2 6 80 FNCI 1 2 3 4  Hexadecimal  IB SA 32 06 50 86 31 32 33 34    UPC EAN JAN Specifications    Description  Each symbol starts with Leading Quiet Zone  followed with Left Guard Bars  Left  Data Symbols  Center Bar Pattern  Right Data Symbols  Check Character  ending with  Right Guard Bars and Trailing Quiet Zone  The UPC  EAN JAN 8  EAN JAN 13  specifications comprise an internationally recognized format for application identifiers   Unlike the UCC EAN 128 specification  these identifiers are intended for point of sale  applications  Only recognized bodies of the UCC and EAN may assign application  identifiers  For more information visit www ean int org and www uc council org     Character set  numeric   fixed length as follows     e UPC A   Requires 12 digits  The first 11 will be printed and the 12  will be  replaced by a check digit calculated by the printer    e UPC E   Requires 7 digits   The check digit will be added by the printer     e EAN JAN 8     Requires 8 digits  The first 7 will be printed and the 8  will be  replaced by a check digit calculated by the printer    e EAN JAN 13      Requires 13 digits  The first 12 will be printed and the 13  will  be replaced by a check digit calculated by the printer     Printek Emulation    Elements per symbol  4  2 bars  2 spaces   Character density  14 5 CPI  Bar width  0 25mm    Note  When specifying the b
55. nter     Introduction    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  amp  Font Samples provides character set mapping information and several font print samples     ASCH Character Tables provides a definition of ASCII control codes and an ASCII to Decimal to  Hexadecimal conversion table     Printer Reset Conditions describes the state of the printer after a power up reset or receipt of a reset command     Glossary provides a reference for printer related terms     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 and FieldPro 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 default emulation may be selected through the control panel set up as described in the printer   s  Operator   s Manual  To select an emulation temporarily  the host system may send an
56. 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  LF  Hexadecimal  0A  Variable Size Line Feed ESCJn    Causes paper to be moved forward n x 0 125mm  0     n x 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 performs a line feed of five millimeters   5   0 125       Escape Sequence  ESC J 40  Hexadecimal  1B 4A 28    Printek Emulation    Variable Size Reverse Line Feed ESCQJn    Causes paper to be moved in the reverse direction n x 0 125mm  0     n  lt  255    A Carriage Return is also performed    Note that reverse paper motion is not supported in MtP400 SL models and this command is ignored   Example  The following escape sequence moves paper in the reverse direction two millimeters  2   0 125      Escape Sequence  ESC Q J 16  Hexadecimal  IB 51 4A 10    Vertical Tab VT    Advances the paper five lines  If a partial line exists in the buffer  that line will be printed including a Carriage  Return and Line Feed  and then the paper advanced five lines     A Carriage Return is also performed which places the current print position at the beginning of the next line     Control code  VT  Hexadecimal  0B  Form Feed FF    If a partial line exists in the buffer  that line will be printed i
57. oints high  When printed the image will be scaled to fit between the left and right margins     Escape Sequence   Hexadecimal     Ur    1B    ESC     gt  0  3E 30    w 277    h 145    x 63    y 91    2 wmsb wlsb hmsb hisb xmsb xlsb ymsb ylsb    02 01 15    00 91    00 3F    The entire string of data representing the graphic nodes for this example is     00 3F 00 5B  00 34 00 31  00 39 00 5D  00 31 00 69  00 3F 00 58  00 50 00 5E  00 53 00 56  00 59 00 32  00 5B 00 53  00 62 00 57  00 70 00 62  00 80 00 58  00 84 00 56  00 8F 00 61  00 B8 005A  00 B8 00 35  00 CO 00 59  00 DO 00 56  00 D9 00 5E  00 D7 00 54  00 E9 00 51  00 EC 00 4A    00 3B 00 5A  00 3E 00 2C  00 2C 00 77  00 39 00 63  00 3E 00 5D  00 4F 00 5C  00 56 00 54  00 57 00 30  00 5A 00 5F  00 65 00 55  00 75 00 5F  00 7F 00 5C  00 8C 00 53  00 99 00 61  00BA 00 5C  00 C2 00 39  00BA 00 5B  00 D3 00 55  00 DB 00 5E  00 D9 00 54  00 EF 00 50  00 EE 00 53    00 35 00 57  00 40 002D  00 24 00 80  00 43 00 5B  00 43 00 60  00 4B 00 59  00 5C 00 50  00 55 00 32  00 59 00 61  00 66 00 58  00 78 00 5C  00 7D 00 5F  00 SE 00 54  00 99 80 61  00 B9 00 57  00 C7 00 3F  00 B8 00 59  00 CF 00 55  00DC005A  00DD 00 55  00 F7 00 4E  00 FD 00 5B    00 2F 00 51  00 41 00 34  00 1F 00 80  00 49 00 55  00 49 00 61  00 49 00 59  00 5E 00 4B  00 55 00 38  00 56 00 62  00 64 00 5C  00 7B 00 58  00 7B 00 61  00 8C 00 57  00 B7 00 4D  00 B6 00 4E  00 C9 00 47  00 C1 00 57  00 CB 00 56  00DA 00 58  00 PO 00 54  00 FA 00 4C  01 06 805D    00
58. on Control Protocol  A specification that controls the connection  between systems on a network     The vertical position where the first line is printed on the paper  Also the  position the paper is advanced to when a form feed  FF  character is received  from the host or the Form Feed button is pressed on the printer s control panel     Wide Area Network  Refers to connections that allow one LAN to  communicate with another LAN s      Wired Equivalent Privacy  A security protocol for wireless LANs designed to  provide data security similar a wired LAN     Refers to any of the IEEE 802 11 standards   Wireless Local Area Network  A LAN made up of wireless nodes     
59. other  stations via an access point     The connection between the printer and the host computer     57    Glossary    IP    LAN  LCD  LED   line pitch  Ipi  margin  MSB    node    parity    Peer to Peer    reset    RS 232C  server    SSID    TCP    top of form    WAN    WEP    Wi Fi  WLAN    58    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    Liquid crystal display    Light emitting diode    The vertical spacing of rows of characters  Measured in Ipi    Lines per inch    An area along any edge of a form where data may not be printed   Most significant bit  In a character  this refers to bit seven  of 0 to 7    Any device connected to a network     A method used for detecting errors within a single character transmitted or  received via an interface     A network consisting of only stations  no access point or central server   Same  as Ad Hoc     Initialization of various operating parameters of the printer to the value or state  assumed when the printer is powered on     An EIA standard for serial data transmission   Any node on a network that provides services to another node  client      Service Set IDentifier  An identifier attached to packets on a Wi Fi network  that identify the particular network the packets are intended for     Transmissi
60. rintek 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 single  character in the range 00 hex through IF hex  and 7F hex  The ESC  Escape  control code  1B hex  is used to  introduce character strings called escape sequences  which provide an extension of the commands available  with ASCII control codes     If a sequence accepts one numeric parameter  it will be represented as    n     If a sequence accepts more than one    39    numeric parameter  they will be represented as    n1 n2    nx        Spaces are used when documenting escape sequences to increase readability  If a space character is actually a  valid part of the sequence  it will be represented as    SPACE     Characters that appear in italics  such as    n    and     nl    above  are not sent to the printer as is  they are used as a place holder indicating that some value must be    supplied     Multiple character strings without intervening spaces typically represent control codes  For example  BS is the  Backspace control code  08 hex   not the two characters    B    an
61. rleaved 2 of 5 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  numeric pairs   Elements per symbol  10  5 bars  5 spaces   Character density  11 11 CPI  Bar width  0 25mm    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  IB SA 33 06 50 31 32 33 34 35 36    16    Printek Emulation    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    and D E   Elements per symbol  7  4 bars  3 spaces   Character density  8 1 CPI  Bar width  0 25mm    Example 1  The following escape sequence will print a bar code containing    123456     using the A T start stop  characters  and 20mm high followed by human readable text     Escape Sequence  ESC Z 5 8 160 A 1 2 3 4 5 6 T  Hexadecimal  IB SA 35 08 AO 41 31 32 33 34 35 36 54    Example 2  The following escape sequence will print a bar code containing    123456     using the C   start stop  characters and 20mm high followed by human readable text     Escape Sequence  ESC Z 5 8 160 C 1 2 3 4 5 6    Hexadecimal  IB SA 35 08 AO 43 31 32 33 34 35 36 2A    Graphics    The
62. size or the number of blocks sent at one time does not exceed the input buffer size of the  printer     The input buffer size is 32K  32 768 Bytes  unless Minimum Buffer has been selected in the printer   s Options  Menu  Please refer to the Operator   s Manual for more information     Control code  ETX  Hexadecimal  03  Acknowledge  Transmitted by Printer  ACK    Please refer to the    End of Text    description above     Control Code  ACK  Hexadecimal  06    End of Transmission  Transmitted by Printer  EOT    The printer sends an EOT character each time the printer   s input buffer becomes empty to indicate the printer is  idle     Control Code  EOT  Hexadecimal  04    Transmitter On  Transmitted by Printer  Serial Only  XON  DC1   When enabled for the Serial Interface  refer to the Operator   s Manual   this character is transmitted by the  printer to indicate that the printer is on line and ready to receive data  See DC3 XOFF for more information     Control Code  XON  Hexadecimal 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 Pit
63. w data    ESC v h w c data  c data   c data         ESCDL  ESCLGO  ESC L G DEL  ESCL g0    ESC QQn  ESC QFn  ESC QBn    BEL   CAN   ESC Pn  ESC Pn  ESC P    ESCP    EOT   ESC ESC n  ESC   0  ESC   1    ESC P   STX  SYN  ESC P    ESC P     ESC M nl n2 t CR  ESC C    O   Neil Emulation    O   Neil Emulation allows Printek printers to respond to commands designed to operate an O   Neil microFlash  printer  The commands that are supported are listed below     Note  Items marked with an asterisk     are Printek extensions  Refer to the Printek Emulation section of    this manual     Communications    Same as Printek Emulation    Line Printer Mode    Character Size and Line Spacing    Double Wide On   Double Wide Off   Double High Wide On     Double High Wide Off     Multiply Character Height   Select Double High and Double Wide    Character Sets    Select Font  See Font Mapping  below      Horizontal Position    Backspace    Horizontal Tab    Carriage Return    Vertical Position    Line Feed   Vertical Tab     Form Feed  ESC E     Set Interline Spacing  Set Form Length  Advance From Q Mark    Graphics    Select Graphics Mode  Begin Graphics  End Graphics    SO    DC2 D  DC2 d  ESC Hn  ESC  n    ESC wn    BS    CR    LF   VT   FF  ESC E  ESCA n  ESC Cn  ESC Q nl n2    ESC V nl n2  ESC B  ESC E    37    O   Neil Emulation    Printer Controls    Sound Bell     Cancel Line Buffer  Reset   Select Easy Print Mode    Easy Print Mode    Move Paper Forward  Move Paper Backward  Select Line
64. will print a square box 2mm x Imm starting 2mm from the left  margin  and then move the paper forward an additional 5mm     Escape Sequence  ESC   8 4 0 0 255 255    Hexadecimal 1B 23 08 04 00 00 FF FF  Escape Sequence  0 0 128 1  Hexadecimal 00 00 8 Ol  Escape Sequence  0 0 128 1  Hexadecimal 00 00 80 OI  Escape Sequence  0 0 128 1  Hexadecimal 00 00 8 01  Escape Sequence  0 0 128 1  Hexadecimal 00 00 80 OI  Escape Sequence  0 0 128 1  Hexadecimal 00 00 80 01  Escape Sequence  0 0 128 1  Hexadecimal 00 00 80 OI  Escape Sequence  0 0 255 255  Hexadecimal 00 00 FF FF  Escape Sequence  ESC J 40   Hexadecimal  1B 4A 28   8 Bit Compressed Graphics ESC v h wc data  c data   c data         This command differs from the 8 Bit Graphics command described above by reducing the number of bits   bytes  that have to be sent to the printer  This allows for faster data transfer between the host computer and the  printer              Variable Value Description  h 1 lt h255 Number of graphic lines in the image   w MtP300  0 lt w lt 72   Number of bytes in each graphic line of the image     MtP400  O lt w lt  104  FieldPro RT43  0 lt  wx 104  c 0 lt c lt 255 Counter s  describing how following bytes are to be  interpreted  A description of how counter values and  the following data are interpreted follows this table                       data Graphic data bytes where Graphic data bytes to be interpreted as specified by the  the value of each byte is 0  preceding counter  c   255       Multiple
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Page 1 Page 2 概 況 ・新型転換炉開発概況  MPEGIO SDK User Manual  GT14 - AutoCont Control System  Emerson Fisher easy-e ED User Guide  ENSEIRB, Bordeaux 22 mars 2014      Samsung DVD-HD745 Brugervejledning  DEWALT DWFP55126 Use and Care Manual  RAZOR-PAK KIT - Harley    Copyright © All rights reserved. 
   Failed to retrieve file