Tally Genicom Matrix Printer User Manual

Page 137

Advertising
background image

n

1

= 480 MOD 256
= dec.224
= hex.E0

Movement of

5

3

inches (1.67 inches) towards the left side:

n

= 65536 - 1.67

*

120

= 65336

n

2

= INT

(

65336

256

)

= dec.255
= hex.FF

n

1

= 65336 MOD 256
= dec.56
= hex.38

Note that you obtain the same result by using the formula given for calculating n

1

and n

2

for absolute horizontal step (see sequence ESC $). Only the method of calculations is
different. The two different methods give the same result and therefore the programmer
should use the method best suited for his application.

Example

10 REM relative horizontal position
20 LPRINT CHR$(27);"\";CHR$(224);CHR$(1);"+480";
30 LPRINT CHR$(27);"\";CHR$(56);CHR$(255);"-200";
40 LPRINT CHR$(27);"\";CHR$(50);CHR$(0);"+50";
50 LPRINT
60 END

54

Print

Positioning

Advertising