5525B/31/32 Line Matrix Printer User's Manual
Table Of Contents
- 1 Introduction
- 2 Setting Up the Printer
- 3 Operating the Printer
- 4 The Configuration Menus
- Configuration Overview
- CONFIG. CONTROL
- ACTIVE EMULATION
- EMULATION
- PCL-II Emulation
- LinePrinter Plus Emulations
- Optional Emulations
- PCL-II Emulation
- LinePrinter Plus Emulation
- P-Series Emulation
- Proprinter XL Emulation
- Epson FX Emulation
- IGP/PGL Submenu
- Features
- Configuring the Emulation with the Control Panel
- Define CR Code (Carriage Return)
- Define LF Code (Line Feed)
- Autowrap
- Select SFCC
- PI Slew Range
- CR Edit
- Select Font
- Select LPI
- Auto Uppercase
- Skip Command Prefix
- Power On IGP/PGL
- Extended Execute Copy
- UPC Descenders
- Compressed CPI
- Ignore Character
- IGP100 Compatbl.
- Optimized Ratio
- IGP/VGL Emulation
- MAINT / MISC
- HOST INTERFACE
- ETHERNET PARAMETERS
- PRINTER CONTROL
- DIAGNOSTICS
- RIBBONMINDER
- 5 Interfaces
- Overview
- Dataproducts Long Line Interface
- IEEE 1284 Parallel Interface
- RS-232 and RS-422 Serial Interfaces
- Host System Configuration
- Internal Ethernet Adapter Configuration
- Configuring the Internal Ethernet Adapter for TCP/IP
- Host Software
- Compiling Host Software
- Computer-aided Configuration with ezsetup or npconfig
- Configuration Through the Network with ARP
- Configuration Through the Network with RARP
- Configuration Through the Network with BOOTP
- Restoring Factory Defaults
- Host Configuration
- Direct Printing Without Spooler
- Printing Via the Spooler
- Custom Interface Scripts
- BSD UNIX
- System V UNIX
- npd Pseudo-device Interface
- Other TCP/IP Methods
- Configuring The Internal Ethernet Adapter For Novell
- Configuring the Internal Ethernet Adapter for Windows
- 6 Troubleshooting
- A Printer Specifications
- B Downloading Firmware
- C ASCII Character Set
- D Communication and Trademark Information

Custom Interface Scripts
159
Custom Interface Scripts
You have three choices of interface scripts:
• npr.if provided in the host software
• A pre-defined script for your particular printer
• A script you have created yourself
The npr.if method is explained throughout this section. However, if you
have a pre-defined printer script or a script of your own, there are
certain modifications you must make in order for it to work with the
Internal Ethernet Adapter.
With the Internal Ethernet Adapter, the data must be captured and sent
over the network for printing, since your printer is no longer locally
attached. Use one of the following two methods:
1. Encapsulate your script’s code with brackets () and, after the
closing bracket, add a command to send the data to the Internal
Ethernet Adapter for printing.
2. Use npd as the print method.
Both methods are explained in detail below.
Modifying Your Script
If you choose to simply edit the script, you need to understand how an
interface file works. The structure of any standard interface file should
be as follows:
process options
(
generate printer setup characters
generate banner page data for each file
translate data to printer format
) |
communication program
where
communication program
is the program executing rsh/rcmd/
remsh or npwrite so the print job is redirected over the network to the
Internal Ethernet Adapter.
(
FILE=$6
#the spool file is found in the sixth parameter on System
V
cat $FILE | onlcr