beautypg.com

Esc ( v – Tally Genicom Matrix Printer User Manual

Page 143

background image

Set Relative Vertical Print Position

ESC ( v

Data Structure

ASCII

ESC "("

"v"

L

>

H

>

L

>

H

>

set relative vertical print pos.

hex.

1B

28

76

L

>

H

>

L

>

H

>

dec.

27

40

118

L

>

H

>

L

>

H

>

Description

Valid values:

n

L

= 2, n

H

= 0

0

≤ m

L

≤ 255; 0 ≤ m

H

≤ 127

Defines the vertical print position relatively up and down in units previously defined with
the sequence ESC ( U (see page 62).

(horizontal position) = ((m

H

x 256) + m

L

) x (defined unit) + (current position)

Downwards:

m

H

= INT




((vertical position) − (current position)) x

1

(defined unit)

256




m

L

= MOD




((vertical position) − (current position)) x

1

(defined unit)

256




Upwards:

m

H

= 32768 – INT




((current position) − (vertical position)) x

1

(defined unit)

256




m

L

= 32768 – MOD




((current position) − (vertical position)) x

1

(defined unit)

256




60

Print

Positioning