Lexmark 2591 Reference Guide

Forms Printer 258x/259x Technical Reference
DRAFT document - Monday, August 11, 2008 1:59 pm
Please note that this is a DRAFT document. More information will be added and a final version will be released at a later date.
August 2008
Lexmark and Lexmark with diamond design are trademarks of Lexmark International, Inc., registered in the United States and/or other countries.
© 2008 Lexmark International, Inc. All rights reserved. 740 West New Circle Road Lexington, Kentucky 40550
www.lexmark.com
Draft document
s s
s
©
Edition: August 2008
The following paragraph does not apply to any country where such provisions are inconsistent with local law: LEXMARK
INTERNATIONAL, INC., PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY 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. Improvements or changes in the products or the programs described may be made at any time.
Comments about this publication may be addressed to Lexmark International, Inc., Department F95/032-2, 740 West New Circle Road, Lexington, Kentucky 40550, U.S.A. In the United Kingdom and Eire, send to Lexmark International Ltd., Marketing and Services Department, Westhorpe House, Westhorpe, Marlow Bucks SL7 3RQ. Lexmark may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. You can purchase additional copies of publications related to this product by calling 1-800-553-9727. In the United Kingdom and Eire, call +44 (0)8704 440 044. In other countries, contact your point of purchase.
References in this publication to products, programs, or services do not imply that the manufacturer intends to make these available in all countries in which it operates. Any reference to a product, program, or service is not intended to state or imply that only that product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any existing intellectual property right may be used instead. Evaluation and verification of operation in conjunction with other products, programs, or services, except those expressly designated by the manufacturer, are the user’s responsibility. Lexmark, Lexmark with diamond design, MarkNet, MarkVision, and Optra are trademarks of Lexmark International, Inc., registered in the United States and/or other countries. ColorGrade, PerfectFinish, and PictureGrade are trademarks of Lexmark International, Inc. The following terms are trademarks or registered trademarks of other companies:
Albertus The Monotype Corporation plc Antique Olive Monsieur Marcel OLIVE Apple-Chancery Apple Computer, Inc. Arial The Monotype Corporation plc Candid Agfa Corporation CG Omega Product of Agfa Corporation CG Times Based on Times New Roman under license
Chicago Apple Computer, Inc. Clarendon Linotype-Hell AG and/or its subsidiaries Eurostile Nebiolo Geneva Apple Computer, Inc. GillSans The Monotype Corporation plc Helvetica Linotype-Hell AG and/or its subsidiaries Hoefler Jonathan Hoefler Type Foundry ITC Avant Garde Gothic International Typeface Corporation
AppleTalk, EtherTalk, LocalTalk, and Macintosh are trademarks of Apple Computer, Inc., registered in the United States and other countries.
PCL® is a registered trademark of the Hewlett-Packard Company. PCL 3, PCL 5, and PCL 6 are Hewlett-Packard Company’s designations of a set of printer commands (language) and functions included in its printer products. These printers are intended to be compatible with the PCL 3, PCL 5, and PCL 6 languages. This means these printers recognize PCL 3, PCL 5, and PCL 6 commands used in various application programs, and that the printer emulates the functions corresponding to the commands.
PostScript commands (language) and functions included in its software products. These printers are intended to be compatible with the PostScript language. This means these printers recognize PostScript commands used in various application programs, and that the printer emulates the functions corresponding to the commands. Other trademarks are the property of their respective owners.
®
is a registered trademark of Adobe Systems Incorporated. PostScript is Adobe Systems’ designation of a set of printer
from The Monotype Corporation plc, is a product of Agfa Corporation
ITC Bookman International Typeface Corporation ITC Lubalin Graph International Typeface Corporation ITC Mona Lisa International Typeface Corporation ITC Zapf Chancery International Typeface Corporation Joanna MT The Monotype Corporation plc Marigold Arthur Baker Monaco Apple Computer, Inc. Mona Lisa International Typeface Corporation New York Apple Computer, Inc. Oxford Arthur Baker Palatino Linotype-Hell AG and/or its subsidiarie Stempel Garamond Linotype-Hell AG and/or its subsidiarie Taffy Agfa Corporation Times New Roman The Monotype Corporation plc TrueType Apple Computer, Inc. Univers Linotype-Hell AG and/or its subsidiarie Wingdings Microsoft Corporation
1998, 2008 Lexmark International, Inc. All rights reserved. UNITED STATES GOVERNMENT RESTRICTED RIGHTS
This software and any accompanying documentation provided under this agreement are commercial computer software and documentation developed exclusively at private expense.
Draft document

Contents

Set Initial Conditions Commands...................................1-1
SIC Command Format ....................................................................................... 1-2
Init Values..................................................................................................... 1-2
Id Values....................................................................................................... 1-3
Parm Values ................................................................................................. 1-5
IBM Emulation Mode Printer Commands.......................2-1
Control Codes .................................................................................................... 2-1
Escape Sequences ............................................................................................ 2-3
Printer Command Parameters ........................................................................... 2-3
Command Structure........................................................................................... 2-3
Example of IBM Emulation Mode Printer Command .................................... 2-3
Printer Command Quick Reference (IBM Emulation Mode) .............................. 2-4
Control Codes in ESC Sequence Format .......................................................... 2-4
General Printer Commands ............................................................................... 2-6
Set Print Direction......................................................................................... 2-6
Continuous Double-Wide Printing................................................................. 2-6
Deselect Printer ............................................................................................ 2-7
Stop Printing (259X only).............................................................................. 2-7
Print Position Commands................................................................................... 2-8
Relative Move Inline Forward (n/120") ......................................................... 2-8
Automatic Line Feed (LF) ............................................................................. 2-9
Reverse Line Feed ....................................................................................... 2-9
Set Vertical Units (259X only)....................................................................... 2-9
Select 1/8" Line Spacing............................................................................. 2-10
Select 7/72" Line Spacing........................................................................... 2-10
Set Text Line Spacing (n/72")..................................................................... 2-11
Start Text Line Spacing .............................................................................. 2-11
Page/Form Layout Commands ........................................................................ 2-12
Set All Tabs to Power On Setting ............................................................... 2-12
Set Horizontal Tabs .................................................................................... 2-12
Set Vertical Tabs ........................................................................................ 2-13
Set Horizontal Margins ............................................................................... 2-13
Set Automatic Perforation Skip................................................................... 2-14
Cancel Automatic Perforation Skip............................................................. 2-14
Proportional Space Mode ........................................................................... 2-14
TOC-1
Contents
Draft document
Set Top of Form.......................................................................................... 2-15
Set Form Length in Inches.......................................................................... 2-15
Set Form Length in Lines............................................................................ 2-15
Character Commands...................................................................................... 2-16
Select Character Set 1................................................................................ 2-16
Select Character Set 2................................................................................ 2-16
Download a Character Set.......................................................................... 2-16
Select Print Mode ....................................................................................... 2-17
Code Page Commands.................................................................................... 2-19
Set Code Page ........................................................................................... 2-19
Continuously Print From All Character Chart.............................................. 2-19
Print One Character.................................................................................... 2-20
Style Commands.............................................................................................. 2-21
Set Print Quality.......................................................................................... 2-21
Select Global Font ...................................................................................... 2-22
Select Print Type Style ............................................................................... 2-27
Select 12 cpi ............................................................................................... 2-28
Select/Cancel Emphasized Mode............................................................... 2-29
Select/Cancel Double-Strike Mode............................................................. 2-29
Start Superscript or Subscript Printing........................................................ 2-30
Cancel Superscript and Subscript Printing ................................................. 2-30
Score Select (259X only)............................................................................ 2-30
Continuous Underscore.............................................................................. 2-31
Continuous Overscore................................................................................ 2-31
Graphics Commands ....................................................................................... 2-32
Normal Density Bit Image Graphics (60 dpi) .............................................. 2-32
Dual-Density Bit Image Graphics (Half Speed 120 dpi).............................. 2-33
Dual-Density Bit Image Graphics (Normal Speed 120 dpi) ........................ 2-34
High-Density Bit Image Graphics (240 dpi) ................................................ 2-34
High Resolution Graphics (259x only) ........................................................ 2-35
Set Graphics Line Spacing (n/216") ........................................................... 2-36
Graphics Variable Line Spacing (n/216").................................................... 2-37
Bar Code Commands....................................................................................... 2-38
Setup Barcode Parameter .......................................................................... 2-38
Setup Barcode Data ................................................................................... 2-41
TOC-2
Barcode Types................................................................. 2-38
Barcode Module Width .................................................... 2-39
Adjustment Unit ............................................................... 2-39
Barcode Length ............................................................... 2-40
Barcode Control Flag....................................................... 2-41
Contents
Draft document
Code Pages.......................................................................3-1
Enabling code page character support .............................................................. 3-1
Code page samples ........................................................................................... 3-2
Code Page 437 ............................................................................................ 3-3
Code Page 437G.......................................................................................... 3-4
Code Page 449P ......................................................................................... 3-5
Code Page 708 ............................................................................................ 3-6
Code Page 720 ............................................................................................ 3-7
Code Page 771 ............................................................................................ 3-8
Code Page 773 ............................................................................................ 3-9
Code Page 774 .......................................................................................... 3-10
Code Page 775 .......................................................................................... 3-11
Code Page 813 .......................................................................................... 3-12
Code Page 850 .......................................................................................... 3-13
Code Page 850B ....................................................................................... 3-14
Code Page 851 .......................................................................................... 3-15
Code Page 852 .......................................................................................... 3-16
Code Page 853T ........................................................................................ 3-17
Code Page 855 .......................................................................................... 3-18
Code Page 856 .......................................................................................... 3-19
Code Page 857 .......................................................................................... 3-20
Code Page 858 .......................................................................................... 3-21
Code Page 860 .......................................................................................... 3-22
Code Page 861 .......................................................................................... 3-23
Code Page 862 .......................................................................................... 3-24
Code Page 863 .......................................................................................... 3-25
Code Page 864........................................................................................... 3-26
Code Page 865 .......................................................................................... 3-27
Code Page 866 .......................................................................................... 3-28
Code Page 869 .......................................................................................... 3-29
Code Page 912 .......................................................................................... 3-30
Code Page 915 .......................................................................................... 3-31
Code Page 916 .......................................................................................... 3-32
Code Page 919 .......................................................................................... 3-33
Code Page 920 .......................................................................................... 3-34
Code Page 929 .......................................................................................... 3-35
Code Page 1004 ........................................................................................ 3-36
Code Page 1040 ........................................................................................ 3-37
Code Page 1041 ........................................................................................ 3-38
Code Page 1046 ........................................................................................ 3-39
TOC-3
Contents
Draft document
Code Page 1053 ........................................................................................3-40
Code Page 1098 ........................................................................................3-41
Code Page 1116 ........................................................................................3-42
Code Page 1198 ........................................................................................3-43
Code Page 1250 ........................................................................................3-44
Code Page 1251 ........................................................................................3-45
Code Page 1257 ........................................................................................3-46
Code Page 1852 ........................................................................................3-47
Code Page 1855 ........................................................................................3-48
Code Page 1862 ........................................................................................3-49
Code Page 1866 ........................................................................................3-50
Code Page 2852 ........................................................................................3-51
Code Page 2866 ........................................................................................3-52
Code Page 3852 ........................................................................................3-53
Code Page 4852 .........................................................................................3-54
TOC-4
Contents
Code Page Table ............................................................. A-1
1-1
Draft document

CHAPTER 1: Set Initial Conditions Commands

The Set Initial Conditions (SIC) command sets the printer to the default values that were set at the factory or to user-defined defaults.
The following data is applicable to both IBM and Epson modes, unless otherwise noted. The SIC command cannot be used in OKI emulation mode.
There are three copies of the settings for each of the parameters specified by the SIC command:
Factory default settings stored in flash memory
User default settings stored in NVRAM
Printer's current settings stored in RAM
Factory Factory defaults cannot be modified.
User The SIC command has the ability to override Current settings with the
User defaults or Factory defaults. It can then change those values and optionally store then back to NVRAM as the new User defaults.
Current When the printer is turned on, the current RAM settings are initialized
from the User default settings. The basic commands implemented in IBM, Epson and Oki emulations can modify the Current settings stored in RAM but cannot save them back to User Defaults in NVRAM.
1-2
SIC Command
Draft document

SIC Command Format

Format: ESC [ K n1 n2 init id parm1 parm 2... parm 24
Decimal: 27 91 75 n1 0 init id parm1 parm 2... parm 24
Hexadecimal: 1B 5B 4B n1 00 init id parm1 parm 2... parm 24
Usage Notes:
"n1 is the low order byte. n2 is the high order byte. n1 and n2 specify the
number of mode bytes in the escape sequence. n1 is the number of parameters +2. (the number of parameters plus init and id.) Normally, n1 is 1, 3 or 4. n2 is always 0.
"init - this parameter specifies which condition the printer should be initialized
to. See the Initial Values table below for details.
"id - This parameter specifies the parm conditions that follow it. See the Id
Values table below for details.

Init Values

“init” sets the printer to user-defined or factory settings. The following table describes the valid init values and their affect on the printer default settings initialization, macro settings and download font:
Table 1-1: Initial Values
Dec Hex Current Settings
0 00 Initialized to the user default
setting. Then updated to updated to reflect parm values in SIC command
User Default Settings
unchanged Initialized to the
Default Macro Settings
user default settings.
Other Macro Settings
Not initialized. Not cleared.
Download Font
1 01 Initialized to the user default
setting. Then updated to updated to reflect parm values in SIC command
unchanged Initialized to the
user default settings.
Not initialized Cleared.
Draft document
Table 1-1: Initial Values (Continued)
1-3
SIC Command
Dec Hex Current Settings
4 04 Initialized to the factory default
setting. Then updated to updated to reflect parm values in SIC command
5 05 Initialized to the factory default
setting. Then updated to updated to reflect parm values in SIC command
254 FE Initialized to the user default
setting. Then updated to updated to reflect parm values in SIC command
255 FF Initialized to the factory default
setting.
User Default Settings
unchanged Initialized to the
unchanged Initialized to the
NVRAM updated to reflect parm values in SIC command
NVRAM updated to reflect parm values in SIC command
Default Macro Settings
factory default settings.
factory default settings.
Initialized to the user default settings.
Initialized to the factory default setting.
Other Macro Settings
Not initialized. Not cleared.
Not initialized. Cleared.
Not initialized. Cleared.
Initialized to the factory default setting.
Download Font
Cleared.

Id Values

The supported values of Id are as follows. If the Id is any other value, the parm bytes are ignored.
Note: The most common ID values are C5 and C6. Remaining values are listed for
backward compatibility. Not all Parms are valid for each Id value. Some are ignored.
Table 1-2: Id Values
Printer Dec Hex Notes
2580 /2581 2590/2591
2580 /2581 2590/2591
2590/2591 35 23
2590/2591 36 24
3 03 Supported in Native mode.
Supported in Proprinter III mode (258X only).
22 16
Parm 1 and parm 2 are valid. If parms 3 - 24 are specified, they are ignored. See the following parm tables.
Draft document
Table 1-2: Id Values (Continued)
Printer Dec Hex Notes
1-4
SIC Command
2580 /2581 2590/2591
2580 /2581 2590/2591
2580 /2581 2590/2591
2580 /2581 2590/2591
2580 /2581 2590/2591
177 B1 Parm 1 is valid.
Parm 1 is same as parm 1 of id = 03H, 16H, 23H or 24H.
180 B4
182 B6 Supported in Epson mode.
Supported in Native mode. Not valid when Proprinter III mode ON is selected in Setup. (258X only) This id allows the user to select the Emulation mode with parm 1.
197 C5 Supported in Epson mode.
Supported in Native mode. Not valid when Proprinter III mode ON is selected in Setup.(258X only) Parm 1 to parm 24 are valid with this id. See the following parm tables.
198 C6 Supported in Epson mode.
Parm 1 to parm 24 are valid with this id. See the following parm tables.
Note: Id is valid for B6H, C5H and C6H only in Epson mode. If any other value is
specified to id in Epson mode, this command sequence is ignored.
1-5
Draft document

Parm Values

Table 1-3: Ids - Dec 3, 22, 35, 36, 177, 180 (Hex 03, 16, 23, 24, B1, B4)
Parm Bit Description On Off
1 Same action for all Ids.
7 Discard byte Ignore this byte Process this byte
6 Reserved
5 Alarm Enable Disable
4 Auto CR No CR after LF Auto CR after LF
3 Auto LF No LF after CR Auto LF after CR
2 Form Length 12 inches 11 inches
1 Slashed Zero Zero Slashed Zero not slashed
0 Character Set Set 2 Set 1
SIC Command
2 Valid only for Ids Dec 3, 22, 35, 36, (Hex 03, 16, 23, 24)
7 Discard byte Ignore this byte Process this byte
6 Code Page 850 437
5 Reserved
4 Reserved
3 Reserved
2 Reserved
1 Line Length 8.0 inches 13.6 inches (2581/2591only)
0 Reserved
Table 1-4: Id - Dec 182 (Hex B6)
Parm Description Dec Hex Action
1 Emulation 0 00 No Change
101IBM
202EPSON
3 - 255 03 - FF No Change
1-6
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Sheet 1 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
1 Emulation 0 00 No Change No Change
1 01 PPDS PPDS
2 02 EPSON EPSON
3 - 255 03 - FF No Change No Change
2 Panel Disable 0 00 No change No change
1 01 Panel Disable Panel Disable
2 02 Panel Enable Panel Enable
Note: Specific buttons can be enabled during Panel Disable mode. The upper 6 bits of parm 2 represent the different buttons on the operator panel as below.
Bit OFF ON
7. Font Disabled Enabled
6. Pitch Disabled Enabled
5. Micro up Disabled Enabled
4. Micro down Disabled Enabled
3. LF Disabled Enabled
2. Macro Disabled Enabled
3 Macro 0 00 No change No change
1 01 Macro 1 Macro 1
2 02 Macro 2 Macro 2
3 03 Macro 3 Macro 3
4 04 Macro 4 Macro 4
5 - 254 05 - FE No Change No Change
255 FF Disable Macro Disable Macro
Notes:
• Macro 1 is the original macro that is backward compatible. Macros 2-4 were added to provide additional flexibility when changing between alternate form sizes. Disable macro is functionally the same as Macro 1. If init = dec 4, 5 (hex 04, 05) are specified, parm 3 is ignored. If init = dec 0, 1, 254, 255 (hex 00, 01, FE, FF) are specified, parm 3 value is used as Macro No. instead of Default Macro setting No. If init = dec 254, 255 (hex FE, FF) are specified, parm 3 value is overwritten to Default Macro setting in NVRAM. If the disable (=255) is set to parm 3 Macro No. 1 setting is used to initialize.
• “No change” indicates the printer will retain the current macro. All parameters will overwrite the NVRAM of the current macro.
1-7
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 2 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
4 FONT 0 00 No Change No Change
1 01 Fast Draft Fast Draft
202Draft Draft
3 03 Gothic Gothic
4 04 Courier Courier
5 05 Download font Download font
6 06 No Change Prestige
7 07 No change Presentor
8 08 No change Orator
9 09 No change Script
10 - 255 0A - FF No change No Change
Note: Values 06 through FF are not supported for id hex C5 because corresponding fonts are not available for the 258X printers.
5 Pitch 0 00 No Change No Change
1 01 10 pitch 10 pitch
2 02 12 pitch 12 pitch
3 03 15 pitch 15 pitch
4 04 17.1 pitch 17.1 pitch
5 05 20 pitch 20 pitch
606PS PS
7 07 24 pitch 24 pitch
8 - 255 08 - FF No Change No Change
1-8
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 3 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
Note: Parm 6 actions are based on the XNLS Code Page. Choose appropriate parm 6 data.
6 Code Page
(XNLS = Std / OCR-B)
0 00 No Change No Change
1 01 437 437
2 02 850 850
3 03 860 860
4 04 863 863
5 05 865 865
6 06 437G 437G
7 07 813 813
8 08 851 851
9 09 853T 853T
10 0A 857 857
11 0B 869 869
12 0C 920 920
13 0D 1053 1053
14 0E 861 861
15 0F 1004 1004
16 10 858 858
17 - 255 11 - FF No Change No Change
1-9
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 4 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
6 Code Page
(XNLS = Eastern)
0 00 No Change No Change
1 01 437 437
2 02 850 850
3 03 852 852
4 04 855 855
5 05 866 866
6 06 1855 1855
7 07 1852 1852
8 08 2852 2852
9 09 3852 3852
10 0A 4852 4852
11 0B 1250 1250
12 0C 1251 1251
13 0D 912 912
14 0E 915 915
15 0F 1866 1866
16 10 858 858
17 - 255 11 - FF No Change No Change
1-10
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 5 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
6 Code Page
(XNLS = Baltic)
0 00 No Change No Change
1 01 437 437
2 02 850 850
3 03 858 858
4 04 866 866
5 05 915 915
6 06 1251 1251
7 07 1866 1866
8 08 775 775
9 09 919 919
10 0A 1257 1257
11 0B 916 916
12 0C 918 918
13 0D 2866 2866
14 0E 771 771
15 0F 929 929
16 10 773 773
17 - 255 11 - FF No Change No Change
6 Code Page
(XNLS = Arabic)
0 00 No Change No Change
1 01 437 437
2 02 850 850
3 03 864 864
4 04 1046 1046
5 05 1098 1098
6 06 1198 708
7 07 708 720
8 08 720 449p
9 09 449p 858
10 0A 858
11 - 255 0B - FF No Change No Change
1-11
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 6 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
6 Code Page
(XNLS = Levant)
6 Code Page
(XNLS = OKI)
0 00 No Change No Change
1 01 437 437
2 02 850 850
3 03 864 864
4 04 1046 1046
5 05 1098 1098
6 06 1198 862
7 07 862 856
8 08 856 1862
9 09 916 916
10 0A 1862 858
11 0B 858
12 - 255 0C - FF No Change No Change
0 00 No Change
1 01 437
2 02 850
3 03 860
4 04 863
5 05 865
6 06 437G
7 07 813
8 08 851
9 09 853T
10 0A 857
11 0B 869
12 0C 920
13 0D 1040
14 0E 1041
15 0F 850B
16 - 255 10 - FF No Change
7 Form Length 0 00 No Change No Change
1 - 176 01 - B0 1 to 176 lines (Max 22") 1 to 176 lines (Max 22")
177 - 255 B1 - FF No Change No Change
1-12
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 7 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
8 Lines per inch 0 00 No Change No Change
1013 3
2024 4
3036 6
4048 8
5 - 255 05 - FF No Change No Change
9 Left Margin 0 00 No Change No Change
1 01 0 inch 0 inch
2 02 1 inch 1 inch
3 03 2 inch 2 inch
4 04 3 inch 3 inch
5 - 255 05 - FF No Change No Change
10 Right Margin 0 00 No Change No Change
1 01 4 inch 4 inch
2 02 5 inch 5 inch
3 03 6 inch 6 inch
4 04 7 inch 7 inch
5 05 8 inch 8 inch
6 06 13.6 inch (2581 only) 13.6 inch (2591 only)
7 - 255 07 - FF No Change No Change
11 Bottom Margin 0 00 No Change No Change
1 01 0 inch 0 inch
2 02 1/2 inch 1/2 inch
3 03 1 inch 1 inch
4 04 2 inch 2 inch
5 05 3 inch 3 inch
6 - 255 06 - FF No Change No Change
1-13
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 8 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
12 Alarm 0 00 No change No change
1 01 Disable Alarm Disable Alarm
2 02 Enable Alarm Enable Alarm
3 - 255 03 - FF No Change No Change
13 Auto CR 0 00 No change No change
101ON ON
202OFF OFF
3 - 255 03 - FF No Change No Change
14 Auto LF 0 00 No change No change
101ON ON
202OFF OFF
3 - 255 03 - FF No Change No Change
15 Slash Zero 0 00 No change No change
1 01 Zero slashed Zero slashed
2 02 Zero not slashed Zero not slashed
3 - 255 03 - FF No Change No Change
16 Character Set 0 00 No change No change
1 01 Set 1 Set 1
2 02 Set 2 Set 2
3 - 255 03 - FF No Change No Change
17 Bidirectional 0 00 No change No change
1 01 Uni-Directional Uni-Directional
2 02 Bi-Directional Bi-Directional
3 - 255 03 - FF No Change No Change
18 Sheet Feeder 0 00 No change No change
1 01 Disable Disable
2 02 Enable Enable
3 - 255 03 - FF No Change No Change
1-14
SIC Command
Draft document
Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 9 of 9)
Parm Description Dec Hex Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6
19 Lock 0 00 No change No change
1 01 Font Lock Font Lock
2 02 Pitch Lock Pitch Lock
3 03 Font and Pitch Lock Font and Pitch Lock
4 04 Font and Pitch Unlock Font and Pitch Unlock
254 FE SIC Command Lock SIC Command Lock
255 FF SIC Command Unlock SIC Command Unlock
20 FF Enable 0 00 No Change Ignore
1 01 Ignore FF
2 02 Honor FF
21 TOF Read 0 00 No Change No Change
1 01 TOF Read Disable TOF Read Disable
2 02 TOF Read Enable TOF Read Enable
22 Tractor 0 00 No Change No Change
1 01 Tractor 1 Tractor 1
2 02 Tractor 2 Tractor 2
23 Tear Off 0 00 No Change No Change
101On On
202Off Off
3 03 One second One second
24 PnP (Plug &
Play)
0 00 No Change No Change
1 01 Enable Enable
2 02 Disable Disable
2-1

Control Codes

Draft document

CHAPTER 2: 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 secondary font selection, such as condensed and double-wide.
The first 32 characters of the Standard ASCII table are control codes. This printer uses the following control codes.
Table 2-1: Control Codes
Code Name Symbol Description
Sounds the printer beeper for approximately 1
Beeper BEL
Backspace BS Causes the printer to move the current print position one
Horizontal Tab HT Moves the print head to the next horizontal tab position
Line Feed LF Advances the paper one line on the page. An automatic
second.
character position to the left.
specified by the ESC D command. If no tab position is set or programmed, tabs are set by default to every 8th column, beginning at column 9.
When no tab is set between the current position and the right margin or if the tabs are all cleared, the code is ignored.
carriage return may be optionally disabled.
Value (Dec)
7 07
8 08
9 09
10 0A
Value (Hex)
Draft document
Table 2-1: Control Codes (Continued)
2-2
Control Codes
Code Name Symbol Description
Sounds the printer beeper for approximately 1
Beeper BEL
Vertical Tab VT Advances the paper to the next vertical tab position set
Form Feed FF Advances the paper to the top of the next page and does
Carriage Return CR Moves the current print position to the left margin of the
Double-Wide Printing by Line
Condensed Printing SI Condenses printing from 10 characters per inch (cpi) to
Select Printer DC1 Selects the printer, causing all subsequent data to be
Select 10 cpi DC2 Returns condensed printing to normal (10 cpi). Cancels
SO Prints all characters in double-width mode.
second. 7 07
by the ESC B command. If no tab position is set, the printer performs a single line feed.
If the next vertical tab position is greater than the form length (or form length minus skip perforation), the VT does a line feed.
An automatic carriage return may be optionally disabled
a carriage return.
current line. An automatic line feed may be optionally added by the setup.
This mode is canceled by the receipt of ESC [ @, ESC W n, CR, LF, VT, FF, DC4, CAN or auto wrap.
17.1 and 12 cpi to 20.
accepted.
SI mode.
Value (Dec)
11 0B
12 0C
13 0D
14 0E
15 0F
17 11
18 12
Value (Hex)
Deselect Printer DC3 This control code has no effect on the parallel interface.
This command is accepted and ignored.
Cancel Double-Wide Printing by Line
Cancel Data CAN Clears current line buffer of data already received to print
DC4 Cancels double-width printing mode and returns printing
to normal.
on the current line. Does not change the current print position
19 13
20 14
24 18
Draft document

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 signaling that the information following is control information and not data to be printed.

Printer Command Parameters

2-3
Escape Sequences
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 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

Data is pending.

Example of IBM Emulation Mode Printer Command

Data is pending.
2-4
Printer Command
Draft document

Printer Command Quick Reference (IBM Emulation Mode)

Data is pending.

Control Codes in ESC Sequence Format

The following ESC sequences match the Control Code commands. See that section for a full description of each Control Code.
Escape sequences utilize the following format:
Format ESC BEL
Decimal 27 7
Hexadecimal 1B 07
Table 2-2: Escape Sequence Equivalents to Control Codes
Format
Code Nem
Beeper BEL 7 07
Backspace BS 8 08
Horizontal Tab HT 9 09
Line Feed LF 10 0A
Vertical Tab VT 11 0B
Form Feed FF 12 0C
ESC
Decimal27Hexadecimal
1B
Carriage Return CR 13 0D
Double-Wide Printing by LIne SO 14 0E
Condensed Printing SI 15 0F
Select Printer DC1 17 11
Select 10 cpi DC2 18 12
Deselect Printer DC3 19 13
Draft document
2-5
Table 2-2: Escape Sequence Equivalents to Control Codes (Continued)
Control Codes in
Format
Code Nem
Cancel Double-Wide Printing by Line DC4 20 14
Cancel Data CAN 24 18
ESC
Decimal27Hexadecimal
1B
Draft document

General Printer Commands

The following are general Printer Commands.

Set Print Direction

This command sets the printer to print either unidirectional (left to right) printing or returns to bi-directional printing.
Format ESC U n
Decimal 27 85 n
Hexadecimal 1B 55 n
2-6
General Printer
USAGE NOTE
The value of n can be either of the following:
1 (dec) 01 (hex) = Unidirectional
0 (dec) 00 (hex) = Bi-directional

Continuous Double-Wide Printing

This command selects or cancels a double-wide printing mode that is not canceled by line feed terminators.
Format ESC W n
Decimal 27 87 n
Hexadecimal 1B 57 n
USAGE NOTE
The value of n can be either of the following:
1 (dec) 01 (hex) = Selects double-wide printing mode
0 (dec) 00 (hex) = Cancels double-wide printing mode
Draft document

Deselect Printer

When this command is sent, the printer ignores all data except DC1.
Format ESC Q n
Decimal 27 81 n
Hexadecimal 1B 51 n
USAGE NOTE
The following values of n are valid:
Model Decimal Hexadecimal
2580 3 03 Pro-III Mode ON
2-7
Pro-III Mode Setting in Setup
182 B6 Pro-III Mode OFF
General Printer
2581 22 16 Pro-III Mode ON
2590 35 23
2591 16 24

Stop Printing (259X only)

This command stops printing and causes the printer to go into OFF LINE mode. Pressing the Start/Stop key returns the printer to ON LINE mode.
Format ESC j
Decimal 27 106
Hexadecimal 1B 6A
184 B8 Pro-III Mode OFF
185 B9
183 B7
Draft document

Print Position Commands

Relative Move Inline Forward (n/120")

This command moves the current print position to the right by the distance specified in the parameter.
Format ESC d Ln Hn
Decimal 27 100 Ln Hn
Hexadecimal 1B 64 Ln Hn
USAGE NOTES
2-8
Print Position
Any attempt to use this command to move the print position beyond the
current right margin leaves the print position set to the right margin.
If underscoring and/or overscoring are in effect, the space of the move is
underscored/overscored (unlike the case of a horizontal tab).
The unit of measure is 1/120 inch. The position will be moved relative to the
current print position. The distance is computed as (Ln+(Hn*256)) in inches.
When a value is represented by two parameter bytes, value (A) = Ln + Hn X
256. Calculate values of A less than 256.
– Hn is 0. – Ln is the value.
To calculate values of A equal to or greater than 255.
– Divide the value A by 256. – The result is Hn. – The remainder is Ln.
Draft document

Automatic Line Feed (LF)

Turns the automatic line feed mode On and Off.
Format ESC 5 n
Decimal 27 53 n
Hexadecimal 1B 35 n
USAGE NOTES
The value of n can be either of the following:
1 (dec) 01 (hex) = ON
0 (dec) 00 (hex) = OFF
When on, executes an automatic line feed when a carriage return is received.
2-9
Print Position

Reverse Line Feed

This command feeds the paper one line in the reverse direction.
Format ESC ]
Decimal 27 93
Hex 1B 5D
Caution: This command is not recommend. Repetitive use of this command can
cause a paper jam.

Set Vertical Units (259X only)

For 259x printers only.
This command selects the line feed spacing increment for the following commands:
Set Graphics Line Spacing (ESC 3)
Graphics Variable Line Spacing (ESC J).
Format ESC [ \ n1 n2 m1 m2 m3 m4
Decimal 279192n1 000m3 m4
Hexadecimal 1B 5B 5C n1 00 00 00 m3 m4
Draft document
2-10
USAGE NOTES
Print Position
The default is 1/216 inch. The supported alternative is 1/180 inch and 1/360
inch.
n1 and n2 specify the number of mode bytes contained in this escape
sequence. Normally, n1 is 4, and n2 is 0.
m1 and m2 are ignored.
m3 and m4 set the base units as follows:
Table 2-3: Set Vertical Unit - m3 and m4 values
m3 m4
UnitDecimal Hexadecimal Decimal Hexadecimal
216 D8 00 00 1/216
180 B4 00 00 1/180
104 68 01 01 1/360

Select 1/8" Line Spacing

This command (ESC zero) sets the line spacing at 1/8 inch between each line, which is 8 lines per inch (lpi).
Format ESC 0
Decimal 27 48
Hexadecimal 1B 30

Select 7/72" Line Spacing

This command sets the line spacing at 7/72 inch between each line, which is 10.3 lpi.
Format ESC 1
Decimal 27 49
Hexadecimal 1B 31
Loading...
+ 90 hidden pages