ZEBRA MZ 320 3" 4mb Direct Mobile Thermal Receipt Printer With Bluetooth

Programming Manual - Page 175

For MZ 320.

PDF File Manual, 497 pages, Read Online | Download pdf file

MZ 320 photo
Loading ...
Loading ...
Loading ...
Mobile Printing Systems
CPCL Programming Manual
Section 10
Advanced
Utilities
pg. 10-26
continued
TIMEOUT: This error is reported when the printer MCR times out before a successful read.
EPREFIX: This option is similar to the PREFIX command, but applies to error messages. Error
messages, if error reporting is turned on, will be preceded by the specified eprefix. For example,
“EPREFIX ERROR:” instructs the printer to prefix error messages with “ERROR:”. The default error
prefix is “Error:
MCR Command Examples
Example 1:
This example sets the MCR in the printer for reading tracks one and two, with a timeout of 10 seconds (10
/ 1/8th seconds = 80). The last option of the MCR command must be terminated with cr/lf.
! U1 MCR 80 T1 T2
Once the card is swiped successfully, the following is sent to host:
T1:B4000001234562^PUBLIC JR/JOHN Q.MR^9209101999999999 <CR/LF>
T2:4000001234562=9209101999999999<CR/LF>
If the printer times out or the card can not be read, the printer will not return anything to the host
(because ERRORS option is not specified in this example).
Example 2:
This example sets the MCR in the printer for reading tracks one and two, with a timeout of 10 seconds
(10 / 1/8th seconds = 80). The ECHO command will instruct the printer to print the MCR data (in
addition to sending that data to the host). The ERRORS option instructs the printer to report read
errors, time-outs, or cancellations, if any. The last option of the MCR command must be terminated
with cr/lf.
! U1 MCR 80 ECHO T1 T2 ERRORS
Once the card is swiped successfully, the following is sent to host and printed:
T1:B4000001234562^PUBLIC JR/JOHN Q.MR^9209101999999999 <CR/LF>
T2:4000001234562=9209101999999999<CR/LF>
If the printer times out before a successful read, it will send the following message to host and printed
on the printer:
ERROR:T1:TIMEOUT
ERROR:T2:TIMEOUT
Loading ...
Loading ...
Loading ...