Star Micronics LC-20 user manual Define draft downloadcharacters, Download Character Commands

Models: LC-20

1 130
Download 130 pages 19.05 Kb
Page 69
Image 69

DOWNLOAD CHARACTER COMMANDS

Define draft downloadcharacters

Mode

ASCII

 

 

Decimal

 

Hexadecimal

 

cESC>

“&” <O> n]

 

27

30 0 d

 

IB

26

W nl

. std.

d

mO ml

m2

n2

mO ml

d

d

mO ml m2

 

 

d

. .. mll

 

d . . .

mll

 

d

. . . mll

Definesone or morenew draftcharactersand storesthemin RAM for lateruse. DIP switch 1-2must be OFF;otherwiseRAM is used as an input buffer, not for downloadingcharacters,and this com- mandis ignored.Draftmodemustbe selectedbeforethiscommand is executed.

nl is the charactercodeof the first characterdefinedand n2 is the charactercodeof the last characterdefined.nl must be equalto or lessthann2.Useofcharactercodes32(space)and 127(deletecode) shouldbe avoidedif possible.

Eachcharacters definedby an attributebyte(mO)and 11databytes

(ml, nd, ..... roll).

Themost significantbit of the attributebyte is 1 if the characteris an ascender(positionedentirelyabovethe baseline)or Oif it is a descender(descendingbelowthe baseline).The attributebyte also indicatesthe amountof whitespaceto theleft of the character(Oto 7 dots, specifiedby bits4 to 6), and the widthof the charactercell, includingthis space(4 to 15dots,specifiedby bits Oto 3). The left spaceandcellwidthattributesareusedonlyinproportionalspacing. Eachdatabyteindicateseightverticaldots,withtheMSBbeingthe top dot and the LSB the bottomdot. These correspondto pins 1to 8 or 2 to 9 of the printhead,dependingon whetherthe characteris an ascenderor descender.

For furtherdetails,pleaserefer to the Chapter5.

61

Page 69
Image 69
Star Micronics LC-20 user manual Define draft downloadcharacters, Download Character Commands