
Chapter 3: Programming Commands 39
Set absolute starting position
ASCII ESC $ nL nH
Hexadecimal 1B 24 nL nH
Decimal 27 36 nL nH
Value of n: n = Number of dots to be moved from the beginning of the line.
nL = Remainder after dividing n by 256.
nH = Integer after dividing n by 256.
The values for nLandnHaretwobytesinlowbyte,highbytewordorientation.
Setstheprintstartingpositiontothespeciednumberofdots(uptotherightmargin)fromthebeginningoftheline.
Theprintstartingpositionisresettotherstcolumnaftereachline.
Formulas
Theexampleshowshowtocalculate280dotsastheabsolutestartingposition.
28 x 10 = 280 dots (beginning of column 29)
280/256 = 1, remainder of 24
nL = 24 nH = 1
Related information
Ifthesethorizontalandverticalmotionunitscommand(1D50)isusedtochangethehorizontalandverticalminimum
motionunit,theparametersofthesetrelativeprintpositioncommandwillbeinterpretedaccordingly.Formore
information,seethedescriptionofthecommandsethorizontalandverticalminimummotionunitscommand(1D50)in
this document.
Compatibility information (A798II receipt vs. A793 receipt)
ThereisadifferenceinthenormalbehaviorofthiscommandinA793emulationmodeascomparedtotheoriginalA793.
Thedifferenceexistswhenthecommandisusedtomovetotheleft.TheA793processesthewholeprintstringpriorto
puttingitinthebufferfortheprinthead.ThismethodofprocessingallowstheA793tobackupintheprintstringand
replacecharactersandtheirassociatedattributeswhena“Setrelativeprintposition”commandinstructstheprinterto
move the print position to the left.
Inordertoimprovethespeedofprinting,theA798IImovesthedataintoabufferfortheprintheadwhenitreceivesit.
Whenthe“Setrelativeprintposition”commandcontainsamovetotheleft,thiscausesthenewdatatooverstrikethe
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 graphics
command.
Set vertical line spacing to 1/6 inch
ASCII ESC 2
Hexadecimal 1B 32
Decimal 27 50
Default: 3.33 mm (0.13 inch)
Setsthedefaultlinespacingto4.25mm(1/6ofaninch).
Thisissetindependentlyoftheverticalmotionunit(see1D50xy).
Komentarze do niniejszej Instrukcji