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

Programming Manual - Page 186

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-37
continued
Example: Make printer ‘beep’ every time a Smart Card is powered or removed from Smart Card reader:
! U1 setvar scard.activate “BELL_ON”<CR><LF>
! U1 setvar scard.resp_timeout “<VALUE>”
Where <VALUE> is a number of milliseconds that Smart Card reader will wait for Smart Card response
before timing out. If such a timeout occurs, the printer sends out a message “Invalid response:80”.
The response timeout value may be increased to prevent timeouts. Response timeout values are in
range from 250ms to 5000ms. Default timeout is set to 500ms.
Example: Set Smart Card response timeout to 1.5 seconds:
! U1 setvar scard.resp_timeout “1500”<CR><LF>
! U1 getvar scard.resp_timeout”<CR><LF>
Returns current setting of Smart Card response timeout in milliseconds.
S-CARD COMMAND EXAMPLES
This section provides some examples for using the S-CARD command to communicate with the
internal Smartcard reader from the ‘External Terminal.
Read card ATR
! U1 S-CARD CT_ATR
Response:
<ACK><0X0D>< 3B E3 00 FF 91 81 71 26 44 00 54 54 54>
Traceability command:
! U1 S-CARD CT_DATA 10 8010000008
Note: When the printer actually sends this command to the printer, it converts the command to binary, adds the appropriate T=1
header and computes the overall command checksum. Then the printer sends this command to the smart card.
Response:
<ACK><08>< C9 1C 92 AA 66 19 A0 00><90><00>
CT_CLOSE command:
! U1 S-CARD CT_CLOSE
Loading ...
Loading ...
Loading ...