M-S Cash Drawer 7193 manual Set Character Right-Side Spacing, Set Absolute Starting Position

Models: 7193

1 118
Download 118 pages 9.39 Kb
Page 70
Image 70

7193 Owner’s Guide

Commands

Set Character Right-Side Spacing

This command is not implemented and is ignored if received.

Hex

Decimal

ASCII

1B 20 n

27 32 n

ESC (SPACE) n

Set Absolute Starting Position

Sets the print starting position to the specified number of dots (up to the right margin) from the beginning of the line. The print starting position is reset to the first column after each line.

Hex

Decimal

ASCII

1B 24 n1 n2

27 36 n1 n2

ESC $ n1 n2

n = Number of dots to be moved from the beginning of the line

n1 = Remainder after dividing n by 256

n2 = Integer after dividing n by 256

The values for n1 and n2 are two bytes in low byte, high byte word orientation.

Determine the value of n by multiplying the column for the absolute starting position by 10 (standard pitch) or 8 (compressed pitch). The example shows how to calculate column 29 (10 dots per column) as the absolute starting position.

28 x 10 = 280 dots (beginning of column 29) 280/256 = 1, remainder of 24

n1 = 24

n2 = 1

Note: This command is also used in the graphics mode to emulate the Epson LQ- 950™ dot matrix printer. See “Graphics Commands” later in this chapter for more information.

May 1996

Page 70
Image 70
M-S Cash Drawer 7193 manual Set Character Right-Side Spacing, Set Absolute Starting Position