The text of a manual · part 7 of 14
User Manual and Technical Guide: The O'Neil microFlash Series of Printers, pages 61 to 70
Pages 61 to 70 of 135
The original document is the PDF (799 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 O'Neil MicroFLASH 3, Symbol Microflash-2T and Datamax MicroFLASH 3
Page 61
Sample Receipt in Line Printer Mode
Example 1: Command Strings for Text 1) 2)
Åw” RECEIPT
3)
Åw!
4)
Item #1 - yellow version
$1.00
5)
Item #2 - blue version
$1.00
6)
Item #3 - red version
$1.00
7)
Åw”
8)
TOTAL: $3.00
9)
ÅEZ
Explanation of Command Strings Line 1-2:
The “Å“ character is what the ESC character looks like on your screen. Lines 1-2 print “RECEIPT” in 7.2 cpi font using Åw” sequence.
Line 3-6:
Print Item #1 - #3 information in a 20.4 cpi font using Åw! sequence.
Line 7-8:
Prints the “Total” in a 7.2 cpi font using Åw” sequence.
Line 9:
Go to Easy Print Mode. (The left arrow “Å“ represents the escape character as it appears on your screen.)
User Manual and Technical Guide The O'Neil microFlash Series of Printers Custom Receipts and Labels • 51
Page 62
Escape Sequences ESC C n
Set Form Length
Format:
ESC C n
Dec:
27
67 n
Hex:
1B
43 n
Function:
Sets the page length in character lines. In the command format, “n” represents the number of lines in the form and “n” is a single byte. The default for “n” is 20 decimal, 14 hexadecimal. The range for “n” is 1 - 255.
ESC A n
Set Interline Spacing
Format:
ESC A n
Dec:
27
65 n
Hex:
1B
41 n
Function:
Sets the number of blank dot lines that are fed between character lines. It will add “n “ (eight bit binary number) blank lines after completion of the current line and before the next line begins printing. The default for “n” is 0, where n = number of inter character blank dot lines in a single character. The range for “n” is 1 - 155.
CAN
Cancel Line Buffer
Format:
CAN
Dec:
24
Hex:
18
Function:
Cancels characters received on the currently forming line (but not yet printed) to be discarded.
52 • Custom Receipts and Labels User Manual and Technical Guide The O'Neil microFlash Series of Printers
Page 63
ESC V n1 n2
Bit-Mapped Graphics
Format:
ESC V n1n2
Dec:
27
86 n1n2
Hex:
1B
56 n1n2
Function:
Prints the next (n1*256 + n2) dotlines as bit-mapped graphics. “n1n2” form a 16-bit binary number set, most significant byte first. Used to print user-generated bit map graphics across the width of the print head. After receipt of this command, the printer will dump the binary data supplied directly to the print head. As customary with bit map data, a “1” bit indicates a dot is on, “0” bit indicates the dot is off. Graphics printed in this manner must be the exact width of the head in bits. Bit 7 of the first byte of data received will print at the left-most dot on the head as you view the head with the paper feeding away from you. The printer will remain in bit map graphics mode until the total amount of bytes necessary to fill “n1 n2” lines of print have been received by the printer. Printer Type
Dots Across
Bytes Across
Dots Per Inch microFlash2
384
48
203 microFlash3
576
72
203 microFlash4t/4tCR
832
104
203 microFlash2t/2tCR
384
48
203 microFlash2i/2iCR
240
30
127 Horizontal 69 Vertical
User Manual and Technical Guide The O'Neil microFlash Series of Printers Custom Receipts and Labels • 53
Page 64
ESC B, ESC E
Accept Compressed Graphics
Format:
ESC B
Format ESC E
Dec:
27
66
Dec:
27
69
Hex:
1B
42
Hex
1B
45
Function:
Accepts compressed graphics data. Then it will uncompress and print. Each compressed dotline (using a run-length encoding scheme) is preceded by an uppercase “G.” Each uncompressed dotline is preceded by an upper case “U.” Vertical white space (where several consecutive dotlines have not been printing) can be efficiently handled using an upper case “A” followed by a single byte count of the number of dotlines to advance. Compressed dotlines use a single graphics byte, followed by the number of times that byte is to be repeated. Once the compressed graphics data command (ESC B) is received, each dotline must be preceded by the “G” or “U,” or an “A” may be sent followed by the number of lines to advance. When all data has been sent, the final bytes must be ESC E to exit compressed graphics data. Compressed graphics mode requires a graphic image the same width as the print head in use (the microFlash3 has 576 bits across a single line, the microFlash2/2t has 384 bits and the microFlash2i has 240 bits microFlash4t has 832 bits across a single line).
SO Set Double Wide Print Format:
SO
Dec:
14
Hex:
OE
Function:
Will print the current font in double width until an SI is received (single wide printing) or a carriage return is received.
SI
Set Single Wide Print
Format:
SI
Dec:
15
Hex:
OF
Function:
Will print the current font in single width.
54 • Custom Receipts and Labels User Manual and Technical Guide The O'Neil microFlash Series of Printers
Page 65
FF Form Feed Format:
FF
Dec:
12
Hex:
0C
Function:
Will print the current line being formed, then advance the paper to top of form.
LF Line Feed Format:
LF
Dec:
10
Hex:
0A
Function:
Line feed will cause the line to print and the paper to advance.
CR Carriage Return Format:
CR
Dec:
13
Hex:
0D
Function:
Like a line feed (see above), the carriage return command will cause the line to print and the paper to advance. O’Neil has provided both commands for the convenience of all programmers, some of whom may be more used to using a Line Feed command, some of whom are more used to using Carriage Return. Note: To print and advance “n” lines, use that number of CR commands (or LF commands, or CR/LF or LF/CR combinations).
ESC w n
Select Font
Format:
ESC w n
Dec:
27
119 n
Hex:
1B
77 n
Function:
Selects a font from the following list, given “n,” a binary eight-bit number. The first three fonts in the table below are permanent fonts. The next four have been added for you but can be removed. The default font style is a 20.4 cpi font (n= 33 decimal, 21 hexadecimal.)
User Manual and Technical Guide The O'Neil microFlash Series of Printers Custom Receipts and Labels • 55
Page 66
Line Printer Mode Fonts Name
Font
ASCII
Hex
Dec
Dots Wide
Dots High
MF055
5.5
#
23
35
37
39
96 chars large block
MF072
7.2
”
22
34
28
31
96 chars large block
MF102
10.2
(space)
20
32
20
26
223 chars medium block bold
MF107
10.7
&
26
38
19
26
96 chars block bold
MF185
18.5
$
24
36
11
24
96 chars block normal
MF204
20.4
!
21
33
10
24
224 chars block normal
MF226
22.6
%
25
37
9
24
97 chars small block
Description microFash 2i Only IM5X7
22.1
?
3F
63
5
7
96 chars impact 5x7
IM5X8
22.1
@
40
64
5
8
96 chars impact 5x8
The “(space)” in the chart above represents the space character. This is the basic list of fonts. For the entire list, See Appendix C. To compare the fonts, run the demo program and print the sample files. See Chapter 2, Quick Demo.
ESC @
Reset Printer
Format:
ESC @
Dec:
27
64
Hex:
1B
40
Function:
Resets the printer to defaults.
Here’s an important Easy Print command to remember when you wish to return to Line Printer Mode from Easy Print Mode: Format:
{LP}
Function:
“{LP}” is not a Line Printer Mode command. Use it from within Easy Print Mode when you need to return to Line Printer Mode . Note: If you do use it from within Line Printer mode by mistake, it will simply print “[LP}” on your receipt or label.
56 • Custom Receipts and Labels User Manual and Technical Guide The O'Neil microFlash Series of Printers
Page 67
ESC Hn
Heighten Font “n” Times
Format:
ESC H n
Dec:
27
72 n
Hex:
1B
48 n
Function:
Multiply height of font by “n.” Must apply to entire line.
ESC Q n1n2
Advance “n1n2” From “Q” Mark
Format:
ESC Q n1 n2
Dec:
27
81 n
Hex:
1B
51 n
Function:
Advance the paper “n1n2” dotlines from “Q” Mark. For more on the “Q” mark, see Chapter 9.
ESC R n
Select International Character Set
Format:
ESC R n
Dec:
27
82 n
Hex:
1B
52 n
Function:
Selects international
ESC Hn
0 = USA
4 = Denmark
1 = France
5 = Sweden
2 = Germany
6 = Italy
3 = UK
7 = Spain
Set Double Wide and Double High
Format:
ESC ! n
Dec:
27
33 n
Hex:
1B
21 n
Function:
Selects font height and width for one line. Must apply to entire line. n = 10h 16d Double High n = 20h 32d Double Wide n = 30h 48d Double High and Double wide
ESC EZ
Go to Easy Print Mode
Format:
ESC E Z
Dec: 27
69
90
Hex: 1B
45
5A
Function:
Puts the printer in Easy Print Mode. You must use the capital letters ‘EZ.”
User Manual and Technical Guide The O'Neil microFlash Series of Printers Custom Receipts and Labels • 57
Page 68
Easy Print Mode Easy Print is the easiest of all possible modes of printing. It uses “English-like” commands. You can go to Easy Print from Line Printer Mode by entering an ESC EZ. Easy Print Mode allows you to design a custom receipt, ticket or report with borders, lines, stored graphics, logos, bar codes and text in any arrangement or rotation to suit your needs. Unlike Line Printer Mode, Easy Print allows you to use stored graphics. Thus, anything you print will be printed lightning fast. You can create images that are missing only variable data, which will be supplied when the image is printed. The microFlash can store from one to 100 different formats in internal memory, depending on the size of the format and the amount of memory available in your microFlash (1M or 4M). The printed receipt might contain your company logo at the top, a signature line at the bottom and an identifying bar code in the middle.
Easy Print Command General Format There are four things to remember about all Easy Print Commands. 1) They all look like this: {Command:Information} where “information” is the set of instructions (if any) the printer needs to carry out a command. 2) For some commands, no “information” is necessary in the sense used above. 3) For some commands, the information the printer needs is somewhat more complex, e.g. the Print Command. 4) For some commands, there are “global options” which modify the entire command.
Always use Easy Print for graphics you will use multiple times, such as a company logo. By storing a graphic in flash memory, you minimize communications between the host computer, thus increasing your print speed. Your hand-held computer sends only the variable data to the printer in order to print receipts. If the printer is asleep, null characters must precede any Easy Print or Line Printer commands. If the printer is awake, it does not need null characters in either mode.
58 • Custom Receipts and Labels User Manual and Technical Guide The O'Neil microFlash Series of Printers
Page 69
Print Command Format Command After the left bracket, command, global options and colon, the command string consists of a series of identically formed lines all of which have this format: @row, column, Name, Field Options|print data|} Vertical bars surround the data. Colons surround the row and column information. Information {Print, Global Options: Right Bracket ends Print Request @row,column:Name, Field Options|Data| @row, column:Name,Field Options|Data| @row, column:Name,Field Options|Data|
}
Data: Depending on what is printed, the data will be the text printed out on a receipt or label that is human readable, or the characters that are machine readable with a scanner. Field Options: The user can multiply the height or width of text, graphics and bar codes. Name: The Name of what you are printing is the style of font or bar code or line, or the file name of the graphic. An example of the name of a font is “MF102.” Do not put spaces in the “Name” or the printer will reject your print request. Row,Column: where to print text, graphics, bar codes and lines. A typical print request will consist of the word “Print” and a number of items to be printed, each at a different row and possibly at a different column. In order for text to line up properly, keep the column number the same, (e.g. @10,30 (information)| @ 60,30 (information)|). Note: There can be no spaces before or after a colon. Global Options: an action that refers to entire receipt or label. A global option can be used to stop the paper after a specified number of dotlines or at a specified mark, to rotate an image, or to print a specified number of copies all at once or on demand. A colon follows global options, if any.
User Manual and Technical Guide The O'Neil microFlash Series of Printers Custom Receipts and Labels • 59
Page 70
Quick Reference for Easy Print Commands Commmand Ahead
Page 64
Back
Page 64
LP
Page 64
Page 58
Print Request “Global Options”
Page 65
Print Request “Information”
Page 65
:row, column:
Page 65
Name of what is printed (Font, Bar Code, Line, Graphic)
Page 69-72
Field Options used to heighten or widen image
Page 70
Print Data (the bar code, graphic or text)
Page 65-66
TP Self Test Printout
Query Class of Commands
Page 65 Page 101
60 • Custom Receipts and Labels User Manual and Technical Guide The O'Neil microFlash Series of Printers