The text of a manual · part 4 of 6
Monarch 9430RX Printer, pages 31 to 40
Pages 31 to 40 of 55
The original document is the PDF (1.3 MB). 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 Monarch 9430RX
Page 31
Using Flash Memory Graphics You can also use a graphic stored in flash memory. You are limited to one graphic stored in memory at a time. Saving a graphic to flash memory when there is already one there overwrites the previous one. 1.
Remove the printer’s battery and wait several seconds.
2.
Re-insert the battery and enter Download Mode immediately. It takes two commands to enter Download Mode: ESC DL Have the host wait to send the second command until the printer responds to the first command by returning a ‘?‘ character. ESC LG0
3.
Send the graphic one line at a time using the ESC-V command as described in “Using Data Stream Graphics.” ESC V 1 0 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFF
4.
Save the graphic to flash memory using the following command: ESC LG FF hex When the printer receives the command, it returns a ‘D‘ character, and begins the save. When the save is complete, the printer sends a ‘!’ character, and then an ‘X’ character every 500 milliseconds.
5.
Remove the printer’s battery and wait several seconds before replacing it.
6.
Print the flash memory graphic with the following command: ESC Lg0
3-8 Creating and Printing Formats
Page 32
Creating Bar Code Fields The printer can print the following bar codes, with or without human-readable data. ♦
Code 39
♦
Codabar
♦
Interleaved 2 of 5
♦
Code 128 (UCC/EAN-128)
♦
UPC/EAN/JAN
Syntax
ESC-<cmdbc>-<bctype>-<length>-<height>-‘data’ ESC
Starts the command language.
<cmdbc>
Bar code command. Options: z Prints a bar code without human-readable data. Z Prints a bar code with human-readable data.
<bctype>
The type of bar code to print (values are the ASCII representation, not hex). Options: 1 Code 39 2 Code 128 (UCC/EAN-128) 3 Interleaved 2 of 5 4 UPC/EAN/JAN 5 Codabar
<length>
The data length, specified in hex (01 – FF). This value is dependent on the bar code you choose with <bctype>. See “Specifying Particular Bar Codes.”
<height>
The bar code height, specified in hex, in increments of .125 mm. <height> can be no smaller than 14. For example, 14 = 2.5 mm, 15 = 2.625 mm, etc. For UPC/EAN/JAN bar codes, the height you specify includes a 1.25 mm drop bar pattern after the bar code.
‘data’
The data for the bar code. It must equal <length>. See “Specifying Particular Bar Codes” for data restrictions, which vary by bar code. Creating and Printing Formats 3-9
Page 33
Example
ESC Z 3 08 hex 50 hex '12345678'
Prints an Interleaved 2 of 5 bar code, 10 mm high, containing 12345678 as the data.
Specifying Particular Bar Codes Values for the <length> and <data> parameters depend on the type of bar code you choose with <bctype>. Bar Code Code 39 Interleaved 2 of 5 UPC/EAN/JAN
Codabar
<length>
<data>
12 (maximum) with automatic centering 24 (maximum)
0-9, A-Z, -, (space), $, /, +, and % Pairs of numeric characters (0-9) 0-9
UPCA: 12 UPCE: 7 EAN/JAN-8: 8 EAN/JAN-13: 13 These lengths are fixed and all include a check digit. 20 (maximum) plus start and stop characters. The printer adds the stop character automatically.
Data: 0-9, $, -, :, /, ., and +. Start characters: a (the default), b, c, or d.
Code 128 (UCC/EAN-128) Details For Code 128 (UCC/EAN-128) bar codes, <length> can be a maximum of 18 (with alphanumeric/control code data) or 36 (if you use subset C and numeric pairs). The first character of <data> must specify the subset to use: A, B, or C (listed as 87, 88, and 89 hex, respectively). The rest of the data can be all 256 ASCII characters by using a combination of the subsets. The data must appear as numeric pairs corresponding to the hex values for the ASCII character in question. Each subset enables the bar code to contain different characters. Subset A uses 20-3F hex and 40-7F hex (read by a bar code scanner as 00-7F hex), subset B uses 20-7F hex, and subset C uses 30-39 hex.
3-10 Creating and Printing Formats
Page 34
The following tables explain how to switch from one subset to another and use the functions. Character 80 hex 81 hex 82 hex* 83 hex 84 hex 85 hex 86 hex
Subset A Function 3 Function 2 Shift Switch to Subset C Switch to Subset B Function 4 Function 1
Subset B Function 3 Function 2 Shift Switch to Subset C Function 4 Switch to Subset A Function 1
Subset C
Switch to Subset B Switch to Subset A Function 1
* A temporary, one character shift to another subset. The following table describes the purpose of each function (listed in the previous table). Function Number Function 1 Function 2 Function 3 Function 4
Purpose Uses reserved Code 128 characters (UCC/EAN128). Appends data (subsets A and B only). The result is not readable by all bar code scanners. Initializes a bar code scanner. Extends characters by adding 128 to the ASCII code. For example, 'a' (97 decimal) is changed to 'β' (225 decimal) by adding 128 to it. This function is unavailable in subset C.
Creating and Printing Formats 3-11
Page 35
Positioning Fields You may need to use some of these supply positioning control characters to position the fields on the format. The data stream can also write spaces to the printer before it prints text to position a field. You can also change the line spacing between lines or before a line. See “Selecting the Line Spacing” in this chapter for more information. NOTE:
There are .157-inch no-print zones on the left and right sides of the format, and a .7-inch no-print zone at the top of the format.
Char.
Hex
Control Action
CR LF FF NORM SI SO HT
0x0D 0x0A 0x0C 0x14 0x0F 0x0E 0x09
VT
0x0B
Carriage Return - Advances to beginning of next line. Line Feed - Advances to beginning of next line. Form Feed - Advances 10 lines. Switches to 57-column print mode. Shift In - Switches to 57-column print mode. Shift Out - Switches to 36-column print mode Horizontal Tab - Advances to the next tab position (from the following list) or to the beginning of the next line: 5, 9, 13, 17, 21, 25, 29, 33, 37. Vertical Tab - Advances 5 lines.
3-12 Creating and Printing Formats
Page 36
USING THE MAGNETIC CARD READER
34
Optional. Your printer may have a magnetic card reader, which reads up to three tracks of magnetically encoded data from cards conforming to the ANSI/ISO 7810 and 7811 standards.
Magnetic Card Specifications The card thickness is 0.76 mm (+/- 0.08 mm) Track Position Track 1 ISO1 (IATA) Track 2 ISO2 (ABA) Track 3 ISO3 (MINTS)
Recording Density
Recording Capacity
Number of Data Bits
210 BPI
79 Characters
7
75 BPI
40 Characters
5
210 BPI
107 Characters
7
After reading the data, the printer returns the information to the host. Following is a summary of what occurs when using the reader: 1.
The host wakes up the printer by sending it some characters.
2.
The printer responds with an XON character.
3.
The device starts the reader (ESC M command). The green LED turns on.
4.
The user swipes a card.
5.
If the swipe was successful, the reader turns off and the printer sends the data read. If an error occurs, the red LED turns on. If the reader times out, the printer sends a message.
Using the Magnetic Card Reader 4-1
Page 37
Syntax
ESC-<cmdmc>-#timer#-<tracks>-CR ESC
Starts the command language.
<cmdmc>
Magnetic card command. Enter M. Prepares the reader for a magnetic card swipe. The reader’s LED turns on when the printer receives this command, indicating it is waiting for the user to swipe the card. On a successful swipe, the LED turns off.
#timer#
Sets the reader’s timer. If the user does not swipe the card through the reader before the timer runs out, an error occurs. Values are 00-99 (seconds). 00 disables the timer.
<tracks>
The combination of tracks to read. 1 Track 1 only. 2 Track 2 only. 3 Track 3 only. 4 Tracks 1 and 2 together. 5 Tracks 2 and 3 together. 6 Tracks 1, 2, and 3 together.
CR
Carriage return.
The reader responds to the read command with:
#trck#-(data)-'?'-CR-LF-NAK #trck#
Track indicator. Values are %/1/ (track 1), ;/2/ (track 2), and +/3/ (track3).
(data)
The data read from the card. This field can be empty. If an error occurs, this field contains an E character and the error message text (see ”Error Messages”).
?
End of track character.
CR-LF-NAK
Indicates the end of a response from the printer.
4-2 Using the Magnetic Card Reader
Page 38
Syntax
2 hex 2 hex (Ctrl-B)
Requests the status of the print buffer and card reader.
The printer responds with:
ESC-'B'-#pb#-CR-LF-ESC-'M'-#sleep#-CR-LF-NAK
Example
#pb#
The number of characters currently in the print buffer, shown as four hex digits, which are “OR’d” with 30 hex.
#sleep#
Four ASCII hex digits (which are “OR’d” with 30 hex) representing the time left before the printer enters sleep mode.
CR-LF-NAK
Indicates the end of a response from the printer.
ESC C
Cancels the reading process.
Error Messages The following data is returned when an error occurs with the magnetic card reader. When an error occurs, the reader’s LED blinks once. '%'-'E,'-#error#-','-(text)-CR-LF Indicates an error occurred. % and +
Start of track characters.
E
Indicates an error occurred.
#error#,(text)
Error number and corresponding text. 05 Timeout Expired. 07 Invalid Track Number. 08 Unsupported Track selected. 09 Cancel Request.
CR-LF
Carriage return and line feed.
Set the value for the timer long enough to allow the swipe, but short enough not to allow multiple swipes. If multiple swipes are done (with different cards) and each uses different tracks to store data, the data sent back to the host is a mixture from the two cards.
Using the Magnetic Card Reader 4-3
Page 39
4-4 Using the Magnetic Card Reader
Page 40
A
QUICK REFERENCE For more detailed information about each command, see the previous chapters.
Choosing a Font Syntax ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC
Character size (WxH) 8x21 9x21 10x21 12x21 16x21 14x16 k5 k4 k3 k2 k1 k0 F1 F2 U1 U0 Fw Fh a <num>
ESC J <num>
Font Name/Action Reduced Normal Reduced Bold Standard Normal Standard Bold Large Normal Large Rotated (90 degrees clockwise) Selects the International character set. Selects the PC Line-Draw character set. Enables bold printing. Disables bold printing. Enables underline mode. Disable underline mode. Selects the dot line spacing between printed lines. Performs a line feed.
Choosing a Bar Code Syntax ESC z <bctype> <length> <height> <data>
ESC Z <bctype> <length> <height> <data>
Printer Action Prints a bar code without humanreadable data. Prints a bar code with human-readable data.
Quick Reference A-1