Command descriptions, Printer actions – CognitiveTPG A798 User Manual

Page 34

Advertising
background image

Chapter 4: Programming Commands

34

Revision C 12/09

A798-PG00001C

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.

Advertising