Page 2
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.
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...
Page 4
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...
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.
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...
Printer Notes 2580 /2581 Supported in Native mode. 2590/2591 Supported in Proprinter III mode (258X only). Parm 1 and parm 2 are valid. 2580 /2581 If parms 3 - 24 are specified, they are ignored. See the following parm 2590/2591 tables.
Page 10
2580 /2581 Supported in Epson mode. 2590/2591 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. 2580 /2581 Supported in Epson mode.
Draft document Parm Values Table 1-3: Ids - Dec 3, 22, 35, 36, 177, 180 (Hex 03, 16, 23, 24, B1, B4) Parm Description Same action for all Ids. Discard byte Reserved Alarm Auto CR Auto LF Form Length Slashed Zero Character Set Valid only for Ids Dec 3, 22, 35, 36, (Hex 03, 16, 23, 24) Discard byte...
Page 12
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.
Page 13
Parm Description FONT 10 - 255 Note: Values 06 through FF are not supported for id hex C5 because corresponding fonts are not available for the 258X printers. Pitch 8 - 255 Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6...
Page 14
Draft document Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 3 of 9) Parm Description Note: Parm 6 actions are based on the XNLS Code Page. Choose appropriate parm 6 data. Code Page (XNLS = Std / OCR-B) 17 - 255 Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6...
Page 15
Draft document Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 4 of 9) Parm Description Code Page (XNLS = Eastern) 17 - 255 Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6 No Change 1855 1852...
Page 16
Draft document Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 5 of 9) Parm Description Code Page (XNLS = Baltic) 17 - 255 Code Page (XNLS = Arabic) 11 - 255 1-10 Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6 No Change 1251 1866...
Page 17
Draft document Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 6 of 9) Parm Description Code Page (XNLS = Levant) 12 - 255 Code Page (XNLS = OKI) 16 - 255 Form Length 1 - 176 177 - 255 1-11 Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6...
Page 18
Draft document Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 7 of 9) Parm Description Lines per inch 5 - 255 Left Margin 5 - 255 Right Margin 7 - 255 Bottom Margin 6 - 255 1-12 Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6 No Change...
Page 19
Draft document Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 8 of 9) Parm Description Alarm 3 - 255 Auto CR 3 - 255 Auto LF 3 - 255 Slash Zero 3 - 255 Character Set 3 - 255 Bidirectional 3 - 255...
Page 20
Draft document Table 1-5: Ids - Dec 197, 198 (Hex C5, C6) (Continued) (Sheet 9 of 9) Parm Description Lock FF Enable TOF Read Tractor Tear Off PnP (Plug & Play) 1-14 Action for Id = Dec 197 / Hex C5 Action for Id = Dec 198 / Hex C6 No change Font Lock Pitch Lock...
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...
Page 22
CR, LF, VT, FF, DC4, CAN or auto wrap. Condenses printing from 10 characters per inch (cpi) to 17.1 and 12 cpi to 20. Selects the printer, causing all subsequent data to be accepted. Returns condensed printing to normal (10 cpi). Cancels SI mode.
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).
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:...
Page 25
Draft document Table 2-2: Escape Sequence Equivalents to Control Codes (Continued) Code Nem Cancel Double-Wide Printing by Line Cancel Data Format Decimal Hexadecimal Control Codes in...
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 Decimal Hexadecimal 1B USAGE NOTE The value of n can be either of the following: •...
Model 2580 2581 2590 2591 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 Decimal Hexadecimal 1B Decimal Hexadecimal...
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 Decimal Hexadecimal 1B USAGE NOTES • 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.
Draft document Automatic Line Feed (LF) Turns the automatic line feed mode On and Off. Format Decimal Hexadecimal 1B USAGE NOTES The value of n can be either of the following: • 1 (dec) 01 (hex) = ON • 0 (dec) 00 (hex) = OFF •...
Draft document USAGE NOTES • 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. •...
Start Text Line Spacing This command activates the line spacing designated by the Set Line Spacing for Text (ESC A) printer command. If no value is set by ESC A, command sets the line spacing to 1/6 inch, which is 6 lpi.
To set user-defined tabulation stops, use printer command ESC D for horizontal tabs and ESC B for vertical tabs. Set Horizontal Tabs This command sets up to 28 tabulation stops to be used with the printer command HT, Horizontal Tabulation. Format...
The printer command VT, Vertical Tabulation activates the tabulation stops set by this escape sequence. – 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.
– Cancel Skip Perforation (ESC O) printer command is received. – Set Form Length in Lines (ESC C) printer command is received. – Set Form Length in Inches (ESC C 0) printer command is received. • Valid values for n are 1 through 255 (decimal), 01 through FF (hexadecimal).
Draft document Set Top of Form This command sets the first line of printing on each page to the current vertical paper position. Format Decimal Hexadecimal 1B Set Form Length in Inches This command sets the form length to a specified number of inches. Format Decimal Hexadecimal 1B...
Draft document Character Commands Select Character Set 1 Selects character set 1 for printing. Character set 1 contains characters and symbols that are used in the English language. Format ESC 7 Decimal 27 55 Hex 1B 37 See page is finalized.} Select Character Set 2 Selects character set 2 for printing.
Draft document Select Print Mode This command selects the normal font or the download font in Draft, NLQ (258x only) or LQ (259x only). Format ESC I n Decimal 27 73 n Hex 1B 49 n USAGE NOTES • This command cancels any print combinations that conflict with ESC I.
Page 38
Draft document Table 2-4: Print Mode Values (Continued) Printer Model Decimal Hexadecimal 259X 2-18 Print Mode (Draft) 10 cpi Normal (Draft) 12 cpi Normal (Draft) 17 cpi Normal (LQ) 10 cpi - Courier Normal (LQ) 12 cpi -Prestige Normal (LQ) 17 cpi -Courier...
Draft document Code Page Commands Set Code Page Use this printer command to change the active code page. Format Decimal Hexadecimal 1B USAGE NOTES • n1 is a one-byte binary number that is the less significant byte of the two-byte parameter count.
Use the “Code Page Table” on page A-1 for decimal and hexadecimal values. – Locate the character on the code page table. – Use the decimal or hexadecimal digit for that character in the printer com- mand format. Print One Character This command prints the next character from the All Characters Chart.
Normally, n1 is 1, and n2 is 0. m specifies the print quality as follows: Table 2-5: Set Print Quality m parameter values Printer Model 258X 259X 2-21 Decimal Hexadecimal...
Draft document Select Global Font This command allows the user to vary the font, pitch and code page. Format Decimal Hexadecimal 1B USAGE NOTES • Count the number of parameter bytes contained in this escape sequence as value (A). – When a value is represented by two parameter bytes, value (A) = Ln + Hn X 256.
Page 43
Draft document The following table applies to all models, except where noted. Table 2-6: Global Font Id - Courier Decimal Hf Lf Values Pitch Normal Bold 0 244 0 245 (10 DW/DH) 0 11 0 46 1 235 0 108 0 85 1 236 0 214...
Page 45
Draft document The following table applies to 259X models only. Table 2-9: Global Font Id - Presentor Decimal Hf Lf Values Pitch Normal Bold (10 DW/DH) 0 25 1 208 1 209 17.1 1 210 1 211 1 35 Proportional 0 199 spacing The following table applies to 259X models only.
Page 46
0 217 - 1 8 double-high) 5 CPI (10 CPI double-wide, 1 9 - 255 255 double-high) Note: There are subtle differences between the 258X and 259X printers. This is intentional, not a typo. 2-26 Italic Bold/Italic Normal 01 D4...
Draft document Select Print Type Style This command selects the following printing modes: • Character height - single or double • Character width - single or double • Line Spacing - single or double • Italic print • Shadow print (259x only) •...
Draft document See the following table for m1, m3, and m4 values. Table 2-13: Select Print Type Style Values Variable Decimal Hexadecimal Select 12 cpi This command sets the pitch at 12 cpi. Format Decimal Hexadecimal 1B 2-28 Description No change Start Italic Print Stop Italic Print Start Outline Print (259X only)
Draft document Select/Cancel Emphasized Mode This command selects and cancels the emphasized mode. To select emphasized mode: Format Decimal Hexadecimal 1B To cancel emphasized mode: Format Decimal Hexadecimal 1B Select/Cancel Double-Strike Mode This command selects and cancels the double-strike mode. Double-strike print results in a darker print because the printhead strikes the character twice.
Draft document Start Superscript or Subscript Printing This command selects the subscript and superscript modes. Format Decimal Hexadecimal 1B USAGE NOTE The value of n can be either of the following: • 1 (dec) 01 (hex) = Subscript ON • 0 (dec) 00 (hex) = Superscript ON Cancel Superscript and Subscript Printing This command cancels the subscript and superscript modes.
V1 though Vn represent graphics data. Each vertical dot column can have 8 rows of dots. To print bit image graphics, the printer uses either the first 8 (258x) or 20 (259x) wires of the printhead to map the eight bits of data.
Draft document Table 2-14: Print Wire Mapping (258X only) Dot Position Bottom The following table shows how the print wires are mapped for the 259X printers. Table 2-15: Print Wire Mapping (259X only) Dot Position Bit Number Bottom Dual-Density Bit Image Graphics (Half Speed 120 dpi) This command sends normal density bit images to be printed at 120 dots per inch (dpi).
Draft document USAGE NOTES • The command discards all data that goes beyond the current margin. • Text and graphics can be printed on the same line. • Each vertical dot column can have 8 rows of dots. • Dual-density graphics print at half-speed of normal-density bit image graphics.
See “Normal Density Bit Image Graphics (60 dpi)” on page 2-32 for more information on bit image graphics. High Resolution Graphics (259x only) For 259x printers only. This command sends data for dot matrix graphics to the printer. Format Decimal Hexadecimal 1B...
Draft document • The remainder is Ln. • V1 though Vn represent graphics data. • m is a one-byte value to select the graphics mode. The following modes are supported: Table 2-16: High Resolution Graphics m parameter values Decimal Hexadecimal Horizontal Density Note: The graphics data is organized by byte.
Draft document • n must be a multiple of 3 to advance exactly n/216 inches. • 259x printers only - The units used by ESC 3 can be changed by ESC [ \ Set Vertical Units. Graphics Variable Line Spacing (n/216") Advances the paper in a vertical movement a distance of n/216 inches relative to the current print position.
Decimal Hexadecimal 1B USAGE NOTES • The printer must receive this command prior to the barcode data command. The printer may ignore this command when the received parameters include undefined data. • The latest barcode command cancels all previous commands.
When m = 1, the barcode prints by 1/360 or 1/240 full dot method. For all other values, the barcode prints by half dot method. Module width values are nominal values. Adjustment Unit 24 wire printers (259X) 1=1/360 in. 9 wire printers (258X) 1=1/240 in 2-39 Hexadecimal Barcode...
CODE 128 "s" value affects barcode printing width. If barcode printing area reaches to the right or left margin, the printer ignores this command. Barcode Length The variables v1 and v2 control the bar length. V1 specifies lower byte. V2 specifies upper byte.
Vertical Pitch long bar height short bar height 8/180 inch 6/144 inch Effect No check code is generated by the printer. The host computer should generate the check code. Check code is generated automatically by the printer. Print On Print Off...
Page 62
– n1 is a low byte of command length data in hexadecimal. – n2 is a high byte of command length data in hexadecimal. – If an undefined value is found in the data string, the printer will ignore all the received barcode data with a length defined as n1, n2.
2500 series forms printers include support for characters contained in a variety of other code pages. When the printer is switched to one of these modes, the new set of code pages replaces those supported in the standard operating mode.
Draft document b. See sections XX. Once the printer has initialized, it will allow printing of alternate characters, by selecting one of the appropriate code pages. See section information. Verify by printing a test page. Turn the printer off. Hold down the LineFeed button on the control panel while turning on the printer.
Page 117
Hexadecimal and Decimal Hc/Lc codes - values are utilized in escape sequences found throughout this technical reference. • Translations - Supported translations are listed by column. The presence of a printer model family (258x or 259x) indicates that code page/translation combination is supported on that printer family. Code Page Table...