Star Micronics 4 Printer User Manual


 
4.Z5 Examples:Patterngraphics
Tospecifyablockfiveincheswideyoucoulduseahorizontaldimensionof
1500dots(5 inchestimes300dots).Thatcommandwouldlooklikethis:
<ESC>
*C 1500A
To printthatareawith a 25 percentgray-scalepattern,thecommandsyou
sendwouldbe:
<ESC>
*C 25G
<ESC>
*C 2P
Buttoprintanareafilledwiththehorizontalbarpattern,thecommandsyou
sendwouldbe:
<ESC>
*C IG
<ESC>
*C 3p
(Youcouldcombinethesecommandsas <ESG *c lg 3P .)
4.8 MACROS
4.8.1 Usingmacros
There’sagreatshortcutthatsimplifiesthetaskofsendingcommandstoyour
LaserPrinter4:usemacros.Amacrois asinglecontrolcode,whichyoucan
define yourself, that does the work of a whole long series of printer
commands.AnyLaserJet11Pemulationcommandcan go intoa macro.
Puttingmacrostogetherto automaticallyrepeatsequencesof tasks is like
usinga ml programminglanguage.YourStarMicronicsdealermayknow
of somepre-wnttenmacrosalreadyavailablefor the StarLaserPrinter4.
You’llfindmacrosespeciallyhandyfor creatingletterheadsand business
forms,and alsofor settingtabs, subscriptsand superscripts.
Yourpnntercanstemupto32macroswithouttheoptionalRAMexpansion.
To manage printer memoryyou can make a macro either temporary(it
disappearswhenyouresettheprinter)orpermanent(itdisappearsonlywhen
youturn offthe printer).
You assigneach macro an ID numberwhen you first defineit. Use this
SpecifyMacroID commandto specify(inplaceof n)theIDnumberof the
macroto whichyou wishto refer:
<ESC>&f n Y
89