beautypg.com

Esc $ specify absolute horizontal position, Esc \ specify relative horizontal position, Specify absolute horizontal position – Brother TD-2120N User Manual

Page 53: Specify relative horizontal position

background image

ESC/P Command Reference

- 47 -

5. Control Command Details

ESC $

Specify absolute horizontal position

ASCII: ESC

$

n1

n2

Decimal: 27

36

n1 n2

Hexadecimal: 1B

24

n1

n2

Parameters

0≤n1≤255, 0≤n2≤255

Description

Specifies the absolute print position (in dots) for the next data.

An absolute print position specifies the next print position as a number of dots from the left margin.

n1 and n2 indicate the number of dots from the left margin.

(Number of dots=n1+n2*256)

The maximum number of dots that can be specified with n1 and n2 depends on the media.

This command is available only with left alignment.

ESC \

Specify relative horizontal position

ASCII: ESC

\

n1

n2

Decimal: 27

92

n1 n2

Hexadecimal: 1B

5C n1

n2

Parameters

0≤n1≤255, 0≤n2≤255

Description

Specifies the horizontal print position (in dots) as a relative position from the current position.

A relative position specifies the next print position as a number of dots from the current position.

n1 and n2 indicate the number of dots from the current position. (Number of dots=n1+n2*256)

Left margin position≤horizontal position after moving

Horizontal position after moving=n1+n2*256

The specified value for moving to the left is expressed as a two's complement. It is determined by the

following equation.

n1+n2*256=65536-distance actually moved

This command is available only with left alignment.

This manual is related to the following products: