HP Value Serial/USB Receipt Printer II Manual de usuario Pagina 43

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 155
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 42
Chapter 3: Programming Commands 43
Set printing area width
ASCII GS W nL nH
Hexadecimal 1D 57 nL nH
Decimal 29 87 nL nH
Range of nL: 0–255
Range of nH: 0–255
Default: 576 dots (the maximum printable area)
Setsthewidthoftheprintingareauntiltheprinterisinitialized,reset,orpoweredoff.Ifthesettingexceedstheprintable
area,themaximumvalueoftheprintableareaisused.Iftheleftmarginandprintingareasetthewidthtolessthanthe
widthofasinglecharacter,thewidthisextendedotaccommodatethecharacterfortheline.Thewidthoftheprintingarea
issetto((nH X 256)+nL)timeshorizontalmotionunit)inches.Thehorizontalmotionunitsaresetbythesethorizontal
andverticalminimummotionunitscommand(1D50).Ifthehorizontalmotionunitischangedafterchangingprinting
areawidth,theprintingareawidthsettingisnotchanged.
Thewidthoftheprintingareafollowsthesetleftmargincommand(1D4C).Seethesetleftmargincommand(104C…)
earlier in this document for a description.
Formulas
Tosetthewidthoftheprintingareatooneinchatthedefaulthorizontalmotionunitof1/203inches,sendthefour-byte
string:
GS W 203 0
Or,tosetthewidthoftheprintingareatotwoinchesatthedefaulthorizontalmotionunitof1/203unitsperinch,sendthe
four-bytestring:
GS W 150 1
Where2inches=406/203,and406=(1X256)+150.
Exceptions
Thiscommandiseffectiveonlyatthebeginningofaline.
Ifthesettingexceedstheprintablearea,themaximumvalueoftheprintableareaisused.Themaximumprintableareais
576dots.Seetheillustration.
Ifthiscommandisprocessedinpagemode,printingareawidthisnotchangeduntiltheprinterisreturnedtostandard
mode.





Exceptions:
Thecommandiseffectiveonlyatthebeginningofaline.Thiscommandisignoredifthelinebufferisnotempty.
Ifthiscommandisprocessedinpagemode,leftmarginisnotchangeduntiltheprinterisreturnedtostandardmode.
Vista de pagina 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 154 155

Comentarios a estos manuales

Sin comentarios