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 16

A760 Two-Color Thermal/Impact Hybrid Printer User Guide: Programming Supplement, pages 29 to 38

Pages 29 to 38 of 154

The original document is the PDF (2.3 MB). 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 TPG A760

Page 29

Revision F January 2010

A760 User Guide: Programming Supplement

29

Chapter 4: Programming commands

Status Batch mode Code (hexadecimal)

Command

1B 75 0

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

82

1B 75 n

Request alternate status (A756 emulation only)

82

1B 76

Transmit paper sensor status

83

1D 49 n

Transmit printer ID

84

1D 49 40 n

Transmit printer ID, remote diagnostics extension

85

1D 72 n

Transmit status

88

1F 56

Send printer software version

89

Page

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)

94

1D 03 n

Real-time request to printer (GS sequence)

94

1D 04 n

Real-time status transmission (GS sequence)

92

1D 05

Real-time printer status transmission

95

1F 7A n

Real-time disable

95

Unsolicited status mode Code (hexadecimal)

Command

1D 61 n

Select or cancel unsolicited status mode

Page 96

Bar codes Code (hexadecimal)

Command

Page

1D 48 n

Select printing position for HRI characters

99

1D 66 n

Select pitch for HRI characters

99

1D 68 n

Select bar code height

99

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

Print bar code

100

1D 6B m nL nH d1 ... dn

Print GS1 DataBar (RSS), data length specified

102

1D 6B n d1 ... 00

Print GS1 DataBar (RSS), null terminated

132

1D 70 a b c d e f

Select PDF 417 parameters

104

1D 71 a b c d e fL fH

Set GS1 DataBar (RSS) parameters

102

1D 77 n

Select bar code width

105

Page 30

30

A760 User Guide: Programming Supplement

Revision F January 2010

Chapter 4: Programming commands

Page mode Code (hexadecimal)

Command

Page

0C

Print and return to standard mode/print and eject slip

106

18

Cancel print data in page mode

106

1B 0C

Print data in page mode

106

1B 4C

Select page mode

107

1B 53

Select standard mode

108

1B 54 n

Select print direction in page mode

108

1B 57 n1, n2…n8

Set print area in page mode

109

1D 24 nL nH

Set absolute vertical print position in page mode

110

1D 5C nL nH

Set relative vertical print position in page mode

110

Code (hexadecimal)

Command

Page

1D 3A

Select or cancel macro definition

111

1D 5E r t m

Execute macro

111

Macros

MICR check reader commands MICR Reading Code (Hexadecimal)

Command

Page

1B 77 01

Read MICR data and transmit

112

1B 77 52

Transmit last MICR read

112

Code (Hexadecimal)

Command

Page

1B 77 50

Define parsing format, save in NVRAM

112

1B 77 70

Define parsing format, do not save permanently

112

Code (Hexadecimal)

Command

Page

1B 77 46

Check flip command

120

1B 77 46-47

Enhanced check flip status reporting

120

MICR Parsing

Check Flip Commands

Page 31

Revision F January 2010

A760 User Guide: Programming Supplement

31

Chapter 4: Programming commands

User data storage Code (hexadecimal)

Command

Page

1B 27 m a0 a1 a2 d1…dm

Write to user data storage

122

1B 34 m a0 a1 a2

Read from user data storage

122

1B 6A k

Read from non-volatile memory (NVRAM)

122

1B 73 n1 n2 k

Write to non-volatile memory (NVRAM)

122

1D 22 n

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

123

1D 22 55 n1 n2

Flash memory user sectors allocation

123

1D 40 n

Erase user flash sector

124

1D 97 m n

User storage status

125

Code (hexadecimal)

Command

Page

1B 5B 7D

Switch to flash download (boot) mode

126

1D 00

Return boot sector firmware part number

127

1D 01

Return segment number status of flash memory

127

1D 02 n

Select flash memory sector to download

127

1D 06

Get firmware CRC

127

1D 07

Return microprocessor CRC

128

1D 0E

Erase all flash contents except boot sector

128

1D 0F

Return main program flash CRC

128

1D 10 n

Erase selected flash sector

128

1D 11 aL aH cL cH d1…dn

Download to active flash sector

129

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

Download paper type description

129

1D 8F m

Return paper type description

130

1D FF

Reset firmware

130

Flash download

Ethernet setup commands Code (hexadecimal)

Command

Page

1B 5B 7D

Switch to flash download (boot mode)

126

1F 08 00

Restore default settings

131

1F 08 01 n1 n2 n3 n4

Set IP address

131

1F 08 02 n1 n2 n3 n4

Set net mask

131

1F 08 03 n1 n2 n3 n4

Set gateway

131

1F 08 04 n1 n2 n3 n4

Set raw TCPIP port

132

1F 08 05 n1

LP Daemon

132

1F 08 06 n1

Telnet Daemon

132

1F 08 07 n1

BootP

132

1F 08 08 n1

DHCP (auto-configuration)

132

1F 08 09 n1

Inactivity time-out

133

1F 08 0A n1

Keep-alive pings (arps)

133

Page 32

32

A760 User Guide: Programming Supplement

Revision F January 2010

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.

Page 33

Revision F January 2010

A760 User Guide: Programming Supplement

33

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: • Station select

• Cutting the paper

• Platen control

• Opening the cash drawers

• Resetting the printer

Clear printer ASCII Hexadecimal Decimal

DLE 10 16

Clears the print line buffer without printing and sets the printer to the following condition: • Receipt station is selected • Double-wide command (0x12) is canceled • Line spacing, pitch, and user-defined character sets are maintained at current selections (RAM is not affected)

Exceptions

In printers with the parallel interface, this command also returns paper exhaust to the paper status line if an alternate status has been requested. A DLE command followed by a 04 or 05 is interpreted as a “Real-time command.” (See pages 97 and 98.)

• Single-wide, single-high, non-rotated, and left-aligned characters are set • Printing position is set to column one • Slip platen is opened • Slip printhead is homed • Knife is homed

Close form ASCII: DC1 Hexadecimal: 11 Decimal: 17

Closes the feed roller and platen (forms compensation arm assembly) and retracts the forms arm stop unconditionally. If the printer is reset or the Clear (0x10) is received, the feed roller and platen are opened.

This command executes if the platen is already closed. This command is processed regardless of which station is selected.

Page 34

34

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Open form ASCII: CAN Hexadecimal: 18 Decimal: 24

When the printer is in A756 and A758 emulation mode or in A760 (native) non-page mode, this command opens the feed roller and platen (forms compensation arm assembly) so that a form may be inserted (default position).

This command has the same code as the Cancel print data in page mode command, which is only executed in page mode. This command executes if the platen is already open. This command is processed regardless of which station is selected.

Perform partial knife cut ASCII Hexadecimal Decimal

SUB 1A 26

ESC m 1B 6D 27 109

Partially cuts the receipt, leaving 5 mm (0.20”) of paper. This command is implemented the same as Full knife cut (19 and 1B 69). There are two codes (Hex 1A or 1B 6D) for this command and both codes perform the same function.

Exceptions

Line feed is executed first if print buffer is not empty. This command is processed regardless of which station is selected.

Generate tone ASCII Hexadecimal Decimal

ESC BEL 1B 07 27 7

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

Return home ASCII Hexadecimal Decimal

ESC < 1B 3C 27 60

Moves the impact printhead (unless already there) to the home position.

Related Information

The printer is able to detect carriage motor jams, eliminating the need to home the printhead after each slip transaction.

Page 35

Revision F January 2010

A760 User Guide: Programming Supplement

35

Chapter 4: Programming commands

Select peripheral device (for multi-drop) ASCII Hexadecimal Decimal

ESC = n 1B 3D n 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. Exception

This command is ignored.

Initialize printer ASCII Hexadecimal Decimal

ESC @ 1B 40 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

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.

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

Set slip paper eject length ASCII Hexadecimal Decimal

ESC C n 1B 43 n 27 67 n

Value of n:

0 to 255

Exception

This command is ignored. Select receipt or slip for printing; slip for MICR read ASCII Hexadecimal Decimal

ESC c 0 n 1B 63 30 n 27 99 48 n

Value of n:

1, 2, 3

Receipt selected

4

Slip selected

Default of n:

1

Selects the station for printing. When slip is selected, the printer waits (based on the slip waiting time setting [i.e.: 1B 66 m n]) for the paper to be inserted. When slip has already been selected and the selection is changed, the form is opened. If the station has already been selected and it is re-selected, no action takes place.

Exceptions

Receiving the command discards unprinted data in the buffer, forcing a “beginning of line” state. When n is out of range this command is ignored.

Page 36

36

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Select receipt or slip for setting line spacing ASCII Hexadecimal Decimal

ESC c 1 n 1B 63 31 n 27 99 49 n

Value of n:

1, 2, 3

Select receipt

Exceptions

4

Select Slip

This command is ignored if n is out of range.

Default of n:

1

Selects which station receives the effects of the following commands: 1. 2. 3.

Select Default Line Spacing (1B 32) Set Line Spacing (1B 33) Add n extra dot rows (16 n)

Select paper sensors to output paper end signals ASCII Hexadecimal Decimal

ESC c 3 n 1B 63 33 n 27 99 51 n

Value of n:

If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paper-end signals. 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

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

2 Off 00 0

On 04 4

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

3 Off 00 0

On 08 8

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

4, 5, 6, 7 –

–

Undefined

Range of n:

1–255

Default of n:

15

–

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.

Page 37

Revision F January 2010

A760 User Guide: Programming Supplement

37

Chapter 4: Programming commands

Select sensors to stop printing ASCII Hexadecimal Decimal

ESC c 4 n 1B 63 34 n 27 99 52 n

Value of n:

Sensor status

Bit of n Bit

Function

0,1

Stop receipt on receipt low

4

Stop slip if trailing edge uncovered

5

Stop slip if leading edge uncover

Default:

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.

0

Enable or disable panel button ASCII Hexadecimal Decimal

ESC c 5 n 1B 63 35 n 27 99 53 n

Value of n:

0 = Enable 1 = Disable

Default:

0 (Enable)

Enables or disables the paper feed button. If the last bit is 0, the paper feed button is enabled. If the last bit is 1, the paper feed button is disabled.

Related information

Functions that require the paper feed button (except for the execute macro [1D 5E r t m] command) cannot be used when it has been disabled with this command.

Set slip paper waiting time ASCII Hexadecimal Decimal

ESC f m n 1B 66 m n 27 102 m n

Value of m: Value of n:

Not used Tenths of seconds

The time that the printer waits for a slip to be inserted is set using the configuration menu. The default is forever, but it can be set to 1, 3, or 5 minutes using the configuration menu. “n” sets the time (n x 0.1 seconds) that the printer waits to close the platen and start printing once the slip has been inserted. The printer reads that a slip is inserted when the leading edge and trailing edge sensors are covered. The slip-in LED on the slip table is lit (green) when both sensors are covered.

If a slip is not inserted in the time specified, the receipt station is selected for the next function. The times set by this command are used only by the command, “Select receipt or Slip for printing, Slip for MICR read” (1B 63 30 n), with n set to 04.

Page 38

38

Revision F January 2010

A760 User Guide: Programming Supplement Chapter 4: Programming commands

Generate pulse to open cash drawer ASCII Hexadecimal Decimal

ESC p n p1 p2 1B 70 n p1 p2 27 112 n p1 p2

Value of n:

00, 48 (Decimal) = Drawer 1; 01, 49 (Decimal) = Drawer 2

Value of p1:

0–255

The value for either p1 or p2 is the hexadecimal number multiplied by 2 msec to equal the total time.

Value of p2:

0–255

• On-time = p1 (Hex) x 2 msec

Sends a pulse to open the cash drawer.

• Off-time = p2 (Hex) x 2 msec

Formulas

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.

Set current color ASCII Hexadecimal Decimal

ESC r m 1B 72 m 27 114 m

Default of m:

0 (monochrome)

Description

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.

When the monochrome paper type command (00) is set, this command is recognized and retained but has no effect. The monochrome paper selection (usually black) controls the output.

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)

When two-color paper is loaded and the two-color 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 m values 0 and 1 will not have a distinguishable effect; 0 is the initial value and provides parameter value consistency with other commands.

Exception

After a power loss or reset the default value m=0 is reset.