The text of a manual · part 16 of 24
A758 USB Thermal Receipt and Impact Slip Printer: Owner's Guide, pages 151 to 160
Pages 151 to 160 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 151
Chapter 7: Programming Guide 143
Print Characteristic Commands These commands control what the printed information looks like: selection of character sets, definition of custom-defined characters, and setting of margins. The commands are described in order of their hexadecimal codes
Select Double-Wide Characters ASCII: DC2 Hexadecimal: 12 Decimal: 18 Prints double-wide characters. The printer is reset to single-wide mode after a line has been printed or the Clear Printer (0x10) command is received. Doublewide characters may be used in the same line with single-wide characters.
Select Single-Wide Characters ASCII: DC3 Hexadecimal: 13 Decimal: 19 Prints single-wide characters. Single-wide characters may be used in the same line with double-wide characters.
Select 90 Degree Counter-Clockwise Rotated Print ASCII: ESC DC2 Hexadecimal: 1B 12 Decimal: 27 18 Rotates characters 90 degrees counter-clockwise. The command remains in effect until the printer is reset or until a Clear Printer (0x10), Select or Cancel UpsideDown Print (1B 7B), or Select or Cancel Rotated Print (1B 56) command is received. Exceptions: This command is valid only at the beginning of a line. Rotated print and non-rotated print characters cannot be used together in the same line. Related Information: See Summary of Rotated Printing in this chapter.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 152
144 Chapter 7: Programming Guide
Select Pitch (Column Width) ASCII: ESC SYN n Hexadecimal: 1B 16 n Decimal: 27 22 n Value of n: Default:
0 = Standard Pitch 1 = Compressed Pitch 0 (Standard pitch)
Selects the character pitch for a print line. Formulas: The following table provides the print characteristics for both pitches on the receipt and slip stations. Pitch
Receipt Columns
Receipt CPI
Slip Columns
Slip CPI
Standard
44
15.6
66
13.9
Compressed
56
20.3
80
17.1
Related Information: See “Technical Specifications” for descriptions of character pitches (print modes).
Set Character Right-Side Spacing ASCII: ESC SP n Hexadecimal: 1B 20 n Decimal: 27 32 n Range of n:
0 - 32
Default :
0
Sets the right side character spacing to [n x horizontal or vertical motion units]. Values for this command are set independently in Standard and Page Mode. The units of horizontal and vertical motion are specified by the Set Horizontal and Vertical Minimum Motion Units (1D 50…) command. Changes in the horizontal or vertical units do not affect the current right side character spacing. When the horizontal or vertical motion unit is changed by the Set Horizontal and Vertical Minimum Motion Units (1D 50…) command the value must be in even units and not less than the minimum amount of horizontal movement. In Standard Mode the horizontal motion unit is used. In Page Mode the horizontal or vertical motion unit differs and depends on the starting position of the printable area. When the starting printing position is the upper left or lower right of the printable area (set by Select Print Direction in Page Mode, 1B 54 n) the horizontal motion unit (x) is used. When the starting printing position is the upper right or lower left of the printable area (set by Select Print Direction in Page Mode, 1B 54 n) the vertical motion unit (y) is used. Exception: This command is ignored in A756 Emulation Mode and is only valid on the receipt station.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 153
Chapter 7: Programming Guide 145
Select Print Modes ASCII: ESC ! n Hexadecimal: 1B 21 n Decimal: 27 33 n Value of n:
Pitch selection (standard, compressed, double high, or double wide.)
Value of n Bit Function
0
1
Bit 0
Pitch
Standard Pitch1 44 Col/Line, 15.6 CPI (Rec) 66 Col/Line, 13.9 CPI (Slip)
Compressed Pitch 56 Col/Line, 20.3 CPI (Rec) 80 Col/Line, 17.1 CPI (Slip)
Bit 3
Emphasized Mode
Canceled
Set
Bit 4
Doublehigh2
Canceled
Set
Bit 5
Double-wide Canceled
Set
Bit 7
Underlined Mode
Set
Canceled
Bits 1, 2, 6 are not used. 1Standard and compressed pitch cannot be used together in the same line. 2Double-high characters cannot be used with normal characters in the same line, nor can they be used on the slip station. Default:
0 (for bits 0, 3, 4, 5, 7)
Selects the print mode: standard, compressed, double high, or double wide. Related Information: The bits in this command perform the same function as the standalone functions: 1B 16 n 1B 45 n 12 13 1B 2D n
Select Pitch Emphasized Double-wide Single-wide Underline
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 154
146 Chapter 7: Programming Guide
Select or Cancel User-Defined Character Set ASCII: ESC % n Hexadecimal: 1B 25 n Decimal: 27 37 n Value of n:
0= Code Page 437 1= User-defined (RAM character set) 2= Code Page 850
Range:
0-2
Default:
0 (Code Page 437)
Selects the character set. When an undefined RAM character is selected, the Code Page 437 character is used. See the Printing Specification Guide for the character sets. Exceptions: The character sets cannot be used together on the same line.
Define User-Defined Characters Receipt ASCII: ESC & 3 c1 c2 n1 d1 ... nn dn Hexadecimal: 1B 26 3 c1 c2 n1 d1 ... nn dn Decimal: 27 38 3 c1 c2 n1 d1 ... nn dn
Slip ESC & 0 c1 c2 d1 ... dn 1B 26 0 c1 c2 d1 ... dn 27 38 0 c1 c2 d1 ... dn
Defines and enters downloaded characters into RAM or Flash. The command may be used to overwrite single characters. User-defined characters are available until power is turned off or the Initialize Printer command (1B 40) is received. Any invalid byte (s, c1, c2, n1) aborts the command. User-defined character sets for both slip and receipt may be used at the same time. The command clears bit image logo data from RAM. The illustration below provides a sample of a character cell.
Defining User-Defined Characters for the Slip and Receipt Station Defines and enters downloaded characters into RAM. (Define User-Defined Characters - continued on the next page)
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 155
Chapter 7: Programming Guide 147
Receipt Charactors (1B 26 3)
Slip Characters (1B 26 0) MSB
Top of Character
Top of Character d1 d2 d1 d2 d12 dn
MSB LSB d1 d2 dn d1 d2 dn LSB
Values and Ranges: Receipt c = the ASCII codes of the first (c1) and last (c2) characters respectively c1 = Hex 20-FF c2 = Hex 20-FF To define only one character, use the same code for both c1 and c2. n = the number of dot columns for the nth character as specified by n1 ... nn n = 1-10 (standard pitch), 12 and less accepted but ignored n = 1-8 (compressed pitch), 12 and less accepted but ignored d = the column data for the nth character as specified by d1 ... dn The number of bytes for a particular character cell is 3 x n1. The bytes are printed down and across each cell. Slip c = the ASCII codes of the first (c1) and last (c2) characters respectively c1 = Hex 20-FF c2 = Hex 20-FF To define only one character, use the same code for both c1 and c2. d = the column data for the nth character as specified by d1 ... dn Each character is defined by 12 bytes (only bytes 2-11 are printed.) Each byte is one 7-dot high column (full- or half-dot column.) Overlapped dots are not printed The data must contain [(c2 - c1 + 1) x 12] bytes Related Information: See 1D 22 n (Select Memory Type Where to Save User-Defined Fonts.)
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 156
148 Chapter 7: Programming Guide
Select or Cancel Underline Mode ASCII: ESC - n Hexadecimal: 1B 2D n Decimal: 27 45 n Value of n:
0, 48 = Cancel underline mode 1, 49 = Select underline mode
Default of n:
0 (Cancels underline mode)
Turns underline mode on or off. Underlines cannot be printed for spaces set by the Horizontal Tab, Set Absolute Start Position, or Set Relative Print Position commands. This command and the Select Print Mode(s) command (1B 21) turn underline on and off in the same way. Exceptions: This command is ignored if n is out of the specified range. This command is only available in A758 Native Mode.
Copy Character Set from ROM to RAM ASCII: ESC : 0 0 0 Hexadecimal: 1B 3A 30 30 30 Decimal: 27 58 48 48 48 Default:
Code Page 437
Copies characters in the active ROM set to RAM. Use this command to reinitialize the User-Defined Character Set. Code Page 437 is copied by default at initialization. The command is ignored if current font is the user font. Related Information: To modify characters in one of the character set variations, such as Rotated Print, select one of the Rotated Print commands, copy to RAM, then use the Define User-Defined Character Set command (1B 26).
Cancel User-Defined Characters ASCII: ESC ? n Hexadecimal: 1B 3F n Decimal: 27 63 n Value of n:
Specified character code
Range of n:
32 - 255
Cancels the pattern defined for the character code specified by n. After the userdefined character is canceled, the corresponding pattern from Code Page 437 is printed. Exceptions: This command is ignored if n is out of range or if the user-defined character is not defined. A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 157
Chapter 7: Programming Guide 149
Select or Cancel Emphasized Mode ASCII: ESC E n Hexadecimal: 1B 45 n Decimal: 27 69 Value of n:
0 (bit 0), not selected 1 (bit 0), selected
Range of n:
0 - 255
Default:
0 (bit 0)
Starts or stops emphasized printing on slip and receipt. In Emphasized Mode on the slip, each line is printed twice to improve penetration of multi-part forms and increase print contrast. The second pass is printed the same direction as the first to ensure accuracy of the overprint. Printing speed decreases due to the second printing pass. Exceptions: Only the lowest bit of n is effective. Emphasized printing cannot be used with bit-images or downloaded bit-images. Related Information: This command and the Select Print Mode(s) command (1B 21) function identically.
Select Double Strike A756 Emulation A758 Native ASCII: ESC G Hexadecimal: 1B 47 Decimal: 27 71 Value of n:
ESC G n 1B 47 n 27 71 n
0 = Off 1 = On
Turns double strike mode on for the slip station. Overprints a second pass of the print line on the slip station to improve penetration of multi-part forms and increase print contrast. The second pass is printed the same direction as the first to ensure accuracy of the overprint. The printer is reset to the standard print mode after a line has been printed or after a Clear Printer (0x10) command is received. Exceptions: The settings do not apply in Page Mode. However they can be set or cleared in Page Mode. Double-strike printing cannot be used with bit-images or downloaded bitimages. This command functions the same as the A756 when the printer is in A756 Emulation Mode. In Native Mode, the command takes a parameter to enable and disable it. Related Information: Printer output is the same as in Emphasized Mode. A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 158
150 Chapter 7: Programming Guide
Cancel Double Strike ASCII: ESC H Hexadecimal: 1B 48 Decimal: 27 72 Turns off double strike mode on the slip station in A756 Emulation Mode. This command is ignored in the A758 Native Mode. This command works on both slip and receipt stations.
Select or Cancel Italic Print ASCII: ESC I n Hexadecimal: 1B 49 n Decimal: 27 73 n Value of n:
0 = Off 1 = On (When 0 and 1 are the Least Significant Bit, LSB)
Default:
0 (Off)
Turns Italic print mode on or off. This command is only available in A758 Native Mode. Italic print mode is available for built-in, user-defined characters. This command only works on the receipt station. Exceptions: Only the lowest bit of n is valid. This command is only valid for the receipt station in A758 Native Mode.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
Page 159
Chapter 7: Programming Guide 151
Select International Character Set ASCII: Hexadecimal: Decimal: Value of n:
Default:
ESC R n 1B 52 n 27 82 n or or or
ESC t n 1B 74 n 27 116 n
A758 Native Mode A756 Emulation 0 = Code Page 437 0 = Code Page 437 1 = Code Page 850 1 = Code Page 850 2 = Code Page 852 3 = Code Page 860 4 = Code Page 863 5 = Code Page 865 6 = Code Page 858 7 = Code Page 866 8 = Code Page 1252 9 = Code Page 862 0 (Code Page 437)
Selects the character set to be used. See Print Specifications for the character sets. There are two codes for this command. Both codes perform the same function. Exceptions: The character sets cannot be used together on the same line. Related Information: This command may also be known as Select Character Code Table.
Select Character Code Table See the previous command, Select International Character Set.
Select or Cancel Unidirectional Printing Mode ASCII: ESC U n Hexadecimal: 1B 55 n Decimal: 27 85 n Value of n: Default:
0 = select bi-directional 1 = select unidirectional 0
Toggles between unidirectional and bi-directional printing on the slip station. Unidirectional printing increases column alignment and provides higher quality printing. Printing is normally bi-directional because of the faster speed.
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide
189-9200399 Rev.A
A758-D100 12/04
Page 160
152 Chapter 7: Programming Guide
Select or Cancel 90 Degrees Clockwise Rotated Print ASCII: ESC V n Hexadecimal: 1B 56 n Decimal: 27 86 n Value of n:
0 = Cancel 1 = Set
Default:
0
Rotates characters 90 degrees clockwise. The command remains in effect until the printer is reset or the Clear Printer (0x10) command is received. See Summary of Rotated Printing in this chapter.
Select or Cancel Upside Down Printing Mode ASCII: ESC { n Hexadecimal: 1B 7B n Decimal: 27 123 n Value of n:
0 = Cancel 1 = Set
Default:
0 (Cancel)
Prints upside-down characters. The character order is inverted in the buffer so text is readable. The command remains in effect until the Rotated Print (1B 12) command is received. Only bit 0 is used. Bits 1-7 are not used. See Summary of Rotated Printing in this document for more information. Exceptions: The command is valid only at the beginning of a line. The Rotated Print command (1B 12) cancels this command.
A758-D100 12/04
189-9200399 Rev.A
A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide