1 commands – Bematech MP-4000 TH Programmer's Manual User Manual
Page 6
MP-4000 TH POS Printer Rev.1.4
Programmer’s
Manual
22-aug-2007
Firmware Release: 1.5
6
1 Commands
The MP-4000 TH printer has a series of programming commands that may be used in the
remote mode. Two types of commands can be sent:
1.1 Direct command
In this mode, a simple ASCII code is enough to command the printer. For example:
ASCII CODE
: LF
DECIMAL
: 10
HEXADECIMAL
: 0A
This command causes the printer to perform a line feed.
1.2 Control sequence
In this mode, more than one code may be sent to command or program the printer.
This “control sequence” always starts with the ASCII code “ESC”, “FS” or “GS”. For example:
ASCII
CODE
: ESC
W
1
DECIMAL
: 27
87
01
HEXADECIMAL : 1B
57
01
This command switches the printing mode to “expanded”.
Following is a summary of all commands accepted by the MP-4000 TH printer.