Home
Programmer`s Manual
Contents
1. Mx gt gt gt gt gt lt gt lt eee PITT TT TT Ty dd o ad B Enter flash font program mode Using the ESC D A 0 Hexadecimal 1B 44 41 30 command to program the ASCII 0x20 Ox7F character sets The printer will deactivate the CTS line Load new character shape for A Once the printer has re activated the CTS line and transmitted the character it is possible to modify the character sets Transmit the command ESC D 0 A Hexadecimal 1B 44 30 41 followed by the data derived from the bitmap as shown The order of transmission is Line 1 Left Byte Line 1 Right Byte Line 2 Left Byte Line 2 Right Byte Line 23 Left Byte Line 23 Right Byte Save modified character sets Currently all of the character sets are in the printer SRAM and may not be used for printing To save the modified character sets into the flash memory enter the command ESC D xFF Hexadecimal 1B 44 FF The printer will transmit the character D and then proceed to save the fonts to flash memory THE PRINTER POWER MUST REMAIN ACTIVE AT THIS TIME Once the fonts have been saved into flash memory the printer will transmit the character At this time the printer will transmit an X every 500 milliseconds Cycle the printer power To ensure optimal operation of the printer remove the battery cartridge from the printer for several seconds Replace t
2. 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 Characters per line 24 numeric maximum automatically centered Example Print 12345678 10mm high Escape Sequence ESC Z 3 8 80 1 2 3 4 5 6 7 8 Hexadecimal IB 5A 33 08 50 31 32 33 34 35 36 37 38 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 More information may be found at http www ean be for the EAN and http www uc council org for the UCC Character set numeric fixed length Elements per symbol 4 2 bars 2 spaces Character density 14 5 CPI Bar width 0 25mm Characters per line UPC A 11 plus check digit automatically centered UPC E 6 plus check digit automatically centered EAN JAN 8 7 plus check digit automatically centered EAN JAN 13 12 plus c
3. 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 other stations via an access point The connection between the printer and the host computer 37 Glossary of Terms IP LAN LED line pitch Ipi margin MSB node parity Peer to Peer reset RS 232C server SSID TCP WAN WEP Wi Fi WLAN 38 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 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 Initializati
4. command received upon activating the printer The printer will deactivate the CTS line and copy the requested Flash bank to SRAM 2 When the copying process is complete the CTS will become active and the printer will transmit a 0x3F 3 Any character not accepted as part of a font load command will be echoed back to the terminal device To Load an ASCII character ESC D nl n2 data nl TABLE to save the character in 0x30 0x31 0x32 OxFF OxFF quit n2 Character code 0x21 0x7F CHR 33 CHR 127 data 16x 23 bit W x H character matrix 46 bytes total Each character must also fit into the matrix specified by the font size see table below Courier Modes 1 amp 2 12 amp 16 cpi 12 x 23 Courier Mode 3 19 cpi 10x23 Courier Modes 4 amp 5 21 amp 24 cpi 8x23 TABLE 0 TABLE 1 TABLE 2 Flash Based Font Download Extended Font Download RS 232 only Enter flash extended font program mode ESC D Xn N Note Font BANK to modify 0 1 2 3 0x30 0x31 0x32 0x33 This command must be the first ESC command received upon activating the printer 1 The printer will deactivate the CTS line and copy the requested Flash bank to SRAM 2 When the copying process is complete the CTS will become active and the printer will transmit a 2 0x3F 3 Characters not recognized as part of a font load command will be echoed back to the terminal d
5. hexadecimal IEEE infrastructure interface Glossary of Terms 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 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
6. n1 n2 48 bytes of graphic data Mt3 ESCV nl n2 72 bytes of graphic data Mt3 II ESC V n1 n2 72 bytes of graphic data Save Logo to Flash Memory At this time the logo is stored in the printer SRAM and may not be used for printing To save the logo into the flash memory enter the command ESC LGOxFF Hexadecimal 1B 4C 47 FF The printer will transmit the character D and then proceed to save the logo to flash memory THE PRINTER POWER MUST REMAIN ACTIVE AT THIS TIME Once the logo has been saved into flash memory the printer will transmit the character At this time the printer will transmit an X every 500 milliseconds Cycle the printer power To ensure optimal operation of the printer remove the battery cartridge from the printer for several seconds Replace the battery cartridge and the new logo will be ready for use Bar Codes The Printek Mt2 and Mt3 printers support several bar code symbologies Two commands are defined for printing bar codes Bar Code Command Formats ESC z n1 n2 L data ESC Z n1 n2 L data Z print bar code only Z prints bar code and ASCII human readable text nl bar code type JN Code 39 2 Code 128 UCC EAN 128 3 Interleaved 2 of 5 14 UPC EAN JAN 5 Codabar n2 number of character bytes in data array 1 255 L height of bar code printed in increments of 0 125mm All barcodes are printed with the minimum bar width x dimension of 0 250mm in compliance with the respec
7. unused locations XON XOFF Protocol For the XON XOFF handshaking mode the printer transmits XON 0x11 when it is ready to accept data and XOFF 0x13 for the print buffer has less than 256 unused locations Under XON XOFF protocol the data flow out of the printer s serial port is halted on receipt of XOFF from Host device and resumed on receipt of XON RS232C Connections The RS232C Interface signals for the printer are terminated on a 6 PIN RJ type data connector located at the back of the printer Six connections are provided from the Serial Interface to the host computer The table below lists the Serial Interface signals and pin out on the RJ connector followed by the pin locations on the connector R3 DAT CONNECTOR SHOWING PIN LOCATIONS FRONT VIEW 28 FUNCTIONAL DESCRIPTION Logic common Serial Communications SIGNAL NAME RS232 from Printer OUTPUT RS232 from Host INPUT Clear to send from Printer OUTPUT Request to send from Host INPUT Serial Connector Pin Assignments RS 232C Technical Specifications Data transfer rate Word length Start bit Data Bits Parity Bit Stop bits Signal levels Mark or Logical 1 Space or Logical 0 Handshaking Hardware Software Auto power up 2400 38 4K Baud 10 or 11 bits 1 7 or 8 None odd or even lor2 RS232C 3 to 15VDC 3 to 15VDC Two modes are supported RTS CTS XON XOFF Positive signal on RTS input tu
8. CRLF Magnetic card reader status ESC M lt 4 ASCII hex digits gt CRLF Firmware version query ESC P 7 Firmware version ESC 4 ASCII characters CRLF Example v1 00 ESC 100 SPACE CRLF Hardware model query ESC P Hardware model ESC lt 4 ASCII characters CRLF Example ESC 103CCRLF 103 represents the Mt3 printer C is the hardware revision letter 108 represents the Mt2 printer 118 represents the Mt3 II printer 23 Magnetic Card Reader A three track Magnetic Card Reader MCR is optionally available on all Printek Mt series model printers The MCR is designed to read magnetically encoded data from cards conforming to ANSI ISO 7810 7811 standards The MCR converts the F2F encoded signals on the magnetic card to ISO7811 compatible ASCII format and transmit the information to the host computer or a terminal The MCR can read one two or three tracks simultaneously and bi directionally Set of printer ESC software commands are supported in order to provide the following operating features e Select the MCR e Set the auto time out software timer e Report MCR Read errors e Report MCR status Card Specifications The table below summarizes the format of the data stored on each magnetic track Track Position Track 1 ISO1 IATA Track2 ISO2 ABA Track3 ISO3 MINTS Recording Density 210 BPI 75 BPI 210 BPI Recording Capacity 79 characters 40 characters 107 character
9. O PRINTEKMOBILE Mt Series Programmer s Manual k Inc LUST TO wn a e Ro ad n Harbor MI 49022 269 925 3200 www printek com 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 All other trademarks are the property of their respective owners 2003 2004 By Printek Inc 1517 Townline Road Benton Harbor MI 49022 All rights reserved Specifications subject to change without notice Table Of Contents lus delirio c 1 Control Char cters icto petii ad 1 ASEIH Print Charagters a sinet gne tuno niei buie 2 Extended Print Characters e e e a eene ener Ron Ran RR nn ente nen ennt etre teen nnne rre 3 Resident Character Sets oie eee ida este 4 Flash Based Font Download cussuussusssnsssesssesssnssonsnonsnunsnnnsnnssnnssnnssnnssnssnnssnnssnnssnnsnunssunssnnssnssansnnnsnnnsnnssnnssnnenne 7 Normal ASCII Font Download eese eene tene tse nre reete se rese reet s eier inni nennen 7 Extended Font Download ide sete tee ot teet et e RR ER Ee aet Ue e ter euet iesus E
10. UR 8 Graphic Commands ee eset ORNATO 10 8 Bit Dot Addressable Graphics oooooooninonoconocononcnoncnononononnnonnnnnnonnnonn nro nro nennen enne enne entrent rn rennen 10 8 Bit Compressed Graphics dii e eie er RE ee i feed 10 Graphic Logo Conimands idee id nein 11 rigen 13 Gode 39 SpecifICAtlons ui edi a e teret tete e e eio dtt aii i a ess 13 Code 128 Specifications s died ta tole e tea n ee t a tease td pes 14 UCC EAN I28 Specifications abet tate ettet dide p tait cus 15 Interleaved 2 of 5 Specifications enne eren enne ener nnne nennen nennen 16 UPC EAN JAN Specifications 5s otiose A Ge a eed rie enter 16 Codabar Specifications esses eene enne nennt nennen trennen erret nn nent enne 17 Black Mark Sensing nor nono rones 19 Black Mark Opt a a 19 Bl ck Mark Printer COM a 19 Printer Ori C 21 Print Contrast Control nouos eee eoi eroi eio tuat elei IER UE 21 Printer Peak Power Controlee eene enne nennen trennen a E enne nn nenne 21 Auto Power Down Features oio ortae oe n ie ode i PORE RARI caos 22 Operating Mode teen esed AE nnm lose NS 22 Printer Status CommandsS g 23 Print Battery Voltage siu saec tae A A a Do ERE 23 Supervisory Commarids cie Ei e a RE e OR de ROT ERE ce REED DR cited 23 Magnetic Card Reader
11. aded from www printek com Please refer to the documentation provided with the utility for more information Mt2 Enter Flash Logo Mode ESCDLn Mt3 Enter Flash Logo Mode ESCDL Mt3 II Enter Flash Logo Mode ESCDLn Load Record Graphic Logo ESCL Gn Stop Loading Graphic Logo ESC L G 0xFF Print Graphic Logo ESCL gn Note The Mt2 supports 8 logos n 0 7 The Mt3 supports 1 logo n 0 The Mt3 II supports 8 logos n 0 7 Graphic Commands Graphic Logo Operation STEP 1 STEP 2 STEP 3 STEP 4 STEP 5 12 Enter Flash Logo Program Mode Mt ESCDLn Hexadecimal 1B 44 4C and n 30 37 Mt3 ESCDL Hexadecimal 1B 44 4C Mt3 IE ESCDLn Hexadecimal 1B 44 4C and n 30 37 Once received the printer will deactivate the CTS line Note This command must be the first ESC command received upon activating the printer Start Logo Download Once the printer has re activated the CTS line and transmitted the character it is possible to start the logo download The host application selects the Graphic Logo record mode by sending the load command Mt2 ESCLGn Hexadecimal 1B 4C 47 and n 30 37 Mt3 ESCLGO Hexadecimal 1B 44 4C 30 Mt3 II ESCLGn Hexadecimal 1B 44 4C and n 30 37 Note Any character not accepted as part of a logo load command will be echoed back to the host Transmit Logo While in record mode the Graphic Logo is downloaded using the 8 bit graphic command Mt2 ESC V
12. ding 0x20 0x7F e Factory default ISO defined US ASCII alpha numeric character set Extended Print Characters e Defined as character encoding 0x80 0xFF e Factory default International and PC Line Draw character sets Note ONLY ONE of the Extended Character Sets may be selected per print line Control Characters 0x00 0x1F The following set of characters is reserved to assist in printer control The printer also provides single byte responses to inform the host of the printer status Character Control Hex Dec CONTROL ACTION EOT D 04 04 End Of Text Printer sends an EOT character when buffer is empty tells the host device that printer is in idle mode BS H 08 08 Back Space Remove previous character in print buffer HT I 09 09 Horizontal Tab Tab to 5 9 13 17 21 25 29 33 37 or to the beginning of next line LF J 0A 10 Line Feed Advance to beginning of next line VT K 0B 11 Vertical Tab Advance 5 lines FF E 0C 12 Form Feed Advance 10 lines CR M 0D 13 Carriage Return Advance to beginning of next line SO N 0E 14 Shift Out Printer defaults to 24 column mode SI O 0F 15 Shift In Printer defaults to 42 column mode Printer Characters Character Control Hex Dec CONTROL ACTION Transmitter On Printer to Host Ready to receive data Host to printer The host is ready to receive data Printer on Printer to Host Printer is on line Transmi
13. e ESC F n command The character representations for each set are shown below ESC F 1 Selects the International character set auc Ojea 3 y ESC F 2 Selects PC Line draw character set PC Line Draw Character Set Printer Characters Resident Character Sets Typefaces For each resident character set several font typefaces or sizes are available This provides the character pitches with the associated columns per line as shown in the following table A total of four different font tables are used to generate the typefaces At power up the default selection is Courier Mode 2 FONT NAME COLUMNS RER LINE SIZE WxH COMMAND Mt3 3 II Courier Mode 5 Courier Mode 4 Courier Mode 3 Courier Mode 2 Courier Mode 1 Courier Mode 0 24 rows 32 rows Rotated Example Select Courier Mode 4 Escape Sequence ESC k 4 Hexadecimal IB 6B 34 Emphasized Print For the normal typeface characters the individual lines or strokes of each character are finer giving a more airy feel to the typeface Emphasized characters have a heavier or thicker line width putting more emphasis on the text A line of text using a resident font may be emphasized using the following command ESC U1 Enable emphasized print starting with the current text line ESC U0 Disable emphasized print starting with the current text line Example Select Emphasized Escape Sequence ESC U 1 He
14. e table below The first four characters 1 flag the track number the track data follows the flag string terminated with CRLF are the track start sentinel characters while is the end of track sentinel character If no data is available for a track that data field will be empty If an Error is encountered on any track a single E will be the output for that tracks data field Magnetic Card Read Error Messages The characters and E preface all error messages Following these two characters is a comma the error number in ASCII 01 through 99 another comma an English description of the error encountered and finally CRLF terminating the Error Message string The syntax is as follows E nn Error text in ASCH CRLF 26 Magnetic Card Reader The printer may transmit Four 4 types of Read Error messages The following messages terminated with CRLF are returned Time out Expired Invalid Track Number Unsupported Track Selected Cancel Request Interfacing to the Magnetic Card Reader This section details the software steps required to access the MC reader from a computer or a terminal e The host selects the printer by activating the RTS input line or sending wake up characters to the printer e The printer sends the XON command to the host to indicate that it is ready to receive data from host e Once XON is received the host sends the command to enable
15. ed in each dot line of the following data set counter An eight bit value describing how to process the following data For signed values counter may be interpreted as follows 127 gt counter gt 0 Process the next counter 1 bytes of data as 8 bit graphics 0 gt counter gt 128 Repeat the next single byte of data counter 1 times For unsigned values counter may be interpreted as follows 127 gt counter gt 0 Process the next counter 1 bytes of data as 8 bit 1 times graphics 128 lt counter lt 255 Repeat the next single byte of data 256 counter 10 Graphic Commands Compressed Graphics Example The following graphics data is to be printed E E E E EEEE EMEN NM This data may be represented in hexadecimal 0x55 0x55 The RLE compressed graphics command AA ar U DEC an 253 85 255 0 3 170 17 0 253 85 HEX 03 0 FF 55 FF 00 03 AA 11 00 FD 55 Graphic Logo Commands Storing graphic logos in the printer s memory will greatly reduce data trasmission time whenever the logo needs to be printed The Mt2 and the Mt3 II support up to eight logos while the Mt3 supports only one A utility program is available for Windows desktop systems that will assist in creating the graphic definition of a logo This graphic definition provides the graphic commands required in STEP 3 below The utility prn2logo exe is provided on the Mt Series Developer s CD and may also be downlo
16. ers are printed as they are received In buffer mode the characters received are stored in the print buffer and printed upon receipt of EOT character Printer operating mode commands ESC P Select Online mode Characters are printed as received ESC P Select Buffer mode Characters are buffered until receipt of an EOT 0x04 Example Select Buffer Mode Escape Sequence ESC P Hexadecimal 1B 50 24 Print Buffered Data Control Code EOT Hexadecimal 04 22 Printer Status Commands Print Battery Voltage The battery voltage level may be printed using the following command Print Battery Voltage ESCP Transmit Battery Voltage CTRL V Example Print the battery voltage Escape Sequence ESC P A Hexadecimal IB 50 SE Supervisory Commands Single byte supervisory commands are designed for host applications to be able to obtain current status information from the printer The single byte supervisory commands and serial RS232 response strings are summarized below Note lt 4 ASCII hex digits gt in the table below are read as hex nibbles OR ed with 0x30 Command Description Status Commands Printer Responses Print status request Print buffer status ESC B lt 4 ASCII hex digits gt CRLF Magnetic card reader status ESC M lt 4 ASCII hex digits gt CRLF Battery status request Print buffer status ESC B lt 4 ASCII hex digits gt CRLF Battery Voltage status ESC V lt 4 ASCII decimal digits gt
17. evice To Load an extended character ESC D n1 n2 data nl TABLE to save the character in 0x30 0x31 OxFF OxFF quit n2 character code 0x80 OxFF CHR 128 CHR 255 data 16x23 bit Wx H character matrix 46 bytes total Each character must also fit into the TABLE 0 matrix specified by the font size see table below BANK 0 International 12 amp 16 cpi Courier Modes 1 amp 2 12x23 BANK 1 International 19 cpi Courier Mode 3 10x23 BANK 2 PC Line Draw 12 amp 16 cpi Courier Modes 1 amp 2 12x23 BANK 3 PC Line Draw 19 cpi Courier Mode 3 10x23 TABLE 1 EXAMPLE STEP 1 International Rotated Courier Mode 0 14x23 International 21 24 cpi Courier Modes 4 5 8x23 To load a new character A Describe the Bitmap PC Line Draw Rotated Courier Modes 0 14x23 PC Line Draw 21 amp 24 cpi Courier Modes 4 amp 5 8x23 This is best done within a font editing program Characters must be right justified within the 16 x 23 bit cell To ensure the characters do not run together care should be taken to leave at least a single line of space on one side of each character STEP 2 STEP 3 STEP 4 STEP 5 Flash Based Font Download LEFT BYTE 2 1 to RIGHT BYTE 6 ESSE ses k X E X HE X X i a Ww 7
18. ffects the printing speed printing 1s slowest for Low peak power mode Note The on board brownout circuit resets the printer controller 1f peak power usage exceeds the batteries power capacity Example Set Printer Peak Power Control to medium Escape Sequence ESC P 2 Hexadecimal IB 50 02 21 Printer Controls Auto Power Down Feature In order to conserve battery life the printer features an auto power down timer The power down timer defaults to 20 seconds on initial power up The auto power down timer may be set or disabled by sending recognized command strings The auto power down is re started on every character received The auto power down timer may be disabled by activating the RTS input line or setting the auto power down timer to zero the printer lowers the CTS output line and transmits AUXOFF followed with XOFF before power down Auto Power Down Command The auto power down command string ESC M n1 n20 CR where nl or n2 may be 0 to 9 Reset Auto power down to 20 seconds ESC C Example 1 Set auto power down to occur after 99 seconds Escape Sequence ESC M 9 9 0 CR Hexadecimal lb 4D 39 39 30 OD Example 2 Disable auto power down Escape Sequence ESC M 0 0 0 CR Hexadecimal 1B AD 30 30 30 0D Example 3 Reset auto power down to twenty seconds Escape Sequence ESC C Hexadecimal IB 43 Operating Mode The printer can be operated in two modes Online or Buffer modes In online mode the charact
19. he battery cartridge and the new fonts will be ready for use Graphic Commands 8 Bit Dot Addressable Graphics The printer uses a single line thermal print head with elements spaced at 0 125mm The Mt2 print head has 384 thermal elements for a total print width of 48mm and the Mt3 has 576 elements for a print width of 77mm The 8 bit graphic commands enable control of each one of the heating elements and advancing of the paper by increments of 0 125 mm To select the 8 bit graphic mode the user application must issue the ESC V command Next the host application sends two bytes to indicate the number of the graphic lines desired followed with packet of 48 bytes for each graphic line in the Mt2 or 72 bytes for each graphic line in the Mt3 or Mt3 II The printer prints the graphic line and advances to the next line automatically 8 Bit Dot Addressable Graphics commands ESC V n1 n2 data n2nl 16 bit integer indicating the number of graphic lines to be received data 48 bytes of graphic data for the Mt2 or 72 bytes for the Mt3 Mt3 II Valid Graphic Character set is from 0x00 to OxFF Hex using bits 0 7 Example ESC V 0x01 0x00 and 72 bytes of data prints a single line of graphics on an Mt3 Mt3 II 8 Bit Compressed Graphics ESC v height width counter data counter data height An eight bit value representing the number of dot lines contained in the following data set width An eight bit value representing the number of bytes to be contain
20. heck digit automatically centered Example 1 Print UPC A 123456123459 23 mm high Escape Sequence ESC Z 4 12 184 2 3 4 5 6 1 2 3 4 5 9 Hexadecimal IB SA 34 0C B8 31 32 33 34 35 36 31 32 33 34 35 39 Note The received check digit 9 is ignored and recalculated in the printer 16 Bar Codes Example 2 Print UPC E 0783491 23 mm high Escape Sequence ESC Z 4 7 184 0 7 8 3 4 9 1 Hexadecimal 1B 5A 34 07 B8 30 37 38 33 34 39 31 Example 3 Print EAN JAN 8 65432109 25 mm high Escape Sequence ESC Z 4 8 200 6 5 4 3 2 1 0 9 Hexadecimal 1B SA 34 08 C8 36 35 34 33 32 31 30 39 Note The received check digit 9 is ignored and recalculated in the printer Example Print EAN JAN 13 6543216543219 20 mm high Escape Sequence ESC Z 4 13 160 6 5 4 3 2 1 6 5 4 3 2 1 9 Hexadecimal IB 5A 4 0D AO 36 35 34 33 32 31 36 35 34 33 32 31 39 Note The received check digit 9 is ignored and recalculated in the printer Note UPC EAN JAN height All heights are total height including a 1 25mm drop bar pattern printed after the barcode pattern Description Character set Elements per symbol Character density Bar width Characters per line Codabar Specifications Each symbol starts with Leading Quiet Zone followed with Start Symbol Data Symbols ending with Stop Symbol and Trailing Quiet Zone 0 9 and start stop pairs A T B M C D E 7 4 bars 3 spaces 8 1 CPI 0 25m
21. led IrDA Enabled Baud Rate 38 400 19 200 9 600 2 400 Parity bit No Parity Odd Parity Even Parity Hardware Reset Enable Reset Disable Reset Default Reserved Printer Power Control Continuous Power On Enabled Auto Power Off Enabled Mt3 Switch Assignments 31 Printer Configuration Mt3 Il Series Communication and other settings may be changed via the switches located inside the printer The following chart explains the various conditions obtained through the various configuration switch settings For more information please refer to the Mt3 II Series Operator s Manual Configuration Switches The diagram below shows switch settings for Bluetooth or Wi Fi communications Switches 2 amp 3 Shown In ON Position IrDA Interface Disabled Enabled RS 232C Interface Enabled Disabled Bluetooth Wi Fi Interface Disabled Enabled Baud Rate 38 400 19 200 9 600 2 400 Parity No Parity Even Parity Odd Parity Reserved Mt3 Il Switch Assignments 32 Command Quick Reference ASCII Control Characters Character Hex Dec CONTROL ACTION End Of Text BS Back Space HT Horizontal Tab LF Line Feed VT Vertical Tab FF Form Feed CR Carriage Return so Shift Out SI Shift In XON Transmitter On AUXON Printer on XOFF Printer receiver is off NORM Ret
22. m 20 maximum plus start stop automatically centered Example 1 Print 123456 15 mm high using the A start character the host transmits Escape Sequence ESC Z 5 8 120 A 1 2 3 4 5 6 T Hexadecimal 1B SA 35 08 78 A 31 32 33 34 35 36 54 Example 2 Print 2468 10 mm high using the C start character the host transmits Escape Sequence ESC Z 3 6 80 C 2 4 6 8 Hexadecimal 1B SA 35 06 50 43 32 34 36 38 2A Black Mark Sensing The Printek thermal printers can print on preprinted form stocks with a black mark located on the right side of the front face of the paper stock The printer paper out sensor is used to sense the black mark position Black Mark Operation Follow these steps to use black mark sensing e Set the paper out sensor sensitivity level by issuing ESC Q Q n command string The value selected for the sensitivity is dependant upon the height of the pre printed black mark located on the form stock The default power on value of n is 40 e Issue ESC Q Fm or ESC QB m printer Command to find the black mark The command positions the form for printing e Wait for ESC Q n1 n2 black mark found response from the printer e Send the data to be printed Black Mark Printer Commands Black Mark Command Command String Description Reverse Dot Feed ESCQ Jn Perform n reverse dot line feeds 0 125mm each Out of Paper Sensitivity ESCQQn On paper detect fail postpone the paper out error response for n 0 125
23. mm dot lines before flagging a paper out error n 0 255 Forward Black Mark Seek ESCQFm Seek black mark using forward feed until m dot line feeds have been processed Each dot line feed 0 250mm Reverse Black Mark Seek ESCQBm Seek black mark using backward feed until m dot line feeds have been processed Each dot line feed 0 250mm Printer Black Mark Response ESCQ n1 n2 nl and n2 are the high and the low nibble Paper Found respectively describing how many 0 250mm dot lines were required to find black mark Printer Black Mark Response ESCQ00n n2 nl and n2 are the high and the low nibble Paper Not Found respectively describing how many 0 250mm dot lines were processed before reporting black mark status Notes n Total number of 0 125mm dot lines 0x00 through OxFF m Total number of 0 250mm dot lines 0x00 through OXFF nl and n2 Total number of 0 125mm dot lines processed while seeking black mark nl holds the high four bits 0x30 4 high bits of count n2 holds the low four bits 0x30 4 low bits of count nl and n2 can have values 0x30 through Ox3F 19 Printer Controls Print Contrast Control The contrast of the printed text or graphics depends on the type of the thermal paper used the printer battery voltage and the printer contrast setting selected by the host application Ten levels of printer contrast settings are supported This feature insures operation with diffe
24. nor cono canos 25 Card Specifications steterit ied dee etie iie erect recie eus 25 Magnetic Card Read Command Strings sse ener ennt nennen nennen 25 Magnetic Card Data Output Format oooooonconocononoconononcnnnonnnononono nono non ron n eene nn nn nne enitn nennen nnns 26 Magnetic Card Read Error Messages c ccsccssseeseeesecscecseeeseeeseeseeeseeseessecaecesecaeceaecaaecseecaeecseseneenetenseeneeees 26 Interfacing to the Magnetic Card Reader sse enne enne 27 Maureen ise RR 28 Serial BUSY PEO a 28 XON XOEE Protocol td CHR PO RS 28 RS232C Connections eee eee erede o ente eet ec e eoe te E 28 111 Printer Configuration serssursrssorssnssnssnnssnnssnnesnnsnnnnsusssnsnsnssnnsnansnunsnnnsnnssnnssnnssnsennnssnnssunssnsssnssanssansnnnsnnssnnssnnenne 30 Mt Series rue na rs abn ET EDITH ha dde iia ida ige nern 30 MES ries e RO EU ein RERO NEN oe e Satin AA Re 31 MET aan EE 32 Command Quick Reference isciccceccsccsiiccssccssnecsesstcnsscecesessescecesseosecrseedstechonssecescossssveccosetecsscvbocsseseccooseasessssesseenseses 33 Glossary a AA O sds veseushss soueetanes cbsessossoseasees 37 Printer Characters For the purposes of software development there are three types of characters which may be transmitted to or from the printer Control Characters e Defined as character encoding 0x00 0x1F e Designed to control the printer operation ASCH Print Characters e Defined as character enco
25. nt Bar Code without visible text ESC Z nl n2 L data Print Bar Code with visible text ESCQ Jn Reverse Dot Feed ESCQOn Set Out of Paper Sensitivity ESC QFm Set Forward Black Mark Seek ESC QBm Reverse Black Mark Seek 34 Command Quick Reference Printer Supervisory and Control Commands Command String Printer Action V Buffer power timer amp battery status B Buffer status ESCP Print Battery Voltage ESC P alpha Time and date print and control Disable the power down timer ESC Mnn0CR Sets the power down timer to nn seconds ESC MC Reset Auto power down to 20 seconds ESC P Firmware version query ESCP Hardware model query ESC M000CR Resident Character Sets 1611121314 S 6 8 9 A B C D E F 2 111 isie 0D l 1 1 ol1l2 314 15161718 a R B C D E F G H POR SIT U IK a b c dle Flg rinm ASCII Chara International Character Set 9 I JK L M N 0 YENTE vizi rn DE EL EEG si RH IRE ITTF ETE Lehr P irl Eel le fle B 0 0 50 u le Y 0U0 Y v F p 8 o lf g rf elei lois NI PC Line Draw Character Set 35 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
26. on 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 Transmission Control Protocol A specification that controls the connection between systems on a network 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
27. ple 2 Print all numeric bar code 1234 5mm high without human readable text n 4 printed characters 1 start character 5 L 5mm 0 125mm 40 start character START C numeric pairs 0x89 Escape Sequence ESC z 2 5 40 STARTC 1 2 3 4 Hexadecimal 1B 7A 32 05 28 89 31 32 33 34 Example 3 Print alphanumeric bar code AB31234 7mm high without human readable text nl 7 printed characters 1 start character 1 control character 9 L 7mm 0 125mm 56 start character START B alpha numeric 0x89 Escape Sequence ESC z 2 0 56 STARTB A B 3 0x83 2 3 4 Hexadecimal IB 7A 32 09 38 89 41 42 33 83 31 32 33 34 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 These identifiers are not intended for point of sale applications Only recognized bodies of the UCC or EAN may assign application identifiers More information may be found at www ean be for the EAN and or www uc council org for the UCC Example Print all numeric bar code 1234 5mm high with human readable text nl 1 start character EAN specifier 4 printed characters 6 L 5mm 0 125mm 40 start character START C numeric pairs 0x89 Escape Sequence ESC Z 2 6 40 STARTC FNCI 1 2 3 4 Hexadecimal IB 5A 32 06 28 89 86 31 32 33 34 Bar Codes Interleaved 2 of 5 Specifications Description
28. rent grades of thermal paper available The printer defaults to the middle contrast The contrast may be changed by the host application using the ESC P n command string During the printing process the battery voltage and the thermal head temperature are monitored The print contrast is adjusted to assure consistent printout The print speed is affected by the contrast setting fastest print speed is achieved if the contrast is set to 9 Print Contrast Control Command Set the print contrast level ESC Pn n ASCII 0 through 9 0x30 0x39 0 Highest contrast amp lowest print speed 5 Default 9 Lowest contrast amp highest print speed Printer Peak Power Control The peak power control commands enable the operation of the printer with wide range of battery chemistries and peak capacities The printer may be operated in five peak power modes as listed in the table below Power Mode Command Maximum Dots Selected Maximum Current Heat lt 64 elements at a time Less than 1 0 Amp Heat 128 elements ata time Less than 2 0 Amps Heat 192 elements ata time Less than 3 0 Amps Heat 576 elements ata time Less than 9 0 Amps 64 128 192 or 576 ata time 1 5 to 3 0 Amps The printer default is Auto While in auto peak power mode the printer counts the number of dots to be fired and selects the appropriate power mode depending on the available battery capacity The peak power setting directly a
29. rns printer on 29 Printer Configuration Mt2 Series Communication and other settings may be changed via the switches located inside the printer The following figure shows the location of the switches and the table shows the switch assignments For more information please refer to the Mt2 Series Operator s Manual SWITCH LOCATION The diagram below shows switch settings for IrDA communications and Auto Power Off enabled Sample Switch Setting Communication Interface RS232 Bluetooth Enabled IrDA Enabled Baud Rate 38 400 19 200 9 600 2 400 Manual Power Control Mt2B Manual Control Disabled Manual Control Enabled Reserved Parity bit No Parity Odd Parity Even Parity Reserved Mt2 Switch Assignments 30 Printer Configuration Mt3 Series Communication and other settings may be changed via the switches located inside the printer The following chart explains the various conditions obtained through the various configuration switch settings For more information please refer to the Mt3 Series Operator s Manual Note In order for switch changes to take effect the printer power must be reset SWITCH LOCATION The diagram below shows switch settings for IrDA communications and Auto Power Off enabled Example SW1 Shown in On position Communication Interface RS232 Bluetooth Enab
30. s Number of data bits 7 5 7 Card Thickness 76 mm 0 08 mm Magnetic Card Read Command Strings e Six Commands strings are provided to read the magnetic cards These commands are summarized in the table below e The general syntax for commands are as follows ESCM nl n2tCR e The ESC M command turns on the power to the MCR e The next two bytes n n2 are used to set the reader s timer 01 through 99 are valid timer settings 00 disables the timer e The printer aborts and transmits the time out error message if the operator fails to swipe a card within the time period set by the host application 25 Magnetic Card Reader e On timeout the printer aborts the swipe process transmits timeout error message and turns off the MER Indicator e A good magnetic card swipe automatically terminates the read process ESCM n1 n21 CR Read Track only ESCM nl n22 CR Read Track2 only ESC M n1 n23 CR Read Track3 only ESCM n1 n24 CR Read Track and Track2 simultaneously ESCM nl n25 CR Read Track2 and Track3 simultaneously ESCM nl n26 CR Read Tracks 1 2 and 3 simultaneously ESC C Cancel Read process Example Read tracks 2 amp 3 with a twenty second timeout Escape Sequence ESC M 2 0 5 CR Hexadecimal IB 4D 32 30 35 0D Magnetic Card Data Output Format The track data retrieved from a magnetic card is transmitted to the host in ISO7811 ASCII format as summarized in th
31. t To Printer Characters Read By Bar Code Reader 0x020 through 0x07F ASCII 0x020 through 0x07F ASCII IF start character is 0x89 CODE C Characters Sent To Printer Characters Read By Bar Code Reader PAIRS 0x030 through 0x039 ASCII PAIRS 0x030 through 0x039 ASCII Note With CODE C each number must be paired with another Code 128 data Bytes The data bytes are defined by which character set is defined The printer accepts all characters 0x20h 0x7Fh with the translations defined above Also characters 0x080 0x86 may be used as code 128 control characters FNC3 FNC2 SHIFT change to C change to B change to B FNC 4 change to A FNC 1 FNC 1 FNC 1 reserved CODE 128 character used for UCC EAN 128 FNC 2 message append not supported by all bar code readers FNC 3 Initialize bar code reader FNC 4 extend characters bar code reader reads character 128 14 Bar Codes For example a is changed from 97 to 97 128 225 Note Itis possible to switch code sets in the middle of the bar code This is useful with heavily numeric alphanumeric bar codes see example below Example 1 Print alphanumeric bar code A2a 12 5mm high with human readable text nl 3 printed characters 1 start character 4 L 12 5mm 0 125mm 100 start character START B full ASCII alpha numeric 0x88 Escape Sequence ESC Z 2 4 100 STARTB A 2 a Hexadecimal 1B SA 32 04 64 88 41 32 61 Exam
32. the magnetic card reader ESC M 0 0 4 CR The printer turns on the GREEN MCR Indicator e Once the operator swipes the magnetic card the printer transmits the track s information found on the magnetic card e A good read automatically turns off the reader and the indicator e The MCR indicator illuminates RED if an error is encountered while reading the magnetic card e The printer transmits a timeout error message if the operator fails to swipe a card in the time period set by the host application 27 Serial Communications The proper baud rate and protocol settings are required to communicate with the host device The printer defaults to 19200 BAUD 8 DATA BITS NO PARIT and one STOP BIT on initial power up Two communication handshaking protocols are supported Serial Busy protocol and XON XOFF protocols Serial Busy Protocol For the serial busy handshaking mode the Request To Send printer input RTS and Clear To Send printer output CTS are used to control data flow to and from the printer RTS and CTS are considered to be valid or active when the signal level is positive 3 to 12VDC A positive RTS signal from the host device enables the printer The RTS signal is monitored during data transmission from the printer to the host device the printer transmits data to the host device only if RTS input is high The printer raises CTS when it is ready to accept data The printer lowers CTS when the print buffer has less than 256
33. tive official specification 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 36 alphanumeric 0 9 A Z and space Note Only capital letters are supported Elements per symbol 9 5 bars 4 spaces Character density 6 25 CPI Bar width 0 25mm narrow to wide ratio of 1 3 Characters per line 12 with auto center maximum Example Print CODE 39 1 mm high Escape Sequence ESC Z 1 7 8 C O D E 3 Hexadecimal IB 5A 31 07 08 43 4F 4 45 2D 33 13 Bar Codes 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 Support for full 256 ASCII set among three subsets Elements per symbol 6 3 bars 3 spaces Character density 9 1 CPI Bar width 0 25mm Characters per line 18 alphanumeric to 36 numeric only maximum automatically centered Code 128 Start character start character gt 0x87 0x88 0x89 determines the character set to be printed IF lt start character gt is 0x87 CODE A Characters Sent To Printer Characters Read By Bar Code Reader 0x020 through 0x03F ASCII 0x020 through 0x03F ASCII 0x040 through 0x07F ASCII 0x00 through 0x07F ASCH IF start character gt is 0x88 CODE B Characters Sen
34. tted after initial power up or clearing of printer jam or paper reload Printer receiver is off Printer to Host Print Buffer is full or other error condition Host to Printer host device transmitter off NORM Return to default 42 column mode AUXOFF Printer to Host printer is off Transmitted to host before power down or paper out CANCEL Cancel and reset printer Print buffer is reset and printer placed in initial power up default settings ESC Escape Escape character precedes graphics and printer operating modes Refer to escape command section EXTEND Extended print All characters following these commands are printed double high EXTEND Extended print off Normal print OFF All characters following this command are printed normal height ASCII Print Characters The printer is delivered with a single factory installed ASCII character set The factory default is based on the ISO defined US ASCII table The printable characters in the lower half of the character set 0x20 0x7F are shown below 1121314 1516 7 8 9 A B C D E IF pg D el 45161718191 lt l P B C D E F G H T J K L M R S TU V uix Y zE b c d e f gh i j fk 1 m r s t ulviwix y zi C L1 ASCII Character Set Printer Characters Extended Print Characters The Extended Print Characters are the upper half of the character set 0x80 0xFF There are two extended character sets which may be selected using th
35. urn to default 42 column mode AUXOFF Printer to Host printer is off CANCEL Cancel and reset printer BUFFER ESC Escape EXTEND Extended print EXTEND OFF Extended print off Normal print Printer Font Commands Courier Character Set Font Name Character size WxH Command String 24 CPI normal 8x21 ESC k 5 21 CPI normal 9x21 ESC k 4 19 CPI normal 10x21 ESC k 3 16 CPI normal 12x21 ESC k 2 12 CPI normal 16x21 ESC k 1 13 CPI rotated 14x16 ESC k 0 MSP Font 10 32 CPI Dot Matrix Fonts ESC F 3 through 8 33 Command Quick Reference Printer Font Commands Selects International character set Selects PC Line Draw character set Enable emphasized print Disable emphasized print Printer Graphic Commands ESCAn Select dot line spacing between printed lines ESC Jn Graphic Line Feed command ESC P Select Online mode characters printed as received ESC P Select Buffer mode characters are printed on D ESC V nl n2 data 8 bit Graphic command ESC v nl n2 data 8 bit Compressed Graphic Command Magnetic Card Reader Control Commands ESC M nn track CR Enable MCR with nn auto timeout to read track track s ESC C Cancel MCR read process Graphic Logo and Bar code commands ESCLGn Prepare printer to load image ESC G 0x0FF Loading Logo Complete ESCL gn Print stored logo image ESC z nl n2 L data Pri
36. xadecimal IB 55 31 Printer Characters Line Spacing The line spacing between successive printed text lines may be set using the text line spacing command ESC a n While printing PC Line draw characters the line spacing must be set to zero by issuing the ESC a 0 command string this setting allows connection of graphic characters on successive lines During text print line feeds may be performed at 0 125mm resolution using the graphic linefeed command ESC J n ESCan Where n is the number of graphic line spacing in increments of 0 125mm n 0 10 The printer default setting is 3 dot line spacing after each printed text line n 3 ESC Jn Where n is the number of desired 0 125mm graphic line feeds n 0 255 Example 1 Set line spacing to 5 dot lines between character rows Escape Sequence ESC a 5 Hexadecimal IB 61 05 Example 2 Perform 50 graphic line feeds Escape Sequence ESC J 50 Hexadecimal 1B 4A 32 Flash Based Font Download The Mt2 and Mt3 printers provide the user the ability to replace the factory installed fonts This allows the printer to adapt to many application specific character sets Note To protect the fonts from accidental corruption these must be the first commands received by the printer when it is powered on Normal ASCII Font Download RS 232 only Enter flash ASCH font program mode ESCDAn n Reserved for future use 0 is recommended Note This command must be the first ESC
Download Pdf Manuals
Related Search
Related Contents
筆まめ で "取扱説明書" 54868 DF501 A5 multilingual アイセーバ プラグインスリムブレーカ Owner`s Manual 自分だけのリストで閲覧・比較! 全てのデータがここで揃う! RESERVATION Mode d`emploi Samsung SC7355 Инструкция по использованию Copyright © All rights reserved.
Failed to retrieve file