4.4 How to obtain nl and n2

In the MX-82 Printer, you have to send the amount of data by nr + n2 in hexadecimal numbers following the ESC K or ESC L. If the amount of bit image data is 300, then nt and nz may be derived as follows;

nl = (Amount of data) MOD 256

=300 MOD 256

=<44>D

=<2c>H

n2 = INT (Amount of data/256)

=INT (300/256)

=<l>D -<ol>H

You can also use Appendix 4, code Table, to find the corresponding hexadecimal numbers to the decimal numbers. The schematic of data transfer sequence in the Bit Image mode is shown in Fig. 64.

I ESC code t

CHR$(27)

“L”code

CHR$(76)

L-t

1-

I

Number of data n1

 

1

 

1

Numberof data n2

1

 

 

 

 

n, = Data MOD 256

H

n2 = INT (Data/2561

CHR$(n, 1

CHR$(n, )

 

 

 

 

Fig. 64 Data Transfer Sequence in Bit Image Mode

- 7 2 -