2
MP-4200 TH Programmer’s Manual - Revision 1.0
Chapter 2
Quick Reference Guide
MP-4200 TH is a dual command set printer. A command set describes the behavior of the printer when
sequences of bytes are received through the communication interface. The two command sets available at the
MP-4200THareESC/Bematech(orESC/Bemaforshort)andESC/POS®,butonlyoneofthemisactiveat
a given time. There are commands specifically designed to switch from current command set to the other.
2.1 ESC/Bema Quick Reference Guide
ESC/BemaisastandarddevelopedbyBematech,itspartnersandcustomersduring
several years of operation in the South America retail and bank automation markets.
ThesyntaxusedtosummarizeESC/Bemacommandsinthetables
throughout this section is described in the bullets below:
•ESCPmeansacommandwithnoparameters.
•ESCQnmeansacommandwithoneparameter.
•ESCKn1n2meansacommandwithtwoparameters.
•ESCDn1...nkmeansacommandwithvariablenumberofparameters.
InthebulletsabovetheESCsymbolrepresentsthehexadecimalnumber1B,accordingtoASCIItable.The
character P represents the hexadecimal number 50, as defined in the ASCII table too. In some circumstances
hexadecimalnumbersbetween7FandFFcanalsobeusedasapartofacommand.Asthesevaluescannot
be represented using ASCII table, they will be represented with the value followed by the ‘h’ character.
InthenexttablesESC/Bemacommandsaresummarized.
Printer settings commands for ESC/Bema mode Table 2
Command Description Hexadecimal Format
GSF9h5n Select printer operating mode and save
selected option to configuration memory.
1DF935n
GSF9h7n Set and save printer default code page for
ESC/Bemacommandset.
1DF937n
GSF9h8n SetandsaveESC/POSideogrammode. 1DF938n
GSF9hC00h Getprintercurrentcommandset. 1DF94300
GSF9hSPn Select printer operating mode without saving
selected option to printer configuration
memory.
1DF920n
GSF9h1Fh1 Return to mode in use prior to sending GS
F9hSPncommand.
1DF91F31
ESC@ Initialize printer to its default settings. 1B 40
ESCbn Select paper sensor to output paper-end
signal.
1b62n
ESCvn Activate drawer #1 for n milliseconds 1B76n
ESC80hn Activate drawer #2 for n milliseconds 1B 80 n
ESCi Perform full paper cut 1B69
ESCw Perform full paper cut 1B77
ESCm Perform partial paper cut 1B6D
ESCyn Enable/disablepanelkeys 1B79n
ESCx Enabledumpmode 1B78
ESCzn Enable/disableautomaticlinefeed 1B7An
Comments to this Manuals