Unisys E-@CTION EFP9800 User Manual

Page 199

Advertising
background image

NCR 5021 Printer Emulation Commands

3255 4073–002

8–11

The values for the dot patterns are:

. . . . 0 . . . . . . .


0F7FH

. . . 0 . 0 . . . . . .


0EBFH

. . 0 . . . 0 . . . . .


0DDFH

. 0 . . . . . 0 . . . .


0BEFH

0 . 0 . 0 . 0 . 0 . . .


0557H

0 . . . . . . . 0 . . .


07F7H

0 . . . . . . . 0 . . .


07F7H

Finally, assign a hex value to the new character. For demonstration purposes,
the hex value 41H will be assigned to the character “A.”

The codes are then downloaded into the printer.

Download a Character

Once a character has been defined, the associated codes can be downloaded
into the printer. Use the Write Device Control Memory command.

First, calculate the offset (in words) within the character RAM where the set of
seven 16-bit values derived from creating the character are to be placed. Since
the demonstration character has been assigned the value 41H (65 decimal), and
the character at offset zero within the character RAM is the ASCII space (20H),
and there are 7 words (dot rows) per character, the offset is:

(41H - 20H) *7 = 00E7H

Next, format a Write Device Control Memory command. The fourth byte in the
message is a VLI. The fifth and sixth bytes are the calculated offset. The
remaining 14 bytes are the codes derived when creating the character.

1BH,5BH,7EH,10H,00H,E7H,0FH,7FH,0EH,BFH,0DH,DFH,0BH,EFH,05H,57H,07
H,F7H,07H,F7H

Finally, send the command to the printer. The printer must be offline before it
can accept the command.

Advertising