Command Descriptions; Printer Actions; Clear Printer; Perform Full Knife Cut - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

34
Chapter 4: Programming Commands

Command descriptions

Printer actions

The printer function commands control the following basic printer functions and are described in order of their
hexadecimal codes:
• 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:
• Double-wide command (0x12) is canceled
• 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
• Printing position is set to column one
Related Information
This command is recognized in A793 emulation and A798 native mode, ignored in LEGACY emulation.

Perform full knife cut

ASCII
EM
ESC i
Hexadecimal
19
1B 69
Decimal
25
27 105
Cuts the receipt.
There are two codes (Hex 19 or 1B 69) for this command and both perform the same function. See also 1D 56.
Exceptions
The full cut is replaced by a partial cut in the A793 emulation. ASCII EM, (0x19) is ignored in LEGACY emulation.

Perform partial knife cut

ASCII
SUB
ESC m
Hexadecimal
1A
1B 6D
Decimal
26
27 109
Partially cuts the receipt. The default setting leaves 5mm (0.20 inch) of paper on the left edge. (See setting partial cut
distance in diagnostics.)
There are two codes (Hex 1A or 1B 6D) for this command and both codes perform the same function. See also 1D 56.
Formulas
The cut edge is 144 dot rows or 18 mm (0.71 inch) above the print station.
Exceptions
The command is valid only at the beginning of a line. ASCII SUB, (0x1A), is ignored in LEGACY emulation. Line feed is
executed first, if the buffer is not empty.
A798-PG00001C
Revision C 12/09

Advertisement

Table of Contents
loading

Table of Contents