Metrologic Instruments MS7220 manual RS232 Demonstration Program

Page 30

RS232 DEMONSTRATION PROGRAM

If an RS232 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 com 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 Reading (DTR) to DCD and DSR on the back of your PC.

10 CLS

20 ON ERROR GOTO 100

30OPEN “COM1:9600,S,7,1,CS0,DS0,CD0,LF” AS #1

35PRINT “SCAN A FEW BAR CODES”

40LINE INPUT #1, BARCODE$

50PRINT BARCODE$

60K$ = INKEY$: IF K$ = CHR$(27) THEN GOTO 32766

70GOTO 40

100PRINT “ERROR NO.”; ERR; “ PRESS ANY KEY TO TERMINATE.”

110K$ = INKEY$: IF K$ = “” THEN GOTO 110

32766 CLOSE: SYSTEM

32767 END

27

Image 30
Contents Metrologic INSTRUMENTS, INC Locations North AmericaTable of Contents Introduction Scanner and Accessories Stand Alone Keyboard Wedge Powerlink Cable MlpnMetroSelect Programming Guide** Mlpn 00-02407 or Stand Getting Started Getting Started Installation for Ocia Interface To power the unit with an external power supplyTo power the unit from the host device Manufacturers NoteInstallation for Keyboard Wedge Interface Keyboard Wedge InterfacesInstallation for STAND-ALONE Keyboard Interface Stand-Alone Keyboard InterfaceInstallation for RS232 or Light PEN Interfaces Turn on the host systemFor RS232 Communication Installation of AN Auxiliary Scanner Master/Slave Setup Scanner Parts Scanner PartsMULTI-FUNCTION Button Multi-Function ButtonOne Beep Audible IndicatorsThree Beeps on power up Razzberry ToneFlashing Red and Green and Two Razzberry Tones Failure ModesFlashing Green and One Razzberry Tone Continuous Razzberry Tone with both LEDs offVisual Indicators Maintenance LabelsDepth of Field Specifications Top View of Depth of FieldDepth of Field by Minimum BAR Code Element Width MilsSide View of Depth of Field Troubleshooting Guide MS7220 Series Troubleshooting GuideCodes. The scanner Keyboard Wedge Only RS-232 Only Slave operation With any interface RS232 Demonstration Program Applications and Protocols Keyboard TypeKeyboard Country Type Design Specifications EMC Default Settings IBM KBWUPC-E Default Settings XON/XOFF Default Settings Default settings for Aux interface MS7220 Stands Vertical Stand Installation Mlpn Optional Flexible Stand Installation Mlpn MS7220-12 Keyboard Wedge Stand-Keyboard Scanner and Cable TerminationsMS7220-12 MS7220-12 RS-232 or Light PenPin D-type female connector to the PC Pin male mini-DIN connector to the PCMS7220 Auxilary Port RS232 in Only Cable Connector Configuration Limited Warranty Corporate HeadquartersRemarque Patents European StandardIndex LED