Appendix h - continued – AMT Datasouth 41AY89AR777 User Manual

Page 158

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

APPENDIX H - CONTINUED

ESC = N1 N2 DC4 p al a2 pi pi... pll Download characters

This command is used to download up to 256 consecutive characters into
Random Access Memory. The user can overlay the entire character set or any
portion of the character set; however, each download must be contiguous from
die beginning character. Download characters are defined in terms of a 9 x 12
matrix; however, the 12th column is assumed to be blank.

The variables “nl” and “n2” are used to determine the numb» of bytes to be
downloaded. In order to calculate values for “nl” and “n2”, the total number of
bytes must first be determined by the following formula:

total bytes = (number of characters to be downloaded x 13) +2

If the total bytes to be downloaded is less than 256, then “nl” is equal to the total
bytes and “n2” is equal to 0. If the total bytes is greater than or equal to 256,
divided the total bytes by 256. “nl” is equal to the remainder and “n2” is equal to

the integer quotient. For example:

To download 14 characters:

total bytes = (14 x 13) +2
total bytes = 184

Since total bytes is less than 256;

nl = 184

n2 = 0

To download 38 characters:

total bytes = (38 x 13) +2
total bytes = 496

Since total bytes is greater than or equal to 256;

total bytes = 496/256
nl = 240

n2 = 1

After determining values for “nl” and “n2” always enter a DC4. DC4 is the
value used to identify the printer.

The variable “p” is the decimal value of the first character to be downloaded. The

starting

character is determined by the programmer and can begm at any point;

however, all characters must be contiguous from the start character. Values for

“p” can range from 0 to 256.

H-9

Advertising
This manual is related to the following products: