Chapter 3: programming the printer, Overview of commands, Comparison to a756 – CognitiveTPG A760 User Manual

Page 17

Advertising
background image

A760 User Guide: Programming Supplement

Chapter 3: Programming the Printer

17

Revision F January 2010

Chapter 3: Programming the Printer

Overview of commands

Commands control all operations and functions of the printer. This includes selecting the size
and placement of characters and graphics on the receipt or the slip and feeding and cutting the
paper. The programming commands have been organized, in order of hexadecimal code within
functional groups. For this reason, “related” commands may not be listed adjacent to one another.

The operation of various printers may be emulated by the
commands, including the following:
• A760 native
• A758 emulation
• A756 emulation
The A760’s standard command set allows it to work
with software written for CognitiveTPG or other POS
compliant printers.
Any of the commands may be used in any combination to
program a host computer to communicate with the printer
(unless otherwise noted).

For Ethernet use a specific set of commands must be set
for the printer to operate properly. These commands are
listed together as a chart on page 20 and individually
within the master commands listings.
Some commands listed and described here may not be
implemented and are identified as “not implemented.”
If received, they are ignored and not sent to the print buffer
as data.
Any non-legal commands have their parameter sent to the
print buffer as data.

Comparison to A756

The following table details the list of commands whose behavior differs among the
A756, A758, and A760 because of the physical differences of a 6 dots/mm head (A756)
versus an 8 dots/mm head (A758 and A760).

Command

Description

Difference between previous product

and new product emulation mode.

15 n

Feed n dot rows

This command will move the paper on the receipt in

n/203 inch steps instead of n/152 inch steps.

16 n

Add n extra dot rows

The dot rows will be measured in n/203 inches versus

n/152 inches.

1B 20 n

Set right-side character spacing

This command sets the right side spacing to “n” horizontal

motion units. By default, these units are in terms of 1/203

inches versus 1/152 inches.

1B 24 n1 n2

Set absolute starting position

For graphics commands, the position is scaled to best

match A756. In text mode, the equivalent character

position is calculated.

1B 26 s c1 c2 n1 d1...nn dn]

Define user-defined character set

Since the dots on the A760 printhead are smaller, user

defined characters that were used on the previous printers

will appear smaller on the A760 printer.

1B 2A m n1 n2 d1...dn

Select bit image mode

In A756 emulation mode, graphics are scaled to best

match the size of the graphic in the A756 printer.

continued…

Advertising