Logic Controls MP4200 User manual

Category
Print & Scan
Type
User manual
MP-4200 TH Programmer’s Manual - Revision 1.0
i
POS Printer MP-4200 TH Programmer’s Manual
P/N: 501.4421.00 - Revision 1.0
April 2010
(First Edition: April 2010)
Copyright© by Bematech S.A. Curitiba-PR, Brazil.
All rights reserved.
No part of this publication may be copied, reproduced, adapted or translated without the prior written permission
of Bematech S.A., except when allowed by patent rights.
Information in this publication is purely informative, subjected to change without notice and no liability is assumed
with respect to its use. However, as product improvements become available, Bematech S.A. will make every
effort to provide updated information for the products described in this publication. The latest version of this
manual can be obtained through Bematech web site:
www.bematech.com
Not withstanding the other exceptions contained in this Manual, the consequences and responsibility are assumed
by the Purchaser of this product or third parties as a result of: (a) intentional use for any improper, unintended
or unauthorized applications of this product, including any particular purpose; (b) unauthorized modifications,
repairs, or alterations to this product; (c) use of the product without complying with Bematech S.A. Corporation’s
operating and maintenance instructions; (d) use of the product as component in systems or other applications in
which the failure of this could create a situation where personal injury or material damages may occur. In the
events described above, Bematech S.A. and its officers, administrators, employees, subsidiaries, affiliates and
dealers shall not be held responsible or respond by any claim, costs, damages, losses, expenses and any other
direct or indirect injury, as well as claims which alleges that Bematech S.A. was negligent regarding the design
or manufacture of the product.
Bematech S.A. shall not be liable against any damages or problems arising from the use of any options or any
consumable products other than those designated as original Bematech products or approved products by
Bematech S.A.
Any product names or its logotypes mentioned in this publication may be trademarks of its respective owners and
shall be here recognized.
Product warranties are only the ones expressly mentioned in the User’s Manual. Bematech S.A. disclaims any and
all implied warranties for the product, including but not limited to implied warranties of merchantability or fitness
for a particular purpose. In addition, Bematech S.A. shall not be responsible or liable for any special, incidental
or consequential damages or lost profits or savings arising from the use of the product by the Purchaser, the User
or third parties.
MP-4200 TH Programmer’s Manual - Revision 1.0
ii
Disposal and Recycling Information
General Information
This symbol indicates that your product must be disposed of properly according to local laws and
regulations. When your product reaches its end of life, contact Bematech or your local authorities to
learn about recycling options.
Safety Information
This section presents important information intended to ensure safe and effective use of this product. Please
read this section carefully and store it in an accessible location.
Electrical Safety
• Topreventelectricalshockhazard,disconnectthepowercablefromtheelectricaloutletbeforerelocatingthe
system.
• Whenaddingorremovingdevicestoorfromthesystem,ensurethatthepowercablesforthedevicesare
unplugged before the signal cables are connected. If possible, disconnect all power cables from the
existing system before you add a device.
• Before connecting or removing signal cables from the product, ensure that all power cables are
unplugged.
• Seekprofessionalassistancebeforeusinganadapterorextensioncord.Thesedevicescouldinterruptthe
grounding circuit.
• Makesurethatyourpowersupplyissettothecorrectvoltageinyourarea.Ifyouarenotesureaboutthe
voltage of the electrical outlet you are using, contact your local power company.
• Ifthepowersupplyisbroken,donottrytofixitbyyourself.Contactaqualifiedservicetechnicianoryour
retailer.
Operation Safety
• Beforeinstallingtheproductandaddingdevicesonit,carefullyreadallthemanualsthatcamewiththe
package.
• Beforeusingtheproduct,makesureallcablesarecorrectlyconnectedandthepowercablesarenotdamaged.
If you detect any damage, contact you retailer immediately.
• To avoid short circuits, keep paper clips, screws, and staples away from connectors, slots, sockets and
circuitry.
• Avoiddust,humidity,andtemperatureextremes.Donotplacetheproductinanyareawhereitmaybecome
wet.
• Placetheproductonastablesurface.
• If you encounter technical problems with the product, contact a qualified service technician or you
retailer.
MP-4200 TH Programmer’s Manual - Revision 1.0
iii
Summary
List of Tables iv
Acronyms and Abbreviations v
Revision History vi
Chapter 1: Introduction 1
1.1 Objective 1
1.2 Structure 1
Chapter 2: Quick Reference Guide 2
2.1 ESC/Bema Quick Reference Guide 2
2.2 ESC/POS® Quick Reference Guide 6
Chapter 3: ESC/Bematech Command Set 9
ESC/Bematech Command Set 9
Chapter 4: ESC/POS® Command Set 39
ESC/POS® Command Set 39
Appendix I – Tables 99
Table 1 - Characters Per Line 99
Appendix II – Character Tables 100
ASCII 100
Code Page 437 100
Code Page 850 101
Code Page 858 101
Code Page 860 102
Code Page 866 103
Appendix III - Transmission Status Identification 104
MP-4200 TH Programmer’s Manual - Revision 1.0
iv
List of Tables
Table 1: Arguments used to describe MP-4200 TH commands. ..................... 8
Table 2: Printer settings commands for ESC/Bema mode ............................ 9
Table 3: Vertical positioning commands for ESC/Bema mode ......................10
Table 4: Horizontal positioning commands for ESC/Bema mode....................10
Table 5: Character formatting commands for ESC/Bema mode.....................11
Table 6: Print width, character width and height commands for ESC/Bema mode ..11
Table 7: Bitmap and graphic commands for ESC/Bema mode ......................11
Table 8: Communication related commands for ESC/Bema mode .................12
Table 9: Data control related commands for ESC/Bema mode......................12
Table 10: Barcode commands for ESB/Bema mode....................................12
Table 11: Standard commands for ESC/POS® mode..................................13
Table 12: Ideograms control commands for ESC/POS® mode......................15
Table 13: Miscellaneous commands for ESC/POS® mode...........................15
MP-4200 TH Programmer’s Manual - Revision 1.0
v
Acronyms and Abbreviations
Abreviation Significance
bit Binary digit
dpi Dotsperinch
JIS Japanese Industrial Standards
TCP/IP Suite of protocols used for Internet communication
USB Universal Serial Bus
UTF-8 8-bit Unicode Transformation Format
MP-4200 TH Programmer’s Manual - Revision 1.0
vi
Revision History
Date Version Description
April 2010 1.0 Initial release.
1
MP-4200 TH Programmer’s Manual - Revision 1.0
Chapter 1
Introduction
MP-4200 TH is a Bematech thermal printer designed to speed up receipt printing operations with high
performance in both text and graphic modes. Its main features include:
•Printingspeedsofupto250mm/sinbothtextandgraphicmodes.
•Fourpaperwidths:58mm,76mm,80mmor82.5mm.
•Twocommandssets:ESC/BematechorESC/POS®.
•OneUSBdeviceinterfacealwaysavailabletoconnectwithhostcomputers.
•TwodifferentmodelsofoptionalserialRS-232interfacescards,oneusingaDB-9connectorandanother
usingDB-25connector,toallowserialcommunicationwithlegacyandembeddedhosts.
•Oneoptional10/100MbitEthernetinterfacecardwithintegratedTCP/IPstackforwiredremoteprinting
through local area networks.
• One optional IEEE 802.11b/g Wi-Fi interface card with integrated TCP/IP stack for wireless remote
printing through local area networks.
• Seven code pages available: 437 (USA andStandard Europe),850 (Multilingual “Latin-1”– Western
EuropeanLanguages),858(MultilingualwithEurosymbol),860(Portuguese),862(Hebrew),864(Arabic)
and866(Cyrillic).
•SupportsTraditionalChinese(Big5E)andSimplifiedChinese(GB2312orEUC-CN).
•SupportsJapanese(JISandShiftJIS).
•SupportsUTF-8characters.
•Cangeneratefourteendifferenttypesofunidimensionalbarcodes(EAN-8,EAN-13,Code39,Code93,
Code128(A,BandC),ITF,Codabar,UPC-A,UPC-E,ISBN,MSIorPlessey).
•CangeneratePDF-417bidimensionalbarcode.
•Maybeusedtocontroluptotwoexternalcashdrawers.
•Dotdensityof203x203dpi.
1.1 Objective
The purpose of this manual is to provide to developers and programmers detailed information about MP-4200
TH operation. All available commands are described to allow the use of MP-4200 TH to print receipts for any kind
of application.
1.2 Structure
This manual is organized in four chapters. This first chapter provides some highlights about MP-4200 TH
thermal printer and also some information on how to use this manual. The second chapter presents a summary
of all the commands supported by the MP-4200 TH in a form of a quick reference guide. The third chapter
providesindepthinformationabouteverycommandavailableintheESC/Bematechmodeofoperation.Thefourth
chapterprovidesindepthinformationabouteveryESC/POS®commandsupportedbyMP-4200THprinterwhen
operatingintheESC/POSmodeofoperation.
Chapters three and four describe commands using up to nine arguments, as described in Table 1.
Arguments used to describe MP-4200 TH commands. Table 1
Argument Significance
[Function] Short description of the command functionality.
[Format] Command code sequence.
[Range] Shows command arguments ranges, if applicable.
[Default] Givesdefaultvaluesforparameters,ifapplicable.
[Description] Describeswhatthecommanddoes.
[Details] Describestheusageofthecommandindetailandalsoitslimitations.
[Notes] Provides important information on setting and using the printer command, if necessary.
[References] Listsrelatedcommands,ifapplicable.
[Example] Provides a short example on how to use the command.
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-4200THareESC/Bematech(orESC/Bemaforshort)andESC/POS®,butonlyoneofthemisactiveat
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/BemaisastandarddevelopedbyBematech,itspartnersandcustomersduring
several years of operation in the South America retail and bank automation markets.
ThesyntaxusedtosummarizeESC/Bemacommandsinthetables
throughout this section is described in the bullets below:
•ESCPmeansacommandwithnoparameters.
•ESCQnmeansacommandwithoneparameter.
•ESCKn1n2meansacommandwithtwoparameters.
•ESCDn1...nkmeansacommandwithvariablenumberofparameters.
InthebulletsabovetheESCsymbolrepresentsthehexadecimalnumber1B,accordingtoASCIItable.The
character P represents the hexadecimal number 50, as defined in the ASCII table too. In some circumstances
hexadecimalnumbersbetween7FandFFcanalsobeusedasapartofacommand.Asthesevaluescannot
be represented using ASCII table, they will be represented with the value followed by the ‘h’ character.
InthenexttablesESC/Bemacommandsaresummarized.
Printer settings commands for ESC/Bema mode Table 2
Command Description Hexadecimal Format
GSF9h5n Select printer operating mode and save
selected option to configuration memory.
1DF935n
GSF9h7n Set and save printer default code page for
ESC/Bemacommandset.
1DF937n
GSF9h8n SetandsaveESC/POSideogrammode. 1DF938n
GSF9hC00h Getprintercurrentcommandset. 1DF94300
GSF9hSPn Select printer operating mode without saving
selected option to printer configuration
memory.
1DF920n
GSF9h1Fh1 Return to mode in use prior to sending GS
F9hSPncommand.
1DF91F31
ESC@ Initialize printer to its default settings. 1B 40
ESCbn Select paper sensor to output paper-end
signal.
1b62n
ESCvn Activate drawer #1 for n milliseconds 1B76n
ESC80hn Activate drawer #2 for n milliseconds 1B 80 n
ESCi Perform full paper cut 1B69
ESCw Perform full paper cut 1B77
ESCm Perform partial paper cut 1B6D
ESCyn Enable/disablepanelkeys 1B79n
ESCx Enabledumpmode 1B78
ESCzn Enable/disableautomaticlinefeed 1B7An
3
MP-4200 TH Programmer’s Manual - Revision 1.0
ESC(Ap
L
p
H
fn n
1
n
2
vol Activate/deactivate buzzer 1B 28 41 p
L
p
H
fn n
1
n
2
vol
GSF9h–n Set and save printer mode 1DF92Dn
GSF9h!n Set and save paper width 1DF921n
GSF9h,n Enable/disablepapernear-endsensor 1DF92Cn
GSF9h+n Set and save printing intensity 1DF92Bn
GSFAhn Set and save printer language 1DFAn
GSF9h‘n Getprinterinformation 1DF927n
GSF9h(0 Loaddefaultuserconfiguration 1DF92830
GSF9h)0 Print user configuration 1DF92930
GSF8hF Printer reset 1DF846
GSF7hBSNUL“i
1
…i
4
s
1
…s
4
Set IP address and subnet mask 1DF7080022i
1
…i
4
s
1
…s
4
GSF7hEOTNUL‘g
1
…g
4
Set default gateway IP address 1DF7040027g
1
…g
4
GSF9hDmn Activate buzzer on cut 1DF944mn
GSF9hEn SetDHCPusage 1DF945n
GSF9hSmip
1
..ip
4
n c
1
..c
n
Set SNMP settings 1DF953mip
1
..ip
4
n c
1
..c
n
GSF9hWascmne
1
..e
m
p
1
..p
n
Set Wi-Fi settings 1DF957ascmne
1
..e
m
p
1
..p
n
Vertical positioning commands Table 3
Command Description Hexadecimal Format
ESCCn Set page size in lines 1B43n
ESCcn1n2 Set page size in millimeters 1B63n1n2
ESCJn Performs a fine line feed 1B 4A n
FF Feed one page 0C
LF Feed one line 0A
ESC2 Settextlineheightto1/6inches 1B32
ESC3n Set line feed to n/144 inches 1B33n
ESCf1n Vertical skipping 1B6631n
ESCAn Feedpaperby[nx0,375]mm 1B 41 n
Horizontal positioning commands Table 4
Command Description Hexadecimal Format
ESCf0n Horizontal skipping 1B6630n
HT Horizontal tab 09
ESCDn
1
…n
k
NUL Set horizontal tab marks 1B 44 n
1
…n
k
00
ESCQn Set right margin 1B 51 n
ESCln Set left margin 1B6Cn
ESCan Character alignment 1B61n
4
MP-4200 TH Programmer’s Manual - Revision 1.0
Character formatting commands Table 5
Command Description Hexadecimal Format
ESC–n Enable/disableunderlineprintmode 1B2Dn
ESC4 Enableitalicprintmode 1B34
ESC5 Disableitalicprintmode 1B35
ESCE Enableemphasizedprintmode 1B 45
ESCF Disableemphasizedprintmode 1B46
ESCtn Codepage selection 1B74n
ESCRn Select an international character set 1B 52 n
ESCSn Enable superscript and/or subscript print
modes
1B53n
ESCT Disablesuperscriptandsubscriptprintmodes 1B 54
ESCNn Select printing intensity 1B4En
ESC!n Select print mode 1B 21 n
ESC}n Turn upside-down printing mode on/off 1B7Dn
ESCZ Print supported Unicode sets 1B 5A
ESC[n Print a specific Unicode set 1B 5B n
Print width, character width and height commands Table 6
Command Description Hexadecimal Format
DC2 Disablecondensedmode 12
DC4 Disableon-lineexpandedprint 14
ESCdn Enable/disabledoubleheightprintmode 1B64n
ESCH Disablecondensedmode 1B 48
ESCP Disablecondensedmode 1B 50
ESCSI Enablecondensedmode 1B 0F
ESCSO Enableon-lineexpandedmode 1B0E
ESCV Enableon-linedoubleheightmode 1B56
ESCWn Enable/disableexpandedmode 1B57n
SI Enablecondensedmode 0F
SO Enableon-lineexpandedmode 0E
Bitmap and graphic Table 7
Command Description Hexadecimal Format
ESC$n1n2 Fill in blank bit columns 1B 24 n1 n2
ESC*!n1n2b1...bn 24-bit graphics 1B 2A 21 n1 n2 b1 ... bn
ESCKn1n2b1...bn 8-bit graphics 1B 4B n1 n2 b1 ... bn
FS p n m Print NV bit image 1C70nm
FS q n [x
L
x
H
y
L
y
H
d
1
...d
k
]1...[x
L
x
H
y
L
y
H
d
1
...
d
k
]
n
DefineNVbitimage 1C 71 n [x
L
x
H
y
L
y
H
d
1
...d
k
]1...[x
L
x
H
y
L
y
H
d
1
...d
k
]
n
GS/m Print downloaded bit image 1D2Fm
GS*xyd
1
...d
(x × y × 8)
Definedownloadedbitimage 1D2Axyd
1
...d
(x × y × 8)
GSv0mx
L
x
H
y
L
y
H
d
1
...d
k
Print raster bitmap 1D7630mx
L
x
H
y
L
y
H
d
1
...d
k
5
MP-4200 TH Programmer’s Manual - Revision 1.0
Communication related Table 8
Command Description Hexadecimal Format
ENQ Printer status enquiry 05
GSF8h1 Printer extended status enquiry 1DF831
ETX Endbuffer 03
STX Clear buffer 02
Data control related Table 9
Command Description Hexadecimal Format
CAN Cancel last line 18
DEL Cancel last character 7F
Barcode commands Table 10
Command Description Hexadecimal Format
GShn Set barcode height 1D68n
GSwn Set barcode width 1D77n
GSHn Choose the position of human readable
information (HRI) in the barcode
1D48n
GSfn Set the font to be used for human readable
information (HRI)
1D66n
GSkNULd
1
…d
11
NUL Print an UPC-A barcode 1D6B00d
1
…d
11
00
GSkAVTd
1
...d
11
Print an UPC-A barcode 1D6B410Bd
1
…d
11
GSkSOHd
1
…d
6
NUL PrintanUPC-Ebarcode 1D6B01d
1
…d
6
00
GSkBACKd
1
…d
6
PrintanUPC-Ebarcode 1D6B4206d
1
…d
6
GSkSTXd
1
…d
12
NUL PrintanEAN-13barcode 1D6B02d
1
…d
12
00
GSkCFFd
1
…d
12
PrintanEAN-13barcode 1D6B430Cd
1
…d
12
GSkETXd
1
…d
7
NUL PrintanEAN-8barcode 1D6B03d
1
…d
7
00
GSkDBELd
1
…d
7
PrintanEAN-8barcode 1D6B4407d
1
…d
7
GSkEOTd
1
…d
n
NUL PrintaCODE39barcode 1D6B04d
1
…d
n
00
GSkEnd
1
…d
n
PrintaCODE39barcode 1D6B45nd
1
…d
n
GSkENQd
1
…d
n
NUL Print an ITF barcode 1D6B05d
1
…d
n
00
GSkFnd
1
...d
n
Print an ITF barcode 1D6B46nd
1
…d
n
GSkACKd
1
…d
n
NUL PrintaCODABARbarcode 1D6B06d
1
…d
n
00
GSkGnd
1
…d
n
PrintaCODABARbarcode 1D6B47nd
1
…d
n
GSkHnd
1
…d
n
PrintaCODE93barcode 1D6B48nd
1
…d
n
GSkInd
1
…d
n
PrintaCODE128barcode 1D6B49nd
1
…d
n
GSk80hn
1
n
2
n
3
n
4
n
5
n
6
d
1
…d
n
PrintaPDF-417barcode 1D6B80n
1
n
2
n
3
n
4
n
5
n
6
d
1
…d
n
GSkNAKd
1
…d
9
NUL Print an ISBN barcode 1D6B15d
1
…d
9
00
GSkSYNd
1
…d
n
NUL Print a MSI barcode 1D6B16d
1
…d
n
00
GSk82hnd
1
…d
n
Print a MSI barcode 1D6B82nd
1
…d
n
GSkETBd
1
…d
n
NUL PrintaPLESSEYbarcode 1D6B17d
1
…d
n
00
GSk83hnd
1
…d
n
PrintaPLESSEYbarcode 1D6B83nd
1
…d
n
GSk84hn
1
n
2
Program barcode left margin 1D6B84n
1
n
2
6
MP-4200 TH Programmer’s Manual - Revision 1.0
2.2 ESC/POS® Quick Reference Guide
ESC/POS®isastandarddefinedbySeikoEpsonCorporation.ESC/POS®commandscanbeclassifiedas
executing or setting. An executing command makes the printer to execute something and does not affect further
incoming data. On the other hand, a setting command makes the printer to change its internal flags that may
affect incoming data.
ESC/POS®commandssupportedbyMP-4200THaresummarizedinTable11,Table12andTable13.
Standard commands for ESC/POS® mode Table 11
Command Name
Command Classification
GS P
function
Executing Setting
HT Horizontal tab x
LF Print and line feed x
CR Print and carriage return x
DLEEOT Real-time status transmission x
DLEENQ Real-time request to printer x
DLEDC4
Generatepulseatreal-time x
Executepower-offsequence x
Clear buffer x
ESCSP Set right-side character spacing x x
ESC! Select print mode(s) x
ESC$ Set absolute print position x x
ESC(A Control beeper tones x x
ESC* Select bit-image mode x
ESC- Turn underline mode on/off x
ESC2 Select default line spacing x
ESC= Select peripheral device x
ESC@ Initialize printer x x
ESCD Set horizontal tab marks x
ESCE Turn emphasized mode on/off x
ESCG Turn double-strike mode on/off x
ESCJ Print and paper feed x x
ESCM Select character font
ESCR Select an international character set x
ESCV Turn90ºclockwiserotationmodeon/off x
ESC\ Set relative print position x x
ESCa Select justification x
ESCc3 Select paper sensor(s) to output paper-end signals x
ESCc4 Select paper sensor(s) to stop printing x
ESCc5 Enable/disablepanelbuttons x
ESCd Print and feed n lines x
ESCi Perform a partial cut x
7
MP-4200 TH Programmer’s Manual - Revision 1.0
ESCm Partial paper cut x
ESCp Generatepulse x
ESCt Select character code table x
ESCun Transmit peripheral device status x
ESCv Transmit paper sensor status x
ESC{ Turn upside-down printing mode on/off x
FS p Print NV bit image x
FS q DefineNVbitimage x
GS! Select character size x
GS* Definedownloadedbitimage x
GS/ Print downloaded bit image x
GS(A Executetestprint x
GS(D Enable/disablereal-timecommand x
GS8L
GS(L
Process graphics data
x
GS(N Select character effects x
GS(k Specify and print symbol x x
GS: Start/end macro definition x x
GSB Turn white/black reverse printing mode on/off x
GSH Select printing position of HRI characters x
GSI TransmitprinterID x
GSL Set left margin x x
GSP Set horizontal and vertical motion units x
GSV Select cut mode and cut paper x x
GSW Set printing area width x x
GS^ Executemacro x
GSa Enable/disableAutomaticStatusBack(ASB) x x
GSf Select font for HRI characters x
GSh Set bar code height x
GSk Print bar code x
GSr Transmit status x
GSv0 Print raster bit image x
GSw Set bar code width x
Notes:- x means command enabled.
8
MP-4200 TH Programmer’s Manual - Revision 1.0
MP-4200THalsosupportsideogramsforTraditionalChinese(Big-5E),SimplifiedChinese(EUC-CN)and
Japanese(JISorShiftJIS).Table12showsMP-4200THESC/POScommandsdedicatedtoideogramscontrol.
Ideograms control Table 12
Command Name
Command Classification
GS P
function
Executing Setting
FS! Set print mode(s) for ideograms x
FS & Select ideogram mode x
FS - Turn underline mode on/off for ideograms x
FS . Cancel ideogram mode x
FS C Select ideogram code system x
FS S Set ideogram spacing x x
FS W Turn quadruple-size mode on/off for ideograms x
BeyondESC/POS®standard,MP-4200THalsosupportssomemiscellaneouscommandsinESC/POS®
modetoallowprintertobeconfiguredindependentofcurrentcommandset(ESC/BemaorESC/POS®).
ThemiscellaneouscommandssupportedbyMP-4200THinESC/POS®modearelistedinTable13.
Special miscellaneous Table 13
Command Description Hexadecimal Format
GSF9h5n Select printer operating mode and save selected option to configuration
memory.
1DF935n
GSF9h7n SetandsaveprinterdefaultcodepageforESC/Bemacommandset. 1DF937n
GSF9h8n SetandsaveESC/POSideogrammode. 1DF938n
GSF9hC00h Getprintercurrentcommandset. 1DF94300
GSF9hSPn Select printer operating mode without saving selected option to printer
configuration memory.
1DF920n
GSF9h1Fh1 ReturntomodeinusepriortosendingGSF9hSPncommand. 1DF91F31
GSF9h–n Set and save printer mode 1DF92Dn
GSF9h!n Set and save paper width 1DF921n
GSF9h,n Enable/disablepapernear-endsensor 1DF92Cn
GSF9h+n Set and save printing intensity 1DF92Bn
GSFAhn Set and save printer language 1DFAn
GSF9h‘n Getprinterinformation 1DF927n
GSF9h(0 Loaddefaultuserconfiguration 1DF92830
GSF9h)0 Print user configuration 1DF92930
GSF8h1 Printer extended status enquiry 1DF831
GSF8hF Printer reset 1DF846
GSF7hBSNUL“i
1
…i
4
s
1
…s
4
Set IP address and subnet mask 1DF7080022i
1
…i
4
s
1
…s
4
GSF7hEOTNUL‘g
1
…g
4
Set default gateway IP address 1DF7040027g
1
…g
4
GSF9hDmn Activate buzzer on cut 1DF944mn
GSF9hEn SetDHCPusage 1DF945n
GSF9hSmip
1
..ip
4
n c
1
..c
n
Set SNMP settings 1DF953mip
1
..ip
4
n c
1
..c
n
GS F9h W a s c m n e
1
..e
m
p
1
..p
n
Set Wi-Fi settings 1DF957ascmne
1
..e
m
p
1
..p
n
9
MP-4200 TH Programmer’s Manual - Revision 1.0
Chapter 3
ESC/Bematech Command Set
This chapter presents detailed information about each ESB/Bematech command implemented by the
MP-4200 TH printer.
GS F9h 5 n
[Function] Select printer operating mode.
[Format] ASCII  GSF9h5n
Hexadecimal 1DF935n
Decimal 2924953n
[Range] n=0;n=1;n=48;n=49;
[Description] Ifnis0(00hor30h),ESC/Bemaisselected.
Ifnis1(01hor31h),ESC/POSisselected.
[Notes] This command modifies printer flags and save the new values to printer configuration memory.
GS F9h 7 n
[Function] SetandsaveprinterdefaultcodepageforESC/Bematechcommandset.
[Format] ASCII  GSF9h7n
Hexadecimal 1DF937n
Decimal 2924955n
[Range] 2≤n≤12;n=14;n=21
[Default] n=2
[Description] Thiscommandselectsthecodepagetobeused,accordingtothefollowingoptions.
Ifnis2(02hor32h),CODEPAGE850isselected.
Ifnis3(03hor33h),CODEPAGE437isselected.
Ifnis4(04hor34h),CODEPAGE860isselected.
Ifnis5(05hor35h),CODEPAGE858isselected.
Ifnis6(06hor36h),CODEPAGE866isselected.
Ifnis7(07hor37h),CODEPAGE864isselected.
Ifnis8(08hor38h),UTF8(Unicode)isselected.
Ifnis9(09hor39h),Big-5Eisselected.
Ifnis10(0Ahor3Ah),JISisselected.
Ifnis11(0Bhor3Bh),SHIFTJISisselected.
Ifnis12(0Chor3Ch),GB2312isselected.
Ifnis14(0Ehor3Eh),EUC-CNisselected.
Ifnis21(15hor45h),CODEPAGE862isselected.
GS F9h 8 n
[Function] SetandsaveESC/POSideogrammode.
[Format] ASCII  GSF9h8n
Hexadecimal 1DF938n
Decimal 2924956n
[Range] 0≤n≤3
[Default] n=0
[Description] Ifnis0(00hor30h),UTF8(Unicode)ideogrammodeisselected.
Ifnis1(01hor31h),ESC/POSJapaneseideogrammodeisselected.
Ifnis2(02hor32h),ESC/POSSimplifiedChineseideogrammodeisselected.
Ifnis3(03hor33h),ESC/POSTraditionalChineseideogrammodeisselected.
10
MP-4200 TH Programmer’s Manual - Revision 1.0
GS F9h C 00h
[Function] Getprintercurrentcommandset.
[Format] ASCII  GSF9hC00h
Hexadecimal 1DF94300
Decimal 29249670
[Description] Returnonebytewithcurrentcommandset.Ifreturnedbyteis0(00h),printerisoperatingin
ESC/Bemamode.Ifreturnedbyteis1(01h),printerisoperatinginESC/POSmode.
GS F9h SP n
[Function] Select printer operating mode of operation temporarily.
[Format] ASCII  GSF9hSPn
Hexadecimal 1DF920n
Decimal 2924932n
[Range] n=0;n=1;n=48;n=49;
[Description] Ifnis0(00hor30h),ESC/Bemaisselected.
Ifnis1(01hor31h),ESC/POSisselected.
[Notes] This command modifies printer flags but does not save the new values to the printer configuration
memory. The new mode starts as the printer has been just initialized (ESC @ has been
executed).
GS F9h 1Fh 1
[Function] Return to previously set mode of operation.
[Format] ASCII  GSF9h1Fh1
Hexadecimal 1DF91F31
Decimal 292493149
[Description] ConfigurationcommandusedtoputprintermodebacktothatusedbeforeissuingGSF9hSPn
command.Thepreviousmodere-startsastheprinterhasbeenjustinitialized(ESC@hasbeen
executed).
ESC @
[Function] Initialize printer to its default settings.
[Format] ASCII  ESC@
Hexadecimal 1B 40
Decimal 2764
[Description] Allprintersettings,includingcharacterfont,linespacing,leftmargin,rightmarginandinverted
mode are canceled and the printer returns to its initial state.
ESC b n
[Function] Select paper sensor to output paper-end signal.
[Format] ASCII  ESCbn
Hexadecimal 1B62n
Decimal 2798n
[Range] n=0,1,48,49
[Default] n=0
[Description] Ifnis0(00hor30h),paper-endsignal(PE)reflectspapersensoronparallelprinters.
Ifnis1(01hor31h),paper-endsignal(PE)reflectsdrawersensoronparallelprinters.
[Notes] ThiscommandalsoaffectsthebehaviorofENQonallprintermodels.
11
MP-4200 TH Programmer’s Manual - Revision 1.0
ESC v n
[Function] Activate drawer #1 for n milliseconds.
[Format] ASCII  ESCvn
Hexadecimal 1B76n
Decimal 27118n
[Range] 50≤n≤250
[Description] Activatedrawer#1pinfornmilliseconds(50ms≤n≤200ms).
ESC 80h n
[Function] Activate drawer #2 for n milliseconds.
[Format] ASCII  ESC80hn
Hexadecimal 1B 80 n
Decimal 27128n
[Range] 50≤n≤250
[Description] Activatedrawer#2pinfornmilliseconds(50ms≤n≤200ms).
ESC i
[Function] Perform full paper cut.
[Format] ASCII  ESCi
Hexadecimal 1B69
Decimal 27105
[Description] Thiscommandoperatestheauto-cutter,performingafullcutinthepaper.
ESC w
[Function] Perform full paper cut.
[Format] ASCII  ESCw
Hexadecimal 1B77
Decimal 27119
[Description] Thiscommandoperatestheauto-cutter,performingafullcutinthepaper.
ESC y n
[Function] Enable/disablepanelkeys.
[Format] ASCII  ESCyn
Hexadecimal 1B79n
Decimal 27121n
[Range] n=0,1
[Default] n=1
[Description] Enableordisablepanelkeys.
Ifnis0(00hor30h),panelkeysaredisabled.
Ifnis1(01hor31h),panelkeysareenabled.
ESC x
[Function] Enabledumpmode.
[Format] ASCII  ESCx
Hexadecimal 1B78
Decimal 27120
[Description] Dumpmodeisafunctionusedtoprintdatatransmittedfromhostcomputerinhexadecimal
numbers. This function is to be used by advanced users and programmers in checking commands
12
MP-4200 TH Programmer’s Manual - Revision 1.0
sent to the printer.
[Note] The only way to exit the dump mode is turning off the printer"
ESC z n
[Function] Enable/disableautomaticlinefeed.
[Format] ASCII  ESCzn
Hexadecimal 1B7An
Decimal 27122n
[Range] n=0,1
[Default] n=0
[Description] Enableordisablelinefeeding.
Ifnis0(00hor30h),automaticlinefeedisdisabled.
Ifnis1(01hor31h),automaticlinefeedisenabled.
[Notes] Whenautomaticlinefeedisenabled,theprinterwillperformaLFifaCRisreceived.
ESC ( A p
L
p
H
fn n
1
n
2
vol
[Function] Activate/deactivate buzzer.
[Format] ASCII  ESC(Ap
L
p
H
fn n
1
n
2
vol
Hexadecimal 1B 28 41 p
L
p
H
fn n
1
n
2
vol
Decimal 274065p
L
p
H
fn n
1
n
2
vol
[Description] Activateordeactivateprinterbuzzer.
(p
L
+p
H
×256)=4,i.e.,p
L
must be 4 and p
H
must be 0.
ƒ
n
=1or31h–activatebuzzer.
ƒ
n
=0or30h–deactivatebuzzer(deprecated).
n=(n
1
+n
2
×256)–timeinmilliseconds.
vol=0,1,48or49–volume(unused).
GS F9h - n
[Function] Set and save printer mode.
[Format] ASCII  GSF9h–n
Hexadecimal 1DF92Dn
Decimal 2924945n
[Default] n=0
[Description] Setprinterprioritytohighqualityofhighspeed.
n=0or30h–normal.
n=1or31h–highquality.
n=2or32h–highspeed.
GS F9h ! n
[Function] Set and save paper width.
[Format] ASCII  GSF9h!n
Hexadecimal 1DF921n
Decimal 2924933n
[Description] Setpaperwidthasdescribedinthetablebelow:
13
MP-4200 TH Programmer’s Manual - Revision 1.0
n Paper width (mm) Printing width (mm)
00h 58 48
01h 76 72
02h 80 72
03h 80 76
04h 82.5 72
05h 82.5 76
06h 82.5 80
[Notes] This command has effect only when printer is in ESC/Bema operating mode. For
ESC/POSmodepaperwidthisalwayssetto80mm/73.5mm.
GS F9h , n
[Function] Enable/disablepapernear-endsensor.
[Format] ASCII  GSF9h,n
Hexadecimal 1DF92Cn
Decimal 2924944n
[Default] n=1
[Description] Enableordisablepapernear-endsensor(PNES).Thissettingissavedto
configuration (non-volatile) memory.
n=1or31h–enablePNES.
n=0or30h–disablePNES.
GS F9h + n
[Function] Set and save printing intensity.
[Format] ASCII  GSF9h+n
Hexadecimal 1DF92Bn
Decimal 2924943n
[Description] Obsoleteandignored.KeptheretomaintaincompatibilitywithearlierBematechproducts.
GS FAh n
[Function] Set and save printer language.
[Format] ASCII  GSFAhn
Hexadecimal 1DFAn
Decimal 29250n
[Description] Setprinterlanguage.
n=0or30h–English
n=1or31h–Portuguese
n=2or32h–Spanish
n=3or33h–German
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112

Logic Controls MP4200 User manual

Category
Print & Scan
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI