Lexmark FORMS 249X, FORMS 248X User Manual

Forms Printer 248x/249x
Technical Reference
October 2000
www.lexmark.com
Third Edition (October 2000) The following paragraph does not apply to the United Kingdom or any country
where such provisions are inconsistent with local law: LEXMARK INTERNA-
TIONAL, INC. PROVIDES THIS PUBLICATION “AS IS” WITHOUT WAR­RANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in later editions of the publication. Improvements and/or changes in the product(s) and/or the program(s) described in this publication may be made at any time.
Publications are not stocked at the address given below; requests for publications should be made to your point of purchase.
A form for reader's comments is provided at the back of this publication. If the form has been removed, comments may be addressed to Lexmark International, Inc., Department F95/035-3, 740 New Circle Road N.W., Lexington, Kentucky 4051 1-1876, U.S.A. Lexmark may use or distribute any of the information you sup­ply in any way it believes appropriate without incurring any obligation to you.
Lexmark is a trademark of Lexmark International, Inc. Other trademarks are the property of their respective owners.
© Copyright Lexmark International, Inc. 1993, 2000. All rights reserved.
UNITED STATES GOVERNMENT RESTRICTED RIGHTS
This software and documentation are pr ovided with RESTRICTED RIGHTS. Use, duplication or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and in applicable F AR pr ovisions: Lexmark Interna­tional, Inc., Greenwich, CT 06836.
Contents
Section 1 - Introduction . . . . . . . . . . . . . . . . . . . . . . . . 9
Available Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Physical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Print Speeds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Printhead Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
248x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
249x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Printhead Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Environmental Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Optimum Temperature Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Vibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Clearances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Power Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Power Consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Alternating Current Line Voltage Power. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Power Cord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Noise Emission Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Paper Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2480/2490 (Narrow Carriage Models). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2481/2491 (Wide Carriage Models) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Ribbon Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Power-On Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Printer Test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Programming Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Section 2 - Set Initial Conditions (SIC) Command. . 21
SIC Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Section 3 - IBM Emulation Mode Printer Commands 27
Control Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Escape Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Printer Command Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Example of IBM Emulation Mode Printer Command. . . . . . . . . . . . . . . . . . . . . . . . 30
Printer Command Quick Reference (IBM Emulation Mode) . . . . . . . . . . . . . . . . . . . . . . 31
Selecting a Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Select Character Set 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
iii
Select Character Set 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Select Code Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Print From Code Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Continuously Print Characters from a Code Page. . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Print One Character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Download a Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Select Global Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Select 12 cpi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Select Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Select Print Type Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Emphasized (Bold) Print . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Double-Strike Print . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Superscript or Subscript. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Set Print Direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Continuous Double-wide Printing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Score Select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Continuous Underline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Continuous Overscore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Set Print Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Graphics Print Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Normal Density Bit Image Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Mode and Horizontal Density (249x Only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Dual-Density Bit Image Graphics (Half Speed) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Dual-Density Bit Image Graphics (Normal Speed). . . . . . . . . . . . . . . . . . . . . . . . . . 52
High-Density Bit Image Graphics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Horizontal Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Set Horizontal Tabulation Stops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Set Default Tabulation Stops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Set Horizontal Margins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Move Current Print Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Line Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Automatic Line Feed (LF). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Reverse Line Feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Move Paper Vertically. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Set Vertical Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Vertical Tabulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Set Vertical Tabulation Stops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Line Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Set Line Spacing to 1/8 Inch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Set Line Spacing to 7/72 Inch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Activate Line Spacing for Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Set Line Spacing for Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Set Line Spacing for Graphics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Porportional Space Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Set Top of Form and Page Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Set Top of Form. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
iv
Set Page Length in Inches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Set Page Length in Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Set Skip Perforation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Cancel Skip Perforation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Printer Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Deselect Printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Setup Barcode Parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Setup Barcode Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Section 4 - Epson Mode Printer Commands . . . . . . 65
Font Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Text Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Graphics Print Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Horizontal Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Vertical Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Line Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Page Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Printer Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Other Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Section 5 - OKI Microline Mode Printer Commands 79
Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Character Size and Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Character Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Custom Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Graphics Print Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Horizontal Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Vertical Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Other Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Section 6 - Using the Printer Interface . . . . . . . . . . . 91
Parallel Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Parallel Interface Voltage Levels. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Computer to Printer Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Serial Interface Option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
How to Connect the RS-232C Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Serial Cable Pin Assignments (RS-232C). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Serial Interface Cable (RS-232C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Using an IBM AT Personal Computer (RS-232C) . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Universal Serial Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Serial Communication Parameters (RS-232C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
v
Serial Computer Configuration Recommendations (RS-232C) . . . . . . . . . . . . . . . 103
Section 7 - Downloading Characters and Fonts . . 105
248x Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Designing Draft and NLQ Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Designing Fast Draft Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Designing NLQ II Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Downloading Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Designing and Downloading the Draft/NLQ Copyright (©) Symbol . . . . . . . . . . . 113
249x Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Designing and Downloading Characters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Managing the Download Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Designing Monospaced Fast Draft Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Designing Monospaced Draft Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Designing Proportionally Spaced Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Designing Enhanced Letter Quality Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Section 8 - Barcodes. . . . . . . . . . . . . . . . . . . . . . . . . 147
Barcode Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Data Transfer Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Barcode Symbologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Notes For Barcode Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Section 9 - Code Pages . . . . . . . . . . . . . . . . . . . . . . 187
Code Page 437 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Code Page 437G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Code Page 813 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Code Page 850 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Code Page 851 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Code Page 853T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
Code Page 857 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Code Page 858 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Code Page 860 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
Code Page 861 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Code Page 863 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Code Page 865 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
Code Page 869 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Code Page 920 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
Code Page 1004 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Code Page 1053 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Printing a Code Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Set Font Global, ESC [I. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Character Sets 1 and 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
vi
Character Set 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Character Set 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
vii
viii

Introduction

Section
Your dot-matrix printer is an easy-to-use desktop printer that provides low­cost, high-quality output from your personal computer. It handles cut forms, document-on-demand, and continuous form applications.
Your printer is a wire-matrix printer. The printer makes impressions by forcing a hardened wire against an ink ribbon to transfer ink to the paper on impact. A dot is printed each time the wire strikes the ribbon against the paper. This impact printing technology has unique capabilities. The information in this manual enables you to fully use the capabilities of dot-matrix impact printing.
This book applies to the Lexmark Forms Printer 2400 Series dot-matrix family of printers. Differences that occur between printer models are noted.
The information in this manual is intended primarily for hardware and software programmers, engineers, technicians, and others who require in­depth technical information. If you need information to operate your printer, see your User’s Guide.
1
Section 1: Introduction
7

Available Options

Options Part Number
1329605 (10 ft.),
Parallel Cable
Serial interface
• Internal RS-232
• Serial cable
Auto Sheet Feeder­Narrow Carriage
Auto Sheet Feeder­Wide Carriage
Tractor 2 Feeder­Narrow Carriage
Tractor 2 Feeder­Wide Carriage
USB cable 12A2405 Yes Yes Yes Yes 248x OKI emulation 12T0155 Yes Yes No No Cut Sheet Output
Support Stand
1427498 (20 ft.), or equivalent
12T0154 1038693 (50 ft), or equivalent
12T0150 Yes No Yes No
12T0151 No Yes No Yes
12T0152 Yes No Yes No
12T0153 No Yes No Yes
12T0014 Yes Yes Yes Yes
2480 2481 2490 2491
Yes Yes Yes Yes
Yes Yes
Yes Yes
Yes Yes
Yes Yes

Physical Characteristics

Width Height Depth Weight
8
2480/2490
2481/2491
Section 1: Introduction
491.5 mm (18.75 in.)
633.5 mm (24.35 in.)
195 mm (7.36 in.)
195 mm (7.36 in.)
290 mm (11.28 in.)
290 mm (11.28 in.)
8.0 kg (14.8 lb)
9.8 kg (18.7 lb)

Print Speeds

Your printer supports the following burst print speeds in characters per second (cps).
Mode 2480/2481 2490/2491
Fast Draft
• 10 cpi
• 12 cpi
Draft
• 10 cpi
• 12 cpi
Near Letter Quality ­Gothic, Courier
• 10 cpi
• 12 cpi
Letter Quality ­Prestige, Presentor, Orator, and Script
• 10 cpi
• 438 cps
• 510 cps
• 309 cps
• 304 cps
• 77 cps
• 76 cps
N/A 91 cps
• 409 cps
• 465 cps
• 274 cps
• 328 cps
• 91 cps
• 109 cps

Printhead Description

Your printer uses dot-matrix impact technology to generate characters. The 248x has a 9-wire printhead. The 249x has a 24-wire printhead.

248x

The 248x printhead has nine wires arranged in a single vertical column. The diameter of each wire is 0.30 mm (0.012 in.). The center-to-center distance between wires is 0.353 mm (1/72 in.). The printhead has an impact force sufficient to generate readable copies on multipart forms and envelopes up to and including 6-ply forms (original plus 5 copies).

249x

The 249x printhead has twenty-four wires arranged in two parallel vertical columns of twelve wires each. The diameter of each wire is 0.22 mm (0.009 in.). The wires in each of the rows are vertically separated to produce a 0.141 mm (1/ 180 in.) space between the centers of adjacent dots. The printhead has an impact force sufficient to generate readable copies on multipart forms and envelopes up to and including 4-ply forms (original plus 3 copies).
Section 1: Introduction
9

Printhead Movement

The printhead moves by a direct-current stepper motor. The printhead can print while moving in both directions (bidirectional print).
When the printhead is printing in both directions, it automatically finds the shortest path to print the next line.
The maximum velocity of the printhead is 1117.6 mm (44 in.) per second for the 248x and 1041.4 mm (41 in.) per second for the 249x.

Environmental Conditions

Optimum Temperature Ranges

Condition Operating Stored Shipping
Ambient air temperature range
Humidity range 8.0% to 90% 5.0% to 100% 5.0% to 100%
+10° to +40.6°C (+50° to +105°F)

Vibration

Although this desktop printer is portable and durable, do not operate or place the printer in vibration-prone areas. For best results, operate the printer on a level surface.

Clearances

Printer operation produces natural convection, or airflow. To allow sufficient airflow, make sure there is 50.8 mm (2 in.) of space around all exposed surfaces.

Power Requirements

+1° to +60°C +34° to +140°F
-40° to +60°C (-40° to +140°F)

Power Consumption

38 W average operating power
7 W average idle power
10
Section 1: Introduction

Alternating Current Line Voltage Power

Your printer uses one of the following alternating current (ac) line voltage power values.
Note: Input voltage value varies with the country where the printer was pur-
chased.
90-137 V ac, 50/60 Hz
180-265 V ac, 50/60 Hz

Power Cord

Printers for the United States and Canada have a 1.83 m (6.0 ft) power cord. Printers for all other countries have a 2.74 m (9.0 ft) power cord, with the correct plug to match the country requirements.

Noise Emission Value

The following are noise emission values for your printer.
Noise Emission Values 248x-001 249x-001
Operating 4 Mic Average, Draft Operating Front Mic Average, Draft Operating 4 Mic Average, NLQ Operating Front Mic Average, NLQ IDLE (standby mode)
All measurements were made in accordance with ISO 7779.
57 dB(A) N/A 56 dB(A) N/A 54 dB(A) 55 dB(A) 53 dB(A) 53 dB(A)
0 dB(A) 0 dB(A)
Section 1: Introduction
11

Paper Specifications

2480/2490 (Narrow Carriage Models)

Cut Forms Continuous Forms
Paper
2
2
Multiple part
297 mm
(11.7 in.)
See Note
N/A 241 mm
76 mm
(3.0 in.)
Page Length
559 mm
(22.0 in.)
76 mm
(3.0 in.)
N/A 90 g/m
N/A 56 g/m
See Note 0.058 mm
Single
Width
254 mm
(10 in.)
(9.5 in.)
76 mm
(3.0 in.)
(2.5 in.)
559 mm
(22.0 in.)
3.2 mm
(0.125 in.)
Weight
(24 lb.)
(15 lb.)
(0.0023 in.)
Dimensions
Maximum 297 mm
Maximum Hole to Hole
Minimum 76 mm
Minimum Hole to Hole
Note: When the optional Auto Sheet Feeder or Tractor 2 Feeder is installed, the max­imum width of a cut form is 215 mm (8.5 in.) for manual loading.
Maximum 559 mm
Minimum 76 mm
Maximum 90 g/m
Minimum 60 g/m
Note: Thickness up to 0.512 mm (0.0202 in.) for 2480/2481 printers; up to0.36 mm (0.015 in.) for 2490/2491 printers.
Single
(11.7 in.)
See Note
N/A
See Note
(3.0 in.)
N/A N/A 63 mm
(22.0 in.)
(3.0 in.)
(24 lb.)
(16 lb.)
Thickness - Multiple Part Forms of 45 g/m2 (12 lb.) paper
0.058 mm
(0.0023 in.)
Multiple part
254 mm
(10 in.)
241 mm
(9.5 in.)
76 mm
(3.0 in.)
63 mm
(2.5 in.)
559 mm
(22.0 in.)
3.2 mm
(0.125 in.)
2
2
N/A 90 g/m
N/A 75 g/m
See Note 0.042 mm
Envelopes
241 mm
(9.5 in.)
152 mm
(6.0 in.)
152 mm
(6.0 in.)
110 mm
(4.1 in.)
(0.017 in.)
N/A
N/A
2
(24 lb.)
2
(20 lb.)
12
Section 1: Introduction

2481/2491 (Wide Carriage Models)

Cut Forms Continuous Forms
Paper
2
2
Multiple part
420 mm
(16.5 in.)
76 mm
(3.0 in.)
Page Length
559 mm
(22.0 in.)
76 mm
(3.0 in.)
N/A 90 g/m
N/A 56 g/m
See Note 0.058 mm
Single
Width
406 mm
(16.0 in.)
(15.5 in.)
76 mm
(3.0 in.)
(2.5 in.)
559 mm (22.0 in)
3.2 mm
(0.125 in.)
Weight
(24 lb.)
(15 lb.)
(0.0023 in.)
Dimensions
Maximum 420 mm
Maximum
Hole to Hole
Minimum 76 mm
Minimum
Hole to Hole
Maximum 559 mm
Minimum 76 mm
Maximum 90 g/m
Minimum 60 g/m
Note: Thickness up to 0.512 mm (0.0202 in.) for 2480/2481 printers; up to0.36 mm (0.015 in.) for 2490/2491 printers.
Single
(16.5 in.)
N/A N/A 393 mm
(3.0 in.)
N/A N/A 63 mm
(22.0 in.)
(3.0 in.)
(24 lb.)
(16 lb.)
Thickness - Multiple Part Forms of 45 g/m2 (12 lb.) paper
0.058 mm
(0.0023 in.)
Multiple part
406 mm
(16.0 in.)
393 mm
(15.5 in.)
76 mm
(3.0 in.)
63 mm
(2.5 in.)
559 mm
(22.0 in.)
3.2 mm
(0.125 in.)
2
2
N/A 90 g/m
See Note 0.053 mm
Envelopes
241 mm
(9.5 in.)
N/A
152 mm
(6.0 in.)
N/A
152 mm
(6.0 in.)
110 mm
(4.1 in.)
(24 lb.)
75 g/m
(20 lb.)
(0.021 in.)
2
2
Section 1: Introduction
13
Pap er Size Narrow carriage (2480/2490) Wide carriage (2481/2491) Automatic Feed Mode (single-part form)
Length 139.7 mm (5.5 in.)
minimum
355.6 mm (14.0 in.) maximum
Width 105 mm (4.13 in.)
minimum
215.9 mm (8.5 inch) maximum
Tractor Feeder (continuous forms)
Length 76 mm (3.0 in.)
minimum N/A
maximum
Width 76 mm (3.0 in.)
minimum 254 mm (10 in.)
maximum
Notes:
1
For paper width greater than 8.5 inches.
139.7 mm (5.5 in.) minimum
355.6 mm (14.0 in.) (See Note 1) maximum
558.8 mm (22 in.) (See Note 2) 105 mm (4.13 in.)
minimum 364 mm (14.3 in.)
maximum
76 mm (3.0 in.) minimum
N/A maximum
76 mm (3.0 in.) minimum
406 mm (16.0 in.) maximum
2 For paper width up to 8.5 inches.
Manual Feed (cut sheets)
Length 76.2 mm (3.0 in.)
minimum
558.8 mm (22.0 in.) maximum
Width 76.2 mm (3.0 in.)
minimum
279.4 mm (11.0 in.) maximum
Paper Weight 16 ~ 24 lbs (60 ~ 90 g/m
76.2 mm (3.0 in.) minimum
558.8 mm (22.0 in.) maximum
76.2 mm (3.0 in.) minimum
420 mm (16.5 in.) maximum
2
)
14
Section 1: Introduction

Ribbon Specifications

The life expectancy of the 2300/2400 series standard re-inking ribbon is approximately 4 million characters in 10 characters per inch (cpi) draft mode. For replacement ribbon, order ribbon number 11A3540.
Length: 1.8 m (6.0 ft) Width: 8 mm (0.315 in.) Fabric: Nylon
High yield re-inking ribbon is available for the 2400 series printer. It has a life expectancy of approximately 8 million characters in 10 cpi draft mode. For replacement ribbon, order ribbon number 11A3550.
Length: 2.5 m (8.3 ft) Width: 8 mm (0.315 in.) Fabric: Nylon

Diagnostics

This section discusses diagnostics at power-on and how to do the printer test.

Power-On Diagnostics

The following tests are performed when the printer is turned On.
• RAM Test
• Font ROM/Microcode Sum Test
• Timer/Interrupt Controller Test
• NVRAM Test
Switch Scan Test of the operator panel
• Carrier Initialization
• Paper Feed Initialization If any errors occur during the tests, a combination of blinking LEDs indicate
which test failed.

Printer Test

You can run a Printer Test to aid in problem determination. In addition to the normal power-on internal tests (see “Power-On Diagnostics” on page 15), the printer test generates a sample printout.
This test printout can be printed either with or without connecting the printer to your computer.
Section 1: Introduction
15
To run the printer test, follow these steps:
Make sure the paper and ribbon are installed.
1
Turn the printer Off.
2
Press Line Feed while you turn the printer On.
3
After a few seconds, release Line Feed.
4
To stop or interrupt the printer test:
Press Start/Stop. The test stops after a complete line of characters has
1
printed. Press Start/Stop to continue the printer test.
2

Programming Examples

Examples in this manual have been formatted to be processed by a simple BASIC program. The BASIC program reads an input file and writes data to an output file. Printer commands may be entered into the input file in a hexadecimal format and enclosed with opening and closing delimiters.
The opening delimiter is a less-than symbol, ’<’, followed by an ’x’. The ’x’ may be either upper or lower case. The closing delimiter is a greater-than symbol,
’>’.
Within the delimiters, hexadecimal data must be presented in two-digit pairs. White space, blanks, carriage returns and line feeds may be used between the pairs. In addition, a comment may be added to the end of a line by using a minus sign, ’-’, at the start of the comment. All data after a minus sign is ignored until a carriage return or line feed is encountered.
The example format used in this book is shown below:
<x 1B36 1B5B0400000001B5 1B5B640100A0 1B5B4905000055007801 >
All of the examples use this encoding method and have been tested using the following BASIC program:
1000 INPUT "Enter file name to be printed"; FILENAME$ 1010 OPEN FILENAME$ FOR INPUT AS #1 1020 OPEN "prtrout.bin" FOR OUTPUT AS #2 1030 WHILE EOF(1) = 0 1040 I$ = INPUT$(1, #1)
-
select character set 2
-
select code page 437
-
set print quality to letter quality
-
set font global to Courier 12
16
Section 1: Introduction
1050 IF(I$ <> "<")THEN PRINT #2,I$;: GOTO 1090 1060 I$ = INPUT$(1, #1) 1070 IF(I$ = "x")OR (I$ = "X") THEN GOSUB 1130: GOTO 1090 1080 IF(I$ = "<")THEN PRINT#2,I$;: GOTO 1090 ELSE GOTO 1290 1090 WEND 1100 CLOSE #1: CLOSE #2: 1110 SHELL "copy prtrout.bin/b lpt1 >nul" 1120 END 1130 '--------------------process hex mode data------------­1140 WHILE EOF(1) = 0 1150 I$ = INPUT$(1, #1) 1160 IF(I$ = " ")OR(I$ = CHR$(10))OR(I$ = CHR$(13))THEN GOTO 1230 1170 IF(I$ = "-")THEN GOSUB 1300: GOTO 1230 1180 IF(I$ = ">") THEN RETURN 1190 GOSUB 1250: N1 = N 1200 IF EOF(1) GOTO 1290 1210 I$ = INPUT$(1,#1): GOSUB 1250 1220 PRINT #2,CHR$((N1 * 16) + N); 1230 WEND 1240 RETURN 1250 '--------------------hex digit conversion-------------­1260 IF(I$ >= "0") AND (I$ <= "9")THEN N= ASC(I$)-48:RETURN 1270 IF(I$ >= "A") AND (I$ <= "F") THEN N= ASC(I$)-55:RETURN 1280 IF(I$ >= "a") AND (I$ <= "f")THEN N= ASC(I$)- 87: RETURN 1290 PRINT "Invalid hexadecimal data - [" + I$ + "]": STOP 1300 '----------------comments bypass subroutine-----------­1310 WHILE EOF(1) = 0 1320 I$ = INPUT$(1, #1) 1330 IF (I$ = CHR$(10)) OR (I$ = CHR$(13)) THEN RETURN 1340 WEND 1350 GOTO 1100
Section 1: Introduction
17
18
Section 1: Introduction

Set Initial Conditions (SIC) Command

The SIC command sets the printer to the default values that were set at the factory or to user-defined defaults.

SIC Command Format

Use the following format:
Format ESC [ K Ln Hn init ID p1...p22 Decimal 27 91 75 Ln Hn Hex 1B5B4BLnHn
Ln is the number of parameters plus 2. Hn is 0. The decimal and hexadecimal digits for the printer command appear below the
printer command format.
Section
2
Section 2: Set Initial Conditions (SIC) Command
21
init sets the printer to user-defined or factory settings. The value for init can be:
Initial Values Description
Initializes printer to user-defined settings. The download font remains unchanged. If parameters are specified, they over­write the default settings. If the emulation mode is changed,
0
1
4
the download font is initialized. This command only copies data from the selected macro, add parameter changes, if any, and store in working RAM; the data stored in the macro’s non­volatile RAM is not affected.
Initializes printer to user-defined settings. The download font is initialized. If parameters are specified, they overwrite the default settings. This command only copies data from the selected macro, add parameter changes, if any, and store in working RAM; the data stored in the macro’s non-volatile RAM is not affected.
Initializes printer to factory settings. The download font remains unchanged. If parameters are specified, they over­write the default settings. If the emulation mode is changed, the download font is initialized. This command only copies the default settings from ROM, add parameter changes, if any, and store in working RAM; the data stored in the macro’s non-vol­atile RAM is not affected.
5
254
255
Initializes printer to factory settings. The download font is ini­tialized. If parameters are specified, they overwrite the default settings. This command only copies the default settings from ROM, add parameter changes, if any, and store in working RAM; the data stored in the macro’s non-volatile RAM is not affected.
Initializes printer to user-defined settings. The download font is initialized. If parameters are specified, they overwrite the default settings. This command changes data stored in the selected macro. It copies data from the selected macro, add parameter changes, if any, and store in working RAM and in the selected macro. It also changes the default macro to the value of parm 3.
Initializes printer to default settings. The download font is ini­tialized. If parameters are specified, they overwrite the default settings. This command changes data stored in the macro’s non-volatile RAM. It copies default settings from ROM, add parameter changes, if any, and store in working RAM and all macros. It also sets the default macro to Disable.
22
Section 2: Set Initial Conditions (SIC) Command
Use the following parameters (parms) with SIC commands that use the printer ID of C5 and C6:
Printer
2480 2481 2490 2491
Parm Description Selection Dec Hex
1 Emulation 0=No Change
2 Panel Disable
(see Note 1)
3 Macro
(see Note 2)
Dec Hex
197 C5 197 C5 198 C6 198 C6
1=PPDS 2=Epson
0=No Change 1=Panel Disabled 2=Panel Enabled
0=No Change 1=Macro 1 2=Macro 2 3=Macro 3 4=Macro 4 255=Disable Macro
0 1 2
0 1 2
0 1 2 3 4 255
00 01 02
00 01 02
00 01 02 03 04 FF
Notes:
1
You can disable specific buttons on the operator panel. The upper 6 bits of parm 2 represent the different buttons on the operator panel. The lower 2 bits are reserved to enable or disable the panel.
Bit Off On
7. Font Disabled Enabled
6. Pitch Disabled Enabled
5. Micro
4. Micro
3. LF Disabled Enabled
2. Macro Disabled Enabled
Bits 0 and 1 allow for existing panel disable functions. To disable the panel or any of the buttons, bit 0 must be On. The Start/Stop button and the Form Feed button are always enabled.
In the following example the Micro
Format ESC [ K Ln Hn init ID P1 P2 Decimal 27 91 75 04 00 254 197 00 49 Hex 1B5B4B0400FEC50031
Ç È
Disabled Enabled Disabled Enabled
and Micro È buttons are enabled:
Ç
Section 2: Set Initial Conditions (SIC) Command
23
Parm Description Selection Dec Hex
Notes (cont.):
2 If Parm 3 has no value (macro has not been supplied), the printer default macro is
used to store the change. When init=04H or 05H is specified, parm3 is ignored.
When init=00H, 01H, FEH, FFh are specified, parm3 value is used as Macro No. instead of Default Macro setting No.
When init=FEH, FFh are specified parm3 value is overwritten to Default Macro setting in NVRAM. When the disable(=255) is set to parm3 Macro No.1 setting is used to initialize.
4 Font 0=No Change
1=Fast Draft 2=Draft
3=Gothic 4=Courier 5=Download Font 6=Prestige (249x Plus only) 7=Presentor (249x Plus only) 8=Orator (249x Plus only) 9=Script (249x Plus only)
5 Pitch 0=No Change
1=10 Pitch 2=12 Pitch 3=15 Pitch 4=17.1 Pitch 5=20 Pitch 6=PS 7=24 Pitch (249x Plus only)
0 1 2 3 4 5 6
7
8
9
0 1 2 3 4 5 6 7
00 01 02 03 04 05 06
07
08
09
00 01 02 03 04 05 06 07
24
Section 2: Set Initial Conditions (SIC) Command
Parm Description Selection Dec Hex
6 Code Page 0=No Change
1=437 2=850
3=860 4=863
5=865 6=437G 7=813 8=851 9=853T 10=857 11=869 12=920 13=1053 14=861 15=1004 16=858
7 Form Length 0=No Change
1=1 to 176 Lines
8 Lines Per Inch 0=No Change
1=3 2=4 3=6 4=8
9 Left Margin 0=No Change
1=0 Inch 2=1 Inch 3=2 Inches
4=3 Inches
10 Right Margin 0=No Change
1=4 Inches 2=5 Inches 3=6 Inches 4=7 Inches 5=8 Inches
6=13.6 Inches (2491 models only)
11 Bottom Margin 0=No Change
1=0 Inch 2=1/2 Inch 3=1 Inch 4=2 Inches 5=3 Inches
12 Alarm 0=No Change
1=Disable Alarm 2=Enable Alarm
13 Auto CR 0=No Change
1=On 2=Off
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 1
0 1 2 3 4
0 1 2 3 4
0 1 2 3 4 5 6
0 1 2 3 4 5
0 1 2
0 1 2
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00 01
00 01 02 03 04
00 01 02 03 04
00 01 02 03 04 05 06
00 01 02 03 04 05
00 01 02
00 01 02
Section 2: Set Initial Conditions (SIC) Command
25
Parm Description Selection Dec Hex
14 Auto LF 0=No Change
1=On 2=Off
15 Slash Zero 0=No Change
1=Slashed Zero 2=Normal Zero
16 Character Set 0=No Change
1=Set 1 2=Set 2
17 Print Direction 0=No Change
1=Unidirectional 2=Bidirectional
18 Sheet Feeder 0=No Change
1=Disable 2=Enable
19 Lock 0=No Change
1=Font Lock 2=Pitch Lock 3=Font and Pitch Lock 4=Font and Pitch Unlock 254=SIC Command Lock 254=SIC Command Unlock
20 FF Enable
(2480 only)
21 TOF Read 0=No Change
22 Tractor 0=No Change
23 Tear Off 0=No Change
0=No Change 1=Ignore FF 2=Honor FF
1=TOF Read Disable 2=TOF Read Enable
1=Tractor 1 2=Tractor 2
1=On 2=Off 3=One Second
0 1 2
0 1 2
0 1 2
0 1 2
0 1 2
0 1 2 3 4 5 6
0 1 2
0 1 2
0 1 2
0 1 2
00 01 02
00 01 02
00 01 02
00 01 02
00 01 02
00 01 02 03 04 05 06
00 01 02
00 01 02
00 01 02
00 01 02
26
Section 2: Set Initial Conditions (SIC) Command

IBM Emulation Mode Printer Commands

This section provides a detailed description of IBM emulation mode commands you can use with your printer.

Control Codes

Control codes are one-character printer commands that are used to:
Manage the printing of a job.
Control the movement of the cursor, which changes the current print position.
• Control primary and secondary font selection.
The first 32 characters of the Standard ASCII table are control codes. This printer uses the following control codes.
Code Name
Null NUL Null character. 0 00
Symbol Description
Section
Value (Dec)
3
Value (Hex)
Sound Beeper
Backspace BS Causes the printer to move the current
Horizontal Tab
Line Feed LF Advances the paper one line on the page. 10 0A Vertical TabVT Moves the paper to the next vertical
Form Feed FF
BEL Sounds the printer beeper for
approximately 1 second.
print position one character position to the left.
HT Moves the printhead to the horizontal
tabulation stops.
tabulation stop set with the printer command Set Vertical Tabulation Stops (ESC B).
Advances the paper to the top of the next page and does a carriage return.
Section 3: IBM Emulation Mode Printer Commands
707
808
909
11 0B
12 0C
27
Code Name
Symbol Description
Value (Dec)
Value (Hex)
Carriage Return
Double­Wide Printing by Line
Condensed Printing
Select Printer
Select 10 cpi
Deselect Printer
Cancel Double­Wide Printing by Line
Cancel Data
CR Moves the current print position to the left
margin of the current line.
SO Prints all characters in double-width
mode.
SI Condenses printing from 10 characters per
inch (cpi) to 17.1 and 12 cpi to 20.
DC1 Selects the printer. 17 11
DC2 Returns condensed printing to normal (10
cpi)
DC3 Signals the printer to stop accepting data
from the computer. This control code has no effect on the parallel interface.
DC4 Cancels double-width printing mode and
returns printing to normal.
CAN Clears current line buffer of data already
received to print on the current line since last Form Feed, Line Feed, Carrier Return, or Cancel.
13 0D
14 0E
15 0F
18 12
19 13
20 14
24 18
Space SP
Moves the print position one character space to the right.

Escape Sequences

An escape sequence (two or more characters of information) lets you change the way the printer is currently printing. Like a control code, it gives you control over the printed output. The escape sequence begins with the character ESC (decimal 027, hexadecimal 1B). The printer recognizes this character as the beginning of a printer command signalling that the information that follows is control information and not data to be printed.

Printer Command Parameters

A command parameter sets the value for a command. This value stays constant until either a different value resets the command or a command resets the printer to its default values. For example, after the printer receives a command
32 20
28
Section 3: IBM Emulation Mode Printer Commands
that selects a right margin beginning at column 63, the right margin of each printed page begins at column 63. The margin remains constant until a right margin command with a different value resets the margin, or the printer is reset.
In this section, command parameters are indicated by a lowercase n. Usage Notes explain how to compute this parameter.

Command Structure

The printer commands use ASCII; the decimal and hexadecimal digits are shown for your convenience.
Most commands have the following structure (spaces have been added for readability; do not include spaces when you type the command):
ESC & a n C data
& Parameterized character from ASCII table range 33-47 decimal. a Group character from ASCII table range 96-126 decimal that
specifies a group type of control.
n Value within specified numeric range, from ASCII table range
48-57, 45, 46 decimal. If a value is not specified, a value of 0 is assumed.
C Termination character fr om ASCII table range 64-90
(47-122 w/chaining) decimal.
data Binary 8-bit data (from graphics, and so on). The value field
specifies the number of bytes of binary data.
Section 3: IBM Emulation Mode Printer Commands
29

Example of IBM Emulation Mode Printer Command

Select Code Page (
(A short description of the command follows) This command placed before the first character changes the active code page. (The printer command format follows with the decimal and hexadecimal values).
Format ESC [ T 4 0 0 0 Hc Lc Decimal 27 91 84 4 0 0 0 Hc Lc Hex 1B 5B 54 04 00 00 00 Hc Lc
name of command
)
Usage Notes
The digits 4 0 0 0 (decimal), 04 00 00 00 (hexadecimal) are constants. To calculate Hc Lc for a code page that is not shown:
Divide the code page number, such as 437, by 256. — The whole number result is the Hc value. — The remainder is the Lc value.
If your code page has an alphabetic character, such as 437G, add 10,000 to the code page number, then divide by 256.
Code page information begins on page 188.
Related commands list other commands that can or should be used with the printer command being described.
Usage Notes give additional information for that command, such as:
how the command reacts with other commands
any other command that is required, or that supplements the command
how the datastream is affected by the command
Pay attention to the uppercase (capital letter) and the lowercase letters. If the format shows an uppercase letter, enter the command with an uppercase letter. If the letter in the command format is lowercase, enter it as lowercase. The printer looks at the uppercase and lowercase letters as separate command instructions.
The uppercase letter O is different from the numeral 0 (zero). Notice that the uppercase O is wider and rounder than the zero. To help you with this distinc­tion, the text that describes the command shows the numeral 0 and also spells out zero.
30
Section 3: IBM Emulation Mode Printer Commands
Loading...
+ 197 hidden pages