
Chapter 3: Programming Commands42
previousdata.Thisbehaviorcanbeusedtoanapplication’sadvantagetoprovidetheabilitytocreatecompoundcharacters
on the receipt station.
ThiscommandalsofunctionsdifferentlyintheA793emulationwhenusedingraphics:
n x 2 = Number of dots to be moved from the beginning of the line when this command is followed by a graphic command.
Select justication
ASCII ESC a n
Hexadecimal 1B 61 n
Decimal 27 97 n
Value of n: 0, 48 = Left aligned
1, 49 = Center aligned
2, 50 = Right aligned
Range of n: 0–2, 48–50
Default: 0 (Left aligned)
Speciesthealignmentofcharacters,graphics,logos,andbarcodesonthereceiptstationintheprintareaspeciedby1D
4Cand1D57accordingtotheabovetable,untiltheprinterisinitialized,reset,orpoweredoff.Thisjustiesanentireline.
Related information
OntheLEGACYemulationprinter,thiscommandisvalidonlyatthebeginningofaline.
RangeofnonA793is0–255usinglow2bitsonly:
00 left aligned
01 center
10 right aligned
11 center
Set left margin
ASCII GS L nL nH
Hexadecimal 1D 4C nL nH
Decimal 29 76 nL nH
Range of nL: 0–255
Range of nH: 0–255
Default: 576 dots (the maximum printable area)
Formulas
Setstheleftmarginoftheprintingareauntiltheprinterisinitialized,reset,orpoweredoff.Theleftmarginissetto
((nHX256)+nL)timeshorizontalmotionunit)inches.Thehorizontalmotionunitsaresetbythesethorizontaland
verticalminimummotionunitscommand(1D50),describedinthismanual.Ifthehorizontalmotionunitischangedafter
changingleftmargin,theleftmarginsettingisnotchanged.
Thewidthoftheprintingareaissetbythesetprintingareawidthcommand(1D57),whichfollowsthiscommand.Seethe
set printing area width command in this document for a description of that command.
Ifthesettingexceedstheprintablearea,themaximumvalueoftheprintableareaisused.Themaximumprintableareais
576dots.Seetheillustration.
Tosettheleftmargintooneinchatthedefaulthorizontalmotionunitof1/203inches,sendthefour-bytestring:
GS L 203 0
Or,tosettheleftmargintotwoinchesatthedefaulthorizontalmotionunitof1/203unitsperinch,sendthefour-byte
string:
GS L 150 1
Where2inches=406/203,and406=(1X256)+150.
Comentarios a estos manuales