SECTION 2
Supporting DOS Applications
2-10 PEN*KEY
R
6100 Computer Programmer’s Reference Guide
DOS NPCP Printing: PC4800.SYS
Overview
NPCP printing support under DOS consists of the DOS device driver
PC4800.SYS, that allows DOS and PL/N applications written for the 6100 ComĆ
puter to print to NORAND 4810, 4815, and 4820 Printers, using NPCP.
Driver Installation and Configuration
Required CONFIG.SYS Entry
PC4800.SYS is installed as a device driver in the CONFIG.SYS file.
For example:
device=pc4800.sys LPT1 1 /i1
If PC4800.SYS is not in the root directory, be sure to include the path.
The format of the command line for PC4800.SYS is as follows:
PC4800.SYS [<device name> [<port number> [/in ]]]
"
NOTE:
The order of the command line parameters is important (for example, specify a
<device name>
in order to specify a
<port number>
.
The following table lists the meaning of each of the parameters:
Parameter
Meaning
<device name>
The name that opens the device. This name can be anything except PRN, and can be
up to eight characters long. The default name is NP4800.
<port-number>
The communications port number that the driver uses for output. Valid values are:
1 = COM1, 2 = COM2, etc. The default is COM1.
/in
This switch enables support for the interrupt 17h interface. This is needed for PL/N
applications. `n' is a digit that specifies the LPT port that accesses the device. For exĆ
ample, /I1 indicates that interrupt 17h calls for LPT1 are intended for this device drivĆ
er.
Note:
The interface provided is not 100 percent PCĆcompatible. It is intended only
to support PL/N applications. NonĆPL/N applications should not use this switch.
Required AUTOEXEC.BAT Entry
PC4800.SYS requires that the 4000API.EXE TSR is loaded to function correctly.
Refer to the 4000API documentation in the
Conversions and Interfaces
section,
for installation instructions.
Functionality and Usage
Intermec Technologies Corporation supplies PL/N and C standard printer rouĆ
tines that handle critical errors and the printing of text to NORAND printers.
The following information is for those who might want to create their own print
routines.
PC4800.SYS must be opened before it can be used. For example, in the C proĆ
gramming language, you can use
fopen()
. Use the correct open call for the lanĆ
guage being used that allows writing to the device. Also, the open call used
should return an error if the device does not exist. Some open calls will create a
file if the device driver is not present.
2. DOS
Applications
Содержание PEN*KEY 6100
Страница 1: ...PEN KEYR 6100 Computer PROGRAMMER S REFERENCE GUIDE P N 977 054 001 Revision B December 2000 ...
Страница 14: ...CONTENTS xii PEN KEYR 6100 Computer Programmer s Reference Guide ...
Страница 22: ...Preface 8 PEN KEYR 6100 Computer Programmer s Reference Guide PREFACE ...
Страница 112: ...SECTION 4 Power Management 4 10 PEN KEYR 6100 Computer Programmer s Reference Guide 4 Power Management ...
Страница 318: ...GENERAL INDEX Index 6 PEN KEYR 6100 Computer Programmer s Reference Guide ...