Intermec 6100 Reference Guide

Page of 328
SECTION 2
Supporting DOS Applications
PEN*KEY
R
 6100 Computer Programmer’s Reference Guide    2-9
Configuration
Required CONFIG.SYS Entry
The following entry is REQUIRED in the CONFIG.SYS file, for DOS scanning:
device=elanapm.exe
device=nordospm.exe
Options
61PODSCN recognizes the following options:
Switches
Description
-? or -H
Either of these options results in a help screen that briefly describes the various options.
-A[n]
Enable aiming beam for 1/2 second intervals (if supported).  The n is optional (as noted by
the [brackets]), and if used, it specifies the number of intervals desired.
-E
Enable scanner immediately, and permanently, not just when enabled via software API.
-Knn
Define a keyboard key to be used to initiate the scanner, where nn = scancode for the key.
For example: use -K0f for TAB key.
-On
Power off delay, where n is the number of seconds from release of the trigger to the time
power is removed from the scanner.
-PLN
Use the PLN API interface.
-RESET
Resets scanner configuration to the factory default on start-up.
-SCANBIOS Use the SCANBIOS API interface.
Usage
The DOS scanner uses command line switches to drive the desired functions.
For example:
61PODSCN –E –A2 –K16
where:
ćE
enables the scanner immediately and permanently.
ćA2
enables the aiming beam for a oneĆsecond interval.
ćK16
defines a keyboard key that can be pressed to initiate the scanner.
Example Scanner Application
This example scanner testware enables the scanner, then displays the DOS keyĆ
strokes until the return or newline character is encountered, where we exit.
#include <dos.h>
#include <stdio.h>
#include <conio.h>
void main (void) {
int c;
//
_AH = 0x80;
// collect only one scan – 4500 compatible
//
geninterrupt(0x7a);
// thread thru scan tsr
//
while ((c != ‘\n’) && (c != ‘\r’)) {
while (kbhit()){
c = getch();
putchar(c);
if (c == ‘\n’ || c == ‘\r’) break;
}
}
}
2. DOS 
Applications