The text of a manual · part 3 of 5
Mt Series Programmer's Manual, pages 19 to 27
Pages 19 to 27 of 44
The original document is the PDF (673 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 Mt3
Page 19
Bar Codes For example: 'a' is changed from #97 to #97+128 = #225 Note:
It is 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. n1 = 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 Hexadecimal: 1B 5A
2 32
4 04
100 64
STARTB 88
A 41
2 32 a 61
Example 2: Print all-numeric bar code "1234", 5mm high, without human readable text. n1 = 4 printed characters + 1 start character = 5 L = 5mm / 0.125mm = #40 start character = START C (numeric pairs) = 0x89 Escape Sequence: ESC z Hexadecimal: 1B 7A
2 32
5 05
40 28
STARTC 89
1 31
2 32
3 33
4 34
Example 3: Print alphanumeric bar code "AB31234", 7mm high, without human readable text. n1 = 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 Hexadecimal: 1B z 7A
2 32
0 09
56 38
STARTB 89
A 41
B 42
3 0x83 33 83
1 31
2 32
3 33
4 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. n1 = 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 Hexadecimal: 1B 5A
2 32
6 06
40 STARTC FNC1 1 28 89 86 31
2 32
3 33
4 34
15
Page 20
Bar Codes
Interleaved 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
Characters per line:
24 numeric (maximum), automatically centered.
Example: Print "12345678", 10mm high. Escape Sequence: ESC Hexadecimal: 1B
Z 5A
3 33
8 08
80 50
1 31
2 32
3 33
4 34
5 35
6 36
7 37
8 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 check digit (automatically centered).
Example 1: Print UPC-A, 123456123459, 23 mm high. Escape Sequence: ESC Z Hexadecimal: 1B 5A
4 34
12 184 0C B8
1 31
2 32
3 33
4 34
5 35
6 36
Note: The received check digit ‘9’ is ignored and recalculated in the printer.
16
1 31
2 32
3 33
4 34
5 35
9 39
Page 21
Bar Codes Example 2: Print UPC-E, 0783491, 23 mm high. Escape Sequence: ESC Hexadecimal: 1B
Z 5A
4 34
7 07
184 B8
0 30
7 37
8 38
3 33
4 34
9 39
1 31
5 35
4 34
3 33
2 32
1 31
0 30
Example 3: Print EAN/JAN-8, 65432109, 25 mm high. Escape Sequence: ESC Hexadecimal: 1B
Z 5A
4 34
8 08
200 C8
6 36
9 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 Hexadecimal: 1B 5A
4 4
13 160 0D A0
6 36
5 35
4 34
3 33
2 32
1 31
6 36
5 35
4 34
3 33
2 32
1 31
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.
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 start/stop pairs {A/T, B/M, C/*, D/E}
Elements per symbol:
7 (4 bars, 3 spaces)
Character density:
8.1 CPI
Bar width:
0.25mm
Characters per line:
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 Hexadecimal: 1B
Z 5A
5 35
8 08
120 78
A 41
1 31
2 32
3 33
4 34
5 35
6 36
T 54
Example 2: Print 2468, 10 mm high using the C start character the host transmits. Escape Sequence: ESC Hexadecimal: 1B
Z 5A
5 35
6 06
80 50
C 43
2 32
4 34
6 36
8 38
* 2A
17
9 39
Page 22
Page 23
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: •
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.
•
Issue ESC Q F m -or- ESC Q B m printer Command to find the black mark. The command positions the form for printing.
•
Wait for ESC Q ? ? n1 n2 black mark found response from the printer.
•
Send the data to be printed.
Black Mark Printer Commands Black Mark Command Reverse Dot Feed
Command String ESC Q J n
Out of Paper Sensitivity
ESC Q Q n
Forward Black Mark Seek
ESC Q F m
Reverse Black Mark Seek
ESC Q B m
Printer Black Mark Response: Paper Found
ESC Q ? ? n1 n2
Printer Black Mark Response: Paper Not Found
ESC Q 0 0 n1 n2
Description Perform n reverse dot line feeds, 0.125mm each. On paper detect fail, postpone the paper out error response for n 0.125mm dot lines before flagging a paper out error. n = 0…255 Seek black mark using forward feed until m dot line feeds have been processed. Each dot line feed = 0.250mm. Seek black mark using backward feed until m dot line feeds have been processed. Each dot line feed = 0.250mm. n1 and n2 are the high and the low nibble, respectively, describing how many 0.250mm dot lines were required to find black mark. n1 and n2 are the high and the low nibble, 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 0xFF. m = Total number of 0.250mm dot lines, 0x00 through 0XFF. n1 and n2 = Total number of 0.125mm dot lines processed, while seeking black mark. n1 holds the high four bits (0x30 + 4 high bits of count). n2 holds the low four bits (0x30 + 4 low bits of count). n1 and n2 can have values 0x30 through 0x3F. 19
Page 24
Page 25
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 different 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 P n n = ASCII ‘0’ through ‘9’ {0x30...0x39} 0 = Highest contrast & lowest print speed 5 = Default 9 = Lowest contrast & 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 1 - Low 2 - Medium 3 - High 4 - Very 5 - Auto
Command ESC P 1 ESC P 2 ESC P 3 ESC P 6 ESC P 7
Maximum Dots Selected Heat <64 elements at a time Heat <128 elements at a time Heat <192 elements at a time Heat <576 elements at a time 64, 128, 192, or 576 at a time
Maximum Current Less than 1.0 Amp Less than 2.0 Amps Less than 3.0 Amps Less than 9.0 Amps 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 affects the printing speed; printing is slowest for Low peak-power mode. Note: The on-board brownout circuit resets the printer controller if peak-power usage exceeds the batteries power capacity. Example: Set Printer Peak Power Control to medium. Escape Sequence: ESC Hexadecimal: 1B
P 50
2 02 21
Page 26
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 n2 0 CR where n1 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 Hexadecimal: 1b
M 4D
9 39
9 39
0 30
CR 0D
0 30
0 30
CR 0D
Example 2: Disable auto power down. Escape Sequence: ESC Hexadecimal: 1B
M 4D
0 30
Example 3: Reset auto power down to twenty seconds. Escape Sequence: ESC Hexadecimal: 1B
C 43
Operating Mode The printer can be operated in two modes, Online or Buffer modes. In online mode, the characters 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 Hexadecimal: 1B Print Buffered Data: Control Code: Hexadecimal:
22
EOT 04
P 50
$ 24
Page 27
Printer Status Commands Print Battery Voltage The battery voltage level may be printed using the following command. Print Battery Voltage:
ESC P ^
Transmit Battery Voltage: CTRL-V Example: Print the battery voltage. Escape Sequence: ESC Hexadecimal: 1B
P 50
^ 5E
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: <4 ASCII hex digits> in the table below are read as hex nibbles OR’ed with 0x30.
Command Description Print status request: Print buffer status: Magnetic card reader status: Battery status request: Print buffer status: Battery Voltage status: Magnetic card reader status Firmware version query: Firmware version: Example v1.00: Hardware model query: Hardware model: Example:
Status Commands CTRL-B
Printer Responses ESC B <4 ASCII hex digits> CRLF ESC M <4 ASCII hex digits> CRLF
CTRL-V ESC B <4 ASCII hex digits> CRLF ESC V <4 ASCII decimal digits> CRLF ESC M <4 ASCII hex digits> CRLF ESC P (> ESC ( <4 ASCII characters> CRLF ESC ( 1 0 0 SPACE CRLF ESC P ) ESC ) <4 ASCII characters> CRLF ESC ) 1 0 3 C CRLF *
* 103 represents the Mt3 printer, ‘C’ is the hardware revision letter. 108 represents the Mt2 printer. 118 represents the Mt3-II printer
23