User`s manual

79
MP-4200 TH Programmer’s Manual - Revision 1.0
•Thehorizontalmotionunit(x)isused for calculating leftmargin.Thecalculated resultis
truncated to the minimum value of the mechanical pitch.
[References] GSP,GSW
GS P x y
[Function] Set horizontal and vertical motion units.
[Format] ASCII  GSPxy
Hexadecimal 1D50xy
Decimal 2980xy
[Range] 0≤x≤255
0≤y≤255
[Description] Sets the horizontal and vertical motion units to approximately 25.4/x mm {1/x inches}and
approximately25.4/ymm{1/yinches},respectively.
[Details] •Thehorizontaldirectionisperpendiculartothepaperfeeddirectionandtheverticaldirection
is the paper feed direction.
• Thefollowing commandsusexory,regardlessofcharacterrotation(upside-downor 90°
clockwise rotation):
oCommandsusingx:ESCSP,ESC$,ESC\,FSS,GSL,GSW
oCommandsusingy:ESC3,ESCJ,GSV
•Thecommanddoesnotaffectpreviouslyspecifiedvalues.
•Thecalculatedresultfromcombiningthiscommandwithothersistruncatedtotheminimum
value of the mechanical pitch.
[References] ESCSP,ESC$,ESC3,ESCJ,ESC\,GSL,GSV,GSW
GS V m
[Function] Select paper cut mode.
[Format] ASCII  GSVm
Hexadecimal 1D56m
Decimal 2986m
[Range] m=0,1,48,49
[Description] Ifm=0orm=48performafullpapercut.
Ifm=1orm=49performapartialpapercut.
[Details] •Thiscommandiseffectiveonlyifprocessedatthebeginningofaline.
GS V m n
[Function] Feed and cut paper.
[Format] ASCII  GSVmn
Hexadecimal 1D56mn
Decimal 2986mn
[Range] m=66
0≤n≤255
[Description] Feedandcutpaper.Forthiscommand,mshouldbe66andnistheamountofpapertofeed.First
of all, paper is advanced and then cut.
[Details] •Thiscommandiseffectiveonlyifprocessedatthebeginningofaline.
•Whenn=0,theprinterfeedsthepapertothecuttingpositionandcutsit.
•Whenn≠0,theprinterfeedsthepaperto(cuttingposition+[n×verticalmotionunit])
and cuts it.
•ThehorizontalandverticalmotionunitsarespecifiedbyGSP.
•Thepaperfeedamountiscalculatedusingtheverticalmotionunit(y).However,thevalue
cannot be less than the minimum vertical movement amount, and it must be in even units of the
minimum vertical movement amount.
GS W n
L
n
H