3-29STARCommandSpecications
Rev. 0.70
ESC Q n
[Name] Set right margin
[Code] ASCII ESC Q n
Hexadecimal 1B 51 n
Decimal 27 81 n
[DenedArea] 2≤ n ≤maximumprintabledigits≤ 255
[InitialValue] Maximumprintabledigits
[Function] Thiscommandsetstheprintableregion(currentANKcharacterpitchxn)usingtheleftedgeasareference
afterprintingdatainthelinebuffer.Theleftedgeisalsothereferenceforupside-downprinting.
Settingthiscommandpartwaywillprintthedatainthelinebufferatthattime,performalinefeedandthen
take affect from the next line.
Characterspacingisincludedinthecharacterpitchbutisunaffectedbyexpansionsettings.
Therightmarginsetusingthiscommandisunaffectedbychangingthecharacterpitch.
Theprintregionwithinthedenedrangemustbeatleastaminimumof18dotsfortherightmargin.
Iftheprintableregionassetbytheleftandrightmarginsissmallerthanonecharacter,includingthespace
betweencharacters,printingisnotpossible.Aquestionmark(“?”)isprintedinsteadofthecharacter.
(*1) More than four characters of 7 x 9 fonts; more than three characters of 5 x 9 fonts (2P=1) (when
character spacing = 0)
Printable Region
Print Region
Left Margin
Right Margin