The text of a manual · part 20 of 24
A758 USB Thermal Receipt and Impact Slip Printer: Owner's Guide, pages 191 to 200
Pages 191 to 200 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 Axiohm A758
Page 191
Chapter 7: Programming Guide 183
6
-
-
-
Undefined
7
-
-
-
Undefined
Default:
0 (ASB disabled)
(Select or Cancel Status Back - continued on the next page) Exceptions If n = 0, ASB is disabled. Unlike the A756, that had a dedicated connector and resultant dedicated status reporting for each cash drawer. The A758 has a single connector that shares data reporting from either cash drawer. When either cash drawer is opened, an open status is reported by the printer. Related Information When Auto Status Back (ASB) is enabled using this command, the status transmitted by other commands and the ASB status are differentiated according to the information found in Recognizing Data from the printer, (in the Real Time Commands section in this chapter). The status bytes to be transmitted are described in the following four tables. Byte 1 = printer information Byte 2 = error information Byte 3 = paper sensor information Byte 4 = paper sensor information First Byte (Printer Information) Bit Off/On Hex Decimal
Status for ASB
0
Off
00
0
Not used. Fixed to off.
1
Off
00
0
Not used. Fixed to off.
2
Off On
00 04
0 4
One or both cash drawers open. Both cash drawers closed.
3
Off On
00 08
0 8
Not Busy at the RS-232C interface. Printer is Busy at the RS-232C interface.
4
On
10
16
Not used. Fixed to on.
5
Off On
00 20
0 32
Receipt cover closed. Receipt cover open.
6
Off On
00 40
0 64
Paper Feed Button is not pressed. Paper Feed Button is pressed.
7
Off
00
0
Not used. Fixed to off.
(Select or Cancel Status Back - continued on the next page)
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 192
184 Chapter 7: Programming Guide
Second Byte (Error information) Bit Off/On Hex Decimal
Status for ASB
0
-
-
-
Undefined
1
-
-
-
Undefined
2
Off
00
0
No Mechanical Error
On
04
4
Mechanical Error Occurred
3
Off On
00 08
0 8
No knife error. Knife error occurred.
4
Off
00
0
Not used. Fixed to off.
5
Off On
00 20
0 32
No unrecoverable error. Unrecoverable error occurred.
6
Off
00
0
No recoverable error occurred
On
40
64
Recoverable error occurred: Receipt cover open Cassette cover open Receipt paper exhausted Thermal printhead temp out of range. Power supply voltage out of range.
7
Off
00
0
Not used. Fixed to off.
Third Byte (Paper Sensor Information)
A758-D100 12/04
Bit
Off/On
Hex
Decimal
Status for ASB
0
Off On
00 01
0 1
Receipt paper adequate Receipt paper low
1
Off On
00 02
0 2
Receipt paper adequate Receipt paper low
2
Off On
00 04
0 4
Receipt paper present. Receipt paper exhausted.
3
Off On
00 08
0 8
Receipt paper present Receipt paper exhausted
4
Off
00
0
Not used. Fixed to off.
5
Off On
00 20
0 32
Slip leading edge sensor: paper present Slip leading edge sensor: no paper
6
Off On
00 40
0 64
Slip trailing edge sensor: paper present Slip trailing edge sensor: no paper.
7
Off
00
0
Not used. Fixed to off.
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 193
Chapter 7: Programming Guide 185 (Select or Cancel Status Back - continued on the next page)
Fourth Byte (Paper Sensor Information) Bit Off/On Hex Decimal Status for ASB
0
Off
00
0
Slip paper selected
On
01
1
Receipt paper selected
Off
00
0
Possible to print in slip
On
02
2
Not possible to print on slip because no form has been inserted
2
-
-
-
Undefined
3
-
-
-
Undefined
4
Off
00
0
Not used. Fixed to off.
5
-
-
-
Undefined
6
-
-
-
Undefined
7
Off
00
0
Not used. Fixed to off.
1
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 194
186 Chapter 7: Programming Guide
Bar Code Commands These commands format and print bar codes and are described in order of their hexadecimal codes. Note: A756 firmware can be set for module widths in bar codes ranging from 2 dots to 4 dots per module (DPM) for the narrow modules. The default is 3 DPM. A758 firmware ranges from 1 dot per module to 5 dots per module (DPM) printed on the receipt. The default is 2 DPM.
Select Printing Position for HRI Characters ASCII: GS H n Hexadecimal: 1D 48 n Decimal: 29 72 n Value of n:
Printing position 0 = Not printed 1 = Above the bar code 2 = Below the bar code 3 = Both above and below the bar code
Default:
0 (Not printed)
Prints HRI (Human Readable Interface) characters above or below the bar code.
Select Pitch for HRI Characters ASCII: GS f n Hexadecimal: 1D 66 n Decimal: 29 102 n Value of n:
Pitch 0 = Standard Pitch at 15.2 CPI on receipt 1 = Compressed Pitch at 19 CPI on receipt
Default:
0 (Standard Pitch at 15.2 CPI)
Selects standard or compressed font for printing bar code characters. When slip is selected as the interface, HRI is always compressed.
Select Bar Code Height ASCII: GS h n Hexadecimal: 1D 68 n Decimal: 29 104 n Value of n: A758-D100 12/04
189-9200399 Rev.A
Number of dots A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 195
Chapter 7: Programming Guide 187 Range of n:
1 - 255
Default:
162
Sets the bar code height to n dots or n/8 mm (n/203 inch) for receipt or n/8.5 mm (n/216 inch) for slip.
Print Bar Code First Variation
Second Variation
ASCII: GS k m d1…dk NUL Hexadecimal: 1D 6B m d1…dk 00 Decimal: 29 107 m d1…dk 0 or GS k m n d1…dn or 1D 6B m n d1…dn or 29 107 m n d1…dn
0 = End of command. Values: First Variation: String terminated with NUL Character m = 0 – 6, 10 d = 32 - 126 (see the table) n = 1 - 255 (see the table) Selects the bar code type and prints a bar code for the ASCII characters entered. If the width of the bar code exceeds one line, the bar code is not printed. There are two variations to this command. The first variation uses a NUL or non-printable characters (00-1F) to terminate the string; the second uses a length byte at the beginning of the string to compensate for the Code 128 bar code, which can accept a NUL or non-printable characters (00-1F) character as part of the data. With the second variation the length of byte is specified at the beginning of the string. Fixed-length codes can be aligned left, center, or right using the Align Positions command (1B 61). Variable-length codes are always center aligned in A756 Emulation. The check digit is calculated for UPC and JAN (EAN) codes if it is not sent from the host computer. Six-character zero-suppressed UPC-E tags are generated from full 11 or 12 characters sent from the host computer according to standard UPCE rules. Start/Stop characters are added for Code 39 if they are not included. m
Bar Code d1-dk n, Length
0
UPC-A
48- 57 (ASCII numerals)
Fixed Length: 11, 12
1
UPC-E
48- 57
Fixed Length: 11, 12
2
JAN13 (EAN)
48- 57
Fixed Length: 12, 13
3
JAN8 (EAN)
48- 57
Fixed Length: 7, 8
4
Code 39
48- 57, 65- 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is
Variable Length
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 196
188 Chapter 7: Programming Guide supplied by printer if necessary) 5
Interleaved 2 of 5
48- 57
Variable Length (Even Number)
6
Codabar
65- 68, start code 48- 57, 36, 43, 45, 46, 47, 58
Variable Length
10
PDF 417
1-255
Variable Length A758 Native Mode
(Print Bar Code--continued on the next page) Second Variation: Length of Byte Specified at Beginning of String m = 65 - 73, 75 (see the table) d = 0 - 127 (see the table) n = 1 - 255 (see the table) The value of m selects the bar code system as described in the table. When data is present in the print buffer, the printer processes the data following m as normal data. The variable d indicates the character code to be encoded into the specified bar code system. See the table. If character code d cannot be encoded, the printer prints the bar code data processed so far, and the following data is treated as normal data. m
Bar Code d1-dk n, Length
65
UPC-A
48- 57 (ASCII numerals)
Fixed Length: 11, 12
66
UPC-E
48- 57
Fixed Length: 11, 12
67
JAN13 (EAN)
48- 57
Fixed Length: 12, 13
68
JAN8 (EAN)
48- 57
Fixed Length: 7, 8
69
CODE 39
48- 57, 65- 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dn = 42 (start/stop code is supplied by printer if necessary)
Variable
70
Interleaved 2 of 5 (ITF)
48- 57
Variable (Even Number)
71
CODABAR (NW-7)
65- 68, start code 48- 57, 36, 43, 45, 46, 47, 58
Variable
72
Code 93
00-127
Variable (A758 Native Mode only)
73
Code 128
0-105 d1 = 103-105 (must be a Start code) d2 = 0-102 (data bytes) (Stop code is provided by the printer)
Variable
75
PDF417
0 – 255
Variable Length (A758 Native Mode only) Maximum of 1000 Characters
Exceptions: A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 197
Chapter 7: Programming Guide 189 Illegal data cancels this command. The command is valid only at the beginning of a line. PDF 417 format cannot be printed on the slip. Bar codes on the slip are always right justified. PDF 417 and Code 93 are only available in A758 Native Mode. PDF 417 has a maximum of 1000 characters.
Select PDF 417 Parameters ASCII: GS p a b c d e f Hexadecimal: 1D70 a b c d e f Decimal: 29 112 a b c d e f Value and Ranges: Value:
Ranges:
Description:
a, b =
The ratio of bar height to symbol length. a = height limit 1 to 10 b = width limit 1 to 100 c= rows limit 3 to 90
Number of rows in the matrix of code words.
d= columns limit 7 to 30
Number of columns in the matrix of code words.
e= x dimension limit 1 to 7
Width of a single module in dots.
f= y dimension limit 2 to 25
Height of the code word in dots.
Defaults:
a=1 b=2 c = 58 d=7 e=3 f = 10
PDF 417 is a multi-row, continuous, variable length symbology that has high data capacity. Each symbol has between 3 and 90 rows, with each row containing a start pattern, a left row indicator, 1 to 30 data characters, a right row indicator and a stop pattern. The number and length of the rows are selectable, which allows the aspect ratio to be adjusted to particular labeling applications. There are no separator bars between rows. Each character has four bars and four spaces within 17 modules, and is assigned a value between 0 and 928. For this symbology, it is common to refer to these character values as “code words.” There are three mutually exclusive sets of symbol patterns, or clusters, each having 929 distinct patterns. Because different clusters are used for adjacent rows, it is possible for the decoder to tell if the scanning path is crossing row boundaries without the use of separator bars.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 198
190 Chapter 7: Programming Guide (Select PDF 714 Parameters - continued on the next page)
Sample Symbol Description: Each PDF 417 symbol consists of 3 to 90 stacked rows surrounded on all four sides by a quiet zone. Each row contains: Data Character Start Pattern Code words Stop Pattern Left Row Indicator Right Row Indicator Code words Code words row 1
- row 2 - row 3 - row 4 - row 5 - row 6 1.
Leading quiet zone
2.
Start pattern
3.
Left row indicator characters (code words)
4.
One to thirty data characters (code words)
5.
Right row indicator character (code words)
6.
Stop pattern
7.
Trailing quiet zone
The number of characters in a row and number of rows can be adjusted to vary the symbol’s overall aspect ratio to best fit an available space. Each row has a left and right row indicator with a data region between. The leftmost character in the top row of the data region is the total number of characters in the data region, excluding error correction characters. Characters within the data region are designed to be read from left to right, starting on the top row, immediately after the length-defining character. The maximum characters in the data region are 928. Related Information: The “Set Bar Code Width” command (1D 77 n) affects the x dimension and row height for PDF 417. See chart below.
A758-D100 12/04 n value x dimension row height
2
2
7
3
3
10
4
4
13
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 199
Chapter 7: Programming Guide 191
5
5
17
6
6
20
Select Bar Code Width ASCII: GS w n Hexadecimal: 1D 77 n Decimal: 29 119 n Value of n:
2, 3, 4, 5, 6
Default :
3 for receipt; 2 for slip
Sets the bar code width to n dots. Formulas: n + 1/8 mm (n + 1/203 inch) for receipt, n + 1/5.7 mm (n + 1/144 inch) for slip. Slip module sizing: n must be even (it is rounded up if odd) and the size of modules is n + 1/5.7 mm (n + 1/144 inch).
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 200
192 Chapter 7: Programming Guide
Page Mode Commands Page Mode is one of two modes, which the A758 printer uses to operate. Standard Mode is typical of how most printers operate by printing data as it is received and feeding paper as the various paper feed commands are received. Page Mode is different in that it processes or prepares the data as a “page” in memory before it prints it. Think of this as a virtual page. The page can be any area within certain parameters that you define. Once the printer receives the (0x0C) command, it prints the page and returns the printer to Standard Mode. The Select Page Mode command (1B 4C) puts the printer into Page Mode. Any commands that are received are interpreted as Page Mode commands. Several commands react differently when in Standard Mode and Page Mode. The descriptions of these individual commands in this chapter indicate the differences in how they operate in the two modes. Limitations Page mode is only implemented on the receipt station in A758 Native Mode only.
Print and Return to Standard Mode ASCII: FF Hexadecimal: 0C Decimal: 12 The processed data is printed and the printer returns to Standard Mode. The developed data is deleted after being printed. This command has the same code as the Print and Eject Slip command, which is executed when the printer is not in Page Mode. Exceptions: This command is enabled only in Page Mode.
Cancel Print Data in Page Mode ASCII: CAN Hexadecimal: 18 Decimal: 24 Deletes all the data to be printed in the “page” area. Any data from the previously selected “page” area that is also part of the current data to be printed is deleted. A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide