Apple 310 User Manual
Size:
357.26 Kb
Download

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-DOSis 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

About This Note

ix

 

 

 

 

 

 

 

 

 

 

 

 

What This Note Contains

 

ix

 

 

 

 

Conventions Used in This Note

x

 

 

 

Other Reference Material

 

x

 

 

 

 

For More Information

 

xi

 

 

 

 

 

Chapter 1

LaserWriter Select 310 Hardware

1

 

 

 

 

 

 

 

 

 

 

Communication Ports

 

4

 

 

 

 

 

 

Serial Port for RS-232CDevices

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

 

 

 

 

 

 

Chapter 2

LaserWriter Select 310 Software

15

 

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

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-LineRecognition

43

 

 

 

New Operators

44

 

 

 

 

 

TrueType Fonts

44

 

 

 

 

Chapter 3

Communication Channels

45

 

 

 

 

 

 

 

 

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

 

v

Figures and Tables

Chapter 1

LaserWriter Select 310 Hardware

1

 

 

 

 

 

 

Figure 1-1

LaserWriter Select 310 printer side panel connectors

4

 

Figure 1-2

An 8-pinserial port connector

5

 

 

 

 

 

Figure 1-3

A Centronics parallel connector

6

 

 

 

 

 

Figure 1-4

Timing for a Centronics interface

7

 

 

 

 

 

Figure 1-5

Status lights

8

 

 

 

 

 

 

 

Figure 1-6

The ROM and DRAM locations on a printed circuit board

9

 

Figure 1-7

Paper handling options

13

 

 

 

 

 

 

Table 1-1

LaserWriter Select 310 printer features

 

3

 

 

 

Table 1-2

Signal descriptions for an 8-pinserial port

5

 

 

 

Table 1-3

Signal descriptions for a Centronics parallel port

6

 

 

Table 1-4

Status light messages

8

 

 

 

 

 

 

Table 1-5

Available page types

11

 

 

 

 

 

Chapter 2

LaserWriter Select 310 Software

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 2-1

Paper tray selection operators

18

 

 

 

 

 

Table 2-2

Product string values

19

 

 

 

 

 

 

Table 2-3

Compatibility operators

20

 

 

 

 

 

 

Table 2-4

LaserWriter Select 310 Parameters

21

 

 

 

Chapter 3

Communication Channels

45

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 3-1

SCC operator encoding

49

 

 

 

 

 

 

Table 3-1

Default settings for the serial communication channel

 

 

 

parameters

46

 

 

 

 

 

 

 

Table 3-2

Data and parity choices for the LaserWriter Select 310

 

 

 

printer

47

 

 

 

 

 

 

 

 

Table 3-3

SCC compatibility operators options byte values

48

 

 

Table 3-4

Reserved characters in simple communication protocol

49

 

Table 3-5

Control characters in binary serial protocol

51

 

 

 

Table 3-6

Settings for the serial output channel during parallel

 

 

 

 

communication

53

 

 

 

 

 

 

vii

P R E F A C E

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 AdobePostScriptLevel 1 programming language. This developer note describes the 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.

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-incommunications 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

P R E F A C E

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.

W AR N I N G

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, Courier, is used for characters that you type or for lines of program code.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 byAddison-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 AddisonWesley, 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 byAddison-Wesley,is written for programmers who want to take advantage of the PostScript program language to design efficient PostScript programs and

printer devices.

x