The text of a manual · part 6 of 7
MtP Series & FieldPro Programmer's Manual: Introduction, pages 45 to 54
Pages 45 to 54 of 63, from MtP Series & FieldPro Programmer's Manual
The original document is the PDF (923 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Printek MtP300
Page 45
ZPL-II Emulation ZPL-II Emulation supports a subset of the Zebra ZPL-II command set and allows Printek printers to respond to commands designed to control a ZPL-II compatible printer. The commands that are supported are listed below. Select Font For Current Field 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
^A n1,n2,n3,n4 ^B2 n1,n2,n3,n4,n5 ^B3 n1,n2,n3,n4,n5 ^B7 n1,n2,n3,n4,n5,n6 ^B8 n1,n2,n3,n4 ^B9 n1,n2,n3,n4,n5 ^BC n1,n2,n3,n4,n5,n6 ^BE n1,n2,n3,n4 ^BK n1,n2,n3,n4,n5,n6,n7 ^BU n1,n2,n3,n4,n5 ^BY n1,n2,n3 ^CC/~CC n1 ^CD/~CD n1 ^CT/~CT n1 ^CF n1,n2,n3 ^DF n1:n2.n3 ~DG n1,n2,n3,n4,<data> ~DY n1,n2,n3,n4,n5,<data> ^FD n ^FN n ^FO n1,n2 ^FR ^FS or SI ^GB n1,n2,n3,n4,n5 ^GC n1,n2,n3 ^GD n1,n2,n3,n4,n5 ~HS ^ID n1,n2 ^IL n1 ^IM n1 ^IS n1,n2 ~JSN ^JMA ^JZY ^LH n1,n2 ^LR ^LT n ^MCY ^MD n1 ^MF n1,n2 ^PMN ^PQ n1,n2,n3,n4 ^PR ^PW n1
41
Page 46
ZPL-II Emulation Set absolute contrast Select ZPL-II Adjust tear-off position Start Format Recall Graphic Recall Format End Format
~SD n1 ^SZ2 ~TA n1 ^XA or STX ^XG n1,n2,n3 ^XF n1,n2,n3 ^XZ or ETX
Additional Printer Control Select Emulation
ESC ESC n
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
Index 2 3 7 8 9 C E K U
Font Requested Zebra Font A Zebra Font B Zebra Font C Zebra Font D Zebra Font E Zebra Font F Zebra Font G
Index A B C D E F G
Font Used 25.4 cpi Courier 22.6 cpi Courier 18.5 cpi Courier 18.5 cpi Courier 10.2 cpi Sans Serif A 5.5 cpi Sans Serif A 10.7 cpi Sans Serif A
Note: The font used will be equal to, or smaller than, the font requested with preference given to the Sans Serif font.
42
Page 47
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.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
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} {x} {y} {data} ENDMULTILINE, ENDML Set Font Magnification SETMAG {w} {h} Print Bar Code BARCODE, B {type*} {width} {ratio} {height} {x} {y} {data} Print Vertical Bar Code VBARCODE, VB {type*} {width} {ratio} {height} {x} {y} {data} Print PDF-417 Bar Code BARCODE PDF-417 {x} {y} [XD n] [YD n [C n] [S n] {data} ENDPDF Print Human Readable Text Under Bar Code BARCODE-TEXT, BT {font number} {font size} {offset} Place a Rectangular Box on Label BOX {x0} {y0} {x1} {y1} {width} Place a Line on Label LINE, L {x0} {y0} {x1} {y1} {width} Place Expanded Graphics on Label EXPANDED-GRAPHICS, EG {width} {height} {x} {y} {data} Place Vertical Expanded Graphics on Label VEXPANDED-GRAPHICS, VEG {width} {height} {x} {y} {data} Place Compressed Graphics on Label COMPRESSED-GRAPHICS, CG {width} {height} {x} {y} {data} Place Vertical Compressed Graphics on Label VCOMPRESSED-GRAPHICS, VCG {width} {height} {x} {y} {data} Set Print Contrast Level CONTRAST {level} Set Print Tone Level TONE {level} Set Page Width PAGE-WIDTH,PW {width} Enable Pace Mode PACE Disable Pace Mode NO-PACE Wait n/8 Seconds WAIT {delay-time} Set Maximum Print Speed SPEED {speed level} Set Paper Feed Distance Before Printing PREFEED {length} Set Paper Feed Distance After Printing POSTFEED {length} Sound Control Panel Bell for n/8 Seconds BEEP {beep length}
43
Page 48
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 & Vertically ** Line Print Mode Commands Graphic Data Carriage Return Line Feed 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*} {width} {ratio} {height} {x} {y} {data} VBARCODE, VB {type*} {width} {ratio} {height} {x} {y} {data} BOX {x0} {y0} {x1} {y1} {width} LINE, L {x0} {y0} {x1} {y1} {width} TONE {level} PCX {x} {y} {data} RXY {x} {y} {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 separated by CRLF} PRINT
Page 49
CPCL Emulation Additional Printer Control Select Emulation
ESC ESC n
* Supported barcode types: UPCA,UPCE,EAN13,EAN8,39,39C,I2OF5,I2OF5C,128,UCCEAN128,CODABAR,CODABAR16 ** Additional command extensions.
45
Page 50
Page 51
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 CR, LF, and FF. 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 period. 54 68 69 73 20 69 73 20 61 20 73 61 6D 70 6C 65 20 68 65 78 20 64 75 6D 70 20 74 6F 20 69 6C 6C 75 73 74 72 61 74 65 20 68 65 78 20 64 75 6D 70 66 6F 72 6D 61 74 0D 0A 0C 00 00 00 00 1B 1B 01
This.is.a.sample .hex.dump.to.ill ustrate.hex.dump formatCRLFFF....♦♦.
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
Page 52
Page 53
Print & Font Samples
These print samples were produced on an MtP400.
Print Samples
Sans rif 5.5 c¢ 01234 ABCDEF ab Sans Serif 10.2 cpi
012345 ABCDEF abcdef
Se i 5 def
Sans Serif 10.7 cpi 012345 ABCDEF abcdef
Courier 12.7 cpi 812345 ABCDEF abcdef
Courier 13.5 cpi 812345 ABCDEF abcdef
Courier 14.5 cpi 812345 ABCDEF abcdef
Courier 15,6 cpi 812345 ABCDEF abcdef
Courier 16.9 cpi 812345 ABCDEF abcdef
Courier 18.5 cpi 812345 ABCDEF abcdef
Courier 28.3 cpi 812345 ABCDEF abcdef
Courier 22.3 cpi 012345 ABCOEF abcdef
Courier 25.4 cpi 812345 ABCDEF abcdef
Courier 12,7? cpi
Courier 12.7? cpi Emphasized
Courier 12,7 cpi Double High Courier 12,7 cpi Double High Emphasized
49
Page 54
Print & Font Samples Courier Font With International Extended Character Set
Courier Font PC Line Drawing Extended Character Set
50