Generate Pulse To Open Cash Drawer; Set Current Color - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

40
Chapter 4: Programming Commands

Generate pulse to open cash drawer

ASCII
ESC p n p1 p2
Hexadecimal
1B 70 n p1 p2
Decimal
27 112 n p1 p2
Value of n:
00, 48 (Decimal) = Drawer 1;
01, 49 (Decimal) = Drawer 2
Value of p1:
0–255
Value of p2:
0–255
Sends a pulse to open the cash drawer.
Formulas
The value for either p1 or p2 is the hexadecimal number multiplied by 2 msec to equal the total time.
• On-time = p1 (Hex) x 2 msec
• Off-time = p2 (Hex) x 2 msec
Related information
Off-time is the delay before the printer performs the next operation. Refer to cash drawer specifications for required on and
off-time. If p2 < p1, the off-time is equal to the on-time.

Set current color

ASCII
ESC r m
Hexadecimal
1B 72 m
Decimal
27 114 m
Default of m:
0 (monochrome)
This command will set the current color to the color m for all character data that may follow this command and all graphic
objects (bit images) that have not been explicitly loaded as two-color.
m = 0 (monochrome) is the initial value
m = 1 (two-color paper "primary color", usually black)
m = 2 (second color available from two-color paper)
The m values 0 and 1 will not have a distinguishable effect; 0 is the initial value and provides parameter value consistency
with other commands.
Description
When the monochrome paper type command (0 0) is set, this command is recognized and retained, but has no effect. The
monochrome paper selection (usually black) controls the output.
When two-color paper is loaded and the two-colors paper type command set, this command will designate which of the
two colors will be used for everything not specified as having an explicit color parameter(s), such as color logos, side bars,
surround graphics, background watermarks or color raster graphics. The effect mimics shifting a two-color ribbon in a
printer or typewriter to type the color of the lower half of the ribbon.
Exceptions
After a power loss or reset the default value m = 0 is reset.
A799-2PG0001B 4/2016

Advertisement

Table of Contents
loading

Table of Contents