
Chapter 3: Programming Commands 105
Set print area in page mode
ASCII ESC W n1, n2 ...n8
Hexadecimal 1B 57 n1, n2 ...n8
Decimal 27 87 n1, n2 ...n8
Range of n: 0-255
Default: n1-4 = 0
n5 = 64
n6 = 2
n7 = 64
n8 = 2
(576x576 for 80mm paper)
Setsthepositionandsizeoftheprintingareainpagemodeuntiltheprinterisinitialized,reset,orpoweredoff,ora0C
command is sent.
Thecommandcanbesentmultipletimessothatseveraldifferentprintareas,alignedindifferentprintdirections,canbe
developedintheprinter’spagebufferbeforebeingprintedusingtheprintpagemodecommands(0CorB0C).
Formulas
Thestartingpositionoftheprintareaistheupperleftoftheareatobeprinted(x0,y0).Thelengthoftheareatobeprinted
intheydirectionissettodyinches.Thelengthoftheareatobeprintedinthexdirectionissettodxinches.Usethe
equationstodeterminetheValueofx0,y0,dx,anddy.
• x0=[(n1+n2x256)x(horizontaldirectionofthefundamentalcalculationpitch)]
• y0=[(n3+n4x256)x(verticaldirectionofthefundamentalcalculationpitch)]
• dx=[(n5+n6x256)x(horizontaldirectionofthefundamentalcalculationpitch)]
• dy=[(n7+n8x256)x(verticaldirectionofthefundamentalcalculationpitch)]
Keepthefollowingnotesinmindforthiscommand.
• Thefundamentalcalculationpitchdependsontheverticalorhorizontaldirection.
• Themaximumprintableareainthexdirectionis576/203inches.
• Themaximumprintableareaintheydirectionis576/203inches.
Seetheillustrationforagraphicrepresentationoftheprintingarea.Formoreinformationaboutthefundamental
calculationpitch,seethesethorizontalandverticalmotionunitscommand(1D50).
Maximum area specication in page mode
MaximizingthepossibleareainpagemodeconsumesalmostallofthefreeRAM.WithoutanyfreeRAM,bitmap
rotationsandenlargementscannotbeperformed.UsetheUserStorageStatuscommand(1D97m n) to determine the
amountoffreememory.
Exceptions
Thecommandiseffectiveonlyinpagemode.
If[x0+dx]isgreaterthantheprintablearea,theprintingareawidthissetto[horizontalprintablearea–x0].If[y0+yx]
isgreaterthantheprintablearea,theprintingareaheightissetto[verticalprintablearea–y0].
Kommentare zu diesen Handbüchern