User`s manual
39
MP-4200 TH Programmer’s Manual - Revision 1.0
Chapter 4
ESC/POS® Command Set
ThischapterpresentsdetailedinformationabouteachESC/POS®commandimplementedbytheMP-4200
TH printer.
SometermsusedinthedescriptionofESC/POScommandsetneedfurtherexplanation,asdescribedbelow.
•Printbuffer:abufferthatstorestheimagedatatobeprinted.
•Printbufferfull:thestatewheretheprintbufferisfull.Ifnewprintdataisinputwhilethe
print buffer is full, the data in the print buffer is printed out and a line feed is executed. This is
thesameoperationastheLFoperation.
•Startofline:astatethatsatisfiesthefollowingconditions:
o Print buffer is empty.
o There is no data to print (including portions of data skipped due to HT).
oTheprintpositionhasnotbeenspecifiedbytheESC$orESC\command.
•Printablearea:themaximumspaceavailableforprinting.TheprintableareaunderESC/POS
forMP-4200THisspecifiedbyhorizontaldirection(73.6mm{588/203”}).
• Printingarea:avaluesetbythecommand.Itmustbealwayslessthanorequaltoprintable
area.
•Ignore:astateinwhichallcodes,includingparameters,arereadinanddiscarded,andnothinghappens.
•MSB:MostSignificantBit
•LSB:LeastSignificantBit
HT
[Function] Horizontal tab.
[Format] ASCII HT
Hexadecimal 09
Decimal9
[Description] Moveprintpositiontothenexthorizontaltabmark.
[Details] •Thiscommandisignoredifnexthorizontaltabmarkhasnotbeenset.
•HorizontaltabmarksaresetwithESCD.
•Ifthiscommandisreceivedwhentheprintingpositionisat[printingareawidth+1],the
printer executes print buffer-full printing of the current line and horizontal tab processing from
the beginning of the next line.
[Reference] ESCD
LF
[Function] Print and line feed.
[Format] ASCII LF
Hexadecimal 0A
Decimal 10
[Description] Printdataintheprintbuffer,ifany,andfeedonelinebasedoncurrentlinespacing.
[Details] Thiscommandsetprintpositiontothebeginningofthenextline.
[Reference] ESC2,ESC3