17.08.2013 Views

9560 Transaction Manager User's Manual - Intermec

9560 Transaction Manager User's Manual - Intermec

9560 Transaction Manager User's Manual - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Program Listing #3 Controlling the Magnetic Card Reader<br />

Interactive Reader Language<br />

:Program - MAGDRVR.IRL <strong>Intermec</strong> Disk No. 061795<br />

: Copyright <strong>Intermec</strong>, 1994 All rights reserved.<br />

:<br />

:***********************************************************************<br />

:Purpose - This program enables communication between the <strong>9560</strong> and the<br />

: magnetic strip card reader. You must add code to send the<br />

: data to a host computer for processing.<br />

:***********************************************************************<br />

.MAIN<br />

:<br />

.READ<br />

P"\e[2J"<br />

D$0=""<br />

S.MAGINIT<br />

D$0=""<br />

P"READY FOR SCAN"<br />

VDEB;300 : Looks for input<br />

G#0=0.READ : Timeout occurs loopback to read<br />

S#0=4.MAGREAD : Input received from mag stripe card reader<br />

G#00.MAGINT1<br />

D$0="\0x1b" : <br />

XTP,$0 : Tell mag reader to stop waiting for a<br />

: card swipe<br />

VTP;300<br />

D$0="P"<br />

XTP,$0 : Tell mag reader to clear storage and<br />

: start read cycle<br />

D$0=""<br />

9<br />

9-15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!