The text of a manual · part 3 of 16
A760 Two-Color Thermal/Impact Hybrid Printer User Guide: Programming Supplement, pages 19 to 28
Pages 19 to 28 of 154
The original document is the PDF (2.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 TPG A760
Page 19
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 3: Programming the Printer
Two-color commands (comparison A758 to A760) The following table details the list of commands that have been added for two-color ColorPOS® functionality (ColorPOS® commands 1D 81–1D 9B are in bold) or existing commands that have been altered by the addition of two-color capacity. CognitiveTPG ColorPOS® two-color and color interpreted commands Hexadecimal
ASCII
Description
1B 72 m
ESC r m
Set current color
1D A0 n
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
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 9A n m o
GS 0x9A n m o
Shade and store logo
1D 9B m n
1D GS
Logo print with knife cut
1D 99 l n m o
GS 0x9B l n m o
Apply margin message mode
1F 03 16 05 n
US
Set interpretation of “Set current color” command
19
Page 20
20
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 3: Programming the Printer
LogoEZ® colorization commands Hexadecimal
ASCII
Description
1F 03 16 fm n o p q
US ETX SYN
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 CognitiveTPG LogoEZ colorization utility provides you a fast and easy way do get basic two-color and logos on your receipt without having to enter commands. Check out the CognitiveTPG Web site at www.CognitiveTPG.com. ®
Ethernet setup commands For the printer to operate with the Ethernet interface, a series of commands must be set within the printer. These commands can only be set through the host computer with the printer in flash download (boot) mode and are not configurable through the printer setup configuration menu. See page 15 for default setup or command descriptions on page 134.
Hexadecimal
ASCII
Discription
1B 5B 7D
ESC [ }
Switch to boot mode
1F 08 00
US BS NUL
Restore default settings
1F 08 01 n1 n2 n3 n4
US BS SOH n1 n2 n3 n4
Set IP address
1F 08 02 n1 n2 n3 n4
US BS STX n1 n2 n3 n4
Set net mask
1F 08 03 n1 n2 n3 n4
US BS ETX n1 n2 n3 n4
Set gateway
1F 08 04 n1 n2 n3 n4
US BS EOT n1 n2 n3 n4
Set raw TCPIP port 9001
1F 08 05 n1
US BS ENQ n1
LP Daemon
1F 08 06 n1
US BS ACK n1
Telnet Daemon
1F 08 07 n1
US BS BEL n1
BootIP
1F 08 08 n1
US BS BS n1
DHCP (auto-configuration)
1F 08 09 n1
US BS HT n1
Inactivity time-out
1F 08 0A n1
US BS LF n1
Keep-alive pings (arps)
Character appearance The appearance of text can be changed using the following print modes: • Standard • Bold • Compressed
• Reverse
• Double-high
• Italic
• Double-wide
• Strike-through
• Upside-down
• Scaled
• Rotated
• Shading
• Underlined
Page 21
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 3: Programming the Printer
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 × 24 dots
• Cell size: 10 × 24 dots
Print zones Print zones for receipt station 80 mm paper Specifications of print zone for receipt station 80 mm paper: • 576 dots (addressable) @ 8 dots/mm, centered on 80 mm
• Top margin to manual tear-off: 17.8 mm (0.70 inches)
• Standard mode: minimum margins: 2.0 mm (.079 inches)
• Top margin to knife cut: 19.0 mm (0.75 inches) ��������������������������� ����������������������������������������� ������������������������������ ��������
��������
����������������������������������
�������������������������������������� ��������������������������������������
Note: The application centers 44 standard character cells (13 × 24 dots), or 56 compressed character cells (10 × 24 dots), or 576 addressable bits of graphics across an 80 mm 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 A760 adds a 27 dot high font, so standard print spacing is 30 dots.
21
Page 22
22
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 3: Programming the Printer
Print zones for receipt station 82.5 mm paper Specifications of print zone for receipt station 82.5 mm paper: • 640 dots (addressable) @ 8 dots/mm, centered on 82.5 mm
• Top margin to manual tear-off: 17.8 mm (0.70 inches)
• Standard mode: minimum margins: 1.0 mm (0.040 inches)
• Top margin to knife cut: 19.0 mm (0.75 inches) ����������������������������� ���������������������������������������� ������������������������������������� ��������
��������
�����������������������������������
������������������������������������� ���������������������������������������
Print zones for slip station The slip station prints characters (standard and compressed pitch) and graphics in a print zone of 120.7mm (4.752”) wide on a slip or form.
The print line height of 7x7 dot characters is 2.46mm (.097”). With three-dot spacing, the print line height is 3.53mm (.139”). See the following illustration (not to scale). To print as close to the bottom of the slip as possible without the slip leaving the feed rollers, use the “Print and feed n lines” (1B 64 n) command, with n = 0.
• Standard pitch: 66 characters (columns) per line • Compressed pitch: 80 characters (columns) per line
�������������������������������������������������������� ������������������������������������������������� ����������������������������������� �������� ��������������������������������������� ���������������������� ������������������������������
����������������������� �������������
Page 23
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 3: Programming the Printer
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.
Upside down (1B 7B n)
Rotated CW (1B 56 n)
Rotated CCW (1B 12)
Resulting output
Canceled
Canceled
Cleared
ABC
Canceled
Set
X
C B A
Set
Canceled
X
ABC
Set
Set
X
C B A
X
X
Set
A B C
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.
Note: The following print modes cannot be mixed on the same line: • Standard and compressed pitch • Vertical (normal) and rotated • Right-side up and upside-down • Single-high (normal) and double-high
23
Page 24
24
Revision F January 2010
A760 User Guide: Programming Supplement Chapter 3: Programming the Printer
Emulation modes The CognitiveTPG A760 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 A760 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
A760 native 6.00, 6.77, 7.52, 8.13 Standard 13×24 7.52 3
A758, A756 emulations
6.00, 7.52, 8.13
Comments Default setup for monochrome paper
Tall
13×27
6.77
3
ColorPOS®
13×27
6.77
3
Standard
13×24
7.52
3
Default setup for two-color paper
The following list clarifies how the A760 printer will behave in each emulation mode: Two-color paper and ColorPOS® commands and features are supported only in A760 native mode. • 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. • If only the font is changed, the default LPI will automatically be changed as in the table above. • If emulation is switched to A758 or A756 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 A760 native, the font and LPI will remain unchanged because the A760 native mode supports all font and LPI options offered in the emulation modes.
Page 25
Revision F January 2010
A760 User Guide: Programming Supplement
25
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
33
11
Close form
33
18
Open form
34
1A
Perform partial knife cut (or code 1B 6D)
34
1B 07
Generate tone
34
1B 3C
Return home
34
1B 3D n
Select peripheral device (for multi-drop)
35
1B 40
Initialize printer
35
1B 43 n
Set slip paper eject length
35
1B 63 30 n
Select receipt or slip for printing; slip for MICR read
35
1B 63 31 n
Select receipt or slip for setting line spacing
36
1B 63 33 n
Select paper sensors to output paper end signals (parallel only)
36
1B 63 34 n
Select sensors to stop printing
37
1B 63 35 n
Enable or disable panel button
37
1B 66 m n
Set slip paper waiting time
37
1B 6D
Perform partial knife cut (or code 1A)
34
1B 70 n p1 p2
Generate pulse to open cash drawer
38
1B 72 m
Set current color
38
1C
Select slip station
39
1D 56 m
Select cut mode and cut paper (or code 1D 56 m n)
39
1D 56 m n
Select cut mode and cut paper (or code 1D 56 m)
39
1D 81 m n
Set paper type (for two-color printing)
40
1F 03 16 05 n
Set interpretation of “Set current color” command
41
1F 74
Print test form
41
Page 26
26
A760 User Guide: Programming Supplement
Revision F January 2010
Chapter 4: Programming commands
Print and paper feed Code (hexadecimal)
Command
Page
0A
Print and feed paper one line
42
0C
Print and eject slip
42
0D
Print and carriage return
42
14 n
Feed n print lines
42
15 n
Feed n dot rows
43
16 n
Add n extra dot rows
43
17
44
1B 4A n
Print and feed paper
44
1B 4B n
Print and reverse feed paper
44
1B 64 n
Print and feed n lines
44
1B 65 n
Print and reverse feed n lines
45
1D 14 n
Reverse feed n lines
45
1D 15 n
Reverse feed n dots
45
Vertical and horizontal positioning Code (hexadecimal)
Command
Page
09
Horizontal tab
46
1B 14 n
Set column
46
1B 24 nL nH
Set absolute starting position
47
1B 32
Set vertical line spacing to 1/6 inch
47
1B 33 n
Set vertical line spacing
47
1B 44 [n] k 00
Set horizontal tab positions
48
1B 5C n1 n2
Set relative print position
49
1B 61 n
Select justification
50
1D 4C nL nH
Set left margin
50
1D 50 x y
Set horizontal and vertical minimum motion units
46
1D 57 nL nH
Set printing area width
51
Page 27
Revision F January 2010
A760 User Guide: Programming Supplement
27
Chapter 4: Programming commands
Text characteristics Code (hexadecimal)
Command
Page
12
Select double-wide characters
52
13
Select single-wide characters
52
1B 12
Select 90 degree counter-clockwise rotated print
52
1B 16 n
Select pitch (column width)
52
1B 20 n
Set right-side character spacing
53
1B 21 n
Select print mode
53
1B 25 n
Select or cancel user-defined character set
54
1B 26 s c1 c2
Define user-defined character sets
54
1B 2D n
Select or cancel underline mode
55
1B 3A 30 30 30
Copy character set from ROM to RAM
55
1B 3F n
Cancel user-defined character
56
1B 45 n
Select or cancel emphasized mode
56
1B 47 n
Select double-strike
56
1B 48
Cancel double-strike
57
1B 49 n
Select or cancel italic print
57
1B 52 n
Select international character code
57
1B 56 n
Select or cancel 90 degree clockwise rotated print
58
1B 74 n
Select international character set
57
1B 7B n
Select or cancel upside-down print mode
58
1D 21 n
Select character size
59
1D 42 n
Select or cancel white/black reverse print mode
60
1D 85 m n
Reverse color text mode (two-color)
60
1D 8D n m
Text strike-through mode
61
1F 05 n
Select superscript or subscript modes
61
Page 28
28
A760 User Guide: Programming Supplement
Revision F January 2010
Chapter 4: Programming commands
Graphics Code (hexadecimal)
Command
Page
1B (+*.BMP file)
Download BMP logo
62
1B 2A m n1 n2 d1…dn
Select bit image mode
63
1B 4C n1 n2 d1. . . dn
Select double-density graphics (A756 emulation)
64
1B 59 n1 n2 d1…dn
Select double-density graphics
64
1D 23 n
Select the current logo (downloaded bit image)
65
1D 2A n1 n2 d1…dn
Define downloaded bit image
66
1D 2F m
Print downloaded bit image
67
1D 82 n1…n72 or …n80
Print raster monochrome graphics
67
1D 83 n1…n144 or …n160
Print raster color graphics
68
1D 84 m n1 n2 d1…dx
Download logo image
69
1D 8B n m o
Apply shading to logo
69
1D 8C n m
Merge watermark mode
70
1D 86 m
Monochrome shade mode
70
1D 87 m
Color shade mode
71
1D 89 n m
Logo print with color plane swap
71
1D 90 m x y o p q
Form and merge real-time surround graphic
72
1D 91 n
Save graphics buffer as logo
72
1D 92 n
Background logo print mode
73
1D 9A n m o
Shade and store logo
73
1D 9B m n
Logo print with knife cut
73
1D 99 l m n o
Apply margin message mode
74
1D A0 nl nh
Set temporary max target speed
74
1F 03 16 f s p/r t
Set LogoEZ® colorization
75
1F 03 17 a m s
Set LogoEZ attribute mapping
78
1F 04 n
Convert 6-dots/mm bitmap to 8-dots/mm bitmap
80
1F 7B n
Enable constant speed logos
80
®