Lexmark Forms Printer 2491 Technical Reference
Lexmark Forms Printer 2491 Manual
View all Lexmark Forms Printer 2491 manuals
Add to My Manuals
Save this manual to your list of manuals |
Lexmark Forms Printer 2491 manual content summary:
- Lexmark Forms Printer 2491 | Technical Reference - Page 1
Forms Printer 248x/249x Technical Reference October 2000 www.lexmark.com - Lexmark Forms Printer 2491 | Technical Reference - Page 2
form has been removed, comments may be addressed to Lexmark International, Inc., Department F95/035-3, 740 New Circle Road N.W., Lexington, Kentucky 40511-1876, U.S.A. Lexmark Lexmark International, Inc. 1993, 2000. All rights reserved. UNITED STATES GOVERNMENT RESTRICTED RIGHTS This software and - Lexmark Forms Printer 2491 | Technical Reference - Page 3
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 - Lexmark Forms Printer 2491 | Technical Reference - Page 4
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 Graphics 58 Porportional Space Mode 58 Set Top of Form and Page Length 59 Set Top of - Lexmark Forms Printer 2491 | Technical Reference - Page 5
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 - Lexmark Forms Printer 2491 | Technical Reference - Page 6
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 - Lexmark Forms Printer 2491 | Technical Reference - Page 7
Character Set 1 216 Character Set 2 217 Glossary 219 Index 221 vii - Lexmark Forms Printer 2491 | Technical Reference - Page 8
viii - Lexmark Forms Printer 2491 | Technical Reference - Page 9
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 - Lexmark Forms Printer 2491 | Technical Reference - Page 10
Internal RS-232 • Serial cable Auto Sheet FeederNarrow Carriage Auto Sheet FeederWide Carriage Tractor 2 FeederNarrow Carriage Tractor 2 FeederWide Carriage USB cable 248x OKI emulation Cut Sheet Output Support Stand Part Number 1329605 (10 ft.), 1427498 (20 ft.), or equivalent 2480 2481 2490 2491 - Lexmark Forms Printer 2491 | Technical Reference - Page 11
10 cpi 2480/2481 • 438 cps • 510 cps • 309 cps • 304 cps • 77 cps • 76 cps N/A 2490/2491 • 409 cps • 465 cps • 274 cps • 328 cps • 91 cps • 109 cps 91 cps Printhead Description Your printer readable copies on multipart forms and envelopes up to and including 6-ply forms (original plus 5 copies - Lexmark Forms Printer 2491 | Technical Reference - Page 12
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 Power Consumption • 38 W average operating power • 7 W average idle power 10 - Lexmark Forms Printer 2491 | Technical Reference - Page 13
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 Operating 4 Mic Average, Draft Operating Front MicAverage, Draft Operating 4 Mic Average, NLQ Operating Front MicAverage, NLQ IDLE - Lexmark Forms Printer 2491 | Technical Reference - Page 14
the optional Auto Sheet Feeder or Tractor 2 Feeder is installed, the maximum width of a cut form is 215 mm (8.5 in.) for manual loading. Page Length Maximum Minimum Maximum Minimum 559 mm (22 in.) for 2480/2481 printers; up to0.36 mm (0.015 in.) for 2490/2491 printers. 12 Section 1: Introduction - Lexmark Forms Printer 2491 | Technical Reference - Page 15
g/m2 (24 lb.) N/A Minimum 60 g/m2 (16 lb.) N/A 56 g/m2 (15 lb.) Thickness - Multiple Part Forms of 45 g/m2 (12 lb.) paper 90 g/m2 (24 lb.) 75 g/m2 (20 lb.) 0.058 mm (0.0023 mm (0.0202 in.) for 2480/2481 printers; up to0.36 mm (0.015 in.) for 2490/2491 printers. Section 1: Introduction 13 - Lexmark Forms Printer 2491 | Technical Reference - Page 16
) Length Width Notes: 76 mm (3.0 in.) minimum N/A maximum 76 mm (3.0 in.) minimum 254 mm (10 in.) maximum 1 For paper width greater than 8.5 inches. 2 For paper width up to 8.5 inches. Manual Feed (cut sheets) Length Width Paper Weight 76.2 mm (3.0 in.) minimum 558.8 mm (22.0 in.) maximum - Lexmark Forms Printer 2491 | Technical Reference - Page 17
available for the 2400 series printer. It has a life expectancy of approximately 8 million characters in 10 cpi draft mode. 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 - Lexmark Forms Printer 2491 | Technical Reference - Page 18
installed. 2 Turn the printer Off. 3 Press Line Feed while you turn the printer On. 4 After a few seconds, release Line Feed. To stop or interrupt the printer continue the printer test. Programming Examples Examples in this manual have been character set 2 - select code page 437 - set print - Lexmark Forms Printer 2491 | Technical Reference - Page 19
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 - Lexmark Forms Printer 2491 | Technical Reference - Page 20
18 Section 1: Introduction - Lexmark Forms Printer 2491 | Technical Reference - Page 21
Set Initial Conditions (SIC) Command Section 2 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 Decimal 27 91 75 Hex 1B 5B 4B Ln Hn init ID p1...p22 - Lexmark Forms Printer 2491 | Technical Reference - Page 22
, 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 254 - Lexmark Forms Printer 2491 | Technical Reference - Page 23
parameters (parms) with SIC commands that use the printer ID of C5 and C6: Printer 2480 2481 2490 2491 Dec Hex 197 C5 197 C5 198 C6 198 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 Ç and Micro È - Lexmark Forms Printer 2491 | Technical Reference - Page 24
has not been supplied), the printer default macro is used to store 2=Draft 2 02 3=Gothic 3 03 4=Courier 4 04 5=Download Font 5 05 6=Prestige 6 06 (249x Plus only) Script 9 09 (249x Plus only) 5 Pitch 0=No Change 0 00 1=10 Pitch 1 01 2=12 Pitch 2 02 3=15 Pitch 3 03 4=17 - Lexmark Forms Printer 2491 | Technical Reference - Page 25
Code Page 0=No Change 0 00 1=437 1 01 2=850 2 02 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 3 03 4 04 5 05 6 06 7 07 8 08 9 09 10 0A 11 0B 12 0C 13 0D 14 0E 15 0F 16=858 Form Inches 6 06 (2491 models only) Bottom - Lexmark Forms Printer 2491 | Technical Reference - Page 26
Parm Description Selection Dec Hex 14 Auto LF 0=No Change 0 00 1=On 1 01 2=Off 2 02 15 Slash Zero 0=No Change 0 00 1=Slashed Zero 1 01 2=Normal Zero 2 02 16 Character Set 0=No Change 0 00 1=Set 1 1 01 2=Set 2 2 02 17 Print Direction 0=No Change 0 00 1= - Lexmark Forms Printer 2491 | Technical Reference - Page 27
mode commands you can use with your printer. Control Codes Control codes are one-character printer commands that are used to: • Manage . 10 Vertical Tab VT Moves the paper to the next vertical 11 tabulation stop set with the printer command Set Vertical Tabulation Stops (ESC B). Form Feed - Lexmark Forms Printer 2491 | Technical Reference - Page 28
17.1 and 12 cpi to 20. Select DC1 Selects the printer. 17 Printer Select 10 DC2 cpi Returns condensed printing to normal (10 18 cpi) Deselect DC3 Printer Signals the printer to stop accepting data 19 from the computer. This control code has no effect on the parallel interface. Cancel DC4 - Lexmark Forms Printer 2491 | Technical Reference - Page 29
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 - Lexmark Forms Printer 2491 | Technical Reference - Page 30
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 as lowercase. The printer looks at the uppercase and lowercase letters as separate command instructions. The uppercase - Lexmark Forms Printer 2491 | Technical Reference - Page 31
Top of Form ESC 4 Automatic Line Feed ESC 5 Select Character Set 2 ESC 6 Select Character Set 1 ESC 7 Select 12 cpi ESC : Download a N Cancel Skip Perforation ESC O Proportional Space Mode ESC P Deselect Printer ESC Q Set Default Tab Stops ESC R Begin Subscript/ Superscript - Lexmark Forms Printer 2491 | Technical Reference - Page 32
Score Select (249x only) ESC [ - Select Print Type Style ESC [ @ Set Initial Condition Select Global Font Select Code Page ESC [ K ESC [ I ESC [ T Set Vertical Units (249x only) Set Print Quality Setup Barcode 100 Ln Hn 1B 64 Ln Hn page 54 32 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 33
Hex 1B 36 See pag e217 for more information. Select Code Page Use this printer command to change the active code page. Format ESC [ T 4 0 0 0 Hc 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 - Lexmark Forms Printer 2491 | Technical Reference - Page 34
page tables for the decimal or the hexadecimal digit (see "Code Pages" on page 187). • Locate the character on the code page table. • Use the decimal or hexadecimal digit for that character in the printer com- mand format. Usage Notes To print less than 256 characters: • Hn is 0. • Ln is the number - Lexmark Forms Printer 2491 | Technical Reference - Page 35
low/high data Usage Notes count low/count high The number of bytes of data being downloaded starting with the printer id byte. id A 1-byte number identifying the printer. Printer 2480 Plus 2481 Plus 2490 Plus 2491 Plus Dec Hex 182 B6 184 B8 183 B7 185 B9 35 Section 3: IBM Emulation - Lexmark Forms Printer 2491 | Technical Reference - Page 36
data. When the lookup table data is downloaded, the start address is the address of the want to print). 4 Substitute these digits for Hf Lf in the printer command syntax. • The size parameters (Hs, Ls and Sm) identify the Code Page you want to use. (See Table 4 on page 39.) 36 Section 3: IBM - Lexmark Forms Printer 2491 | Technical Reference - Page 37
00 AC 00 6D 00 6D 00 A2 00 39 00 74 00 D8 00 B9 Table 2. 249x: Select Global Font Pitch 5 10 12 15 17 20 24 PS 5 10 12 15 17 20 24 PS Decimal Hf Lf Normal Bold Italic 0 244 0 11 1 235 1 236 1 237 1 238 1 C9 01 CA 01 1F 01 A4 00 3C 00 6F 00 70 37 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 38
Table 2. 249x: Select Global Font (Continued) Pitch 5 10 12 15 17 20 24 PS 10 12 15 17 20 24 PS 10 12 15 17 20 24 PS 10 12 15 17 20 24 PS Decimal Hf Lf Normal Bold Italic 0 241 0 36 1 143 1 142 1 141 1 140 1 32 0 174 01 D8 01 24 00 C8 Bold/Ital 38 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 39
5 CPI (10 CPI double-wide Dec (Hs, Ls) 0 00 - 0 65 0 66 - 0 77 0 78 - 0 89 0 90 - 0 107 0 108 - 0 131 0 132 - 0 155 0 156 - 0 179 0 180 - 0 215 0 216 - 0 254 0 255 - 0 256 Table 4. Global Font and Code Page Code Page 437 850 03H ECH 03H 5AH 39 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 40
12 cpi. Format Decimal Hex ESC : 27 58 1B 3A Select Print Mode This command selects the normal font or the download font in Draft , NLQ (248x only) or LQ (249x only). Format ESC I n Decimal 27 73 n Hex 1B n for the 248x and 249x print- ers: 40 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 41
(LQ) Porportional 4 04 Downloaded 10 cpi Draft 12 0C Downloaded 12 cpi Draft 20 14 Downloaded 17 cpi Draft 6 06 Downloaded 10 cpi LQ 14 0E Downloaded 12 cpi LQ 22 16 Downloaded 17 cpi LQ 7 07 Downloaded Porpor- tional LQ 41 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 42
Print Type Style This command is used for varying the type style of the character and the number of line spacing. Use this printer command for: • Single-high character • Double-high character • Single-wide character • Double-wide character • Single line feed • Double line feed • Italic print (for - Lexmark Forms Printer 2491 | Technical Reference - Page 43
No Change Single Double No Change No Change No Change Single Single Single Single Double Double Width Unchanged Single Double 43 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 44
ESC G Decimal 27 71 Hex 1B 47 To end double-strike print: Format ESC H Decimal 27 72 Hex 1B 48 44 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 45
n Decimal 27 83 1 Hex 1B 53 01 To end subscript: Format ESC T Decimal 27 84 Hex 1B 54 Set Print Direction This command sets the printer to print either unidirectionally or bidirectionally. Format ESC U n Decimal 27 85 n Hex 1B 55 n Usage Note The value of n can be any of the following - Lexmark Forms Printer 2491 | Technical Reference - Page 46
Decimal Hex Direction 0 00 Cancels double-wide printing mode 1 01 Sets double-wide printing mode. Score Select For 249x printers only. This command selects several forms of overscore, underscore, and strikethrough. Format ESC [ - 2 0 loc type Decimal 27 91 45 2 0 loc type Hex 1B 5B 2D - Lexmark Forms Printer 2491 | Technical Reference - Page 47
_ n Decimal 27 95 1 Hex 1B 5F 01 To end Continuous Overscore: Format ESC _ n Decimal 27 95 0 Hex 1B 5F 00 47 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 48
91 100 1 0 n Hex 1B 5B 64 01 00 n Usage Notes • For 2480 printers, the value of n can be any of the following: Decimal Hex 0 00 1 to No Change Fast Draft Draft Near Letter Quality 255 FF Default Quality • For 2490 printers, the value of n can be any of the following: Decimal Hex 0 - Lexmark Forms Printer 2491 | Technical Reference - Page 49
can have 8 rows of dots. To print bit image graphics, the printer uses either the first 8 (248x) or 20 (249x) wires of map the eight bits of data. The following table shows how the print wires are mapped for the 249x printer: Bit Number 7 6 5 4 3 Binary Value 128 64 32 16 8 Print Wires 1, 2 If - Lexmark Forms Printer 2491 | Technical Reference - Page 50
4 2 1 Print Wires 14, 15 16, 17 If dots 1 and 0 print, wire 18 is also used. 19, 20 Mode and Horizontal Density (249x Only) For 249x printers only. Use this command to select the mode and horizontal density for dot matrix graphics. Format ESC [ g Ln Hn mode data Decimal 27 91 103 - Lexmark Forms Printer 2491 | Technical Reference - Page 51
Mode Dec Hex 8 08 9 09 11 0B 12 0C 13 0D 14 0E 16 10 Horizontal Density 60 120 180 360 120 180 360 Wires 24 24 24 24 24 24 48 • data is the - The result is Hn. - The remainder is Ln. • data is the bit-mapped graphics information. 51 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 52
want to print by 256. - The result is Hn. - The remainder is Ln. • data is the bit-mapped graphics information. 52 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 53
numerical order. • ESC D 0 clears all existing horizontal tab stops. • The printer command ESC R resets to the default horizontal tabulation stops, which are set at all vertical tabulation stops. • To set user-defined tabulation stops, use printer command ESC D. 53 Section 3: IBM Emulation Mode - Lexmark Forms Printer 2491 | Technical Reference - Page 54
increments: • Divide the number of increments you want to move by 256. - The result is Hn. - The remainder is Ln. 54 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 55
Notes • n is a value from 0 to 255 (decimal) or 0 to FF (hex). • n must be a multiple of 3 to advance exactly n/216 inch. 55 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 56
Set Vertical Units For 249x printers only. This command lets you set the size of the increments for the following commands: • Set Line Spacing for Graphics (ESC 3) and to advance paper to the next vertical tabulation stop (VT) to activate them. 56 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 57
27 48 Hex 1B 30 Set Line Spacing to 7/72 Inch This command sets the line spacing at 7/72 inch between each line, which is 10.3 lpi. Format ESC 1 Decimal 27 49 Hex 1B 31 Activate Line Spacing for Text This command activates the line spacing designated by the Set Line - Lexmark Forms Printer 2491 | Technical Reference - Page 58
in n/72 inch increments. To activate the line spacing, use the printer command Activate Line Spacing for Text (ESC 2). Format ESC A n Graphics This command sets line spacing to n/216 inches. It does not cause the form to move. It changes the vertical distance moved when a line feed command is - Lexmark Forms Printer 2491 | Technical Reference - Page 59
• When the command is sent, the current vertical position becomes the new top of form. • If the printer command Set Skip Perforation (ESC N) is active, or if "skip over perforation" is On in the printer setup, this printer command deactivates it. Set Page Length in Lines This command sets the page - Lexmark Forms Printer 2491 | Technical Reference - Page 60
the command is sent, the current vertical position becomes the new top of form. • If the printer command Set Skip Perforation (ESC N) is active, or if "skip over perforation" is On in the printer setup, this printer command deactivates it. Set Skip Perforation This command specifies the number of - Lexmark Forms Printer 2491 | Technical Reference - Page 61
Dec Hex Setting 3 03 ON 2480 182 B6 OFF 22 16 ON 2481 184 B8 OFF 23H 2490 B9H 24H 2491 B7H Setup Barcode Parameter This command sets the barcode parameters to the printer. Format ESC [ f 6 0 k m s v1 v2 c Decimal 27 91 102 6 0 k m s v1 v2 c Hex 1B 5B 66 06 00 k m s v1 - Lexmark Forms Printer 2491 | Technical Reference - Page 62
B1 178 B2 EAN-13 179 B3 EAN-8 180 B4 CODE 39 181 B5 182 B6 INTERLEAVED 2 of 5 183 B7 UPC-A 184 , 0 is the default value. The adjustment unit for 24 wire printers is 1=1/360 in. and for 9 wire printers the unit is 1=1/240 in. The variables v1 and v2 control the - Lexmark Forms Printer 2491 | Technical Reference - Page 63
n2(high byte) Dec Hex 0 00 Barcode Type EAN-13 8 08 0 00 EAN-8 1 to 255 01 to FF 0 00 CODE 39 1 to 255 01 to FF 0 00 INTERLEAVED 2 of 5 12 0C 0 00 UPC-A 10 0A 0 00 POST-NET (barcode) 2 to 255 02 to FF 0 00 CODE 128 63 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 64
to FF 0 00 1 to 255 01 to FF 0 00 11 0B 0 00 9 09 0 00 2 to 255 02 to FF 0 00 Barcode Type EAN-13 EAN-8 CODE 39 INTERLEAVED 2 of 5 UPC-A POST-NET (barcode) CODE 128 64 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 65
d2=1 Single continuous line d2=2 Double continuous line d2=5 Single broken line d2=6 Double broken line Printable Code Area Expansion (248x only) n=1 Allows non-printable codes to be used for user-defined characters. n=0 Cancels n=1 selection. 65 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 66
Name Dec ESC R 27 82 n Hex 1B 52 n Description Select an International Character Set n=0 USA n=1 France n=2 Germany n=3 U.K. n=4 Denmark 1 n=5 Sweden n=6 Italy n=7 Spain 1 n=8 Japan n=9 Norway n=10 Denmark 2 n=11 Spain 2 n=12 Latin America n=13 Korea (249x only) n=64 Legal (249x only) 66 Section - Lexmark Forms Printer 2491 | Technical Reference - Page 67
shadow Select Character Tables Selects italic or character graphics as the extended character. n=0 Italics Character table n=1 Epson Extended Graphics table n=2 User-defined Character table (249x only) 248x: Select Near Letter Quality or Draft n=0 Selects Draft mode n=1 Selects NLQ mode 249x: Select - Lexmark Forms Printer 2491 | Technical Reference - Page 68
values (the d1 character table is one of the four tables selectable with the ESC t command): d2 d3 Table/Code Page 0 0 Italic table 1 0 Graphic table/437 1 16 Graphic table/437G 2 16 Graphic table/813 3 0 Graphic table/869 24 0 Graphic table/861 68 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 69
47 1B 48 1B 70 n 1B 53 n 1B 54 Description Print 12 Characters per Inch Print 10 Charaters per Inch Set Variable Character Spacing Sets additional space to the right of each character, which is n=1 Subrscript End Superscript or Subscript 69 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 70
at the end of a print line. The following table lists the n parameters for the ESC ! command. n= On Off Dec Hex Print Style 0 No Yes 0 00 10 cpi Yes No 1 01 12 cpi 1 Yes No 2 02 Proportional 2 Yes No 4 04 Condensed 3 Yes No 8 08 Emphasized 4 Yes No 16 - Lexmark Forms Printer 2491 | Technical Reference - Page 71
Hn Quadruple Density Bit Image Graphics data Prints high density bit images at 240 dpi horizontally and 72 dpi vertically. 71 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 72
38 CRT-III Screen 90 None 39 High resolution, triple 180 density None 40 High resolution, hex 360 density None 72 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 73
Relative Position Offsets the print position by the relative distance from the current position. Offset=(n1 + (n2 x 256))/120 (inch). 73 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 74
J ESC j ESC b ESC Q ESC / Dec Hex Description 10 0A Line Feed Advances the form one line. 11 0B Vertical Tab Advances the paper to the paper by n/216 inches in the reverse direction on 248x printer; n/180 inches in the reverse direction on 249x printer. 27 98 m n1...n8 0 1B 62 m n1...n8 - Lexmark Forms Printer 2491 | Technical Reference - Page 75
are 0 through 255. 27 79 1B 4F Cancel Skip Perforation Cancels the skip perforation function. Printer Control Name ESC s ESC EM Dec 27 115 27 25 n Hex 1B 73 1B 19 n The sequence ends with 0. 12 0C Form Feed Advances the paper to the top of the next page. 75 Section 4: Epson Emulation Mode - Lexmark Forms Printer 2491 | Technical Reference - Page 76
32.) String Descriptor Download Command Resets the printer to user default settings after downloading the string descriptor to the printer. (This command is 56 27 35 1B 38 1B 23 Description Printable Code Area Expansion Cancel Printable Code Area Expansion Disable Paper-out Sensor (248x only) - Lexmark Forms Printer 2491 | Technical Reference - Page 77
: ESC < Dec Hex Description 27 38 0 n1 1B 26 0 n1 Define Download Characers n2 d1 data n2 d1 data 27 58 0 n 0 1B 3A 00 to Zero Sets the MSBs of all data sent to the printer to 0. Set MSBs to One Sets the MSBs of all data sent to the printer to 1. Begin or End Continuous Double-Wide Printing n=0 - Lexmark Forms Printer 2491 | Technical Reference - Page 78
78 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 79
with your printer. Character Set Name Dec ESC ! 0 27 33 48 ESC ! 1 27 33 49 ESC ! 2 27 33 50 ESC ! n 27 33 n Hex 1B 21 30 1B 21 31 1B 21 31 1B 21 n Description Select Standard Character Set Select Block Graphics Character Set Select Line Character Set Select an International Character - Lexmark Forms Printer 2491 | Technical Reference - Page 80
Ln Hn 0 0 Hcp Lcp 04 Description Print from Code Page If printing less than 256 characters: Ln = Hn= remainder of quotient Hcp Lcp Code Page Set Decimal 1 181 USA 2 82 Multilingual 3 Code Page Set Hexadecimal 01 B5 USA 02 52 Multilingual 03 5C Canadian French 03 5F Portugal 03 61 Norway 04 10 - Lexmark Forms Printer 2491 | Technical Reference - Page 81
ESC M ESC US ESC US 1 ESC US 0 ESC & ESC Y ESC Z ESC N Dec Hex Description 30 1E Print 10 Characters per Inch 28 1C Print 12 Charaters per Inch 27 103 1B 67 Print 15 Charaters per Inch 29 1D Print 17.1 be between 0 and 11. 81 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 82
Variable Values and Factors for Combined Print Features Command Value 1 2 4 8 16 Factor n1 10 cpi 12 cpi 17.1 cpi 20 cpi Double Width 32 Variable/Feature n2 n3 Cancel super Printing Select Underline Printing Cancel Underline Printing 82 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 83
n11 Begins downloading an descender character. ESC 2 27 50 1B 32 Set DLL in Draft Mode Switches custom character printing on when the printer is set Print Mode ETX STX 3 2 03 02 Cancel Graphics Print Mode ETX LF 3 10 03 0A Graphics Line Feed with Carriage Return (Text) ETX SO 3 14 03 0E - Lexmark Forms Printer 2491 | Technical Reference - Page 84
above table. 2 Select the corresponding n2 value. 3 Locate the word size (7 or 8-bit graphics). 4 Select the corresponding n2 value. 84 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 85
use zeros for the first digit(s). Maximum margin value is 899 (2480 printer model) or 999 (2481 printer model). Units are set at 1/120". ESC % R 27 37 82 , and in ascending order. Maximum values are as follows: Pitch 2480 2481 10 cpi 080 136 12 cpi 096 163 15 cpi 120 204 17.1 cpi - Lexmark Forms Printer 2491 | Technical Reference - Page 86
to the center of the next dot). Pitch Shift Increment 10 cpi 1/120 12 cpi 1/144 15 cpi 1/180 17 B Maximum values are as follows: Pitch 2480 2481 10 cpi 959 1631 12 cpi 1151 1956 15 cpi 1339 ESC ETX ... CR on page 86 for instructions on calculating the value for n1...n4. (Use - Lexmark Forms Printer 2491 | Technical Reference - Page 87
10 the next dot). Pitch Shift Increment 10 cpi 1/120 12 cpi 1/144 15 Maximum values are as follows: Pitch 2480 2481 10 cpi 959 1631 12 cpi 1151 1956 15 cpi CR on page 86 for instructions on calculating the value for n1 ... CR on page 86 for instructions on calculating the value for n1 - Lexmark Forms Printer 2491 | Technical Reference - Page 88
00 and 99. For values less than 10, Hn = 0. ESC % S 1 27 Form Feed (with carriage return) Advances the paper to the top of the next page. LF 10 0A Line Feed (with carriage return) Advances the form 1B 0B Hn Ln Skip Down Select Number of Lines 27 10 1B 0A Reverse Line Feed ESC 6 27 54 1B - Lexmark Forms Printer 2491 | Technical Reference - Page 89
Tab Advances the paper to the next vertical tab stop. Valid channel codes are 49 through 60. ESC 5 27 53 1B 35 Set Top of Form Other Commands Name Dec Hex CAN 24 18 ESC { 27 123 Mode Cancel Print Suppress Mode Software-Prime 89 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 90
Name ESC V Dec 27 86 Hex 1B 56 Description Eject Page 90 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2491 | Technical Reference - Page 91
the printer to a computer that does not have a parallel port, or to a computer that does not have an available parallel port. Parallel Interface Use Lexmark parallel cable 1329605 (3 m or 10 ft.) or 1427498 (6.1 m or 20 ft.). The parallel cable must be IEEE 1284-compliant and must support two - Lexmark Forms Printer 2491 | Technical Reference - Page 92
a STROBE* (low) pulse to the printer. The printer responds with a BUSY (high) signal. After the printer receives the data, the printer pulses the ACKNLG* (low) line. This signals the computer that the printer has read the byte of data into printer memory. If the printer buffers are not full and the - Lexmark Forms Printer 2491 | Technical Reference - Page 93
21 GROUND 22 GROUND 23 GROUND 24 GROUND 25 Shield Shield Printer 1 STROBE 2 DATA 0 3 DATA 1 4 DATA 2 5 DATA 3 6 DATA 4 7 DATA 5 8 DATA 6 9 DATA 7 10 ACKNLG* 11 BUSY 12 PE 13 SLCT 14 AUTO FEED SLCTIN* Lexmark compliant cables are supported up to 20 feet. 93 Section 6: Using the Printer Interface - Lexmark Forms Printer 2491 | Technical Reference - Page 94
bits of parallel data sent from the computer. A high level indicates a logical 1. A low level indicates a logical 0. The printer reads data from the DATA lines when a STROBE* pulse is received. 10 ACKNLG* The ACKNLG* pulse tells the computer that the data from the previous STROBE* pulse has been - Lexmark Forms Printer 2491 | Technical Reference - Page 95
error condition exists when both ERROR* and PE are low. 33 GND Ground level. 34-35 Not used. 36 SELECT IN The printer does not respond to the DC1/DC3 code when this signal, valid only in Epson mode, is low. * Inverted logic (signal is active when low). Timing The following chart - Lexmark Forms Printer 2491 | Technical Reference - Page 96
from the computer. Serial Interface Option The Lexmark serial interface, part number 12T0154, supports the RS-232C protocol. All serial interface parameters can be selected by the operator panel. The serial interface installs internally into the back of the printer, and connects to the serial cable - Lexmark Forms Printer 2491 | Technical Reference - Page 97
Side 14 1 Computer Side RS-232C Serial Connector Pin Assignments Pin Signal Description 2 TXD (Transmit Data) This line transmits data from the printer to the host. The data characteristics are specified by the function menu settings which are read only during a Power On Reset (POR). The - Lexmark Forms Printer 2491 | Technical Reference - Page 98
RS-232C serial cable is 50 feet long. This cable works with the IBM PS/2 series and other compatible host systems using a 25-pin male connector. The maximum total capacitance of 4%. Following is a diagram of the serial cable (Lexmark part number 1038693 (15.24 m or 50 ft.)). 98 Section 6: Using the - Lexmark Forms Printer 2491 | Technical Reference - Page 99
assignments for the 9-pin to 25-pin RS-232C serial cable. IBM 9-Pin to 25-Pin Adapters 6450242 (254 mm or 10 in.) 6450217 (30.4 m or 10 ft.) Lexmark Null Modem Serial Cable 1038693 (15.24 m or 50 ft.) DCD 1 RXD 2 TXD 3 DTR 4 GND 5 to ± 25 negative V dc. 99 Section 6: Using the Printer Interface - Lexmark Forms Printer 2491 | Technical Reference - Page 100
computer sends serial data in data frames (also known as packets). You can create 10-bit, 11-bit, or 12-bit data frames and set the serial data that each data frame contains 7 or 8 data bits. However, the printer is an 8-bit printer; characters, controls, and APA graphics need 8 bits of data. If - Lexmark Forms Printer 2491 | Technical Reference - Page 101
(software) DTR Protocol Timing You use DTR to control the data flow from the computer. DTR goes from high to low to indicate to the computer that the printer cannot receive more data due to one of the following conditions: • Buffer full • Attendance error (paper out, printer error) • Printer not - Lexmark Forms Printer 2491 | Technical Reference - Page 102
. Legend: 1 The RTS signal is driven directly by the RS-232C line driver and is active any time power is supplied to the printer. 2 The DTR signal becomes active (high) when initialization is complete, telling the computer that the printer is ready to receive data. 3 DTR drops (low) to tell the - Lexmark Forms Printer 2491 | Technical Reference - Page 103
the serial adapter, you must configure the operating system of the computer. The following examples show how to configure DOS and OS/2 for the printer using serial DTR protocol. DOS From the DOS prompt, enter the following commands: mode com1:9600,n,8,1 Include this command statement in the AUTOEXEC - Lexmark Forms Printer 2491 | Technical Reference - Page 104
- Settings screen appears. 4 Select the serial port to which you want to attach the printer. The Serial Port - Settings screen appears. 5 Select the settings you want to use. 6 Select OK. The computer: run c:\os2\mode.com com1:,,,,,DTR=on,OCTS=on,ODSR=on 104 Section 6: Using the Printer Interface - Lexmark Forms Printer 2491 | Technical Reference - Page 105
; the second part is for 249x users. The downloading feature lets you create custom fonts and special characters. You can create and print complete italic or foreign language character sets as well as symbols and special characters not in the printer character sets. The examples in this chapter use - Lexmark Forms Printer 2491 | Technical Reference - Page 106
dots are generated by the printer. Diagonal Lines These drawings show how the printer adds dots to diagonal lines. Rows 1 Columns 1 2 3 4 5 6 7 8 9 10 11 Rows 1 Columns 1 2 3 4 5 6 7 8 9 10 11 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 106 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 107
. The printer removes adjacent dots from horizontal lines when printing in Draft, which is illustrated in the drawing on the right. Rows 1 Columns 1 2 3 4 5 6 7 8 9 10 11 Rows 1 Columns 1 2 3 4 5 6 7 8 9 10 11 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 107 Section 7: Downloading Characters - Lexmark Forms Printer 2491 | Technical Reference - Page 108
Vertical Line The 'M' shows how the printer adds dots when a diagonal line meets the end of a vertical line. Columns 1 2 3 4 5 6 7 8 9 10 11 Columns 1 2 3 4 5 6 7 8 9 10 11 Rows 1 Rows 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 108 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 109
Fast Draft characters is 10-dots wide and 9-dots through 18. Downloading Characters The 9-wire printers have 3 download areas. The first download area is code page from Character Options the draft download area is initialized to code page 437. The two NLQ II download areas are also unitized to code - Lexmark Forms Printer 2491 | Technical Reference - Page 110
14 start There are two parts of the ESC = escape sequence. Part one includes count 1, count 2, font ID byte, and the start code. Use this part once for each download command. Part two is made up of one or more sequences of 13 bytes of data. The first two bytes of data - Lexmark Forms Printer 2491 | Technical Reference - Page 111
Part Two: Specifying the Download Data Attribute byte 1 specifies the character type and additional information 223. 1,0 shading character. The dots in rows 1, 2, 3, and 4 are repeated as rows 9, 10, 11, and 12. NLQ mode is ignored. Use this mode to create characters similar to resident font - Lexmark Forms Printer 2491 | Technical Reference - Page 112
character width. Widths greater than 11 will be treated as 11. These bytes are unique to each character, and must be specified for each download character. The printer prints one byte at a time. Each wire in the printhead has a corresponding bit in each byte, depending on whether the character is an - Lexmark Forms Printer 2491 | Technical Reference - Page 113
Designing and Downloading the Draft/NLQ Copyright (©) Symbol This example shows how the 11 bytes of printable data for the '©' symbol were determined. Rows 1 Columns 1 2 3 4 5 6 7 8 9 10 11 Bits 7 2 6 3 5 4 4 5 3 6 2 7 1 8 0 9 Decimal Values- 56 68 0 146 170 170 170 130 0 68 56 - Lexmark Forms Printer 2491 | Technical Reference - Page 114
loads data for the copyright symbol into the printer. The data remains in the download storage area until you: • Set the power switch to Off. • Overlay the data with download character data. • Download area is initialized. - Lexmark Forms Printer 2491 | Technical Reference - Page 115
be in the range of x00 to xFF. You can start your downloaded character set at any point in the character table. The download characters replace normal characters starting at this code-point. For example, to download a character set that replaces characters starting with the uppercase letter 'A', use - Lexmark Forms Printer 2491 | Technical Reference - Page 116
Part Two: Specifying the Download Data Each font character is made up of 48 bytes of data. There are 2 bytes of attribute data and 46 bytes is ignored. This type mode should be used to create characters similar to resident font characters 176 to 178. 116 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 117
horizontal dots should always be odd (for example 1, 3, 5, 7, 9) to ensure that a character appears the same when printed leftto-right or right-to-left. 117 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 118
, it is compressed. By filling in-between adjacent horizontal dots, character compression by the printer is more efficient. When you want to print the '©' symbol: • Send ESC I x07 to the printer to select the download characters in NLQ II mode. • Send data by any method that would cause the - Lexmark Forms Printer 2491 | Technical Reference - Page 119
download and print the copyright © symbol. - Lexmark Forms Printer 2491 | Technical Reference - Page 120
the default font. (The first font marked default is chosen if no user-defined default has been stored using the operator panel menu.) This byte also has a non-zero code page ID, that code page ID becomes the active code page when the printer is switched 120 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 121
zero). Quality and pitch. 0000 = Draft 0001 = 10 cpi Letter Quality 0010 = 12 cpi Letter Quality 0011 = Proportional low-byte second. For examples of the download sequence, see "Designing Monospaced Fast Draft 141. Design Considerations The 24-wire printers use a character matrix that is 24 - Lexmark Forms Printer 2491 | Technical Reference - Page 122
column must always be specified as a blank. For example, a 10 cpi character that is 36 dot-columns wide is designed with If you are printing right to left, the internal algorithms compensate and print the design as it the sequence include designing and downloading a monospaced draft character and - Lexmark Forms Printer 2491 | Technical Reference - Page 123
high byte. When data is character data, it comes from the character design. When downloading lookup table data, data is as follows: Bit 1, 2, and 3 (Attribute Byte Line drawing character. 1,0 Underscore character. 1,1 Not supported. For a 10 cpi Letter Quality 36 column character, bits 5-0 would - Lexmark Forms Printer 2491 | Technical Reference - Page 124
of its status, you can write over the download area with the resident lookup tables for the currently selected code page. To write over any existing download data, send the printer command ESC = 0 0. Sending ESC = 0 0 clears the existing download data and copies the resident lookup tables to the - Lexmark Forms Printer 2491 | Technical Reference - Page 125
code page. After receiving an ESC = 0 0 command, the download area appears empty. Any valid download command activates the download access. For more information, see "Downloading how to design and download an ELQ 10 cpi character with compression. A description of downloading an entire font is - Lexmark Forms Printer 2491 | Technical Reference - Page 126
18 19 B Y 20 T E 21 3 22 23 LSB 24 Byte 1 00 0F 10 20 10 0F 00 00 00 Byte 2 07 18 A0 58 86 01 0E 00 00 Byte 3 C0 20 10 20 10 C0 30 00 00 Compresson Mask 0 0 0 0 0 0 0 0 1 0 0 no compression can occur. Column 9 is identical to column 8 (blank). 126 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 127
Character Data Each dot column is sent to the printer as three bytes of data. To get the 1100 0000 or 192, xC0. Initializing the Download Area Use the following command to initialize the download area: - Lexmark Forms Printer 2491 | Technical Reference - Page 128
the Font Descriptor Byte Send the following descriptor byte information to the printer: For more information - Lexmark Forms Printer 2491 | Technical Reference - Page 129
10 and 12 cpi and Fast Draft (10 cpi) - x8011 - 10 cpi Letter Quality and Enhanced Letter Quality - x8912 - Proportional LQ and ELQ - x9213 - 12 cpi LQ and ELQ - x9B14 • Download Downloading the Lookup Table Data Send the following lookup table information to the printer: - Lexmark Forms Printer 2491 | Technical Reference - Page 130
Monospaced Draft Characters When designing monospaced draft characters, design the character for 10 cpi output and use as many dot-columns as possible. This method character matrix for a draft character is 10 dots wide, the last column must be blank. 130 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 131
columns that are identical, no compression can take place. 1 2 3 4 5 6 7 8 9 LSB 1 2 3 B Y4 T E5 16 7 MSB 8 LSB 9 10 B 11 Y 12 T E 13 2 14 15 MSB 16 LSB 17 18 19 B Y 20 T E 21 3 22 23 MSB 24 Byte 1 00 00 00 07 01 FE Byte 3 0A 15 2A D4 00 50 A8 50 A0 131 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 132
Character Data Each dot-column is sent to the printer as three bytes of data. To get the or 10, x0A. The character data is shown in the example below. Initializing the Download Data Use the following command to initialize the download area: - Lexmark Forms Printer 2491 | Technical Reference - Page 133
printers is x800C to xFFFF. • The ASCII character 0 lookup table entry addresses for the resident fonts are: - Draft (10 and 12 cpi) and Fast Draft (10 cpi) - x8011 - 10 cpi Letter Quality and Enhanced Letter Quality - x8912 - Proportional LQ and ELQ - x9213 - 12 cpi LQ and ELQ - x9B14 - Download - Lexmark Forms Printer 2491 | Technical Reference - Page 134
Table Data Use the following example to send the lookup table information to the printer: - Lexmark Forms Printer 2491 | Technical Reference - Page 135
Printing the Character To print the two-sixteenth note character at 12 cpi download draft, send the following sequence: - Lexmark Forms Printer 2491 | Technical Reference - Page 136
trademark symbol. Only 41 columns are shown because column 42 must be blank. Solid dots indicate downloaded and printed dots. Hollow dots indicate consecutive dots that may be added back to the design to 20 3C 00 00 20 20 20 3F 30 10 06 04 02 01 00 00 00 01 02 04 06 10 30 3F 20 20 20 00 Byte 2 00 - Lexmark Forms Printer 2491 | Technical Reference - Page 137
Data, with mask bits set to one, is generated by the printer according to the compression mask. Initializing the Download Area Use the following command to initialize the download area: 137 Section - Lexmark Forms Printer 2491 | Technical Reference - Page 138
23 14A4 - download command prefix - character data - byte count (low byte first) - x005D, 93 - font ID for 249x printers - start address (low byte first) - xA414 3C0000 - column 1 200000 - columns 2 & 3 200400 - columns 4, 5 6 & 7 3FFC00 - column 8 200400 - columns 9, 10, - Lexmark Forms Printer 2491 | Technical Reference - Page 139
10 and 13 cpi) and Fast Draft (10 cpi) - x8011 - 10 cpi Letter Quality and Enhanced Letter Quality - x8912 - Proportional LQ and ELQ - x9213 - 12 cpi LQ and ELQ - x9B14 - Download Downloading the Lookup Table Data Send the following lookup table example to the printer: - Lexmark Forms Printer 2491 | Technical Reference - Page 140
Printing the Character To print the trademark character, send the following sequence: 140 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 141
FF 10 10 10 10 10 10 10 7C 00 00 00 00 03 03 Byte 3 10 10 10 30 F0 D0 10 10 00 00 00 00 00 00 00 00 10 10 10 F0 F0 10 10 10 10 10 10 10 10 10 10 10 10 F0 F0 Compression Mask 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 1 1 1 0 0 1 1 1 0 1 6 0 0 1 6 B F 3 A 141 Section 7: Downloading - Lexmark Forms Printer 2491 | Technical Reference - Page 142
Data Each dot-column is sent to the printer as three bytes of data. To get the or 10. The character data is shown in the following example. Initializing the Download Area Use the following command to initialize the download area: - Lexmark Forms Printer 2491 | Technical Reference - Page 143
data at any unused memory address greater than xA413. This example uses xA414. - Lexmark Forms Printer 2491 | Technical Reference - Page 144
the Font Descriptor Byte Send the following descriptor byte information to the printer: - Lexmark Forms Printer 2491 | Technical Reference - Page 145
printer: Printing the Character To print the character at 10 cpi download Enhanced Letter Quality, send the following sequence: - Lexmark Forms Printer 2491 | Technical Reference - Page 146
146 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2491 | Technical Reference - Page 147
not possible. For 249x printers, buffer space is reserved automatically for barcode processing. Resident barcodes include: EAN-13 EAN-8 Code 39 UPC-A POSTNET Code 128 Interleaved 2of5 A which allows the data to be manually entered if the barcode cannot be scanned. Section 8: Barcodes 147 - Lexmark Forms Printer 2491 | Technical Reference - Page 148
UPC-A and EAN-13 barcodes use a flag character for number system encoding and country code. Your printer provides the capability of printing the human readable form of this flag character either in the vertical center along the left side of the barcode, or under the barcode with the other human - Lexmark Forms Printer 2491 | Technical Reference - Page 149
k is the barcode type. Barcode Type EAN-13 EAN-8 Code 39 Interleaved 2of5 UPC-A POSTNET Code 128 k value 178, xB2 179, xB3 180, xB4 182, xB6 183, xB7 185, xB9 186, xBA m is the module width. Module is a term defining the - Lexmark Forms Printer 2491 | Technical Reference - Page 150
An example of Code 39, with m = 0 and m = 1, follows: m = 0 (the human readable character is printed) m = 1 (the human readable character is not printed) s is the space width adjustment factor. This parameter - Lexmark Forms Printer 2491 | Technical Reference - Page 151
v2 = quotient (1015 divided by 256) = 3, x03 v1, v2 are subject to the following limitation: Printer Model 248x 249x Minimum V value 270 288 Minimum v1, v2 values x0E, x01 x20, x01 Notes: • printed, host/software generates it. 1: Printer generates and prints check digit. Section 8: Barcodes 151 - Lexmark Forms Printer 2491 | Technical Reference - Page 152
b4 b3 b2 b1 b0 Data Transfer Command This command transfers the barcode data to the printer for printing. Syntax: ESC [ p n1 n2 data Decimal: 27 91 112 n1 n2 of N (quotient of N divided by 256). n2 is normally 0. The printer may not print the barcode if N does not match the number of characters - Lexmark Forms Printer 2491 | Technical Reference - Page 153
the data length requirement for each barcode type, continue with Barcode Symbologies. Barcode Symbologies The seven barcode symbologies (EAN-13, EAN-8, Code 39, Interleaved 2of5, UPC-A, POSTNET and Code 128) are defined, with examples, in the following section. EAN-13 Section 8: Barcodes 153 - Lexmark Forms Printer 2491 | Technical Reference - Page 154
The European Article Numbering (EAN) barcode is the European version of the all-numeric, fixed length UPC symbology. k value: 178, xB2 m value: 0 to 4, x00 to x04 s value: -3 to 3, xFD to x03 minimum v1, v2 values: x0E, x01 (248x) x20, x01 (249x) c parameter: available functions: b0, check - Lexmark Forms Printer 2491 | Technical Reference - Page 155
prefix 0D00 - data transfer length (low byte first) - x000D, 13 >2359458890256 ... Since the b0 bit of the c parameter has a value of 0 (check digit by host/ software), there must be 13 data characters (x0D) specified in the Data Transfer Command. Section 8: Barcodes 155 - Lexmark Forms Printer 2491 | Technical Reference - Page 156
0D00 - data transfer length (low byte first) - x000D, 13 >0584454824159 ... Since the b0 bit of the c parameter has a value of 01 (check digit by printer), there must be 12 data characters (x0C), not 13 (x0D), specified in the Data Transfer. EAN-8 k value: m value: s value: minimum v1, v2 values - Lexmark Forms Printer 2491 | Technical Reference - Page 157
data character set: Character Hex '0' x30 '1' x31 '2' x32 '3' x33 '4' x34 '5' x35 '6' x36 '7' x37 '8' x38 '9' x39 Examples: Valid EAN-8 command: - Lexmark Forms Printer 2491 | Technical Reference - Page 158
Since the b0 bit of the c parameter has a value of 01 (check digit by printer), there must be 7 data characters (x07) specified in the Data Transfer Command. Invalid EAN-8 command: >x 1B5B66 - barcode setup command prefix 0600 - setup data length (low - Lexmark Forms Printer 2491 | Technical Reference - Page 159
CODE 39 This barcode symbology uses both alphabetic and numeric characters. The printer will add a start/stop character, '*', to the barcode and human readable character automatically. k value: m value: s value: minimum v1, v2 values: c parameter: n1 value (b0 = 0): n1 - Lexmark Forms Printer 2491 | Technical Reference - Page 160
data character set: Character '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' 'A' 'B' 'C' 'D' 'E' 'F' 'G' 'H' 'I' 'J' 'K' 'L' Hex Character Hex x30 'M' x4D x31 'N' x4E x32 'O' x4F x33 'P' x50 x34 'Q' x51 x35 'R' x52 x36 'S' x53 x37 'T' x54 x38 'U' x55 x39 'V' x56 x41 'W' - Lexmark Forms Printer 2491 | Technical Reference - Page 161
39 command: - Lexmark Forms Printer 2491 | Technical Reference - Page 162
39 command: - Lexmark Forms Printer 2491 | Technical Reference - Page 163
Interleaved 2of5 is used to express all-numeric messages. Two bytes of data are encoded to form one barcode character. If the check digit generation flag is on (b0 = 1), the printer will add a '0' to the data string automatically. k value: m value: s value: minimum v1, v2 value: c parameter: n1 - Lexmark Forms Printer 2491 | Technical Reference - Page 164
data transfer command prefix - data transfer length (low byte first) x0004, 4 Since the b0 bit of the c parameter has a value of 01 (check digit by printer), note the 0 character added to the barcode above. 164 Section 8: Barcodes - Lexmark Forms Printer 2491 | Technical Reference - Page 165
Invalid Interleaved 2of5 command: - Lexmark Forms Printer 2491 | Technical Reference - Page 166
data character set: Character Hex '0' x30 '1' x31 '2' x32 '3' x33 '4' x34 '5' x35 '6' x36 '7' x37 '8' x38 '9' x39 Valid UPC-A command: - Lexmark Forms Printer 2491 | Technical Reference - Page 167
bit of the c parameter has a value of 01 (check digit by printer), there must be 11 data characters (x0B) specified in the Data ... Since b0 bit of the c parameter has a value of 0 (check digit by host/software), there must be 12 data characters (x0C), not 11 (x0B), specified in the Data Transfer - Lexmark Forms Printer 2491 | Technical Reference - Page 168
is used to express U.S. Postal Service ZIP codes. k value: m value: s value: minimum v1, v2 values: c parameter: n1 value (b0=0): 185, xB9 0 to 4, x00 to x04 ignored ignored; POSTNET uses two different bar lengths only: a long bar and a short bar. For 248x printers, the actual lengths of the long - Lexmark Forms Printer 2491 | Technical Reference - Page 169
Examples: Valid POSTNET command: - Lexmark Forms Printer 2491 | Technical Reference - Page 170
byte first) - ignored for POSTNET 00 - control byte: no functions selected 1B5B70 - barcode data transfer command prefix 0A00 - data transfer length (low byte first) x000A, 10 >40511-876 ... The '-' (dash) is an invalid character for POSTNET. 170 Section 8: Barcodes - Lexmark Forms Printer 2491 | Technical Reference - Page 171
set. If an invalid character is included for the first byte, the printer ignores all data defined by n1, n2 and does not print the barcode x43 (for character set C). To shift to another character set, two special codes are provided in each character set. They may be included in the barcode data - Lexmark Forms Printer 2491 | Technical Reference - Page 172
data character sets: Function Hex START A x41 START B x42 START C x43 The character and corresponding hex code for each of these character sets are shown on the following pages. 172 Section 8: Barcodes - Lexmark Forms Printer 2491 | Technical Reference - Page 173
DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US Hex Code x00 x01 x02 x03 x04 x06 x06 x07 x08 x09 x0A x0B x0C x0D x0E x19 x1A x1B x1C x1D x1E x1F Character Space 0' '1' '2' '3' '4' '5' '6' '7' '8' '9 Hex Code x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x2A x2B x2C x2D x2E x2F x30 x31 x32 x33 - Lexmark Forms Printer 2491 | Technical Reference - Page 174
x4C x4D x4E x4F x50 x51 x52 x53 x54 x55 x56 x57 x58 x59 x5A x5B x5C x5D x5E x5F Character 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z DLE Hex Code x60 x61 x62 x63 x64 x65 x66 x67 x68 x69 x6A x6B x6C x6D x6E x6F x70 x71 x72 x73 x74 x75 x76 - Lexmark Forms Printer 2491 | Technical Reference - Page 175
09' '10' '11' '12' '13' '14' '15' '16' '17' '18' '19' '20' '21' '22' '23' '24' '25' '26' '27' '28' '29' '30' '31' Hex Code x3030 '55' '56' '57' '58' '59' '60' '61' '62' '63' Hex Code x3332 x3333 x3334 x3335 x3336 x3337 x3338 x3339 x3430 x3431 x3432 x3433 x3434 x3435 x3436 x3437 x3438 x3439 x3530 - Lexmark Forms Printer 2491 | Technical Reference - Page 176
command: - Lexmark Forms Printer 2491 | Technical Reference - Page 177
command: - Lexmark Forms Printer 2491 | Technical Reference - Page 178
using multiple character sets: - Lexmark Forms Printer 2491 | Technical Reference - Page 179
is always performed unidirectionally (left-to-right). • The desired barcode will not print if the barcode print area exceeds the right margin of the printer. • The desired barcode will not print if the barcode print area exceeds the bottom of the page or bottom margin. • The desired barcode may - Lexmark Forms Printer 2491 | Technical Reference - Page 180
• The desired barcode may not print if invalid characters are specified in the data transfer command. Example: - Lexmark Forms Printer 2491 | Technical Reference - Page 181
- data transfer length (low byte first) - x0005, 5 >45678 ... The desired barcode type is EAN-13 (B2). The check digit is generated by the host/software (b0=0). This means there must be 13 data characters in the Data Transfer Command. Five characters are defined in the data transfer command; this - Lexmark Forms Printer 2491 | Technical Reference - Page 182
• When the m parameter is set to 1 (m = 1), the printer does not print the human readable character. Example: - Lexmark Forms Printer 2491 | Technical Reference - Page 183
the barcode can be printed, the printer must receive sufficient vertical movement commands (line feed, vertical tab, form feed, etc.) to move down past followed by the line feeds (x0A's) will result in a printed Code 39 sample because of sufficient vertical movement to move past the length of - Lexmark Forms Printer 2491 | Technical Reference - Page 184
Example: - Lexmark Forms Printer 2491 | Technical Reference - Page 185
In this example, sufficient horizontal space is inserted to eliminate overlap: Example: Barcode Print Sample: 395 Text Printing Barcode Print Sample: Text Printing Section 8: Barcodes 185 - Lexmark Forms Printer 2491 | Technical Reference - Page 186
186 Section 8: Barcodes - Lexmark Forms Printer 2491 | Technical Reference - Page 187
Section 9 Your printer supports code pages 437, 437G, 813, 850, 851, 853T, 857, 858, 860, 861, 863, 865, 869, 920, 1004, and 1053. Additional code pages are available for designated countries. Code page 437 (U.S. English) is the factory default code page. All code pages are shown on the following - Lexmark Forms Printer 2491 | Technical Reference - Page 188
Code Page 437 188 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 189
Code Page 437G Section 9: Code Pages 189 - Lexmark Forms Printer 2491 | Technical Reference - Page 190
Code Page 813 190 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 191
Code Page 850 Section 9: Code Pages 191 - Lexmark Forms Printer 2491 | Technical Reference - Page 192
Code Page 851 192 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 193
Code Page 853T Section 9: Code Pages 193 - Lexmark Forms Printer 2491 | Technical Reference - Page 194
Code Page 857 194 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 195
Code Page 858 Section 9: Code Pages 195 - Lexmark Forms Printer 2491 | Technical Reference - Page 196
Code Page 860 196 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 197
Code Page 861 Section 9: Code Pages 197 - Lexmark Forms Printer 2491 | Technical Reference - Page 198
Code Page 863 198 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 199
Code Page 865 Section 9: Code Pages 199 - Lexmark Forms Printer 2491 | Technical Reference - Page 200
Code Page 869 200 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 201
Code Page 920 Section 9: Code Pages 201 - Lexmark Forms Printer 2491 | Technical Reference - Page 202
Code Page 1004 202 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 203
Code Page 1053 Section 9: Code Pages 203 - Lexmark Forms Printer 2491 | Technical Reference - Page 204
Replace the first line of the program with the appropriate command for the code page you want to print. Code Page 437 437G 813 850 851 853T 857 858 860 861 863 865 869 0400 0000 041D> The following example prints all 256 characters from Code Page 437 in a matrix format: - Lexmark Forms Printer 2491 | Technical Reference - Page 205
DC20DD20DE20DF20> Ex Fx The output from the previous example is shown below: Section 9: Code Pages 205 - Lexmark Forms Printer 2491 | Technical Reference - Page 206
Font Global, ESC [I You can vary the font and pitch type style within a file with this command. It can also be used to change the code page. Syntax: ESC [ I LnHn HfLf HsLs Sm HcLc Decimal: 27 91 73 LnHn HfLf HsLs Sm HcLc Hex: 1B 5B 49 LnHn HfLf HsLs Sm - Lexmark Forms Printer 2491 | Technical Reference - Page 207
Wide) Normal Emphasized Courier 244/246 245 x00F4/x00F6 00,244/00,246 x00F5 00,245 Italic Emph./Italic 10 Normal 11 x000B 00,11 Emphasized 46 x002E 00,46 Italic 18 x0012 00,18 Emph./Italic 57 x0039 01,198/01, 238 x01EE Emphasized Italic Emph./Italic Section 9: Code Pages 207 - Lexmark Forms Printer 2491 | Technical Reference - Page 208
184 x00B8 00,184 Italic 172 x00AC 00,172 Emph./Italic 185 x00B9 00,185 5 (Double Wide) 10 12 15 17.1 20 Normal Emphasized Italic Normal Emphasized Italic Normal Emphasized Italic Normal Gothic 241 242 36 39 157 x009D 00,157 Italic 162 x00A2 00,162 208 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 209
Wide) Normal Emphasized Courier 244/246 245 x00F4/x00F6 00,244/00,246 x00F5 00,245 Italic Emph./Italic 10 Normal 11 x000B 00,11 Emphasized 46 x002E 00,46 Italic 18 x0012 00,18 Emph./Italic 57 x0039 494 x01EE 01, 238 Emphasized Italic Emph./Italic Section 9: Code Pages 209 - Lexmark Forms Printer 2491 | Technical Reference - Page 210
171 Emphasized 184 x00B8 00,184 Italic 172 x00AC 00,172 Emph./Italic 185 x00B9 00,185 Prestige 10 Normal 12 x000C 00,12 Emphasized 60 x003C 00,60 Italic 12 Normal 86/495 x0056/ 00,86 Italic 20 Normal 458 x01CA 01, 202 Emphasized Italic 210 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 211
Decimal (Hf, Lf) 01, 31 Emphasized Italic PS Normal 420 x01A4 01,164 Emphasized 5 (Double Wide) 10 12 15 17.1 20 Italic Normal Emphasized Italic Emph./DS Normal Emphasized Italic Emph./DS Normal Emphasized Italic Emph x00FF/ x018D 00,255/01,141 x018C 01,140 Section 9: Code Pages 211 - Lexmark Forms Printer 2491 | Technical Reference - Page 212
not found. cpidhigh (Hc): The binary number that is the more significant byte of the 2-byte code page ID. cpidlow (Lc): The binary number that is the less significant byte of the 2-byte code page ID. Code Page 437 850 860 Decimal Hc Lc 1 181 3 82 3 92 Hex Hc Lc x01 xB5 x03 - Lexmark Forms Printer 2491 | Technical Reference - Page 213
Code Page 863 865 437G 813 851 853T 857 869 920 1053 861 1004 858 Decimal Hc Lc 3 95 3 97 40 197 3 45 3 83 42 101 3 Change 0 Fast Draft 1 to 63 Draft 64 to 127 NLQ 128 to 191 Hex x00 x01 to x3F x40 to x7F x80 to xBF Section 9: Code Pages 213 - Lexmark Forms Printer 2491 | Technical Reference - Page 214
get Draft 15, which is the draft version of Courier 15. If you then set the quality to LQ, you get Courier 15. 214 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 215
• Hex 80 and hex 9F Character set 2 has control codes located only between hex 00 and hex 1F. The character sets contain a mixture of printer control codes and characters. The boxes show how the printer will interpret single-byte codes, depending on which character set you have selected. For example - Lexmark Forms Printer 2491 | Technical Reference - Page 216
Character Set 1 216 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 217
Character Set 2 Section 9: Code Pages 217 - Lexmark Forms Printer 2491 | Technical Reference - Page 218
218 Section 9: Code Pages - Lexmark Forms Printer 2491 | Technical Reference - Page 219
. Escape sequence. Two or more characters of information that let you change the way the printer is currently printing. F flag character. Used by UPC-A and EAN-13 for number system encoding and country code. font. A set of characters of a given size and style. H Hertz (HZ). A unit of frequency equal - Lexmark Forms Printer 2491 | Technical Reference - Page 220
be read from but not written to. ROM holds the printer's resident microcode. S software application. Any program loaded on your computer used to perform symbol set provides codes for the nonstandard upper half of the ASCII character set. T TTL. Transistor-transistor logic. top-of-form (TOF). The - Lexmark Forms Printer 2491 | Technical Reference - Page 221
Numerics 248x Printers downloading characters 109 249x Printers downloading characters 120 9-pin compatible serial port 99 A auto sheet feeder, option 10 B barcode bar height 151 data transfer command 152 function 147 module width 149 notes 179 setup command 148 symbologies 153 Code 128 171 Code 39 - Lexmark Forms Printer 2491 | Technical Reference - Page 222
85 I IBM AT compatible serial port 99 IBM emulation mode escape sequences 28 set print quality 48 IBM emulation mode printer commands command structure 28 control codes 27 download a character set 35 graphics print mode 49 horizontal movement 53 line control 55 line spacing 57 parameters 28 print - Lexmark Forms Printer 2491 | Technical Reference - Page 223
forms 14, 15 manual feed 17 manual insertion mode 16 tractor feeder 16 parallel cable, option 10 parallel interface communication 92 line definition 94 pin connections 93 timing 95 voltage levels 91 parity RS-232C 101 POSTNET barcode 168 power requirements 12 power-on diagnostics 17 print from code - Lexmark Forms Printer 2491 | Technical Reference - Page 224
see serial adapter S select code page, IBM emulation mode 33 2 33 serial adapter option 96 printer connections 96-?? RS-232C cable , IBM emulation mode 48 set top of form and page length, IBM emulation mode cancel Epson mode 69 tractor 2 feeder, option 10 U UPC-A barcode 165 V vertical movement, - Lexmark Forms Printer 2491 | Technical Reference - Page 225
Manual Part Number: 11A3098 October, 2000 Reader's Comment Form You may use this form to communicate your comments about this publication, with the understanding that Lexmark is your job title? Questions or comments about supplies, service, applications, and so on will slow response time - Lexmark Forms Printer 2491 | Technical Reference - Page 226
IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST CLASS MAIL PERMIT NO. 2659 LEXINGTON, KY POSTAGE WILL BE PAID BY ADDRESSEE Lexmark International Inc. Department F95, Building 035-3 740 NEW CIRCLE ROAD NW LEXINGTON KY 40511-9 9 5 4 Fold and Tape Please Do Not Staple Fold and - Lexmark Forms Printer 2491 | Technical Reference - Page 227
Lexmark and Lexmark with diamond design are trademarks of Lexmark International, Inc., registered in the United States and/or other countries. © 2000 Lexmark International, Inc. 740 West New Circle Road Lexington, Kentucky 40550 www.lexmark.com
www.lexmark.com
Technical Reference
October 2000
Forms Printer 248x/249x