The text of a manual · part 12 of 24
A758 USB Thermal Receipt and Impact Slip Printer Owner's Guide, pages 111 to 120
Pages 111 to 120 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 111
Chapter 6: Communiction Interface 103
USB Communication Connectors The A758 USB printer is equipped with a standard USB connector and will mate with an industry standard cable. Pin 2 Data -
Pin 1 +5V - USB
Pin 3 Data +
Pin 4 Ground
Power Connector With RS-232C, the printer is always remotely powered. The following illustration shows the power cable connector and pin assignments. The power cable connector is a 3-pin mini DIN plug and is located at the rear of the printer. Function Pin Numbers Function
3 Not Used
+24 Volt 2
1 Ground Shell - Shield
Cash Drawer Connector A 6-contact modular jack (RJ11) is available to drive a cash drawer with dedicated feedback, or up to two cash drawers without feedback. The following illustration shows the pinouts for the cash drawer connector. Pin 1
Pin 6
The following table shows the pinouts for the cash drawer. The connector can support two cash drawers with a Y cable, and is located at the rear of the printer. Pin Number
Cash Drawer Connector
1
Frame Ground
2
Drawer 1 Solenoid
3
Drawer 1 Status Switch
4
+24 Volts (to Solenoid +)
5
Drawer 2 Solenoid
6
Ground (Status Switch Return)
The maximum current supplied is 2.0 Amps, and the pulse width is programmable from 50 to 300 milliseconds.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 112
104 Chapter 6: Communiction Interface
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 113
Chapter 7: Programming Guide 105
Chapter 7: Programming Guide
♦ Command Conventions ♦ List of Commands and Location By Command Code By Function
♦ Comparison to A756 New Features Comparison Chart
♦ Command Descriptions Printer Function Commands Vertical Positioning and Print Commands Horizontal Positioning Commands Print Characteristic Commands Graphics Commands Status Commands Batch Mode Real Time Auto Status Back Bar Code Commands Page Mode Commands Macro Commands MICR Commands MICR Reading MICR Parsing Check Flip Command User Data Storage Commands Flash Download Commands
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 114
106 Chapter 7: Programming Guide
Command Conventions The following information describes how each command is organized:
A758-D100 12/04
Name:
Name of command.
ASCII:
The ASCII control code.
Hexadecimal:
The Hexadecimal control code.
Decimal:
The Decimal control code.
Value:
A description of the command operands.
Range:
The upper and lower limits of the command operand.
Default:
The command operand default after printer reset.
Description:
Brief description and summary of the command.
Formulas:
Any formulas used for this command.
Exceptions:
Describes any exceptions to this command, i.e.: incompatible commands.
Related Information:
Describes related information for this command, i.e.: bit information.
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 115
Chapter 7: Programming Guide 107
List of Commands and Location Commands control all operations and functions of the printer. This includes selecting the size and placement of characters and graphics on the receipt or the slip and feeding and cutting the paper. 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. They will be identified as “not implemented”. If received, they are ignored and not sent to the print buffer as data. Any non-legal commands are sent to the print buffer as data.
By Command Code All items in BOLD are new or have additional functionality when compared to the A756. Code (Hexadecimal)
Command
Page
09 (HT)
Horizontal Tab
136
0A (LF)
Print and Feed Paper One Line
130
0C (FF)
Print and Return to Standard Mode
192
0C (FF)
Print and Eject Slip
130
0D (CR)
Print and Carriage Return
130
10
Clear Printer
121
10 04 n
Real Time Status Transmission (DLE Sequence)
177
10 05 n
Real Time Request to Printer (GS Sequence)
180
11
Close Form
122
12
Select Double-Wide Characters
143
13
Select Single-Wide Characters
143
14 n
Feed n Print Lines
131
15 n
Feed n Dot Rows
131
16 n
Add n Extra Dot Rows
132
17
132
18
Open Form
122
18
Cancel Print Data in Page Mode
192
19
Perform Full Knife Cut
122
1A
Perform Partial Knife Cut
123
1B (+ *.bmp)
Download BMP Logo (where + *.bmp is the data from the file, not the file name.)
156
1B 07
Generate Tone
123
1B 0C
Print Data in Page Mode
193
1B 12
Select 90 Degree Counter-Clockwise Rotated Print
143
1B 14 n
Set Column
136
1B 16 n
Select Pitch (Column Width)
144
1B 20 n
Set Character Right-Side Spacing
144
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 116
108 Chapter 7: Programming Guide Code (Hexadecimal)
Command
Page
1B 21 n
Select Print Modes
145
1B 24 n1 n2
Set Absolute Starting Position
137
1B 25 n
Select or Cancel User-Defined Character Set
146
1B 26 3 c1 c2…dn
Define User-Defined Characters
146
1B 27 m a0 a1 a2 d1 … dm
Write to User Data Storage
212
1B 2A m n1 n2
Select Bit Image Mode
156
1B 2D n
Select or Cancel Underline Mode
148
1B 32
Set Line Spacing to 1/6 Inch
133
1B 33 n
Set Line Spacing
133
1B 34 m a0 a1 a2
Read from User Data Storage
213
1B 3A 30 30 30
Copy Character Set from ROM to RAM
148
1B 3C
Return Home
123
1B 3D n
Select Peripheral Device (For Multi-Drop)
123
1B 3F n
Cancel User-defined Characters
148
1B 40
Initialize Printer
124
1B 43 n
Set Slip Paper Eject Length
124
1B 44 [n] k 00
Set Horizontal Tabs
138
1B 45 n
Select or Cancel Emphasized Mode
149
1B 47
Select Double Strike (A756 Emulation)
149
1B 48
Cancel Double Strike
150
1B 49 n
Set or Cancel Italic Print
150
1B 4A n
Print and Feed Paper
133
1B 4B n
Print and Reverse Feed Paper
134
1B 4C
Select Page Mode
193
1B 4C n1 n2 d1…dn
Select Double Density Graphics (A756 Emulation)
159
1B 52 n
Select International Character Set
151
1B 53
Select Standard Mode
194
1B 54 n
Select Print Direction in Page Mode
195
1B 55 n
Select or Cancel Unidirectional Printing Mode
151
1B 56 n
Select or Cancel 90 Degrees Clockwise Rotated
152
1B 57 n1, n2,…n8
Set Printing Area in Page Mode
196
1B 59 n1 n2 d1…dn
Select Double Density Graphics
159
1B 5B 7D
Switch to Flash Download Mode
217
1B 5C n1 n2
Set Relative Print Position
138
1B 61 n
Select Justification
140
1B 63 30 n
Select Receipt or Slip for Printing; Slip for MICR Read
124
1B 63 31 n
Select Receipt or Slip for Setting Line Spacing
125
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide d1 … dn
A758-D100 12/04
Page 117
Chapter 7: Programming Guide 109 Code (Hexadecimal) 1B 63 33 n
Command Select Paper Sensors to Output Paper End Signals (Parallel Only)
Page 125
1B 63 34 n
Select Sensors to Stop Printing
126
1B 63 35 n
Enable or Disable Panel Buttons
126
1B 63 36 n
Enable or Disable Online Switch
126
1B 64 n
Print and Feed n Lines
134
1B 65 n
Print and Reverse Feed n Lines
134
1B 66 m n
Set Slip Paper Waiting Time
127
1B 69
Perform Full Knife Cut
122
1B 6A k
Read from Non-Volatile Memory
213
1B 6D
Perform Partial Cut
123
1B 70 n p1 p2
Generate Pulse to Open Cash Drawer
127
1B 73 n1 n2 k
Write to Non-Volatile Memory (NVRAM)
213
1B 74 n
Select International Character Set
151
1B 75 0
Transmit Peripheral Device Status
165
1B 75 n
Request Alternate Status
166
1B 76
Transmit Paper Sensor Status
167
1B 77 01
Read MICR Data and Transmit
201
1B 77 46
Check Flip
210
1B 77 46-47
Enhanced Check Flip Status Reporting
210
1B 77 50
Define Parsing Format, Save in NVRAM
202
1B 77 52
Transmit Last MICR Read
201
1B 77 70
Define Parsing Format, Do Not Save Permanently
202
1B 7A n
Select or Cancel Parallel Printing Mode on R&J
127
1B 7B n
Select or Cancel Upside Down Printing Mode
152
1C
Select Slip Station
128
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 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
1D 06
Get Firmware CRC
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 14 n
Reverse Feed n Lines
134
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 118
110 Chapter 7: Programming Guide
A758-D100 12/04
Code (Hexadecimal)
Command
Page
1D 15 n
Reverse Feed n Dots
135
1D 21 n
Select Character Size
153
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 23 n
Select the Current Logo (Downloaded Bit Image)
159
1D 24 nL nH
Set Absolute Vertical Print Position in Page Mode
197
1D 2A n1 n2 d1…dn]
Define Downloaded Bit Image
160
1D 2F m
Print Downloaded Bit Image
162
1D 3A
Start or End Macro Definition
199
1D 40 n
Erase User Flash Sector
215
1D 42 n
Select or Cancel White/Black Reverse Print Mode
154
1D 48 n
Select Printing Position for HRI Characters
186
1D 49 n
Transmit Printer ID
168
1D 49 40 n
Transmit Printer ID, Remote Diagnostics Extension
169
1D 4C nL nH
Set Left Margin
141
1D 50 x y
Set Horizontal and Vertical Minimum Motion Units
135
1D 56 m
Select Cut Mode and Cut Paper
128
1D 56 m n
Select Cut Mode and Cut Paper
128
1D 57 nL nH
Set Printing Area Width
142
1D 5C nL nH
Set Relative Vertical Print Position in Page Mode
198
1D 5E r t m
Execute Macro
200
1D 61 n
Select or Cancel Automatic Status Back
182
1D 66 n
Select Pitch for HRI Characters
186
1D 68 n
Select Bar Code Height
186
1D 6B m d1…
Print Bar Code
187
1D 6B m n d1…dn
Print Bar Code
187
1D 70 abcdef
Select PDF 417 Parameters
189
1D 72 n
Transmit Status
172
1D 77 n
Select Bar Code Width
189
1D FF
Reboot Printer
220
1E
Select Receipt Station
129
1F 04 n
Convert 6 Dots/mm Bitmap to 8 Dots/mm Bitmap
163
1F 05 n
Select Superscript or Subscript Modes
155
1F 74
Print Test Form
129
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 119
Chapter 7: Programming Guide 111
By Function All items in BOLD are new or have additional functionality when compared to the A756.
Printer Function Commands Code (Hexadecimal
Command
Page
10
Clear Printer
121
11
Close Form
122
18
Open Form
122
19
Perform Full Knife Cut
122
1A
Perform Partial Knife Cut
123
1B 07
Generate Tone
123
1B 3C
Return Home
123
1B 3D
Select Peripheral Device (for Multi-Drop)
123
1B 40
Initialize Printer
124
1B 43 n
Set Slip Paper Eject Length
124
1B 63 30 n
Select Receipt or Slip for Printing; Slip for MICR Read
124
1B 63 31 n
Select Receipt or Slip for Setting Line Spacing
125
1B 63 33 n
Select Paper Sensors to Output Paper End Signals (Parallel Only)
125
1B 63 34 n
Select Sensors to Stop Printing
126
1B 63 35 n
Enable or Disable Panel Buttons
126
1B 63 36 n
Enable or Disable Online Switch
126
1B 66 m n
Set Slip Paper Waiting Time
127
1B 69
Perform Full Knife Cut
122
1B 6D
Perform Partial Knife Cut
123
1B 70 n p1 p2
Generate Pulse to Open Cash Drawer
127
1B 7A n
Select or Cancel Parallel Printing Mode on R&J
127
1C
Select Slip Station
128
1D 56 m
Select Cut Mode and Cut Paper
128
1D 56 m n
Select Cut Mode and Cut Paper
128
1E
Select Receipt Station
129
1F 74
Print Test Form
129
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 120
112 Chapter 7: Programming Guide
Vertical Positioning and Print Commands Code (Hexadecimal
Command
Page
0A
Print and Feed Paper One Line
130
0C
Print and Return to Standard Mode/Print and Eject Slip
130
0D
Print and Carriage Return
130
14 n
Feed n Print Lines
131
15 n
Feed n Dot Rows
131
16 n
Add n Extra Dot Rows
132
17
132
1B 32
Set Line Spacing to 1/6 Inch
133
1B 33 n
Set Line Spacing
133
1B 4A n
Print and Feed Paper
133
1B 4B n
Print and Reverse Feed Paper
134
1B 64 n
Print and Feed n Lines
134
1B 65 n
Print and Reverse Feed n Lines
134
1D 14 n
Reverse Feed n Lines
134
1D 15 n
Reverse Feed n Dots
135
1D 50 x y
Set Horizontal and Vertical Minimum Motion Units
135
Horizontal Positioning Commands
A758-D100 12/04
Code (Hexadecimal
Command
Page
09
Horizontal Tab
136
1B 14 n
Set Column
136
1B 24 n1 n2
Set Absolute Starting Position
137
1B 44 [n] k 00
Set Horizontal Tabs
138
1B 5C n1 n2
Set Relative Print Position
138
1B 61 n
Select Justification
140
1D 4C nL nH
Set Left Margin
141
1D 57 nL nH
Set Printing Area Width
142
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide