beautypg.com

Esc gs a n1 n2, Esc gs r n1 n2 – Star Micronics Dot Impact Printer User Manual

Page 40

background image

3-32

STAR Command Specifications

Rev. 0.70

ESC GS A n1 n2

[Name]

Specify absolute position

[Code]

ASCII

ESC

GS

A n1 n2

Hexadecimal

1B

1D 41 n1 n2

Decimal

27

29 65 n1 n2

[Defined Area]

0 ≤ n1 ≤ 255

0 ≤ n2 ≤ 255

[Initial Value]

---

[Function]

Moves the printing position to the (n1 + n2 x 256) position based on the left margin.

The right margin is also the reference for upside-down printing.

This command is ignored if the print region is exceeded.

When print data is duplicated, the new print data is overwritten by the old print data. (the portion duplicated in

the new data is deleted.) However, bit image data is OR processed for the old print data.

ESC GS R n1 n2

[Name]

Specify relative position

[Code]

ASCII

ESC GS

R n1 n2

Hexadecimal

1B

1D 52 n1 n2

Decimal

27

29 82 n1 n2

[Defined Area]

0 ≤ n1 ≤ 255

0 ≤ n2 ≤ 255

[Initial Value]

---

[Function]

Moves the printing position from the current position to the (n1 + n2 x 256) position.

This command is ignored if the print region is exceeded.

When (n1 + n2 x 256) ≥ 32768, it moves {65536 – (n1 + n2 x 256)} dots in the left direction.

When (n1 + n2 x 256) < 32768, it moves (n1 + n2 x 256)} dots in the right direction.

When print data is duplicated, the new print data is overwritten by the old print data. (the portion duplicated in
the new data is deleted.) However, bit image data is OR processed for the old print data.