
ImagemiterT~ II Tecru1ical Reference Manual For all Macintosh ... and Apple- II Computers. ALL IMPLIED WARRA;\;TlES OJ'; TilE !\lEnJA ThIS manu,d ana ,j('('Olllpallying soft\\'arp (('()lllpUlf'r A~D MANUALS. INCLllI>IN(J IMPLIED WARRANTIES OF ~IERCHAJ';TAHILITY AJ';J) prugr,lms) are ('op~Tightpd b~ Apple or by Appl("s FITNESS FOR A PARTICllLAR PrRPOSE. ARE supphrrs. with all rights rps('npd. lnder the ('op~nght laws. this manual may not be ['opi('d. in whole or in LIMITED IN Dr RATION TO NINETY (90) DAYS part. without the writrpn ron sent of Apple. This FROM THE DATE OF THE ORIGINAL RETAIL ex[,pplion does not allow cop ips to bp made for others, PURCHASE OF THIS PROI>l1CT. v.hPlher or not sold, but all of the material purc'hased E\-pn thou~h Applr has tpstl'd Ihr sofr\\an' ,lJld I'l'\il'\\,'d may be sold, given. or lent to another person. l;nder the the dorumrnlation. APPLE MAKES NO WARRANTY law, ropying indudes translating into another languagp. OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO SOFTWARE, ITS 4 'Apple Computer, In['., 1986 QUALITY, PERFORMANCE, MERCHANTABILITY, 20525 Mariani Avenue OR FITNESS FOR A PARTICULAR PllRPOSE. AS Cupertino, California 95014 A RESULT, THIS SOFTWARE IS SOLD "AS IS," AND YOU THE PURCHASER ARE ASSUMING THE Apple, the Apple logo, and ProDOS are registered ENTIRE RISK AS TO ITS QUALITY AND trademarks of Apple Computer. Inc. PERFORMANCE. ImageWriter and AppleTalk are trademarks of Apple IN NO EVENT WILL APPLE BE LIABLE FOR Computer, Inc. DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR Mac'intosh is a trademark of Mcintosh Laboratory, Inc., CONSEQUENTIAL DAMAGES RESULTING FROM and is being used with express permission of its owner. ANY DEFECT IN THE SOFTWARE OR ITS DOCUMENTATION, even if advised of the possibility Scribe is a registered trademark licensed to Apple of such damages. In particular. Apple shall have no Computer, Inc. by Unilogic, Ltd. liability for any programs or data stored ih or used with Apple products, including the costs of recovering such Instant Pascal is a registered trademark of TH1~K Technologies. Inc. programs or data. Microsoft is a trademark of Microsoft Corporation. THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN LIEU OF ALL Simultaneously published in the United States and OTHERS, ORAL OR WRITTEN, EXPRESS OR Canada. All rights reserved. IMPLIED. No Apple dealer, agent, or employee is authorized to make any modification, extension, or addition to this warranty. Limited Warranty on Media and Replacement Some states do not allow the exclusion or limitation of If you discover physical defects in the manuals implied warranties or liability for incidental or distributed with an Apple product or in the media on consequential damages, so the above limitation or which a software product is distributed, Apple will exclusion may not apply to you. This warranty gives you replace the media or manuals at no charge to you, specific legal rights, and you may also have other rights provided you return the item to be replaced with proof which vary from state to state. of purchase to Apple or an authorized Apple dealer during the 9O-day period after you purchased the software. In addition. Apple will replace damaged software media and manuals for as long as the software product is included in Apple's Media Exchange Program. While not an upgrade or update method, this program offers additional protection for up to two years or more from the dat.e of your original purchase. See your authoriU'd Apple dealer for program coverage and details. In some countries the replacement period may be different; check with your authorized Apple dealer. ----._- ~----- Apple® ImageWriterTM II Technical Reference Manual 111111 "' II ••.. Addison·Wesley Publishing Company, Inc. Reading, Massachusetts Menlo Park, California Don Mills, Ontario Wokingham, England Amsterdam Sydney Singapore Tokyo Madrid Bogota Santiago San Juan Copyright © 1986 by Apple Computer, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior written permission of the publisher. Printed in the United States of America. Published simultaneously in Canada. ISBN 0-201-17739-0 ABCDEFGHIJ-DO-89876 First printing, February 1986 Apple® ImageWriterTM II Technical Reference Manual Acknowledgments Manual Team Writers: Paul Black, Dave Marson Editor: Jody B. Larson Project Supervisor: Rolly Reed Art Supervisor: Nancy Hecht Production Supervisor: Rani Cochran Product Team Product Management: Curtis Sasaki Product Coordination: Ken Jochims Engineering: Allan Erbes, Matthew Hernandez, Tak Mori, Lyle Morris, Eric Ness, Mark Pruitt, Roger Thomson Testing: Brig Mills, Randy Thelen Contents Figures and Tables xi PREFACE About This Manual xix What This Manual Contains xix How to Use This Manual xxi Aids to Understanding xxi Where to Look for More Information xxii CHAPTER 1 Introduction 1 ImageWriter II Features 2 Using ImageWriter II Commands 3 Numbering Systems 4 Control Codes 5 Escape Sequences 5 Using Packaged Programs 6 Writing Programs 7 Applesoft BASIC 11 Microsoft BASIC 2.0 12 Pascal 13 Logo 14 Assembly Language 16 Debugging Programs: Hexadecimal Data Dump 17 Contents v CHAPTER 2 DIP Switches 19 Power-On Configuration 20 Setting DIP Switches 21 Descriptions of DIP Switch Functions 24 DIP Switch Assembly 1 24 Alternate Language Characters 24 Form Length 25 Perforation Skip 25 Character Pitch 26 Automatic Line Feed After Carriage Return 26 DIP Switch Assembly 2 26 Baud Setting 27 Communication Protocol 27 Option Card Enabled 27 Hammer-Fire Timing 27 CHAPTER 3 Software Switches 29 How to Set Software Switches 30 Descriptions of Software-Switch Printer Commands 34 Alternate Language Characters 34 Response to Software Select-Deselect 34 Automatic Line Feed When Line Is Full 34 Print Commands 35 Automatic Line Feed After Carriage Return 35 Slashed and Unslashed Zeros 35 Perforation Skip 35 Ignore or Include Eighth Data Byte 36 Contents CHAPTER 4 Character Sets and Type Attributes 37 Character Set Selection 38 Print-Quality Fonts 39 MouseText 40 Alternate Language Characters 42 User-Designed Characters 44 Type Attributes 46 Character Pitch 46 Proportional Character Spacing 48 Double-Width Printing 50 Underlining Text 51 Boldfacing Text 52 Half-Height Text 52 Subscript and Superscript Text 54 Slashed and Unslashed Zeros 56 CHAPTER 5 Page Formatting 57 Page Boundaries 58 Left Margin Setting 59 Page Length 61 Print Head Motion 62 Carriage Return 62 Unidirectional Printing 63 Backspacing 64 Contents vii Tabbing 65 Setting a Line of Tab Stops 66 Adding a Single Tab Stop 67 Using Tabs 67 Clearing Tab Stops 67 Exact Print Head Placement 68 Paper Motion 68 Top of Form Set 69 Form Feed 69 Line Feeds 70 Line Feed Spacing 72 Line Feed Direction 73 Perforation Skip 73 Paper-Out Sensor 74 Automatic Carriage Returns and Line Feeds 75 Carriage Return Insertion 75 Automatic Line Feed After Carriage Return 77 Automatic Line Feed When Line Is Full 79 CHAPTER 6 Miscellaneous Commands 81 Print Commands 82 Character Repetition 83 Cancel Current Line 85 Ignore or Include Eighth Data Bit 85 Software Reset 87 Software Select-Deselect 87 SelfID 88 viU Contents CHAPTER 7 Custom Characters 91 Creating Custom Characters 92 Loading Custom Characters 94 Printing Custom Characters 98 ASample Custom Character 99 CHAPTER 8 Graphics and Color Printing 103 Bit Image Printing 104 Graphics Commands 105 Graphics Data 107 Dot Spacing 112 Generating a Graphics Pattern 114 Dot-Column Repeating Graphics 118 Exact Print Head Placement 120 Color Printing 123 CHAPTER 9 ImageWriter II Options 127 SheetFeeder 128 32K Memory 129 AppleTalk 131 APPENDIX A Command Summary 133 Printer Defaults 134 DIP Switches 136 Software Switches 138 Control Codes 139 Contents APPENDIX B ASCII, Binary, and Hexadecimal Codes 147 APPENDIXC Character Specifications 153 Draft-Quality Characters 154 Correspondence-Quality Characters 160 Correspondence-Quality Fixed-Width Characters 160 Correspondence-Quality Proportional Characters 166 Near-Letter-Quality Characters 172 Near-Letter-Quality Fixed-Width Characters 172 Near-Letter-Quality Proportional Characters 178 APPENDIXD Printer Specifications 183 APPENDIXE Interface Specifications 187 Signal Descriptions 190 Communication Protocol 192 Hardware Handshake 193 XON/XOFF 193 Glossary 195 Index 201 Quick Reference Card Tell Apple Card x Contents Figures and Tables CHAPTER 1 Introduction 1 Table 1-1. Sending Characters to the Printer 8 Figure 1-1. Applesoft BASIC and Macintosh Pascal Sample Programs 10 Figure 1-2. Sample Programs' Printer Output 11 Figure 1-3. Applesoft BASIC Example: Sending 8-bit Data 12 Figure 1-4. Microsoft BASIC Sample Program 13 Figure 1-5. Apple Logo II Sample Program 14 Figure 1-6. 64K Apple Logo Sample Procedure 15 Figure 1-7. ProOOS Assembler Sample Program 16 CHAPTER 2 DIP Switches 19 Figure 2-1. Location of DIP Switches 21 Table 2-1. DIP Switch Functions 22 Figure 2-2. Alternate Language Characters 24 CHAPTER 3 Software Switches 29 Figure 3-1. Setting Software Switches A-I, A-3, and A-7 31 Table 3-1. Software Switch Commands 31 Table 3-2. Software Switches 32 Figure 3-2. Applesoft BASIC Example: Manipulating the Serial Port 33 Figures and Tables CHAPTER 4 Character Sets and Type Attributes 37 Table 4-1. Font Selection Commands 39 Figure 4-1. Applesoft BASIC Example of Font Selection 40 Figure 4-2. Macintosh Pascal Example of Font Selection 40 Table 4-2. MouseText Character Commands 41 Figure 4-3. Applesoft BASIC Example of MouseText Selection 42 Figure 4-4. Macintosh Pascal Example of MouseText Selection 42 Table 4-3. Alternate (National) Character Group Commands 43 Figure 4-5. Applesoft BASIC Example of Alternate (National) Character Group Selection 43 Figure 4-6. Macintosh Pascal Example of Alternate (National) Character Group Selection 44 Table 4-4.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages227 Page
-
File Size-