HP Value Serial/USB Receipt Printer II Bedienungsanleitung Seite 105

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 155
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 104
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)
Setsthepositionandsizeoftheprintingareainpagemodeuntiltheprinterisinitialized,reset,orpoweredoff,ora0C
command is sent.
Thecommandcanbesentmultipletimessothatseveraldifferentprintareas,alignedindifferentprintdirections,canbe
developedintheprinterspagebufferbeforebeingprintedusingtheprintpagemodecommands(0CorB0C).
Formulas
Thestartingpositionoftheprintareaistheupperleftoftheareatobeprinted(x0,y0).Thelengthoftheareatobeprinted
intheydirectionissettodyinches.Thelengthoftheareatobeprintedinthexdirectionissettodxinches.Usethe
equationstodeterminetheValueofx0,y0,dx,anddy.
• x0=[(n1+n2x256)x(horizontaldirectionofthefundamentalcalculationpitch)]
• y0=[(n3+n4x256)x(verticaldirectionofthefundamentalcalculationpitch)]
• dx=[(n5+n6x256)x(horizontaldirectionofthefundamentalcalculationpitch)]
• dy=[(n7+n8x256)x(verticaldirectionofthefundamentalcalculationpitch)]
Keepthefollowingnotesinmindforthiscommand.
• Thefundamentalcalculationpitchdependsontheverticalorhorizontaldirection.
• Themaximumprintableareainthexdirectionis576/203inches.
• Themaximumprintableareaintheydirectionis576/203inches.
Seetheillustrationforagraphicrepresentationoftheprintingarea.Formoreinformationaboutthefundamental
calculationpitch,seethesethorizontalandverticalmotionunitscommand(1D50).
Maximum area specication in page mode
MaximizingthepossibleareainpagemodeconsumesalmostallofthefreeRAM.WithoutanyfreeRAM,bitmap
rotationsandenlargementscannotbeperformed.UsetheUserStorageStatuscommand(1D97m n) to determine the
amountoffreememory.
Exceptions
Thecommandiseffectiveonlyinpagemode.
If[x0+dx]isgreaterthantheprintablearea,theprintingareawidthissetto[horizontalprintablearea–x0].If[y0+yx]
isgreaterthantheprintablearea,theprintingareaheightissetto[verticalprintablearea–y0].
Seitenansicht 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 154 155

Kommentare zu diesen Handbüchern

Keine Kommentare