Printek Emulation
Example: The following control code will return the status of the print buffer, the magnetic card reader, and the
battery voltage.
Control Code: SYN
Hexadecimal: 16
The three sample status strings that would be returned in response to this command are as follows.
Print Buffer Status: ESC B 0 0 4 2 CR LF 1,344 bytes in input buffer.
Hexadecimal: 1B 42 30 30 34 32 0D 0A
MCR Status: ESC M 0 1 2 4 CR LF Twelve seconds remain to read 1 & 2.
Hexadecimal: 1B 4D 30 31 32 34 0D 0A
Battery Voltage: ESC V 7 1 2 3 CR LF Battery Voltage is 7.123 Volts
Hexadecimal: 1B 56 37 31 32 33 0D 0A
Query Printer Firmware Version ESC P (
This command returns a string containing the printer’s firmware version designation as three ASCII digits. The
three digits may be interpreted by adding a decimal point between the first two digits as shown in the example
below.
Example: This following escape sequence requests the printer’s firmware version.
Escape Sequence: ESC P (
Hexadecimal: 1B 50 28
A sample string returned in response to this command is shown below and indicates that the firmware version is
“1.00”.
Firmware Version: ESC ( 1 0 0 SPACE CR LF
Hexadecimal: 1B 28 31 30 30 20 0D 0A
Query Printer Model and Hardware Revision Level ESC P )
This command returns a string containing three digits that represent the printer model and a single character
that represents the printer’s hardware revision level. The printer models indicated by the three digits are as
follows:
Value Printer Model Value Printer Model
300 MtP300 400 MtP400
302 MtP300 with MCR 401 MtP400 SL
304 MtP300 LP 402 MtP400 with MCR
306 MtP300 LP with MCR 403 MtP400 SL with MCR
404 MtP400 LP
406 MtP400 LP with MCR
26