SECTION 6
Conversions and Interfaces
6-12 PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide
PRTIO
The 4805 Endcap Printer is not supported on the PEN*KEY 6000 Series
platform. Remove references to PUTCTL 1047 (PR_4805) as well as any other
code that is specific to the 4805 Printer.
RCT printers, e.g. NP207 and NP111, are not supported on the PEN*KEY.
Remove references to PUTCTL 1044 (PR_NONNPCP) as well as any other code
that is specific to these printers.
The following changes apply to NPCP printing on the 4000 Series as well as
printing on the 6000 Series. They are included here because some 4000 Series
applications may not have been updated properly:
"
Set PRT.LAST = 256 or PRT.LAST = 0 only at the start of a report. Many
applications set PRT.LAST = 256 when a formfeed is done to reset the line
counter after each page of a report is printed. Instead, set PRT.LAST = 257
after the first line of the page printed. This modification ensures report
integrity. When PRT.LAST = 256, PRTIO establishes a new print session.
A new session can be started with any printer. Therefore, if PRT.LAST is
set to 256 at the start of each page, each page of a report could potentially
be printed to different printers without causing an error condition but
resulting in an invalid report.
"
The standard routines PGAPR2P/PGPER2P should be used. Some
applications may still be using the older routines PGAPR1P/PGPER1P.
"
Do not use the standard routine PGEPS1P, because it is not compatible
with PGAPR2P/PGPER2P. Replace calls to PGEPS1P(EP_FF) with
PGSFF1P. Replace calls to PGEPS1P(IP_DONE) with PGWTE1P. Replace
other calls to PGEPS1P(IP_xxx, ...) with PRINT(EP_xxx, ..., PR_NOLFP).
"
The standard routine PGWTE1P must be used at the end of each report to
wait for printer completion, or printer errors might be missed.
SYSIO
Remove references to PUTCTL 1026 (SY_POWER_ON) and PUTCTL 1027
(SY_OFF_POWER). These enabled the internal modem on a 4000 Series
Platform. Remove references to internal modems for the 4000 Series Platform.
XLMEMIO
XLMEMIO is not supported on the PEN*KEY. Applications must be converted
to be DOSĆcompatible.
Standard Routines
See the
PL/N 4000 Series Reference Manual, Volume 2
.
Adding PC Card Modem Support
The following steps add PCMCIA modem support to a PL/N application:
1. For the 6200 Computer, use 6200 Flash V1.40 or greater; or for the 6210
Computer, use 6210 Flash V1.50 or greater.
2. Install NGENMOD.SYS. See the
PC Card Modem Driver
paragraph in
Section 2 for instructions on installing this device driver.
3. Use the Correct TTYIO.BIN and URTIO.BIN. Use files from PLN4000
v1.07 or greater.
4. Modify TTYIO Open Statement. The TTYIO driver must be opened
differently to set the appropriate COM port. A new open mode (TT_AS_IS)
exists to prevent the open from initializing a COM port, and a new putctl
(TT_COMPORT) exists to set the COM port. The TT_ constants are
defined in PCTTCNP.INC. The open mode and putctl are supported for the
4000 Series as well, so this change need not include the ++ifdef.
6. Conversions and
Interfaces