Apple 310 User Manual

Developer Note
Apple LaserWriter Select 310 Printer
Developer Note
Developer Press © Apple Computer, Inc. 2000
Apple Computer, Inc.
© 2000, Apple Computer, Inc. All rights reserved.
No part of this publication or the software described in it may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, mechanical, electronic, photocopying, recording, or otherwise, without prior written permission of Apple Computer, Inc., except in the normal use of the software or to make a backup copy of the software. The same proprietary and copyright notices must be affixed to any permitted copies as were affixed to the original. This exception does not allow copies to be made for others, whether or not sold, but all of the material purchased (with all backup copies) may be sold, given, or loaned to another person. Under the law, copying includes translating into another language or format. You may use the software on any computer owned by you, but extra copies cannot be made for this purpose.
Printed in the United States of America. The Apple logo is a registered
trademark of Apple Computer, Inc. Use of the “keyboard” Apple logo (Option-Shift-K) for commercial purposes without the prior written consent of Apple may constitute trademark infringement and unfair competition in violation of federal and state laws.
No licenses, express or implied, are granted with respect to any of the technology described in this book. Apple retains all intellectual property rights associated with the technology described in this book. This book is intended to assist application developers to develop applications only for Apple Macintosh computers.
Apple Computer, Inc. 20525 Mariani Avenue Cupertino, CA 95014 408-996-1010
Apple, the Apple logo, APDA, LaserWriter, Macintosh, and MacTerminal are trademarks of Apple Computer, Inc., registered in the United States and other countries.
TrueType is a trademark of Apple Computer, Inc.
Adobe Illustrator and PostScript are trademarks of Adobe Systems Incorporated, which may be registered in certain jurisdictions.
Centronics is a registered trademark of Centronics Data Computer Corporation.
FrameMaker is a registered trademark of Frame Technology Corporation.
Helvetica and Palatino are registered trademarks of Linotype Company.
IBM is a registered trademark of International Business Machines Corporation.
ITC Zapf Dingbats is a registered trademark of International Typeface Corporation.
MS-DOS is a registered trademark of Microsoft Corporation.
Simultaneously published in the United States and Canada.
LIMITED WARRANTY ON MEDIA AND REPLACEMENT
If you discover physical defects in the manual or in the media on which a software product is distributed, APDA will replace the media or manual at no charge to you provided you return the item to be replaced with proof of purchase to APDA.
ALL IMPLIED WARRANTIES ON THIS MANUAL, INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE LIMITED IN DURATION TO NINETY (90) DAYS FROM THE DATE OF THE ORIGINAL RETAIL PURCHASE OF THIS PRODUCT.
Even though Apple has reviewed this manual, APPLE MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS MANUAL, ITS QUALITY, ACCURACY, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. AS A RESULT, THIS MANUAL IS SOLD “AS IS,” AND YOU, THE PURCHASER, ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND ACCURACY.
IN NO EVENT WILL APPLE BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY DEFECT OR INACCURACY IN THIS MANUAL, even if advised of the possibility of such damages.
THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN LIEU OF ALL OTHERS, ORAL OR WRITTEN, EXPRESS OR IMPLIED. No Apple dealer, agent, or employee is authorized to make any modification, extension, or addition to this warranty.
Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives you specific legal rights, and you may also have other rights which vary from state to state.

Contents

Figures and Tables vii
Preface
Chapter 1
About This Note
What This Note Contains ix Conventions Used in This Note x Other Reference Material x For More Information xi
ix
LaserWriter Select 310 Hardware
Communication Ports 4
Serial Port for RS-232C Devices 4
Centronics Parallel Connector 5 Status Lights 8 Memory Capabilities 9
ROM Capability 9
DRAM Expansion 10 Basic Operation 10
Batch Mode 10
Interactive Mode 11 Page Types 11 Paper Handling 12
1
Chapter 2
LaserWriter Select 310 Software
Software Overview 16
Adobe PostScript Programming Language 16
PostScript Interpreter 16
LaserWriter Select 310 Driver 17
Page Types 17
Product Strings 19 Software Parameters 19
Communication Device Parameters 19
Compatibility Operators 19 Setting Compatibility Operators 21
Setting System Parameters 23
checkpassword 23 defaulttimeouts 23 idlefonts 23
15
iii
pagecount 23 printername 24 product 24 productA 24 ramsize 24 revision 24 setdefaulttimeouts 25 setidlefonts 25 setpassword 25 setprintername 26
Setting Page Device Parameters 26
defaultmultipurposetraysize 26 defaultpapertray 26 dostartpage 26 manualfeed 27 manualfeedtimeout 27 margins 27 pagestackorder 27 papersize 28 papertray 28 setdefaultmultipurposepapertraysize 28 setdefaultpapertray 29 setdostartpage 29 setmargins 29 setpagestackorder 30 setpagetype 30 setpapertray 30
Setting User Parameters 31
jobname 31 jobtimeout 31 setjobtimeout 31 waittimeout 32
Setting Device Parameters 32
setsoftwareiomode 32 softwareiomode 33
Setting Communication Parameters 33
packetbackchannel 33 sccbatch 34 setpacketbackchannel 34 setsccbatch 35
Setting Engine Device Parameters 35
darkness 35 setdarkness 36
Setting Extensions to PostScript Level 1 36
currentcacheparams 36 currentpacking 36 packedarray 37
iv
setcacheparams 37 setpacking 38
Printer Error Parameter 38
printererror 39
PostScript Language Changes 39
Packed Arrays 40
Packed Arrays Versus Ordinary Arrays 40
Creating Packed Arrays 40 Immediately Evaluated Names 41 Changes in Font Cache Operation 42 Device Resolution Images 42 End-of-Line Recognition 43 New Operators 44
TrueType Fonts 44
Chapter 3
Communication Channels
Serial Communication 46
Baud Rates 46 Parity Settings 47 Flow Control 47
DTR Flow Control 47
XON/XOFF Flow Control 48
SCC Operator Encoding 48 Communication Protocols 49
Simple Communication Protocol 49 Binary Communication Protocol 50
Communicating with an IBM PC 52
Parallel Interface 52 Serial Interface 53
DTR Flow Control for PC Communication 53
XON/XOFF Flow Control for PC Communication 54
Communication Dynamics 54 Status Queries and Spontaneous Messages 55
45
v
1
15
45

Figures and Tables

Chapter 1
Chapter 2
LaserWriter Select 310 Hardware
Figure 1-1 Figure 1-2 Figure 1-3 Figure 1-4 Figure 1-5 Figure 1-6 Figure 1-7
Table 1-1 Table 1-2 Table 1-3 Table 1-4 Table 1-5
LaserWriter Select 310 printer side panel connectors 4 An 8-pin serial port connector 5 A Centronics parallel connector 6 Timing for a Centronics interface 7 Status lights 8 The ROM and DRAM locations on a printed circuit board 9 Paper handling options 13
LaserWriter Select 310 printer features 3 Signal descriptions for an 8-pin serial port 5 Signal descriptions for a Centronics parallel port 6 Status light messages 8 Available page types 11
LaserWriter Select 310 Software
Table 2-1 Table 2-2 Table 2-3 Table 2-4
Paper tray selection operators 18 Product string values 19 Compatibility operators 20 LaserWriter Select 310 Parameters 21
Chapter 3
Communication Channels
Figure 3-1
Table 3-1
Table 3-2
Table 3-3 Table 3-4 Table 3-5 Table 3-6
SCC operator encoding 49
Default settings for the serial communication channel parameters 46
Data and parity choices for the LaserWriter Select 310 printer 47
SCC compatibility operators options byte values 48 Reserved characters in simple communication protocol 49 Control characters in binary serial protocol 51 Settings for the serial output channel during parallel
communication 53
vii
PREFACE

About This Note

The LaserWriter Select 310 printer is a new member of Apple’s LaserWriter printer family. It is an economical printer that supports the Adobe PostScript features and capabilities of the printer, and it is intended for use by software and hardware developers.
To use this note, you need to understand the PostScript Level 1 programming language. You should also be familiar with the computer for which you intend to develop software.
You do not need to use this note if you are simply running packaged programs for your computer. However, it is useful if you are writing or modifying a program that is used with the LaserWriter Select 310 printer.
Your owner’s guide provides instructions for connecting the printer to your computer, inserting paper, and performing other routine operating tasks. This note does not provide that type of information.
This preface describes the contents of the note, explains visual cues and conventions used in the note, and lists other books to which you can refer.
Level 1 programming language. This developer note describes the

What This Note Contains 0

This note is made up of three chapters.
Chapter 1, “LaserWriter Select 310 Hardware,” describes the hardware features of the LaserWriter Select 310 printer, including the built-in communications ports and interfaces.
Chapter 2, “LaserWriter Select 310 Software,” provides an overview of software features, including the PostScript Programming Language, the PostScript interpreter, LaserWriter Select 310 driver, and page types. It also describes the software parameters and the PostScript Level 1 operators that enable you to set up and configure the LaserWriter Select 310 printer. Finally, it discusses changes made to the PostScript language that impact the LaserWriter Select 310 printer.
Chapter 3, “Communication Channels,” describes the software support for serial and parallel communication channels.
ix
PREFACE

Conventions Used in This Note 0

The following visual cues are used throughout this note to identify different types of information:
Note
A note like this contains information that is interesting but not essential for an understanding of the main text.
IMPORTANT
This type of note contains information that is essential for an understanding of the main text.
WARNING
A warning like this directs your attention to something that could damage hardware or software, or that could result in loss of data.
A special font, program code.
Courier
, is used for characters that you type or for lines of
It looks like this
.

Other Reference Material 0

This developer note assumes that you are familiar with printer technology and know how to operate and program Apple LaserWriter printers. The following supplementary documents also provide useful information:
The owner’s guide shipped with every LaserWriter printer explains how to set up the printer in the standard configuration. The guide gives basic operating information on how to load toner cartridges, load the paper tray, and so forth. It also provides basic troubleshooting information.
The LaserWriter Reference, published by Addison-Wesley, provides
information that is not in this note about fonts and about communicating with LaserWriter printers over serial channels.
The PostScript Language Reference Manual, published by Addison-Wesley, provides supplementary information on the PostScript language, including information about semantics and syntax. The edition referenced throughout this note is the first edition, unless otherwise indicated.
The PostScript Language Tutorial and Cookbook, published by Addison­Wesley, provides a basic introduction to the PostScript programming language. It also includes sample PostScript programs that help you quickly understand how the PostScript programming language works.
The PostScript Language Program Design, published by Addison-Wesley, is
written for programmers who want to take advantage of the PostScript program language to design efficient PostScript programs and printer devices.
x
PREFACE

For More Information 0

APDA is Apple’s worldwide source for over three hundred development tools, technical resources, training products, and information for anyone interested in developing applications on Apple platforms. Customers receive the quarterly APDA Tools Catalog featuring all current versions of Apple development tools and the most popular third-party development tools. Ordering is easy; there are no membership fees, and application forms are not required for most of our products. APDA offers convenient payment and shipping options, including site licensing.
To order products or to request a complimentary copy of the APDA Tools
Catalog , contact
APDA Apple Computer, Inc. P.O. Box 319 Buffalo, NY 14207-0319
Telephone 800-282-2732 (United States)
800-637-0029 (Canada)
716-871-6555 (International) Fax 716-871-6511 AppleLink APDA America Online APDA CompuServe 76666,2405 Internet APDA@applelink.apple.com
xi
Figure 1-0 Listing 1-0 Table 1-0
CHAPTER 1

LaserWriter Select 310 Hardwar e 1

CHAPTER 1
2
LaserWriter Select 310 Hardware
The LaserWriter Select 310 printer is an economical laser printer that supports PostScript
Level 1 functions. It executes page descriptions written in the PostScript language, and it produces printed pages at a rate of up to five pages per minute. The raster printing technology is xerographic, black and white, and write black at 300 dots (pixels) per inch. The printer is dedicated, and it operates with Macintosh computers using the RS-232 serial port or with DOS-based IBM personal computers using the Centronics parallel port. It is available in 110-volt and 220-volt versions.
This chapter describes:
hardware features of the printer
communication ports
status lights
memory capabilities
basic operation page types
paper handling capabilities of the printer
The LaserW riter Select 310 printer supports the entir e PostScript language specified in the first edition of the PostScript Language Reference Manual . In addition, it has features, capabilities, and operating modes not present in other PostScript language printers. You may access these additional facilities by executing special PostScript operators that exist only in the LaserWriter Select 310 printer’s PostScript interpreter.
Unlike other Apple LaserWriter printers, the LaserWriter Select 310 printer does not have a rotary selection switch to allow you to select different communication protocols.
In addition, the printer does not have EEROM (electronically erasable ROM). This means that any of the interpreter’s default parameters that are changed using
statusdict
operators are not placed in nonvolatile storage and will not persist across power cycles. However, for parameters that are expected to change infrequently, a portion of RAM may be used to simulate EEROM.
Table 1-1 lists functional features of the LaserWriter Select 310 printer.
CHAPTER 1
LaserWriter Select 310 Hardware
Table 1-1
Features Specifications
LaserWriter Select 310 printer features
Printing speed 5 pages per minute Warm-up time 90 seconds (worst case) Imaging 300 dpi Processor Advanced Micro Devices Am29205, 16 MHz Paper handling Standard
Output: 150-page, face-down tray Inputs: Manual feed tray; 250-page feeder with 250-page universal
cassette
Optional
Inputs: additional 250-page feeder; additional 500-page feeder; 250-page legal-size cassette, 30-page envelope-size cassette, 500-page B5-size cassette, 500-page letter-size cassette, 500-page A4-size cassette, 50-page/5-envelope multi-purpose tray
For more information see sections “Page Types” and “Paper Handling” at the end of this chapter
ROM 1 MB
<1 MB used for PostScript firmware and fonts
DRAM 1.5 MB
Expandable to 2.5 MB or 5.5 MB The printer requires a minimum of 2.5 MB to print legal-size image areas
Interface ports RS-232 8-pin serial
Centronics 36-pin parallel
Communication rates 57,600 baud (RS-232) Fonts 13 PostScript Type I fonts on board
TrueType fonts supported by downloading TrueType fonts in unhinted Type I
PDL (Page Description
PostScript Level 1, or compatible
Language)
3
CHAPTER 1
LaserWriter Select 310 Hardware
Communication Ports 1
The LaserWriter Select 310 printer supports two communication ports:
RS-232 8-pin serial port
Centronics 36-pin parallel port
Figure 1-1 shows the relative positions of these ports on the rear panel of the printer.
Figure 1-1
LaserWriter Select 310 printer side panel connectors
Centronics 36-pin portSIMM card slot
RS-232 8-pin
serial port
When the LaserWriter Select 310 printer is first powered on, the serial port with binary protocol enabled is the default communication port. If any character is received over the Centronics parallel port, the parallel port with binary protocol and a serial back channel automatically becomes the default port. If you want to change the communication port back to serial mode after a job has been sent over the parallel port, you should power down and then restart the printer. Similarly, if you wish to change printer drivers, you should power down and then restart.
IMPORTANT
It is better to operate the LaserWriter Select 310 printer in either a serial or a parallel communication environment than to transmit both serial and parallel data. Attempting to operate in both environments may cause unpredictable results.

Serial Port for RS-232C Devices 1

The LaserWriter Select 310 printer supports the RS-232 protocol by means of an 8-pin mini-DIN connector . This connector pr ovides the interface between the printer and Apple Macintosh computers. Figure 1-2 shows the connector pin designations and Table 1-2 lists the pin functions for this 8-pin connector. You can also connect the printer directly to a Macintosh computer using a Peripheral-8 (M0197) cable and communicate with the printer using the LaserWriter Select 310 printer driver, or a terminal emulation program such as MacTerminal.
4

Communication Ports

CHAPTER 1
LaserWriter Select 310 Hardware
Figure 1-2
8 7 6
5 4
2
Table 1-2
Pin number
An 8-pin serial port connector
3
1
Signal descriptions for an 8-pin serial port
Signal name I/O Description
Connected to chassis ground
1 DTR I Data terminal ready. Send data when this signal
is asserted. 2 DSR O Data set ready. 3 /TXD O Transmit data (inverted) 5 /RXD O Receive data (inverted) 4, 6 GND Ground 7, 8 Not used These pins are not connected

Centronics Parallel Connector 1

The LaserWriter Select 310 printer provides a 36-pin connector for communication with a standard Centronics parallel interface. It is fully compatible with the IBM PC Centronics port.
The parallel channel is basically unidirectional and is used to input information from the host computer to the printer. The printer returns minimal status information to the host, such as /POUT and /F AULT, which flag paper errors. It also returns handshaking signals such as PBUSY and /PACK. If you require additional status information from the printer while you are printing to the parallel port, you can use a host computer running a terminal emulation at 9600 bauds to connect to the serial port of the printer.
Communication Ports
5
CHAPTER 1
LaserWriter Select 310 Hardware
Figure 1-3 shows the pin designations for the Centronics parallel connector and Table 1-3 lists the signal descriptions. Figure 1-4 shows the timing requirements for the Centronics interface.
Figure 1-3
Pin 18
Pin 36
Table 1-3
Pin number Signal name I/O Description
A Centronics parallel connector
Pin 1
Pin 19
Signal descriptions for a Centronics parallel port
1 /PSTROBE I Strobe for parallel input data 2 DATA 0 I Data input bit 0 3 DATA 1 I Data input bit 1 4 DATA 2 I Data input bit 2 5 DATA 3 I Data input bit 3 6 DATA 4 I Data input bit 4 7 DATA 5 I Data input bit 5 8 DATA 6 I Data input bit 6 9 DATA 7 I Data input bit 7
10 /PACK O Handshaking output signal; printer uses it to
acknowledge receipt of parallel data
11 PBUSY O Busy output signal; indicates that a /PSTROBE
signal has been received, but /PACK has not yet been given
12 POUT O Paper out; an output error signal; indicates the
printer has run out of paper
13 Tied high This select line is tied high so the LaserWriter
Select 310 printer is always selected 14, 15, 16 Not connected These lines are not connected 17 CHASSIS
Chassis ground
GROUND
18 Not used Not used
6
Communication Ports
CHAPTER 1
LaserWriter Select 310 Hardware
Table 1-3
Signal descriptions for a Centronics parallel port (continued)
Pin number Signal name I/O Description
19-30 SIGNAL
Signal ground
GROUND 31 Not connected This line is not connected 32 /FAULT O Fault signal; asserted if there is a printer
problem
33-36 Not connected These lines are not connected
NOTE
Inputs and outputs are referenced to the printer. An input (I) signal is sent from the host computer to the printer, and an output (O) signal is sent from the printer to the host.
Figure 1-4
Data
/PSTROBE
Timing for a Centronics interface
a
cb
d
PBUSY
e
f
/PACK
g
Timing specification Min. value Typical value Max. value
a. Data setup time before PSTROBE on b. PSTROBE on pulse width c. Data hold time after PSTROBE off d. PSTROBE on to PBUSY on e. Duration of PBUSY on (printer on line) f. PBUSY off to /PACK on g. /PACK on pulse width
0.5µsec
1.0µsec
0.5µsec
0.0µsec
10.0µsec
0.0µsec
1.5µsec
500µsec
1.0µsec
2.5µsec
10.0µsec
Communication Ports
7
CHAPTER 1
LaserWriter Select 310 Hardware
Status Lights 1
The LaserWriter Select 310 printer has three colored lights on the left side of the printer. These lights indicate what the printer is doing. Figure 1-5 shows a view of the status light symbols, and Table 1-4 describes the functions of the lights.
Figure 1-5
Green Amber Amber
Ready/
In use
Table 1-4
Light Light’s state Printer’s state
Ready/in use Green

Status lights

Paper
out
Status light messages
On Off
Paper
jam
The printer is ready to use. The printer cannot print because there is an error
condition, or the printer cover is open.
Flashing
The printer is warming up or is processing data for the next print job.
Paper out Amber
On
Paper tray is empty or has been removed from the printer.
Off
There is an adequate supply of paper in the paper tray.
Flashing
The printer is in manual-feed mode and is ready for the next sheet of paper.
Paper jam Amber
8
Status Lights
On Off Flashing
NOTE
If both the Paper out and Paper jam lights flash or stay on, the printer
requires service.
There is a paper jam. Paper is feeding correctly through the printer. The printer requires service.
CHAPTER 1
LaserWriter Select 310 Hardware
Memory Capabilities 1
The standard configuration of the LaserWriter Select 310 printer comes with 1MB of ROM and 1.5 MB of DRAM. Figure 1-6 shows the positioning of the DRAM and ROM on the printer’s main circuit board.
Figure 1-6
SIMM card slot
DRAM
Detail of SIMM card
The ROM and DRAM locations on a printed circuit board
512K x 8
512K x 8
256K x 16
Centronics connector
Presents 32-bit interface to microprocessor
72-pin SIMM card accomodates up to 8 DRAM devices. Layout of devices on board depends upon manufacturer.
8-megabit ROM
Serial port
Pin 1 Pin 36 Pin 37 Pin 72
8 256K x 4 DRAMs provide 1 MB of storage. 8 1 megabit x 4 DRAMs provide 4 MBs of storage.
Note: You must use 32-bit wide SIMMs.

ROM Capability 1

The LaserWriter Select 310 printer has a single ROM installed on the board. It is an 8-megabit, 42-pin masked ROM, and it stores the diagnostic software, fonts, and PostScript interpreter required by the printer. Currently you cannot expand ROM capacity.

Memory Capabilities

9
Loading...
+ 47 hidden pages