
Printek Emulation
Print Buffer Status String
The print buffer status will be retuned as a four digits representing the number bytes in the buffer that remain to
be processed, divided by 32. For example, if b1-b4 = “0020”, this would indicate that there are at least 20 x 32,
or 640, bytes remaining to be processed. A value of “0000” would indicate that the buffer is empty.
Magnetic Card Reader Status String
The MCR status indicates the presence of a reader in the printer, and if present, its current status.
m “0” if MCR is present. “X” if not installed in printer.
s1, s2 Number of seconds remaining for a good card swipe
before the timeout specified in the read command
occurs. If this value is “00” and a non-zero value for t
is returned, the reader will not time out and must be
cancelled by a Cancel Read Magnetic Card Reader
command.
t The tracks to be read as specified by the read
command. If this value is zero and m and s1, s2 are
also zero, this indicates that the reader is present but
currently disabled (no read pending).
Battery Voltage Status String
This string contains the current battery voltage in millivolts. A string where v1 through v4 contains “7123”
would indicate that the battery voltage is currently 7123 millivolts, or 7.123 volts.
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
29
Comentários a estes Manuais