EasyManua.ls Logo

Zebra CPCL - Page 182

Zebra CPCL
376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
P10-30 Mobile Printer CPCLProgramming Manual
EPREFIX: This option is similar to the PREFIX
command, but applies to error mes-
sages. 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 ER-
RORS 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 com-
mand must be terminated with cr/lf.
continued

Related product manuals