The text of a manual · part 3 of 14
A795 Two-Color Thermal Receipt Printer User Guide: Programming Supplement, pages 21 to 30
Pages 21 to 30 of 136
The original document is the PDF (980 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 Axiohm A795
Page 21
Revision E May 2005
A795 User Guide: Programming Supplement
21
Chapter 2: Diagnostics and Configuration
Select the hardware options sub-menu to set: • Printhead setting This setting is the printhead energy rating and must match the rating marked on the front right of the thermal mechanism in the printer. Whenever a new thermal mechanism is installed, this setting must match the indicated energy rating on the mechanism. (See A795 Service manual for replacing the thermal mechanism.) • Paper Type Name Sets the printer to optimum performance for paper being used. This can also be done through the command 1D81 m n. See the following chapter for command usage. Available paper types may vary. Currently there are 4 types: 0 = monochrome, Kanzaki P310 1 = two-color, Kanzaki P310RB 4 = two-color, Kanzaki P320BB 5 = two-color, Kanzaki P320RB (See page 36 in User Guide for available paper manufacturers.) • Color density Adjusts printhead energy level to darken color printing or adjust for paper variations. When printer prints high-density color print lines (text or graphics), it automatically slows down. Factory setting is 100%. CAUTION: Choose a color density setting no higher than necessary to achieve acceptable color print density. Failure to observe this rule may result in a printer service call and may void the printer warranty. Running at a higher energy level will reduce the printhead life. Consult your TPG, Inc. technical support specialist if you have questions.
• Print density (monochrome papers only) Adjusts printhead energy level to darken printout or adjust for paper variations. When printer prints high-density print lines (text or graphics), it automatically slows down. Factory setting is 100%. CAUTION: Choose a print density setting no higher than necessary to achieve acceptable print density. Failure to observe this rule may result in a printer service call and may void the printer warranty. Running at a higher energy level will reduce the printhead life. Consult your TPG, Inc. technical support specialist if you have questions. • Power supply wattage (Max power) You can choose between a 55-watt or 75-watt power supply. This matches the wattage of the printer to the power supply. 55-watt power supply (standard) 75-watt power supply (Enables printer to optimize speed at higher dot coverage.) • Knife option This should only be changed if the knife is removed or you do not want to cut the paper. • Partial cut distance Allows the user to set the distance that the knife will cut across a receipt in 5 step increments between 110160. • Paper low sensor Senses when the paper roll is getting low on paper. See troubleshooting section: “Receipt paper is low” in the A795 User Guide. • Paper width Allows the user to set the printer for 58mm, 80mm or 82.5mm paper width.
For more information about See this section Setting the printer functions and settings
“Configuring the printer” (See page 16.)
Page 22
22
A795 User Guide: Programming Supplement Chapter 2: Diagnostics and Configuration
This page intentionally left blank.
Revision E May 2005
Page 23
A795 User Guide: Programming Supplement
Revision E May 2005
23
Chapter 3: Programming the Printer
Chapter 3: Programming the Printer Overview of commands Commands control all operations and functions of the printer. This includes selecting the size and placement of characters and graphics on the receipt to feeding and cutting the paper. The programming commands have been organized, in order of hexadecimal code within functional groups. For this reason, “related” commands may not be listed adjacent to one another. The operation of various printers may be emulated by the commands, including the following: • A793
Any of the commands may be used in any combination to program a host computer to communicate with the printer (unless otherwise noted). Some commands listed and described here may not be implemented and are identified as “not implemented.” If received, they are ignored and not sent to the print buffer as data.
• A794 • A795 native mode • LEGACY
Any nonlegal commands have their parameter sent to the print buffer as data.
Comparison to A793 The following table details the list of commands whose behavior differs between the A793, A794, and A795 because of the physical differences of a 6 dots/mm head (A793) versus an 8 dots/mm head (A794 and A795). Command
Description
Difference between previous product and new product emulation mode.
15 n
Feed n dot rows
This command will move the paper on the receipt in n/203 inch steps instead of n/152 inch steps.
16 n
Add n extra dot rows
The dot rows will be measured in n/203 inches versus n/152 inches.
1B 20 n
Set right-side character spacing
This command sets the right side spacing to “n” horizontal motion units. By default, these units are in terms of 1/203 inches versus 1/152 inches.
1B 24 n1 n2
Set absolute starting position
For graphics commands, the position is scaled to best match A793. In text mode, the equivalent character position is calculated.
1B 26 s c1 c2 n1 d1...nn dn]
Define user-defined character set
Since the dots on the A795 printhead are smaller, user defined characters that were used on the previous printers will appear smaller on the A794 printer.
1B 2A m n1 n2 d1...dn
Select bit image mode
In A793 emulation mode, graphics are scaled to best match the size of the graphic in the A793 printer.
1B 33 n
Set line spacing
This command uses n in terms of n/360 inches. Since the A793 had a fundamental step of 1/152 inch and the A795 has a fundamental step of 1/203 inch, the actual line spacing will not exactly match the requested spacing.
continued...
Page 24
24
A795 User Guide: Programming Supplement
Revision E May 2005
Chapter 3: Programming the Printer
Command
Description
Difference between previous product and new product emulation mode.
1B 4A n
Print and feed paper
This command uses n in terms of n/360 inches. Since the A793 had a fundamental step of 1/152 inch and the A795 has a fundamental step of 1/203 inch, the actual line spacing will not exactly match the requested spacing.
1B 59 n1 n2 d1...dn
Select double-density graphics
In A793 emulation mode, the printer scales the graphics to provide the best match.
1B 5C n1 n2
Set relative print position
The parameter to this command is in units of dots. However, the command moves and aligns to character positions. In A793 emulation mode, this command calculates how many character positions to move based on the A793 character width in dots (10) versus the A795 (13).
1B 61 n
Select justification
This command does true dot resolution alignment for centering versus character-aligned centering.
1D 2A n1 n2 d1...dn]
Define downloaded bit image
In A793 emulation mode, this command scales the incoming data to provide a best match to the size of the image as it printed on A793.
1D 2F m
Print downloaded bit image
In A793 emulation mode, this command scales the incoming data to provide a best match to the size of the image as it printed on A793.
Two-color commands (comparison A794 to A795) The following table details the list of commands that have been added for two-color ColorPOS® functionality (ColorPOS® commands, 1D 81 through 1D 97 are in bold) or existing commands that have been altered by the addition of two-color capacity. TPG, Inc. ColorPOS® two-color and color interpreted commands Hexadecimal
ASCII
Description
1B 72 m
ESC r m
Set current color
1D A0 nl nh
1D GS
Set temporary maximum target speed
1D 23 n
GS # n
Select current logo
1D 42 n
GS B n
Select or cancel white/black reverse print mode
1D 2A n1 n2 d1 – dm
GS * n1 n2 d1 – dm
Define downloaded bit image
1D 2F m
GS / m
Print downloaded bit image
1D 81 m n
GS 0x81 m n
Set paper type
1D 82 n1– n72/n80
GS 0x82 n1– n72/n80
Print raster monochrome graphics
1D 83 n1– n144/n160
GS 0x83 n1– n144/n160
Print raster color graphics
Page 25
A795 User Guide: Programming Supplement
Revision E May 2005
25
Chapter 3: Programming the Printer
TPG, Inc. ColorPOS® two-color and color interpreted commands continued Hexadecimal
ASCII
Description
1D 84 n m n1 n2 d1 dx
GS 0x84 n m n1 n2 d1 dx
Download logo image
1D 85 m n
GS 0x85 m n
Reverse color text mode (two-color)
1D 86 m
GS 0x86 m
Monochrome shade mode
1D 87 m
GS 0x87 m
Color shade mode
1D 89 n m
GS 0x89 n m
Logo print with color plane swap
1D 8B n m o
GS 0x8B n m o
Apply shading to logo
1D 8C n m
GS 0x8C n m
Merge watermark mode
1D 8D n m
GS 0x8D n m
Text strike through mode
1D 8E m nL nH d1...dn
GS 0x8E m nL nH d1...dn
Download paper type description
1D8F m
GS 0x8F m
Return paper type description
1D 90 m x y o p q
GS 0x8A m x y o p q
Form and print real time surround graphic
1D 91 n
GS 0x91 n
Save graphics buffer as logo
1D 92 n
GS 0x92 n
Background logo print mode
1D 97 m n
GS 0x87 m n
User storage status
1D 99 l m n o
US
Apply margin message mode
1D 9A n m o
GS 0x9A n m o
Shade and store logo
1D 9B m n
GS
Logo print with knife cut
1F 03 16 05 n
US
Set interpretation of “Set current color” command
TPG, Inc. LogoEZ® colorization commands Hexadecimal
ASCII
Description
1F 03 16 f m n o p q
USETXSYN
Set LogoEZ® surround graphics
1F 03 16 f s p/r t
US ETX SYN f s p/r t
Set colorization
1F 03 17 a m s
US ETX ETB a m s
Set attribute mapping
Note: The new TPG, Inc. LogoEZ ® colorization utility provides you a fast and easy way to get basic two-color and logos onto your receipt without having to enter commands. Check out the TPG, Inc. Website at: www.TPGprinters.com.
Page 26
26
A795 User Guide: Programming Supplement
Revision E May 2005
Chapter 3: Programming the Printer
Character appearance The appearance of text can be changed using the following print modes: • Standard
• Upside-down
• Bold
• Scaled
• Compressed
• Rotated
• Reverse
• Shading
• Double-high
• Underlined
• Italic
• Double-wide
• Strike-through
Width specifications Standard
Compressed
• Characters per inch: 15.6
• Characters per inch: 20.3
• Characters per line: 44
• Characters per line: 56
• Cell size: 13 X 24 dots
• Cell size: 10 X 24 dots
Print zones Print zones for 80mm paper Specifications of print zone for 80mm paper: • 576 dots (addressable) @ 8 dots/mm, centered on 80mm
• Top margin to manual tear-off: 17.8mm (0.70 inches)
• Standard mode: minimum margins: 2.0mm (.079 inches)
• Top margin to knife cut: 19.0mm (0.75 inches) Paper width = 80 mm (3.15”) Printable zone, 576 dots = 72 mm (2.835”) Nominal margins, 4 mm (0.157”) Cut edge
Cut edge
Top margin, 17.8 mm (.70”) minimum
44 standard columns = 71.5 mm (2.815”) 56 compressed columns = 70 mm (2.756”)
Note: The application centers 44 standard character cells (13 X 24 dots), or 56 compressed character cells (10 X 24 dots), or 576 addressable bits of graphics across an 80mm wide receipt. Minimum print line height is 24 dots for text or graphics. Standard print line spacing is 27 dots (i.e., 3 extra row dots). The A795 adds a 27 dot high font, so standard print spacing is 30 dots.
Page 27
A795 User Guide: Programming Supplement
Revision E May 2005
Chapter 3: Programming the Printer
Print zones for 82.5mm paper Specifications of print zone for 82.5 mm paper: • 640 dots (addressable) @ 8 dots/mm, centered on 82.5mm
• Top margin to manual tear-off: 17.8mm (0.70 inches)
• Standard mode: minimum margins: 1.0mm (0.040 inches)
• Top margin to knife cut: 19.0mm (0.75 inches) Paper width = 82.5 mm (3.25”)
Printable zone, 640 dots = 80 mm (3.15”) Nominal margins (2) = 1.25 mm (0.05”) Cut edge
Cut edge
Top margin, 17.8 mm (0.70”) Minimum
48 standard columns = 78.0 mm (3.07”) 62 compressed columns = 77.5 mm (3.05”)
Rotated printing commands Three commands control the rotation of printing. The table shows the combinations of set/ cancel upside down print, set/cancel rotated print (clockwise), and rotated print (counterclockwise). Rotated clockwise and rotated counterclockwise print commands are mutually exclusive: the setting of the last received command is effective. Unintended consequences may result when rotated clockwise is mixed with other commands. The samples of the print show only the normal-size characters. Double-wide and double-high characters are printed in the same orientation. They may also be mixed on the same line. Rotated CW (1B 56 n)
Rotated CCW (1B 12)
Canceled
Canceled
Cleared
Canceled
Set
X
Set
Canceled
X
Set
Set
X
X
X
Set
Resulting output C B A
Upside down (1B 7B n)
ABC
A B C
C B A
ABC
Note: The following print modes cannot be mixed on the same line:
27
Page 28
28
A795 User Guide: Programming Supplement
Revision E May 2005
Chapter 3: Programming the Printer
• Standard and compressed pitch • Vertical (normal) and rotated • Right-side up and upside-down • Single-high (normal) and double-high
Emulation modes The TPG, Inc. A795 printer may be operated in a number of different emulation modes. However, printing characteristics and defaults may differ, depending on the desired mode. For instance, two-color paper and ColorPOS® commands and features are available only in A795 native mode.
Print setup in emulation modes Refer to the chart below for defaults and allowed printing options in each emulation mode. Emulation mode
LPI options
Font(s) options
Font size
Default LPI
Default EDR
Comments
A795 native 6.00, 6.77, 7.52, 8.13 Standard
13X24
7.52
3
Default setup for monochrome paper
Tall
A794, A793 7.52 emulations
6.00, 7.52, 8.13 3
LEGACY* 6.00 6.00 7 LEGACY emulation emulation 6.00 10
13X27
6.77
3
®
ColorPOS
13X27
6.77
3
Standard
13X24
Default setup for two-color paper
*LEGACY
The following list clarifies how the A795 printer will behave in each emulation mode: Tall 13X27 Default setup for
Two-color paper and ColorPOS® commands and features are supported only in A795 native mode.
Standard
• If the paper type is changed using the 0x1D 0x81 command, the font and default lines per inch (LPI) will be setup as in the table above.
13X24
• If only the font is changed, the default LPI will automatically be changed as in the table above. • If emulation is switched to LEGACY, A794 or A793 emulation(s), the paper type will automatically be changed to monochrome paper, and the font and LPI will be changed as in the table above. • If emulation is switched from any emulation to A795 native, the font and LPI will remain unchanged because the A795 native mode supports all font and LPI options offered in the emulation modes. • The “Set Default LPI” option in the configuration menu is not offered in LEGACY emulation made. The LPI is set at 6.00.
Page 29
A795 User Guide: Programming Supplement
Revision E May 2005
29
Chapter 4: Programming commands
Chapter 4: Programming Commands Commands listed by function Commands in bold are ColorPOS® commands.
Printer actions Code (hexadecimal)
Command
Page
10
Clear printer
38
19
Perform full knife cut (or code 1B 69)
38
1A
Perform partial knife cut (or code 1B 6D)
39
1B 07
Generate tone
39
1B 3D n
Select peripheral device (for multi-drop)
39
1B 40
Initialize printer
39
1B 63 33 n
Select paper sensors to output paper end signals (parallel only)
40
1B 63 34 n
Select sensors to stop printing
40
1B 63 35 n
Enable or disable panel button
41
1B 69
Perform full knife cut (or code 19)
38
1B 6D
Perform partial knife cut (or code 1A)
39
1B 70 n p1 p2
Generate pulse to open cash drawer
41
1B 72 m
Set current color
42
1D 56 m
Select cut mode and cut paper (or code 1D 56 m n)
42
1D 56 m n
Select cut mode and cut paper (or code 1D 56 m)
42
1D 81 m n
Set paper type (for two-color printing)
43
1F 03 16 05 n
Set interpretation of “Set current color” command
44
1F 74
Print test form
44
Page 30
30
A795 User Guide: Programming Supplement
Revision E May 2005
Chapter 4: Programming commands
Print and paper feed Code (hexadecimal)
Command
Page
0A
Print and feed paper one line
45
0D
Print and carriage return
45
15 n
Feed n dot rows
45
16 n
Add n extra dot rows
46
17
46
1B 4A n
Print and feed paper
47
1B 64 n
Print and feed n lines
47
Vertical and horizontal positioning Code (hexadecimal)
Command
Page
09
Horizontal tab
48
1B 14 n
Set column
48
1B 24 nL nH
Set absolute starting position
49
1B 32
Set vertical line spacing to 1/6 inch
49
1B 33 n
Set vertical line spacing
50
1B 44 [n] k 00
Set horizontal tab positions
50
1B 5C n1 n2
Set relative print position
51
1B 61 n
Select justification
52
1D 4C nL nH
Set left margin
52
1D 50 x y
Set horizontal and vertical minimum motion units
48
1D 57 nL nH
Set printing area width
53