Cognitive Solutions B780 Printer Status Commands, Status 3 Bit, Status 6 Bit, Status-Firmware

Models: B780 A776

1 192
Download 192 pages 23.55 Kb
Page 166
Image 166
154 Chapter 6: DH emulation

154 Chapter 6: DH emulation

Each byte of data sent defines each column of the graphic to be printed. The first byte defines the column in the left margin, with the following bytes defining the columns to the right, for a total of up to 200 columns in the print line. The print line is printed unidirectionally. Graphics and text may be printed on the same line.

Use three Vertical Tab commands (0B) to overlap printing by half a dot with the next line. Each vertical tab advances the paper by 0.02083 inches, with three tabs advancing the paper by 0.062 inches.

Note: This DH printer command provides compatibility with earlier DH model printers. It is generally not used for new applications. See the Graphics command (1E) for the more generally used command.

Printer Status Commands

These commands enable the printer to communicate its status to the host computer.

The commands are listed numerically by hexadecimal code.

Status: 3 Bit

Transmits the status of the paper sensors and the condition of the printer. This command is processed immediately.

Hexadecimal

Decimal

ASCII

05 03

5 3

ENQ ETX

The transmitted status is shown in the table:

Bit

0

1

0

Form Present

Form Not Present

1

Paper Present

Paper Not Present

2

Printer Is On-Line

Fault Condition

Note: This DH printer command provides compatibility with earlier DH model printers. It is generally not used for new

applications. See the Status: 6 Bit command (1B 05) for the more generally used command.

Status: 6 Bit

Transmits the status of the paper sensors, cash drawers, forms clamp, and the condition of the printer. This command is processed immediately. The transmitted status is shown in the table below.

Hexadecimal Decimal

ASCII

 

1B 05

27 5

ESC ENQ

 

Bit

0

 

1

0

Form Present

 

Form Not Present

1

Paper Present

 

Paper Not Present

2

Printer Is On-Line

Fault Condition

3

Cash Drawer 1 Closed

Cash Drawer 1 Open

4

Cash Drawer 2 Closed

Cash Drawer 2 Open

5

Forms Clamp Closed

Forms Clamp Open

Status-Firmware

Used for RS-232C printers only. Causes the printer to return 3 bytes (000).

Hexadecimal

Decimal

ASCII

1B 56

27 86

ESC V

A776 (B780) Programming Guide

A776-PG00001 C 12/09

Page 166
Image 166
Cognitive Solutions B780, A776 manual Printer Status Commands, Status 3 Bit, Status 6 Bit, Status-Firmware, DH emulation