Lexmark Forms Printer 2490 Technical Reference
Lexmark Forms Printer 2490 Manual
View all Lexmark Forms Printer 2490 manuals
Add to My Manuals
Save this manual to your list of manuals |
Lexmark Forms Printer 2490 manual content summary:
- Lexmark Forms Printer 2490 | Technical Reference - Page 1
Forms Printer 248x/249x Technical Reference October 2000 www.lexmark.com - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 3
1 - Introduction 9 Available Options 10 Physical Characteristics 10 Print Speeds 11 Printhead Description 11 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 - Lexmark Forms Printer 2490 | Technical Reference - Page 4
33 Print From Code Page 34 Continuously Print Characters from a Code Page 34 Print One Character 35 Download a Character Set 35 Select Global Font 36 Select 12 cpi 40 Select Print Mode 40 Select Print Graphics 58 Porportional Space Mode 58 Set Top of Form and Page Length 59 Set Top of - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 7
Character Set 1 216 Character Set 2 217 Glossary 219 Index 221 vii - Lexmark Forms Printer 2490 | Technical Reference - Page 8
viii - Lexmark Forms Printer 2490 | 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 2490 | 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 - Lexmark Forms Printer 2490 | Technical Reference - Page 11
Print Speeds Your printer supports the following burst print speeds in characters per second (cps). Mode Fast Draft • 10 cpi • 12 cpi Draft • 10 cpi • 12 cpi Near Letter Quality Gothic, Courier • 10 cpi • 12 cpi Letter Quality Prestige, Presentor, Orator, and Script • 10 cpi 2480/2481 • 438 cps • - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 17
m (6.0 ft) 8 mm (0.315 in.) Nylon High yield re-inking ribbon is available for the 2400 series printer. It has a life expectancy of approximately 8 million characters in 10 cpi draft mode. For replacement ribbon, order ribbon number 11A3550. Length: Width: Fabric: 2.5 m (8.3 ft) 8 mm (0.315 in - Lexmark Forms Printer 2490 | Technical Reference - Page 18
ribbon are 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 Press Start/Stop to continue the printer test. Programming Examples Examples in this manual have been formatted to be processed - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 20
18 Section 1: Introduction - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 23
(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 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 È buttons - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 25
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 Length 0=No Change 0 00 1=1 to 176 Lines 1 01 Lines Per Inch 0=No Change 0 00 1=3 1 01 2=4 2 02 3=6 3 03 4=8 4 04 Left Margin - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 27
9 tabulation stops. Line Feed LF Advances the paper one line on the page. 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 FF Advances the paper to the top of the next page and does - Lexmark Forms Printer 2490 | Technical Reference - Page 28
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 already 24 received to print on the current line since last Form Feed, Line Feed, Carrier Return, or Cancel. Space SP Moves - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 30
• If your code page has an alphabetic character, such as 437G, add 10,000 to the code page number, then divide by 256. • Code page information , enter it as lowercase. The printer looks at the uppercase and lowercase letters as separate command instructions. The uppercase letter O is different - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 32
1B 5E n 1B 5F n page 55 page 35 page 47 27 100 Ln Hn 1B 64 Ln Hn page 54 32 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2490 | Technical Reference - Page 33
Format ESC 6 Decimal 27 54 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 Lc Decimal 27 91 an alphabetic character, such as 437G, add 10,000 to 33 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2490 | Technical Reference - Page 34
(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 of characters you want to print. To print more - Lexmark Forms Printer 2490 | Technical Reference - Page 35
id start 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 - Lexmark Forms Printer 2490 | Technical Reference - Page 36
the start of the character data. When the lookup table data is downloaded, the start address is the address of the new entry in the on the typestyle you want to print). 4 Substitute these digits for Hf Lf in the printer command syntax. • The size parameters (Hs, Ls and Sm) are valid when the pitch - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 39
Subscript (249X only) 20 CPI Subscript 17 CPI Normal 15 CPI Normal 12 CPI Normal 10 CPI Normal 8.5 CPI (17 CPI double-wide 7.5 CPI (15 CPI double-wide 6 CPI (12 CPI double-wide 5 CPI (10 CPI double-wide Dec (Hs, Ls) 0 00 - 0 65 0 66 - 0 03H 5AH 39 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 62
. The value for s may range from 3 (03 hex) to -3 (FD hex), however, 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 bar length. The minimum value of v1, v2 is 288 - Lexmark Forms Printer 2490 | Technical Reference - Page 63
d2 Usage Notes • The printer must receive the ESC [ f command prior to the ESC [ p command. • The barcode prints after the printer receives the LF line feed 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: - Lexmark Forms Printer 2490 | Technical Reference - Page 64
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 2490 | Technical Reference - Page 65
Section 4 This section provides tables describing Epson mode commands you can use with your printer. Font Selection Name Dec ESC % 27 37 n Hex 1B 25 n Description Select User-defined Set n=0 Selects the resident set. n=1 Selects the user-defined set. ESC ( - 27 40 45 3 0 1 d1 d2 1B 28 2D 03 00 - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 68
table/860 8 0 Graphic table/863 9 0 Graphic table/865 11 0 Graphic table/857 15 0 Graphic table/869 24 0 Graphic table/861 68 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 76
state. (This command is the same as ESC [K command in IBM mode. See page 32.) String Descriptor Download Command Resets the printer to user default settings after downloading the string descriptor to the printer. (This command is the same as ESC K command in IBM mode. See page 32.) Other Commands - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 78
78 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 80
4 17 Abicomp Hcp Lcp Code Page Set Hexadecimal 01 B5 USA 02 52 Multilingual 03 5C Canadian French 03 5F Portugal 03 61 Norway 04 10 BRASCII 04 11 Abicomp 80 Section 5: OKI Microline Emulation Mode - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 89
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 n 1B 7B n ESC CAN 27 Select Print Suppress Mode Cancel Print Suppress Mode Software-Prime 89 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 95
-paper condition. A critical 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 - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 it runs each time you start your computer: run c:\os2\mode.com com1:,,,,,DTR=on,OCTS=on,ODSR=on 104 Section 6: Using the - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 109
Fast Draft Characters The character matrix for Fast Draft characters is 10-dots wide and 9-dots high. Ascender characters generally use 'p', or 'q', use rows 6 through 18. Downloading Characters The 9-wire printers have 3 download areas. The first download area is for a draft character set and can - Lexmark Forms Printer 2490 | Technical Reference - Page 110
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 this part (2 attribute bytes plus 11 printable bytes) for each character you download: attr1 attr2 col1 col2 col3 ... col11 Part One: Calculating Count 1, Count - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 114
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 2490 | Technical Reference - Page 115
II Character Set The 248x printers can download two sets of NLQ II characters. The first set is initialized to a Courier-like font, and the second to a Courier italic-like font. Since there are two download areas, you must use a Select Print Mode, ESC I, before downloading to select between the two - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 119
ascender, not line-drawing, not graphics character 00 - attribute byte 2=not used for download 00 1C 00 22 00 00 08 55 41 41 41 41 41 41 41 2 column 3 column 4 column 5 column 6 column 7 column 8 column 9 column 10 column 11 column 12 column 13 column 14 column 15 column 16 column 17 column 18 - Lexmark Forms Printer 2490 | Technical Reference - Page 120
download characters for the 249x printers. The definitions use binary and hexadecimal notation. The examples are in the program format shown on page 16. Note: Download fonts must be reloaded after a power off/on cycle. Downloading default is chosen if no user-defined default has been stored using - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 125
an LQ proportional character with compression. The fourth example shows how to design and download an ELQ 10 cpi character with compression. A description of downloading an entire font is in the following examples. Designing Monospaced Fast Draft Characters When designing monospaced Fast Draft - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 128
the Font Descriptor Byte Send the following descriptor byte information to the printer: For more information - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 134
Table Data Use the following example to send the lookup table information to the printer: - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 143
data at any unused memory address greater than xA413. This example uses xA414. - Lexmark Forms Printer 2490 | Technical Reference - Page 144
the Font Descriptor Byte Send the following descriptor byte information to the printer: - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 146
146 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2490 | Technical Reference - Page 147
the option is not set to ENABLE, barcode printing is not possible. For 249x printers, buffer space is reserved automatically for barcode processing. Resident barcodes include: EAN-13 EAN barcode, which allows the data to be manually entered if the barcode cannot be scanned. Section 8: Barcodes 147 - Lexmark Forms Printer 2490 | 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 2490 | 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 smallest unit of measurement within a barcode. The module width, m, is used - Lexmark Forms Printer 2490 | 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 affects only space modules. It can be used to adjust the width of space modules. The - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 153
Data is the actual data to be transferred into the barcode symbology. The data for the barcode data transfer command is a string of ASCII characters immediately following the n1, n2 count bytes. The string "APPLE" is transferred in the example below: - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | 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 2490 | Technical Reference - Page 161
Examples: Valid Code 39 command: - Lexmark Forms Printer 2490 | Technical Reference - Page 162
Invalid Code 39 command: - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 165
Invalid Interleaved 2of5 command: - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | Technical Reference - Page 168
and short bar are 18/144 inch and 6/144 inch, respectively. For 249x printers, the actual lengths of the long bar and short bar are 24/180 inch and 8/180 inch, respectively. available functions: b0, check digit 6, x06 10, x0A 12, x0C 5-digit ZIP code ZIP+4 Delivery Point Barcode (DPBC) n1 value - Lexmark Forms Printer 2490 | Technical Reference - Page 169
Examples: Valid POSTNET command: - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 171
If an invalid character is included for the first byte, the printer ignores all data defined by n1, n2 and does not print two alternative character sets. If the check digit generation flag is on (b0 = 1), the printer adds a 0 to the data string automatically. k value: m value: s value: minimum - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 173
data character set A: Character NUL OH STX ETX EOT ENO ACK BEL BS HT LF VT FF CR SO SI DLE DC1 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 x0F x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x1A x1B x1C x1D x1E x1F Character - Lexmark Forms Printer 2490 | Technical Reference - Page 174
data character set B: Character FNC 3 FNC 2 Shift CodeC FNC 4 CodeA FNC 1 Hex Code 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 x34 x35 x36 x37 x38 x39 x3A x3B x3C x3D - Lexmark Forms Printer 2490 | Technical Reference - Page 175
data character set C: Character '00' '01' '02' '03' '04' '05' '06' '07' '08' '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 x3031 - Lexmark Forms Printer 2490 | Technical Reference - Page 176
Valid Code 128 command: - Lexmark Forms Printer 2490 | Technical Reference - Page 177
Invalid Code 128 command: - Lexmark Forms Printer 2490 | Technical Reference - Page 178
Valid Code 128 command using multiple character sets: - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 180
• The desired barcode may not print if invalid characters are specified in the data transfer command. Example: - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 182
0.50 inches 00 - control byte: check digit by host, print human readable character > Although the c parameter has a value of x00, which tells the printer to print the human readable character, the m parameter has a value of x01, which causes the b1 bit value of the c parameter to be ignored. No - Lexmark Forms Printer 2490 | Technical Reference - Page 183
and data transfer commands is not enough to print the desired barcode. Before the barcode can be printed, the printer must receive sufficient vertical movement commands (line feed, vertical tab, form feed, etc.) to move down past the length of the barcode (and human readable character, if applicable - Lexmark Forms Printer 2490 | Technical Reference - Page 184
Example: - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 186
186 Section 8: Barcodes - Lexmark Forms Printer 2490 | Technical Reference - Page 187
Code Pages 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 - Lexmark Forms Printer 2490 | Technical Reference - Page 188
Code Page 437 188 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 189
Code Page 437G Section 9: Code Pages 189 - Lexmark Forms Printer 2490 | Technical Reference - Page 190
Code Page 813 190 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 191
Code Page 850 Section 9: Code Pages 191 - Lexmark Forms Printer 2490 | Technical Reference - Page 192
Code Page 851 192 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 193
Code Page 853T Section 9: Code Pages 193 - Lexmark Forms Printer 2490 | Technical Reference - Page 194
Code Page 857 194 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 195
Code Page 858 Section 9: Code Pages 195 - Lexmark Forms Printer 2490 | Technical Reference - Page 196
Code Page 860 196 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 197
Code Page 861 Section 9: Code Pages 197 - Lexmark Forms Printer 2490 | Technical Reference - Page 198
Code Page 863 198 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 199
Code Page 865 Section 9: Code Pages 199 - Lexmark Forms Printer 2490 | Technical Reference - Page 200
Code Page 869 200 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 201
Code Page 920 Section 9: Code Pages 201 - Lexmark Forms Printer 2490 | Technical Reference - Page 202
Code Page 1004 202 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 203
Code Page 1053 Section 9: Code Pages 203 - Lexmark Forms Printer 2490 | Technical Reference - Page 204
Printing a Code Page To print all 256 characters of a code page, use one of the following commands with the program that follows. 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 - Lexmark Forms Printer 2490 | Technical Reference - Page 205
9x Ax Bx Cx - Lexmark Forms Printer 2490 | Technical Reference - Page 206
Set 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 HcLc ESC [I changes the font, pitch, - Lexmark Forms Printer 2490 | Technical Reference - Page 207
Lf) Byte Decimal (Hf, Lf) 5 (Double 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 00,57 12 Normal 85/491 - Lexmark Forms Printer 2490 | Technical Reference - Page 208
(cont.) PS Normal 171 x00AB 00,171 Emphasized 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 87/399 110 109 222/398 - Lexmark Forms Printer 2490 | Technical Reference - Page 209
Lf) Byte Decimal (Hf, Lf) 5 (Double 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 00,57 12 Normal 85/491 - Lexmark Forms Printer 2490 | Technical Reference - Page 210
Emph./Italic PS Normal 171 x00AB 00,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/01,239 x01EF Emphasized 111 x006F 00 - Lexmark Forms Printer 2490 | Technical Reference - Page 211
(cont.) Normal 287 Hex (Hf Lf) x011F Byte 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./DS Normal Gothic 241 242 - Lexmark Forms Printer 2490 | Technical Reference - Page 212
249x Font Global IDs (FGIDs) Decimal, Hex and Byte Decimal Pitch Font Style Decimal (Hf times 256 plus Lf) Hex (Hf Lf) Byte Decimal (Hf, Lf) Gothic (cont.) 24 Normal 288 120 01,32 Emphasized Italic Emph./DS PS Normal 174 x00AE 00,174 Emphasized 157 x009D 00,157 Italic 162 - Lexmark Forms Printer 2490 | 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 89 3 101 3 152 4 29 3 93 3 236 3 90 Hex Hc Lc x03 x5F x03 x61 x28 xC5 x03 x2D x03 x53 x2A x65 x03 x59 x03 x65 x03 x98 x04 x1D x03 - Lexmark Forms Printer 2490 | Technical Reference - Page 214
Set Print Quality Selections Print Quality Decimal Enhanced Letter Quality 192 to 254 Default Font 255 Hex xC0 to xFE xFF Example Select Fast Draft: Syntax: ESC Decimal: 27 Hex: 1B [ d 1 0 n 91 100 1 0 1 5B 64 01 00 01 Interaction of Set Font Global and Set Print Quality - Lexmark Forms Printer 2490 | Technical Reference - Page 215
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, hex 0A from code - Lexmark Forms Printer 2490 | Technical Reference - Page 216
Character Set 1 216 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 217
Character Set 2 Section 9: Code Pages 217 - Lexmark Forms Printer 2490 | Technical Reference - Page 218
218 Section 9: Code Pages - Lexmark Forms Printer 2490 | Technical Reference - Page 219
mode. dpi. Dots per inch. E ELQ. Enhanced letter quality. 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 - Lexmark Forms Printer 2490 | Technical Reference - Page 220
that can 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 a specific T TTL. Transistor-transistor logic. top-of-form (TOF). The line position of the paper where the first line of text - Lexmark Forms Printer 2490 | Technical Reference - Page 221
Printers downloading characters 109 249x Printers downloading characters 120 9-pin compatible serial port 99 A auto sheet feeder, option 10 39 barcode 159 code pages character sets 215 printing 204 supported 188-196 computer to printer communication 92 control flag for barcode 151 custom characters, - Lexmark Forms Printer 2490 | 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 2490 | Technical Reference - Page 223
table data for downloading 124 M miscellaneous commands, OKI Microline mode 89 N noise emission value 13 O OKI Microline mode printer commands character set continuous forms 14, 15 cut forms 14, 15 manual feed 17 manual insertion mode 16 tractor feeder 16 parallel cable, option 10 parallel - Lexmark Forms Printer 2490 | Technical Reference - Page 224
ribbon set 2 33 serial adapter option 96 printer connections 96-?? RS-232C cable 98 communication print quality, IBM emulation mode 48 set top of form and page length, IBM emulation mode cancel skip mode, Epson mode 69 tractor 2 feeder, option 10 U UPC-A barcode 165 V vertical movement, Epson - Lexmark Forms Printer 2490 | 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 2490 | 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 2490 | 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