The text of a manual · part 14 of 24
A758 USB Thermal Receipt and Impact Slip Printer Owner's Guide, pages 131 to 140
Pages 131 to 140 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 131
Chapter 7: Programming Guide 123
Perform Partial Knife Cut ASCII: SUB or ESC m Hexadecimal: 1A or 1B 6D Decimal: 26 or 27 109 Cuts the receipt, leaving 5 mm (.20 inch) of paper. This command is implemented the same as Full Knife Cut (19, 1B 69). There are two codes for this command and both perform the same function. Exceptions: Line Feed is executed first if the buffer is not empty. This command is processed regardless of which station is selected.
Generate Tone ASCII: ESC BEL Hexadecimal: 1B 07 Decimal: 27 7 Generates an audible tone. Performed by the printer to signal certain conditions.
Return Home ASCII: ESC < Hexadecimal: 1B 3C Decimal: 27 60 Moves the impact printhead (unless already there) to the home position. Related Information: The printer is able to detect carriage motor jams, eliminating the need to home the printhead after each slip transaction.
Select Peripheral Device (for Multi-Drop) ASCII: ESC = n Hexadecimal: 1B 3D n Decimal: 27 61 n Value of n:
0 (bit 0), device not selected 1 (bit 0), device selected
Default:
1 (bit 0), device selected
Selects the device to which the host computer sends data. Exception: This command is ignored.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 132
124 Chapter 7: Programming Guide
Initialize Printer ASCII: ESC @ Hexadecimal: 1B 40 Decimal: 27 64 Default: Character Pitch Column Width Extra Dot Rows Character Set Printing Position
Receipt 15.6 CPI 44 characters 2 Code Page 437 Column One
Slip 13.9 CPI 66 characters 3 Code Page 437 Column One
Clears the print line buffer and resets the printer to the default settings for the startup configuration (refer to Default settings above.) Single-Wide, Single-High, Non-Rotated, and Left-Aligned characters are set and User-defined characters or logo graphics are cleared (Flash Memory is not affected). Tabs reset to default. Receipt selection state is selected. 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.
Set Slip Paper Eject Length ASCII: ESC C n Hexadecimal: 1B 43 n Decimal: 27 67 n Value of n :
0 to 255
This command is ignored.
Select Receipt or Slip for Printing; Slip for MICR Read ASCII: ESC c 0 n Hexadecimal: 1B 63 30 n Decimal: 27 99 48 n Value of n : Default of n :
1, 2, 3
Receipt selected
4
Slip selected
1
Selects the station for printing. When slip is selected, the printer waits (based on the slip waiting time setting [i.e.: 1B 66 m n]) for the paper to be inserted. When slip has already been selected and the selection is changed, the form is opened. If the station has already been selected and it is re-selected, no action takes place. Exceptions: Receiving the command discards unprinted data in the buffer, forcing a “beginning of line” state. When n is out of range this command is ignored.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 133
Chapter 7: Programming Guide 125
Select Receipt or Slip for Setting Line Spacing ASCII: ESC c 1 n Hexadecimal: 1B 63 31 n Decimal: 27 99 49 n Value of n: Default of n :
1, 2, 3
Select receipt
4
Select Slip
1
Selects which station receives the effects of the following commands: ♦
Select Default Line Spacing (1B 32)
♦
Set Line Spacing (1B 33)
♦
Add n extra dot rows (16 n)
Exceptions: This command is ignored if n is out of range.
Select Paper Sensors to Output Paper End Signals (Parallel Only) ASCII: ESC c 3 n Hexadecimal: 1B 63 33 n Decimal: 27 99 51 n Value of n : If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paper-end signals. If either bit 2 or bit 3 is on, the paper roll end sensor is selected as the paper sensor outputting paper-end signals. Bit
Position
Hex
Decimal
Function
0
Off On
00 01
0 1
Paper roll near end sensor disabled Paper roll near end sensor enable
1
Off On
00 02
0 2
Paper roll near end sensor disabled Paper roll near end sensor enabled
2
Off On
00 04
0 4
Paper roll end sensor disabled Paper roll end sensor enabled
3
Off On
00 08
0 8
Paper roll end sensor disable Paper roll end sensor enabled
4, 5, 6, 7
-
-
-
Undefined
Range of n :
1 - 255
Default:
15
Specifies the paper sensor to output a paper end signal. Multiple sensors may be selected to signal when paper has run out. When multiple sensors have been selected, anytime one of the sensors detects a paper end, the paper end signal is output.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 134
126 Chapter 7: Programming Guide When this command is executed a sensor is switched. The paper end signal switching is delayed depending on the receive buffer state.
Select Sensors to Stop Printing ASCII: ESC c 4 n Hexadecimal: 1B 63 34 n Decimal: 27 99 52 n Value of n : Bit of n Bit
Function
Bit 0, 1
Stop Receipt on Receipt Low
Bit 4
Stop Slip if Trailing Edge Uncovered
Bit 5
Stop Slip if Leading Edge Uncovered
Default:
0
Determines which sensor stops printing on the respective station. The command does not affect the paper out sensor on the receipt station, which will automatically stop the printer when the paper is depleted.
Enable or Disable Panel Buttons ASCII: ESC c 5 n Hexadecimal: 1B 63 35 n Decimal: 27 99 53 n Value of n :
0 = Enable 1 = Disable
Default:
0 (Enable)
Enables or disables the Paper Feed Button. If the last bit is 0, the Paper Feed Button is enabled. If the last bit is 1, the Paper Feed Button is disabled. Related Information: Functions that require using the Paper Feed Button (except for the Execute Macro [10 5E] command) cannot be used when it is disabled with this command.
Enable or Disable Online Switch ASCII: ESC c 6 n Hexadecimal: 1B 63 36 n Decimal: 27 99 54 n Value of n :
0, 1
Since the A758 does not have an Online Switch, this command is ignored.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 135
Chapter 7: Programming Guide 127
Set Slip Paper Waiting Time ASCII: ESC f m n Hexadecimal: 1B 66 m n Decimal: 27 102 m n Value of m : Value of n :
Minutes Tenths of seconds
Sets the time (in m minutes) that the printer waits for a slip to be inserted into the slip station. It also sets the time (n x 0.1 seconds) that the printer waits to close the platen and start printing once the slip has been inserted. The printer reads that a slip is inserted when the leading edge and trailing edge sensors are covered. The LED on the slip table is lit (green) when both sensors are covered. If a slip is not inserted in the time specified, the receipt station is selected for the next function. If m = 0, the printer waits forever for a slip to be inserted. The times set by this command are used only by the command, Select Receipt or Slip for Printing, Slip for MICR Read (1B 63 30 n), with n set to 04.
Generate Pulse to Open Cash Drawer ASCII: ESC p n p1 p2 Hexadecimal: 1B 70 n p1 p2 Decimal: 27 112 n p1 p2 Value of n :
0, 48 = Drawer 1 1, 49 = Drawer 2
Value of p1: Value of p2:
0 - 255 0 - 255
Sends a pulse to open the cash drawer. Formulas: The value for either p1 or p2 is the hexadecimal number multiplied by 2 msec to equal the total time. ♦
On time = p1 x 2 msec
♦
Off time = p2 x 2 msec
Related Information: The off-time is the delay before the printer performs the next operation. Refer to cash drawer specifications for required on and off times.
Select or Cancel Parallel Printing Mode on R&J ASCII: ESC z n Hexadecimal: 1B 7A n Decimal: 27 122 n Because there is no journal station on the printer this command is not implemented and is ignored if received.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 136
128 Chapter 7: Programming Guide
Select Slip Station ASCII: FS Hexadecimal: 1C Decimal: 28 Selects the Slip Station for all functions. The receipt station is the default setting after the printer is initialized or the Clear Printer (0x10) command is received.
Select Cut Mode and Cut Paper ASCII: GS V m Hexadecimal: 1D 56 m Decimal: 29 86 m Value of m: Value of n :
GS V m n 1D 56 m n 29 86 m n
Selects the mode as shown in the table Determines cutting position only if m is 65 or 66.
M
Feed and Cut Mode
0, 48
Full cut (no extra feed). Partial cut on the A758.
1, 49
Partial cut (no extra feed).
65
Feeds paper to cutting position + (n times vertical motion unit), and cuts the paper completely.
66
Feeds paper to cutting position + (n times vertical motion unit), and performs a partial cut.
Range of m:
0, 48; 1, 49 65, 66 (when used with n)
Range of n:
0 - 255
Default of n: Default of m:
0 0
Selects a mode for cutting paper and cuts the paper. There are two formats for this command. The first requires one parameter (m). The other requires two parameters (m and n). The format is indicated by the parameter m. Formulas:
n times the vertical motion unit is used to determine the cutting position to which the paper is fed.
Exceptions: If m is out of the specified range, the command is ignored.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 137
Chapter 7: Programming Guide 129
Select Receipt Station ASCII: RS Hexadecimal: 1E Decimal: 31 Selects the Receipt Station for all functions. The receipt station is the default setting after the printer is initialized or the Clear Printer (0x10) command is received.
Print Test Form ASCII: AX t Hexadecimal: 1F 74 Decimal: 31 116 Prints the current printer configuration settings on the receipt. Disabled in page mode. Exception: This command is available in A758 Native Mode only.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 138
130 Chapter 7: Programming Guide
Vertical Positioning and Print Commands The vertical positioning and print commands control the vertical print positions of characters on the receipt and slip.
Print and Feed Paper One Line ASCII: LF Hexadecimal: 0A Decimal: 10 Prints one line from the buffer and feeds paper one line. Carriage Return/Line Feed pair prints and feeds only one line.
Print and Eject Slip ASCII: FF Hexadecimal: 0C Decimal: 12 Prints data from the buffer to the slip station and if the paper sensor is covered, reverses the slip out the front of the printer far enough to be accessible to the operator. The impact station opens the platen in all cases. This command has the same code as the Print and Return to Standard Mode command, which is executed only when the printer is in Page Mode. When the printer is not in Page Mode this command executes the print and eject slip function. Exceptions: This command is ignored if the receipt station is the current station.
Print and Carriage Return ASCII: CR Hexadecimal: 0D Decimal: 13 Prints one line from the buffer and feeds paper one line. The printer can be set through the configuration menu to ignore or use this command. Some applications expect the command to be ignored while others use it as print command. Related Information: See Ignoring/Using the Carriage Return in Diagnostics for more information. Carriage Return/ Line Feed pairs prints and feeds only one line.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 139
Chapter 7: Programming Guide 131
Feed n Print Lines ASCII: DC4 n Hexadecimal: 14 n Decimal: 20 n Value of n:
The number of lines to feed at current line height setting.
Range of n :
0 – 127 A756 Emulation Mode 0 – 255 A758 Native Mode
Feeds paper n lines at the current line height without printing. Ignored on receipt if the current line is not empty.
Feed n Dot Rows ASCII: NAK n Hexadecimal: 15 n Decimal: 21 n Value of n:
Receipt n/203 inch
Range of n :
0 – 127 A756 Emulation Mode 0 – 255 A758 Native Mode
Slip n/72 inch
Feeds paper n dot rows without printing. Receipt moves n rows if the print buffer is empty.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 140
132 Chapter 7: Programming Guide
Add n Extra Dot Rows ASCII: SYN n Hexadecimal: 16 n Decimal: 22 n Value of n:
Receipt n/203 inch
Range of n:
0 - 12
Default:
Receipt 3
Slip n/72 inch Slip 3
Adds n extra dot rows to the character height to increase space between print lines or decrease number of lines per inch. Formulas: The following table shows the relationship between the number of lines per inch and each extra dot row added for both the receipt and slip stations: Receipt Station
Slip Station
Extra Rows
Lines Per Inch
Dot Rows
Extra Rows
Lines Per Inch
Dot Rows
0
8.47
24
0
10.29
7
1
8.13
25
1
9.00
8
2
7.81
26
2
8.00
9
3
7.52
27
3
7.20
10
4
7.25
28
4
6.55
11
5
7.00
29
5
6.00
12
6
6.77
30
6
5.54
13
7
6.55
31
7
5.14
14
8
6.35
32
8
4.80
15
9
6.16
33
9
4.50
16
10
5.98
34
10
4.24
17
11
5.81
35
11
4.00
18
12
5.64
36
12
3.79
19
Print ASCII: ETB Hexadecimal: 17 Decimal: 23 Prints one line from the buffer and feeds paper one line. Executes LF on receipt. Executes LF on slip if previous character was not a CR.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide