The text of a manual · part 25 of 31
9560 Transaction Manager User's Manual, pages 241 to 250
Pages 241 to 250 of 309
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 9560
Page 241
Interactive Reader Language
9
Program Listing #3 Controlling the Magnetic Card Reader :Program - MAGDRVR.IRL Intermec Disk No. 061795 : Copyright Intermec, 1994 All rights reserved. : :*********************************************************************** :Purpose - This program enables communication between the 9560 and the : magnetic strip card reader. You must add code to send the : data to a host computer for processing. :*********************************************************************** .MAIN : .READ P"\e[2J" D$0="" S.MAGINIT D$0="" P"READY FOR SCAN" VDEB;300 : Looks for input G#0=0.READ : Timeout occurs loopback to read S#0=4.MAGREAD : Input received from mag stripe card reader G#0<3.ERROR : Error code received G$0="E".QUIT P$0 W2 G.READ .ERROR : Input error from mag stripe P"INPUT ERROR" B1010 W2 G.READ : :*********************************************************************** : Mag reader utility routines :*********************************************************************** : .MAGINIT : Clears input buffer YTN;1 YTP;1 .MAGINT1 D$0="" VTP;1 G#0>0.MAGINT1 D$0="\0x1b" : <ESC> XTP,$0 : Tell mag reader to stop waiting for a : card swipe VTP;300 D$0="P" XTP,$0 : Tell mag reader to clear storage and : start read cycle D$0=""
9-15
Page 242
9560 Transaction Manager User’s Manual
VTP;300 D$0="" Q : :********************************************************************** :9560 receives data from mag stripe reader :********************************************************************** : .MAGREAD B1 D#0=2 : default to terminal error Q$0="*" : Error Q$0=":" : Power on report Q$0="+" : No data found D#0=0 Q$0="!" : Invalid command or command already active : $0 should contain a "^" = ACK : Tell the mag reader to send its buffer. D$0="R" XTP,$0;1500 YTN;1 YTP;1 D$0="" .MAGLOOP VTP;20 G#0>0.MAGLOOP b00 G$0="*".MAGERR : Error G$0="+".MAGERR : Error D#0=4 Q .MAGERR B10101 P"BAD SCAN" W2 Q : .QUIT ET
9-16
Page 243
Interactive Reader Language
9
Magnetic Card Reader Commands The magnetic card reader accepts many data formats. Use the commands in this section to specify your data format and to create custom IRL programs.
Reading Standard Data The host may request the data from the reader in two ways: Standard card data is read from the corresponding track location. For example, standard track 2 data is read at track 2 on the card. Single Byte Command
A particular track format is read from a different track location. For example, track 1 format is read on track 2. The command is followed by an ASCII number (1, 2, or 3) representing the ANSI track format for processing the data. Double Byte Command
Reading Custom Data The magnetic card reader accepts custom data with 3 to 7 bits per word. Use one of two methods to read custom data: •
If the data does not contain NULL characters (all bits zero), then use the 2-byte command.
•
If the data contains NULL characters, then you must insert an “Underline” (5F) between the 2 bytes. The card reader stores all bits found in the card, starting with the first 1 bit. The card reader ignores the last 10 bits at the end of the card.
The IRL program must request data from the card reader using the following structure: Transmit custom data (fwd/rev.) Track X (X = Track #, 1-3). “Underline” (if data with NULL is expected) Number of bits per character (3-7) The card reader takes the number of bits specified for each character, adds the selected parity, and then transmits all the data. The read sequence starts when the card reader locates the first “1” in its storage and ends with the last character found.
9-17
Page 244
9560 Transaction Manager User’s Manual
Read and Transmit Data Commands Command
Hex Value
Operation
P
0x50
Clear storage and accept new data
R
0x52
Transmit standard data T2 from track 2
I
0x49
Transmit error data (uppercase i )
r1
0x72 0x31
Transmit track 2 data using ANSI track format T1 r2
0x72 0x32
Transmit track 2 data using ANSI track format T2 r3
0x72 0x33
Transmit track 2 data using ANSI track format T3
Vdata
0x56 data
Transmit forward direction custom data from track 2 vdata
0x76 data
Transmit reverse direction custom data from track 2
1
0x31
Data = 1 (track number)
2
0x32
Data = 2 (track number)
3
0x33
Data = 3 (track number or bits per custom character)
4
0x34
Data = 4 (bits per custom character)
5
0x35
Data = 5 (bits per custom character)
6
0x36
Data = 6 (bits per custom character)
7
0x37
Data = 7 (bits per custom character)
_
0x5F
Underline for double-byte commands
%
0x25
Retransmit
#
0x23
Configuration request
XOFF
0x13
Pause card reader transmit
XON
0x11
Resume card reader transmit
J
0x4A
General purpose input report
Esc
0x1B
Abort (Esc)
9
0x39
Version report
Note: data is the number of bits per custom character. Valid numbers are 3 through 7.
9-18
Page 245
Interactive Reader Language
9
Card Reader Responses to Host Command
Hex Value
Operation
^
0x5E
Command completed (ACK)
+
0x2B
No data found
*
0x2A
Error
?
0x3F
Retransmit (communication error)
!
0x21
Invalid command
~
0x7E
Cannot execute
:
0x3A
Power on report
9-19
Page 246
Page 247
code39 helconital nugget
10 Troubleshooting
A F
B
K
G
C
L
H
D
M
I
P U
Q V
R W
E N
J
S
O
X
T Y
C ap s $ 7
/ , Z
4
8
1
5
9
2
6
0
3
B ks p
S pa ce
In
. E n te r te rm
F 1 F 2 F 3 F 4 F 5
F 6 F 7 F 8 F 9
9 F10 5 6 0 ec
Page 248
nugget code39 helconital
Page 249
Troubleshooting
10
This chapter provides simple troubleshooting procedures for some of the more common problems that the 9560 may experience.
Troubleshooting Checklist Use the following tables to diagnose and correct minor problems with the 9560.
Reader Does Not Read Bar Code... Possible Causes
Try This
Faulty scanner.
Read bar code with another scanner.
Scanner does not read that density of bar code.
Check scanner manual specifications for maximum density of bar code read.
Reader does not accept that type of bar code.
Check specifications for bar codes (see Appendix A). Check configuration (see Chapters 6 and 7).
Poor bar code print quality.
Scan another bar code of known good quality.
Poor scanning technique.
Review scanning procedures (see Chapter 4).
Magnetic card reader attempted to read alphanumeric data.
Input only numeric data. The magnetic card reader only accepts numeric data. This is the ANSI standard for Track 2.
Reader Does Not Communicate With Host... Possible Causes
Try This
Not configured properly.
Check configuration (see Chapters 6 and 7).
Faulty or incorrect cabling.
Check that cable ends are securely fastened to the correct ports, then try again. Check that cable meets system requirements (see Chapter 2). Check that cable was made properly; look for opens, shorts, loose wires.
10-3
Page 250
9560 Transaction Manager User’s Manual
Reader “Hung Up”... Possible Causes
Try This
IRL program looping.
Remove power from unit. Press and hold the Exit IRL switch (located on connector board) while restoring power.
Exit IRL Switch
Exit IRL Switch
J17
9560-47U
Slot Scanner Does Not Function... Possible Causes
Try This
Incorrect ink type.
Repeat scan with a bar code printed with carbonbased ink.
Reader Beeps Continually on Power Up... Possible Causes
Try This
Internal magnetic card reader is attached and communications settings were changed before power loss.
Configure the reader to 9600 Baud, even parity, 7 data bits, and 1 stop bit. See “Using the Magnetic Card Reader” in Chapter 4.
10-4