Star Micronics 4 Printer User Manual


 
Tocompletethecommand,forn2 youenterthenumberoffullgroupsof256
inc~ments you want to move. And for nl you enter the number of
incrementsleft over.
Confused?Hem’s an example.Thiscommand:
<ESC>$141
moves14+(256x 1)=270 incrementsfromtheleftmargin.Thatworksout
to 270/60inches,whichis fourand a halfinches.
5.4.9 Movinghorizontallyfromthe currentposi-
tion
The otherhorizontalmovecommand,whichmovesawayfromthecurrent
printposition,comesinsmallerincrementsof 1/120inch.Tomovethisway,
firstdecidewhetheryouwanttomoverightor left,andbyhowmany1/120
inchincrements.Then sendthiscommand:
cESC>\ nl n2
To moveright,nl + (n2 x 256)mustequalthe numberof incrementsyou
wantto move.Forexample,to moverighttwo anda half inches(300/120
inches)yousendthiscommand:
d3sc>\ 44 1
because44+ (1 x 256)= 300.
To moveleft is a littletrickier.Youfirst subtractyourdesirednumberof
incrementsfrom 65536 (which is 256 x 256). Then you use the same
formula:nl +(n2x 256)mustequalthatresultingnumber.Soto moveleft
three(360/120)inchesyou sendthiscommand:
<ESC>\ 152 254
Thatcommandmovestheprintpositionleft threeinchesbecause
65536360
= 65176
= 152+ (254X256)
5.4.10 Horizontaltabs
Whenyouusehorizontaltabsyoufirstmayhaveto setthetab stops(upto
64ofthem).Itdependsonwhetherornotyouwanttousethedefault,which
102