Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 4 of 14

A795 Two-Color Thermal Receipt Printer User Guide: Programming Supplement, pages 31 to 40

Pages 31 to 40 of 136

The original document is the PDF (980 KB). 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 A795

Page 31

A795 User Guide: Programming Supplement

Revision E May 2005

31

Chapter 4: Programming commands

Text characteristics Code (hexadecimal)

Command

Page

12

Select double-wide characters

54

13

Select single-wide characters

54

1B 12

Select 90 degree counter-clockwise rotated print

54

1B 16 n

Select pitch (column width)

55

1B 20 n

Set right-side character spacing

55

1B 21 n

Select print mode

56

1B 25 n

Select or cancel user-defined character set

56

1B 26 s c1 c2 n1 d1…nn dn Define user-defined character sets

57

1B 2D n

Select or cancel underline mode

57

1B 3A 30 30 30

Copy character set from ROM to RAM

58

1B 3F n

Cancel user-defined character

58

1B 45 n

Select or cancel emphasized mode

58

1B 47 n

Select or cancel double-strike

59

1B 49 n

Select or cancel italic print

59

1B 52 n

Select international character code

60

1B 56 n

Select or cancel 90 degree clockwise rotated print

60

1B 74 n

Select international character set

61

1B 7B n

Select or cancel upside-down print mode

61

1D 21 n

Select character size

62

1D 42 n

Select or cancel white/black reverse print mode

63

1D 85 m n

Reverse color text mode (two-color)

63

1D 8D n m

Text strike-through mode

64

1F 05 n

Select superscript or subscript modes

63

Page 32

32

A795 User Guide: Programming Supplement

Revision E May 2005

Chapter 4: Programming commands

Graphics Code (hexadecimal)

Command

Page

1B (+*.BMP file)

Download BMP logo

65

1B 2A m n1 n2 d1…dn

Select bit image mode

66

1B 2E m n rL rH d1 … dn Print advanced raster graphics

67

1B 59 n1 n2 d1…dn

Select double-density graphics

67

1D 23 n

Select the current logo (downloaded bit image)

68

1D 2A n1 n2 d1…dn

Define downloaded bit image

69

1D 2F m

Print downloaded bit image

70

1D 82 n1…n72 or …n80

Print raster monochrome graphics

70

1D 83 n1…n144 or …n160

Print raster color graphics

71

1D 84 m n1 n2 d1…dx Download logo image

71

1D 8B n m o

Apply shading to logo

72

1D 8C n m

Merge watermark mode

72

1D 86 m

Monochrome shade mode

73

1D 87 m

Color shade mode

73

1D 89 n m

Logo print with color plane swap

73

1D 90 m x y o p q

Form and merge real time surround graphic

74

1D 91 n

Save graphics buffer as logo

74

1D 92 n

Background logo print mode

75

1D 99 l m n o

Apply margin message mode

75

1D 9A n m o

Shade and store logo

75

1D 9B m n

Logo print with knife cut

76

1D A0 nl nh

Set temporary max target speed

77

1F 03 16 f s p/r t

LogoEZ ® colorization

77 continued...

Page 33

A795 User Guide: Programming Supplement

Revision E May 2005

33

Chapter 4: Programming commands

Graphics continued Code (hexadecimal)

Command

Page

1F 03 17 a m s

LogoEZ ® attribute mapping

80

1F 04 n

Convert 6-dots/mm bitmap to 8 dots/mm bitmap

81

1F 7B n

Enable constant speed logos

81

Status Batch mode Code (hexadecimal)

Command

Page

1B 75 0

Transmit peripheral device status (RS-232C printers only)

83

1B 75 n

Request alternate status (A793 emulation only)

83

1B 76

Transmit paper sensor status

84

1D 49 n

Transmit printer ID

85

1D 49 40 n

Transmit printer ID, remote diagnostics extension

86

1D 72 n

Transmit status

88

1F 56

Send printer software version

90

Real time Code (hexadecimal)

Command

Page

10 04 n

Real time status transmission (DLE sequence)

92

10 05 n

Real time request to printer (DLE sequence)

93

1D 03 n

Real time request to printer (GS sequence)

92

1D 04 n

Real time status transmission (GS sequence)

93

1D 05

Real time printer status transmission

94

1F 7A

Real time commands disabled

94

Unsolicited status mode Code (hexadecimal)

Command

1D 61 n

Select or cancel unsolicited status mode

Page 95

Page 34

34

A795 User Guide: Programming Supplement

Revision E May 2005

Chapter 4: Programming commands

Bar codes Code (hexadecimal)

Command

Page

1D 48 n

Select printing position for HRI characters

98

1D 66 n

Select pitch for HRI characters

98

1D 68 n

Select bar code height

98

1D 6B m d1…dk 00 or 1D 6B m n d1…dn

Print bar code

98

1D 70 a b c d e f

Select PDF 417 parameters

101

1D 77 n

Select bar code width

102

Page 35

A795 User Guide: Programming Supplement

Revision E May 2005

35

Chapter 4: Programming commands

Page mode Code (hexadecimal)

Command

Page

0C

Print and return to standard mode

103

18

Cancel print data in page mode

103

1B 0C

Print data in page mode

103

1B 4C

Select page mode

104

1B 53

Select standard mode

104

1B 54 n

Select print direction in page mode

105

1B 57 n1, n2…n8

Set print area in page mode

106

1D 24 nL nH

Set absolute vertical print position in page mode

107

1D 5C nL nH

Set relative vertical print position in page mode

107

Code (hexadecimal)

Command

Page

1D 3A

Select or cancel macro definition

108

1D 5E r t m

Execute macro

108

Macros

Page 36

36

A795 User Guide: Programming Supplement

Revision E May 2005

Chapter 4: Programming commands

User data storage Code (hexadecimal)

Command

Page

1B 27 m a0 a1 a2 d1…dm

Write to user data storage

111

1B 34 m a0 a1 a2

Read from user data storage

109

1B 6A k

Read from non-volatile memory (NVRAM)

109

1B 73 n1 n2 k

Write to non-volatile memory (NVRAM)

109

1D 22 n

Select memory type (SRAM/flash) where to save logos or user-defined fonts

110

1D 22 55 n1 n2

Flash memory user sectors allocation

110

1D 40 n

Erase user flash sector

111

1D 97 m n

User storage status

112

Flash download Code (hexadecimal)

Command

Page

1B 5B 7D

Switch flash download mode

113

1D 00

Return boot sector firmware part number

114

1D 01

Return segment number status of flash memory

114

1D 02 nn

Select flash memory sector to download

114

1D 06

Get firmware CRC

114

1D 07

Return microprocessor CRC

115

1D 0E

Erase all flash contents except boot sector

115

1D 0F

Return main program flash CRC

115

1D 10 n

Erase selected flash sector

115

1D 11 aL aH cL cH d1…dn

Download to active flash sector

116

1D 8E m nL nH d1 ... dn

Download paper type description

116

1D 8F m

Return paper type description

117

1D FF

Reset firmware

117

Page 37

A795 User Guide: Programming Supplement

Revision E May 2005

Chapter 4: Programming commands

Command conventions The following information describes how each command is organized: Name:

Name of command.

ASCII:

The ASCII control code.

Hexadecimal:

The hexadecimal control code.

Decimal:

The decimal control code.

Value:

A description of the command operands.

Range:

The upper and lower limits of the command operand.

Default:

The command operand default after printer reset.

Description:

Brief description and summary of the command.

Formulas:

Any formulas used for this command.

Exceptions:

Describes any exceptions to this command; for example, incompatible commands.

Related information: Describes related information for this command; for example, bit information.

37

Page 38

38

A795 User Guide: Programming Supplement

Revision E May 2005

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

• Opening the cash drawers

• Cutting the paper

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

Related Information

This command is recognized in A793 emulation and A795 native mode, ignored in LEGACY emulation.

• 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 • Printer is restarted and error status is cleared in a fault condition • Printing position is set to column one • Knife is homed

Perform full knife cut ASCII EM Hexadecimal 19 Decimal 25

ESC i 1B 69 27 105

Cuts the receipt.

Exceptions

There are two codes (Hex 19 or 1B 69) for this command and both perform the same function.

The full cut is replaced by a partial cut in the A793 emulation. ASCII EM, (0x19) is ignored in LEGACY emulation.

Page 39

A795 User Guide: Programming Supplement

Revision E May 2005

39

Chapter 4: Programming commands

Perform partial knife cut ASCII SUB Hexadecimal 1A Decimal 26

ESC m 1B 6D 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.)

Formulas

There are two codes (Hex 1A or 1B 6D) for this command and both codes perform the same function.

Exceptions

The cut edge is 144 dot rows or 18 mm (0.71 inch) above the print station.

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.

Generate tone ASCII ESC BEL Hexadecimal 1B 07 Decimal 27 7

Generates an audible tone. Performed by the printer to signal certain conditions.

Related information

This command is ignored in LEGACY emulation.

Select peripheral device (for multi-drop) ASCII ESC = n Hexadecimal 1B 3D n Decimal 27 61 n Value of n:

0 (bit 0), device not selected 1 (bit 0), device selected

Default:

1 (bit 0), device selected

Selects the device to which the host computer sends data.

Related information

Other bits of n (1–7) are undefined and ignored. When the printer is disabled by this command, it ignores transmitted data until the printer is re-enabled by the same command.

Initialize printer ASCII ESC @ Hexadecimal 1B 40 Decimal 27 64 Default:

Character pitch: Column width: Extra dot rows: Character set: Printing position:

15.6 CPI 44 characters 3 Code Page 437 Column One

Clears the print line buffer and resets the printer to the default settings for the start-up configuration (refer to Default settings above).

Single-wide, single-high, non-rotated, and left-aligned characters are set, and user-defined characters or logo graphics are cleared. (Flash memory is not affected.) Tabs reset to default. Receipt selection state is selected.

Page 40

40

A795 User Guide: Programming Supplement

Revision E May 2005

Chapter 4: Programming commands

Select paper sensors to output paper-end signals ASCII ESC c 3 n Hexadecimal 1B 63 33 n Decimal 27 99 51 n Value of n:

Range of n:

1–255

If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paperend signals.

Default of n:

12

If either bit 2 or bit 3 is on, the paper roll-end sensor is selected as the paper sensor outputting paper-end signals. Bit

Position

Hex

Decimal

Function

0

Off

00

0

On

01

1

Paper roll near-end sensor disabled Paper roll near-end sensor enabled

1

Off

00

0

On

02

2

Off

00

0

On

04

4

Off

00

0

On

08

8

4, 5, 6, 7 –

–

–

2

3

Paper roll near-end sensor disabled Paper roll near-end sensor enabled

Specifies the paper sensor to output a paper-end signal. Multiple sensors may be selected to signal when paper has run out. When multiple sensors have been selected, anytime one of the sensors detects a paper-end, the paper end signal is output. When this command is executed a sensor is switched. The paper-end signal switching is delayed depending on the receive buffer state. Exceptions

The command is ignored.

Paper roll-end sensor disabled Paper roll-end sensor enabled Paper roll-end sensor disabled Paper roll-end sensor enabled Undefined

Select sensors to stop printing ASCII ESC c 4 n Hexadecimal 1B 63 34 n Decimal 27 99 52 n Value of n:

Sensor status

Default: Sensor Status

Bit

Sensor

0

Receipt paper near-end Disabled

Enabled

1

Receipt paper near-end Disabled

Enabled

2–4

Undefined

6

Undefined

Bits 5 and 7 are not used.

0

1

0

Determines which sensor stops printing on the respective station. The command does not affect the paper out status on the receipt station, which will automatically stop the printer when the paper is depleted.