19
RS-232 D
EMONSTRATION
P
ROGRAM
If an RS-232 scanner is not communicating with your IBM compatible PC, key in
the following BASIC program to test that the communication port and scanner are
working. This program is for demonstration purposes only. It is only intended to
prove that cabling is correct, the communication port is working, and the scanner
is working. If the bar code data displays on the screen while using this program,
it only demonstrates that the hardware interface and scanner are working. At this
point, investigate whether the application software and the scanner configuration
match. If the application does not support RS-232 scanners, a software wedge
program that will take RS-232 data and place it into a keyboard buffer may be
needed. This program tells the PC to ignore RTS-CTS, Data Set Ready (DSR)
and Data Carrier Detect (DCD) signals. If the demonstration program works and
yours still does not, jumper RTS to CTS and Data Terminal Ready (DTR) to DCD
and DSR on the back of your PC.
10
CLS
20
ON ERROR GOTO 100
30
OPEN “COM1:9600,S,7,1,CS0,DS0,CD0,LF” AS #1
35
PRINT “SCAN A FEW BAR CODES”
40
LINE INPUT #1, BARCODE$
50
PRINT BARCODE$
60
K$ = INKEY$: IF K$ = CHR$(27) THEN GOTO 32766
70
GOTO 40
100
PRINT “ERROR NO.”; ERR; “ PRESS ANY KEY TO TERMINATE.”
110
K$ = INKEY$: IF K$ = “” THEN GOTO 110
32766
CLOSE: SYSTEM
32767
END
M
AINTENANCE
Smudges and dirt on the window of the scanner can interfere with proper
scanning. Therefore, the output window will need occasional cleaning.
1. Spray glass cleaner onto a lint-free, non-abrasive cleaning cloth.
2. Gently wipe the scanner window.
Содержание Eclipse MS5145-11
Страница 1: ......
Страница 2: ......
Страница 17: ...13 SCAN AREA Minimum Bar Code Element Width A B C D E F mm 10 12 17 26 33 66 mils 4 1 4 8 6 8 10 4 13 26 ...
Страница 40: ...June 2002 7 0 7 9 0 0 1 B ...