The text of a manual · part 13 of 24
A758 USB Thermal Receipt and Impact Slip Printer Owner's Guide, pages 121 to 130
Pages 121 to 130 of 235
The original document is the PDF (3.8 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 A758
Page 121
Chapter 7: Programming Guide 113
Print Characteristic Commands Code (Hexadecimal
Command
Page
12
Select Double-Wide Characters
143
13
Select Single-Wide Characters
143
1B 12
Select 90 Degree Counter-Clockwise Rotated Print
143
1B 16 n
Select Pitch (Column Width)
144
1B 20 n
Set Character Right-Side Spacing
144
1B 21 n
Select Print Modes
145
1B 25 n
Select or Cancel User-Defined Character Set
146
1B 26 s c1 c2 d1…dn
Define User-Defined Characters
146
1B 2D n
Select or Cancel Underline Mode
148
1B 3A 30 30 30
Copy Character Set from ROM to RAM
148
1B 3F n
Cancel User-Defined Characters
148
1B 45 n
Select or Cancel Emphasized Mode
149
1B 47
Select Double Strike (A756 Emulation Mode)
149
1B 47 n
Select Double Strike (A758 Native Mode)
149
1B 48
Cancel Double Strike
150
1B 49 n
Select or Cancel Italic Print
150
1B 52 n
Select International Character Set
151
1B 55 n
Select or Cancel Unidirectional Printing Mode
151
1B 56 n
Select or Cancel 90 Degrees Clockwise Rotated Print
152
1B 74 n
Select International Character Set
151
1B 7B n
Select or Cancel Upside Down Printing Mode
152
1D 21 n
Select Character Size
153
1D 42 n
Select or Cancel White/Black Reverse Print Mode
154
1F 05 n
Select Superscript or Subscript Modes
155
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 122
114 Chapter 7: Programming Guide
Graphics Commands Code (Hexadecimal
Command
Page
1B (+*.bmp)
Download BMP Logo
156
1B 2A m n1 n2 d1…dn
Select Bit Image Mode
156
1B 4C n1 n2 d1…dn
Select Double-Density Graphics (in A756 Emulation Mode)
159
1B 59 n1 n2 d1…dn
Select Double-Density Graphics
159
1D 23 n
Select Current Logo (Downloaded Bit Image)
159
1D 2A n1 n2 d1…dn]
Define Downloaded Bit Image
160
1D 2F m
Print Downloaded Bit Image
162
1F 04 n
Convert 6 Dots/mm Bitmap to 8 Dots/mm Bitmap
163
Code (Hexadecimal
Command
Page
1B 75 0
Transmit Peripheral Device Status
165
1B 75 n
Request Alternate Status
166
1B 76
Transmit Paper Sensor Status
167
1D 49 n
Transmit Printer ID
168
1D 49 40 n
Transmit Printer ID, Remote Diagnostics Extension
169
1D 72 n
Transmit Status
172
Code (Hexadecimal
Command
Page
10 04 n
Real Time Status Transmission (DLE Sequence)
177
10 05 n
Real Time Request to Printer (GS Sequence)
180
1D 03 n
Real Time Request to Printer (DLE Sequence)
180
1D 04 n
Real Time Status Transmission (GS Sequence)
177
1D 05
Real Time Printer Status Transmission
181
Code (Hexadecimal
Command
Page
1D 61 n
Select or Cancel Auto Status Back
182
Status Commands Batch Mode
Real Time
Auto Status Back
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 123
Chapter 7: Programming Guide 115
Bar Code Commands Code (Hexadecimal
Command
Page
1D 48 n
Select Printing Position for HRI Characters
186
1D 66 n
Select Pitch for HRI Characters
186
1D 68 n
Select Bar Code Height
186
1D 6B m d1…dk 00
Print Bar Code
187
1D 70 abcdef
Select PDF 417 Parameters
189
1D 77 n
Select Bar Code Width
189 or 1D 6B m n d1…dn
Page Mode Commands Code (Hexadecimal
Command
Page
0C
Print and Return to Standard Mode/Print and Eject Slip
192
18
Cancel Print Data in Page Mode
192
1B 0C
Print Data in Page Mode
193
1B 4C
Select Page Mode
193
1B 53
Select Standard Mode
194
1B 54 n
Select Print Direction in Page Mode
195
1B 57 n1, n2…n8]
Set printing Area in Page Mode
196
1D 24 nL nH
Set Absolute Vertical Print Position in Page Mode
197
1D 5C nL nH
Set Relative Vertical Print Position in Page Mode
198
Code (Hexadecimal
Command
Page
1D 3A
Start or End Macro Definition
199
1D 5E r t m
Execute Macro
200
Macro Commands
MICR Check Reader Commands MICR Reading Code (Hexadecimal
Command
Page
1B 77 01
Read MICR Data and Transmit
201
1B 77 52
Transmit last MICR Read
201
Code (Hexadecimal
Command
Page
1B 77 50
Define Parsing Format, Save in NVRAM
202
1B 77 70
Define Parsing Format, Do Not Save Permanently
202
MICR Parsing
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 124
116 Chapter 7: Programming Guide
Check Flip Commands Code (Hexadecimal
Command
Page
1B 77 46
Check Flip Command
210
1B 77 46-47
Enhanced Check Flip Status Reporting
210
User Data Storage Commands Code (Hexadecimal
Command
Page
1B 27 m addr d1…dm
Write to User Data Storage
212
1B 34 m addr
Read from User Data Storage
213
1B 6A k
Read from Non-Volatile Memory
213
1B 73 n1 n2 k
Write to Non-Volatile Memory (NVRAM)
213
1D 22 n
Select Memory Type (SRAM/Flash) Where to Save Logos or User-Defined Fonts
213
1D 22 55 n1 n2
Flash Allocation
214
1D 40 n
Erase User Flash Sector
215
Flash Download Commands Code (Hexadecimal
A758-D100 12/04
Command
Page
1B 5B 7D
Switch Flash Download Mode
217
1D 00
Request Printer ID
217
1D 01
Return Segment Number Status of Flash Memory
217
1D 02 n
Select Flash Memory Sector to Download
218
1D 06
Get Firmware
218
1D 07
Return Microprocessor CRC
218
1D 0E
Erase the Flash Memory
219
1D 0F
Return Main Program Flash CRC
219
1D 10 n
Erase Selected Flash Sector
219
1D 11 aL aH cL cH d1…dn
Download to Active Flash Sector
219
1D FF
Reboot the Printer
220
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 125
Chapter 7: Programming Guide 117
Comparison to A756 New Features There are a number of new firmware features in the A758 Native Mode. These include: ♦
Page Mode on the receipt
♦
Additional Code pages
♦
Additional character attributes
♦
Flip
♦
More flexible handling of User-defined Characters and Logos (Downloadable Bit Image)
♦
Higher baud rates
♦
8 High graphics on slip
♦
Macro capabilities
♦
Additional remote diagnostics
♦
USB Communication
Page Mode on the Receipt Normally the printer will print data as it is sent. In Page Mode, the data to be printed is composed on a page before printing. This composition process gives the application developer the ability to mix text, graphics and bar codes in different orientations and locations. Once the page composition process is completed, the page is printed. See the Page Mode commands on page 192.
Additional Code Pages The A758 includes support for the additional Code pages: CP852, CP858, CP860, CP 862, CP863, CP865, CP866, and CP1252.
Additional character attributes The A758 includes support for additional character attributes including Bold, Italics, Underline, Black/White Reverse Print, Superscript, Subscript, and Scaling.
Flip The A758 can flip a check on command.
Additional flexibility when using User-defined Characters and Logos (Downloadable Bit Image) The A758 can process User-defined Characters and Logos simultaneously. These items are stored in FLASH or SRAM, depending on the application developer’s preferences. A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 126
118 Chapter 7: Programming Guide
Bar Codes The A758 supports printing of one-dimensional bar codes on the slip station. The receipt station supports ladder bar codes and the addition of Code 93 and PDF 417.
FLASH Memory Allocation The application developer has the ability to determine how the FLASH Memory is allocated between the User Data Storage and Logos/User-defined Characters.
Higher Baud Rate The A758 now supports serial communication rates of 57,600 and 115,200.
8 Dot High Graphics on Slip In A758 Native Mode, the slip supports graphics that are 8 dots high. In A756 Emulation Mode, the graphics are 7 dots high.
Macro Capability The A758 supports the ability to record and execute a series of commands called a macro.
Additional Remote Diagnostics The A758 supports 5 additional remote diagnostics.
A758-D100 12/04
1.
Number of Flash cycles
2.
Number of knife jams
3.
Numbers of cover openings
4.
Maximum thermal printhead temperature
5.
Number of slip lines printed
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 127
Chapter 7: Programming Guide 119
Comparison Chart The following table details the list of commands whose behavior differs from the A756 because of the physical differences of a 6-dots/mm head (A756) versus an 8-dots/mm head (A758). Command
Description
Difference between A756 and A758 configured in A756 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 the previous product. 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 new printhead are smaller, user-defined characters that were used on the previous printer will appear smaller on the new printer.
1B 2A m n1 n2 d1...dn
Select Bit Image Mode
In A756 Emulation Mode, graphics are scaled to best match the size of the graphic in the previous printer.
1B 33 n
Set Line Spacing
This command uses n in terms of n/360 inches. Since the previous product had a fundamental step of 1/180 inch and the new product has a fundamental step of 1/203 inch, the actual line spacing will not exactly match the requested spacing.
1B 4A n
Print and Feed Paper
This command uses n in terms of n/360 inches. Since the previous product had a fundamental step of 1/180 inch and the new product 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 A756 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 A756 Emulation Mode, this command calculates how many character positions to move based on the previous product’s character width in dots (10) versus the current product (13).
1B 61 n
Select Justification
This command does true dot resolution alignment for centering versus character-aligned centering.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 128
120 Chapter 7: Programming Guide
Command
Description
Difference between A756 and A758 configured in A756 Emulation Mode.
1D 2A n1 n2 d1...dn]
Define Downloaded Bit Image
In A756 Emulation Mode, this command scales the incoming data to provide a best match to the size of the image as it printed on the previous product.
1D 2F m
Print Downloaded Bit Image
In A756 Emulation Mode, this command scales the incoming data to provide a best match to the size of the image as it printed on the previous product.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 129
Chapter 7: Programming Guide 121
Command Descriptions Printer Function Commands The printer function commands control the following basic printer functions and are described in order of their hexadecimal codes: ♦
Station Select
♦
Platen Control
♦
Resetting the printer
♦
Cutting the paper
♦
Opening the cash drawers
Clear Printer ASCII: DLE Hexadecimal: 10 Decimal: 16 Clears the print line buffer without printing and sets the printer to the following condition: ♦
Receipt station is selected
♦
Double-Wide command (0x12) is cancelled
♦
Line Spacing, Pitch, and User-Defined Character Sets are maintained at current selections (RAM is not affected)
♦
Single-Wide, Single-High, Non-Rotated, and Left-Aligned characters are set
♦
Printer is restarted and error status is cleared in a fault condition
♦
Printing position is set to column one
♦
Slip platen is opened
♦
Slip printhead is homed
♦
Knife is homed
Exceptions: In printers with the Parallel interface, this command also returns paper exhaust to the paper status line if an alternate status has been requested. A DLE command followed by a 04 or 05 is interpreted as a “real time command”. (See Real Time commands on page 175.)
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 130
122 Chapter 7: Programming Guide
Close Form ASCII: DC1 Hexadecimal: 11 Decimal: 17 Closes the feed roller and platen (forms compensation arm assembly) and retracts the forms arm stop unconditionally. If the printer is reset or the Clear (0x10) is received, the feed roller and platen are opened. This command executes if the platen is already closed. This command is processed regardless of which station is selected.
Open Form ASCII: CAN Hexadecimal: 18 Decimal: 24 When the printer is in A756 Emulation Mode or in A758 (Native) non-Page Mode, this command opens the feed roller and platen (forms compensation arm assembly) so that a form may be inserted (default position). This command has the same code as the Cancel Print Data in Page Mode command, which is only executed in Page Mode. This command executes if the platen is already open. This command is processed regardless of which station is selected.
Perform Full Knife Cut ASCII: EM or ESC i Hexadecimal: 19 or 1B 69 Decimal: 25 or 27 105 Cuts the receipt, leaving .20 inch (5 mm) of paper. This command is implemented the same as Partial Knife Cut (1A, 1B 6D). There are two codes for this command. Both codes perform the same function. Line Feed is executed first if print buffer is not empty. This command is processed regardless of which station is selected.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide