Lexmark Forms Printer 2481 Technical Reference
Lexmark Forms Printer 2481 Manual
View all Lexmark Forms Printer 2481 manuals
Add to My Manuals
Save this manual to your list of manuals |
Lexmark Forms Printer 2481 manual content summary:
- Lexmark Forms Printer 2481 | Technical Reference - Page 1
Forms Printer 248x/249x Technical Reference October 2000 www.lexmark.com - Lexmark Forms Printer 2481 | Technical Reference - Page 2
back of this publication. If the form has been removed, comments may be addressed to Lexmark International, Inc., Department F95/035-3, 740 New Circle Road N.W., Lexington, Kentucky 40511-1876, U.S.A. Lexmark may use or distribute any of the information you supply in any way it believes appropriate - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 7
Character Set 1 216 Character Set 2 217 Glossary 219 Index 221 vii - Lexmark Forms Printer 2481 | Technical Reference - Page 8
viii - Lexmark Forms Printer 2481 | Technical Reference - Page 9
of dot-matrix impact printing. This book applies to the Lexmark Forms Printer 2400 Series dot-matrix family of printers. Differences that occur between printer models are noted. The information in this manual is intended primarily for hardware and software programmers, engineers, technicians - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | Technical Reference - Page 12
to +140°F) 5.0% to 100% Vibration Although this desktop printer is portable and durable, do not operate or place the printer in vibration-prone areas. For best results, operate the printer on a level surface. Clearances Printer operation produces natural convection, or airflow. To allow sufficient - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 14
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.0 in.) 559 (0.0202 in.) for 2480/2481 printers; up to0.36 mm (0.015 in.) for 2490/2491 printers. 12 Section 1: Introduction - Lexmark Forms Printer 2481 | Technical Reference - Page 15
- 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 in.) See Note 0.058 mm See Note (0.0023 in.) 0.053 mm (0.021 in.) Note: Thickness up to 0.512 mm (0.0202 in.) for 2480/2481 printers; up to0.36 mm (0.015 in.) for 2490/2491 printers. Section - Lexmark Forms Printer 2481 | Technical Reference - Page 16
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 76.2 mm (3.0 in.) minimum 279.4 mm (11.0 in.) maximum 16 ~ 24 lbs (60 ~ 90 g/m2) Wide carriage (2481/2491) 139.7 mm (5.5 in.) minimum 355.6 mm (14 - Lexmark Forms Printer 2481 | Technical Reference - Page 17
High yield re-inking ribbon is available for the 2400 series printer. It has a life expectancy of approximately 8 million 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 2481 | Technical Reference - Page 18
1 Press Start/Stop. The test stops after a complete line of characters has printed. 2 Press Start/Stop to continue the printer test. Programming Examples Examples in this manual have been formatted to be processed by a simple BASIC program. The BASIC program reads an input file and writes data to - Lexmark Forms Printer 2481 | Technical Reference - Page 19
1050 IF(I$ " - Lexmark Forms Printer 2481 | Technical Reference - Page 20
18 Section 1: Introduction - Lexmark Forms Printer 2481 | 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 - Lexmark Forms Printer 2481 | Technical Reference - Page 22
store in working RAM and in the selected macro. It also changes the default macro to the value of parm 3. Initializes printer to default settings. The download font is ini- tialized. If parameters are specified, they overwrite the default 255 settings. This command changes data stored in the - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 24
2 If Parm 3 has no value (macro has not been supplied), the printer default macro is used to store the change. When init=04H 0 00 1=Fast Draft 1 01 2=Draft 2 02 3=Gothic 3 03 4=Courier 4 04 5=Download Font 5 05 6=Prestige 6 06 (249x Plus only) 7=Presentor 7 07 (249x Plus only - Lexmark Forms Printer 2481 | Technical Reference - Page 25
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 4=7 Inches 4 04 5=8 Inches 5 05 6=13.6 Inches 6 06 (2491 models only) Bottom Margin 0=No Change 0 00 1=0 Inch 1 01 2=1/2 - Lexmark Forms Printer 2481 | Technical Reference - Page 26
Pitch Lock 3 03 4=Font and Pitch Unlock 4 04 254=SIC Command Lock 5 05 254=SIC Command 6 06 Unlock 20 FF Enable 0=No Change 0 00 (2480 only) 1=Ignore FF 1 01 2=Honor FF 2 02 21 TOF Read 0=No Change 0 00 1=TOF Read Disable 1 01 2=TOF Read Enable 2 02 22 Tractor 0=No - Lexmark Forms Printer 2481 | Technical Reference - Page 27
of the Standard ASCII table are control codes. This printer uses the following control codes. Code Name Symbol Description Value 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 - Lexmark Forms Printer 2481 | Technical Reference - Page 28
buffer of data already 24 received to print on the current line since last Form Feed, Line Feed, Carrier Return, or Cancel. Space SP Moves the two or more characters of information) lets you change the way the printer is currently printing. Like a control code, it gives you control over the - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 30
an uppercase letter. If the letter in the command format is lowercase, enter it as lowercase. The printer looks at the uppercase and lowercase letters as separate command instructions. The uppercase letter O is different from the numeral 0 (zero). Notice that the uppercase O is wider and rounder - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | Technical Reference - Page 33
-English languages. 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 84 4 0 as 437G, add 10,000 to 33 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | 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 - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | Technical Reference - Page 37
00 0C 01 EF 01 F0 01 C9 01 CA 01 1F 01 A4 00 3C 00 6F 00 70 37 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | Technical Reference - Page 38
01 21 00 C6 01 D4 01 D5 01 D6 01 D7 01 D8 01 24 00 C8 Bold/Ital 38 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | Technical Reference - Page 39
03H 2DH 03H 53H 2AH 65H 03H 59H 03H 65H 03H 98H 04H 1DH 03H 5DH 03H ECH 03H 5AH 39 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 48
27 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 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 2481 | Technical Reference - Page 49
(249x) wires of the printhead to 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 dots 7 and 6 print, wire 3 is also used 4, 5 6, 7 If dots 5 and 4 print, wire 8 is also - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 51
want to print by 256. - 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 2481 | 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 2481 | Technical Reference - Page 53
the leftmost column. • Input the tabulation stops (n1.....n28) in ascending 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 every eight positions beginning at column 9 (9, 17, 25, and - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 57
27 49 Hex 1B 31 Activate Line Spacing for Text This command activates the line spacing designated by the Set Line Spacing for Text (ESC A) printer command. Format ESC 2 Decimal 27 50 Hex 1B 32 57 Section 3: IBM Emulation Mode - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 61
values of n are valid: Mode Model 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 - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 63
5B 70 n1 n2 d1 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 command. Command length is denoted ) 2 to 255 02 to FF 0 00 CODE 128 63 Section 3: IBM Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 65
Commands 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- user-defined characters. n=0 Cancels n=1 selection. 65 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | 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 - Lexmark Forms Printer 2481 | Technical Reference - Page 67
or Draft n=0 Selects Draft mode n=1 Selects NLQ mode 249x: Select Letter Quality or Draft n=0 Selects Draft mode n=1 Selects LQ mode 67 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 69
Printing End Double-Strike Print Proportional Spacing Mode n=0 End n=1 Begin Begin Superscript or Subscript n=0 Superscript n=1 Subrscript End Superscript or Subscript 69 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | Technical Reference - Page 70
16 10 Double-Strike 5 Yes No 32 20 Double-Wide 6 Yes No 64 40 Italic 7 Yes No 128 80 Underscore 70 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 74
n2...n16 00 Sets up to 16 tab stops. The sequence ends with 0. 12 0C Form Feed Advances the paper to the top of the next page. 27 74 n 1B 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 78
78 Section 4: Epson Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 80
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 Printer Commands - Lexmark Forms Printer 2481 | Technical Reference - Page 81
Intercharacter Spacing Adds additional spacing to the right of each character. Valid values for n must be between 0 and 11. 81 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | Technical Reference - Page 82
Printing Select Emphasized (Bold) Printing Select Enhanced Printing Cancel Emphasized (Bold)/Enhanced Printing Select Underline Printing Cancel Underline Printing 82 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | Technical Reference - Page 83
RAM Character Set Copies a complete set of the characters resident in the printer to the area of its memory reserved for custom characters. ESC % A 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 - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 85
n2, n3 If the value for the left margin is less than 3 digits, 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 n1 1B 25 52 n1 n2 n3 n4 n2 n3 n4 Set Right - Lexmark Forms Printer 2481 | Technical Reference - Page 86
would be 0287. ESC HT CR ESC % B Maximum values are as follows: Pitch 2480 2481 10 cpi 959 1631 12 cpi 1151 1956 15 cpi 1339 2447 17.1 cpi 1643 from Left Margin See the command ESC ETX ... CR on page 86 for instructions on calculating the value for n1...n4. (Use the same pitch increment of - Lexmark Forms Printer 2481 | Technical Reference - Page 87
% E ESC ESC = Maximum values are as follows: Pitch 2480 2481 10 cpi 959 1631 12 cpi 1151 1956 15 cpi 1339 2447 ESC ETX ... CR on page 86 for instructions on calculating the value for n1...n4. (Use ESC ETX ... CR on page 86 for instructions on calculating the value for n1...n4. (Use - Lexmark Forms Printer 2481 | Technical Reference - Page 88
next. ESC % S 0 27 37 83 48 1B 25 53 30 Cancel Skip Over Perforation FF 12 0C Form Feed (with carriage return) Advances the paper to the top of the next page. LF 10 0A Line Feed (with 37 57 n 1B 25 39 n Set Line Spacing to n/144" 88 Section 5: OKI Microline Emulation Mode Printer Commands - Lexmark Forms Printer 2481 | Technical Reference - Page 89
VT command followed by a channel code (n). When the VT command is received, the printer skips to the next tab stop in that channel. To set your tabs, follow 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 - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 93
INIT* 16 SLCTIN* 17 GROUND 18 GROUND 19 GROUND 20 GROUND 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 * Lexmark compliant cables are supported up to 20 feet. 93 Section 6: Using the Printer Interface - Lexmark Forms Printer 2481 | Technical Reference - Page 94
2-9 DATA These signals are the 8 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 - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 99
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 DSR 6 RTS 7 CTS 8 RI to ± 25 negative V dc. 99 Section 6: Using the Printer Interface - Lexmark Forms Printer 2481 | Technical Reference - Page 100
, or 12-bit data frames and set the serial data transfer parameter so 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 you select 7-bit data transfer, some unexpected characters might print. Data - Lexmark Forms Printer 2481 | Technical Reference - Page 101
is detected, the interface prints an upside down question mark. Although the printer continues to receive data, it prints an upside down question mark for each is full. The buffer can only hold 128 bytes of data after the printer signals that it is busy. If the host sends more than this amount, - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 105
spaced characters, each character should be 9-dots wide and start in column 1. How Dots Are Added in NLQ Mode The 9-wire printers can print downloaded draft characters in NLQ mode. Downloaded characters print at the same speed as standard characters. You design the characters for Draft and the - Lexmark Forms Printer 2481 | Technical Reference - Page 106
solid dots must be specified in the font. Hollow 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 - Lexmark Forms Printer 2481 | Technical Reference - Page 107
The character design must specify all dots in the horizontal line. The printer removes adjacent dots from horizontal lines when printing in Draft, which is 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 and Fonts - Lexmark Forms Printer 2481 | Technical Reference - Page 108
shows how the printer adds dots at the intersection of horizontal and diagonal lines. The printer considers the point 10 11 2 3 4 5 6 7 8 9 Diagonal Intersecting 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 - Lexmark Forms Printer 2481 | Technical Reference - Page 109
such as 'b', 'd', or 'f', use rows 1 through 15. For lowercase descenders such as 'g', '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 store 256 characters in any area of the character - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 111
Part Two: Specifying the Download Data Attribute byte 1 specifies the character type and additional information. Bit Bit Values Functions 7 0 if the mode to create characters similar to resident font characters 176 to 178. 1,1 not valid. 111 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2481 | 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 2481 | 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 : total count = (1 x 13) + 2 = 15 count 1 = x0F count 2 = x00 113 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 119
- x0032, 50 15 - Type=NLQ II 26 - Start code='&' 00 - attribute byte 1=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 41 14 00 00 22 00 1C 00 1B4907 >& 00 - Lexmark Forms Printer 2481 | Technical Reference - Page 120
that follows shows you how to design and 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 a New Font The first step in - Lexmark Forms Printer 2481 | Technical Reference - Page 121
stored high-byte first, then low-byte second. For examples of the download sequence, see "Designing Monospaced Fast Draft Characters" on page 125, " Letter Quality Characters" on page 141. Design Considerations The 24-wire printers use a character matrix that is 24-dots high. The width of - Lexmark Forms Printer 2481 | Technical Reference - Page 122
right is not printed. If you are printing right to left, the internal algorithms compensate and print the design as it would appear if printed from byte. The following examples using the sequence include designing and downloading a monospaced draft character and a proportional character. Syntax: - Lexmark Forms Printer 2481 | 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 . 0,1 Line drawing character. 1,0 Underscore character. 1,1 Not supported. For a 10 cpi Letter Quality 36 column character, bits - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 125
to the resident fonts with the current 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 a New Font" on page 120. The following four examples get you started. The first is - Lexmark Forms Printer 2481 | Technical Reference - Page 126
during printing, but other bits in column 4 are different from column 3, which means no compression can occur. Column 9 is identical to column 8 (blank). 126 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 128
the Font Descriptor Byte Send the following descriptor byte information to the printer: For more information - Lexmark Forms Printer 2481 | Technical Reference - Page 129
address start) The address for the new lookup table entry for ASCII character 38 is x8167. Downloading the Lookup Table Data Send the following lookup table information to the printer: - Lexmark Forms Printer 2481 | Technical Reference - Page 130
9 dots wide by 24 dots high. Although the 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 2481 | Technical Reference - Page 131
22 44 BB Byte 2 00 00 00 7F 80 00 00 01 FE Byte 3 0A 15 2A D4 00 50 A8 50 A0 131 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2481 | Technical Reference - Page 132
Character Data Each dot-column is sent to the printer as three bytes of data. To get the is shown in the example below. Initializing the Download Data Use the following command to initialize the download area: - Lexmark Forms Printer 2481 | Technical Reference - Page 133
8 - column 9 Creating the Lookup Table Data Before creating lookup table data, make note of the following memory addresses. • The valid download address range for the 249x printers is x800C to xFFFF. • The ASCII character 0 lookup table entry addresses for the resident fonts are: - Draft (10 and 12 - Lexmark Forms Printer 2481 | Technical Reference - Page 134
Table Data Use the following example to send the lookup table information to the printer: - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 136
The following grid shows a 7 unit 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 take advantage of the compression algorithm. 1 1 1 1 1 1 1 1 - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 138
memory address greater than xA413. This example uses xA414. - Lexmark Forms Printer 2481 | Technical Reference - Page 139
table address) The address for the new lookup table entry for ASCII character 173 is x9828. Downloading the Lookup Table Data Send the following lookup table example to the printer: - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 141
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 Characters and Fonts - Lexmark Forms Printer 2481 | Technical Reference - Page 142
Character Data Each dot-column is sent to the printer as three bytes of data. To get the shown in the following example. Initializing the Download Area Use the following command to initialize the download area: - Lexmark Forms Printer 2481 | Technical Reference - Page 143
data at any unused memory address greater than xA413. This example uses xA414. - Lexmark Forms Printer 2481 | Technical Reference - Page 144
the Font Descriptor Byte Send the following descriptor byte information to the printer: - Lexmark Forms Printer 2481 | Technical Reference - Page 145
the Lookup Table Data Send the following lookup table information to the printer: - Lexmark Forms Printer 2481 | Technical Reference - Page 146
146 Section 7: Downloading Characters and Fonts - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 151
.2) = 1015. 3 v1 = remainder (1015 divided by 256) = 247, xF7 4 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: • • If you try to use values less than the - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 155
Examples: Valid EAN-13 command: - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 161
Examples: Valid Code 39 command: - Lexmark Forms Printer 2481 | Technical Reference - Page 162
Invalid Code 39 command: - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | Technical Reference - Page 165
Invalid Interleaved 2of5 command: - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 167
Since the b0 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 Transfer Command. Invalid UPC-A command: - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 169
Examples: Valid POSTNET command: - Lexmark Forms Printer 2481 | Technical Reference - Page 170
Since the v1, v2 values for the bar length are ignored for POSTNET, 00 00 is an acceptable bar length specification. Invalid POSTNET command: - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | 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 x3032 x3033 x3034 x3035 x3036 x3037 x3038 x3039 x3130 x3131 x3132 x3133 x3134 x3135 - Lexmark Forms Printer 2481 | Technical Reference - Page 176
Valid Code 128 command: - Lexmark Forms Printer 2481 | Technical Reference - Page 177
Invalid Code 128 command: - Lexmark Forms Printer 2481 | Technical Reference - Page 178
Valid Code 128 command using multiple character sets: - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 180
• The desired barcode may not print if invalid characters are specified in the data transfer command. Example: - Lexmark Forms Printer 2481 | Technical Reference - Page 181
• The desired barcode may not print if the number of characters specified by n1, n2 does not match the required number for the desired barcode type. Example: - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | Technical Reference - Page 184
Example: - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 186
186 Section 8: Barcodes - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 188
Code Page 437 188 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 189
Code Page 437G Section 9: Code Pages 189 - Lexmark Forms Printer 2481 | Technical Reference - Page 190
Code Page 813 190 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 191
Code Page 850 Section 9: Code Pages 191 - Lexmark Forms Printer 2481 | Technical Reference - Page 192
Code Page 851 192 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 193
Code Page 853T Section 9: Code Pages 193 - Lexmark Forms Printer 2481 | Technical Reference - Page 194
Code Page 857 194 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 195
Code Page 858 Section 9: Code Pages 195 - Lexmark Forms Printer 2481 | Technical Reference - Page 196
Code Page 860 196 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 197
Code Page 861 Section 9: Code Pages 197 - Lexmark Forms Printer 2481 | Technical Reference - Page 198
Code Page 863 198 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 199
Code Page 865 Section 9: Code Pages 199 - Lexmark Forms Printer 2481 | Technical Reference - Page 200
Code Page 869 200 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 201
Code Page 920 Section 9: Code Pages 201 - Lexmark Forms Printer 2481 | Technical Reference - Page 202
Code Page 1004 202 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 203
Code Page 1053 Section 9: Code Pages 203 - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 205
9x Ax Bx Cx - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 207
248x 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) 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 - Lexmark Forms Printer 2481 | Technical Reference - Page 208
248x 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) Courier (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 - Lexmark Forms Printer 2481 | Technical Reference - Page 209
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) 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 - Lexmark Forms Printer 2481 | Technical Reference - Page 210
249x Font Global IDs (FGIDs) Decimal, Hex and Byte Decimal Pitch 24 Font Style Decimal (Hf times 256 plus Lf) Courier (cont.) Normal 286 Hex (Hf Lf) x011E Byte Decimal (Hf, Lf) 01, 30 Emphasized Italic Emph./Italic PS Normal 171 x00AB 00,171 Emphasized 184 x00B8 00,184 Italic - Lexmark Forms Printer 2481 | Technical Reference - Page 211
249x Font Global IDs (FGIDs) Decimal, Hex and Byte Decimal Pitch 24 Font Style Decimal (Hf times 256 plus Lf) Prestige (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 - Lexmark Forms Printer 2481 | 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 2481 | 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 2481 | 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 2481 | 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 2481 | Technical Reference - Page 216
Character Set 1 216 Section 9: Code Pages - Lexmark Forms Printer 2481 | Technical Reference - Page 217
Character Set 2 Section 9: Code Pages 217 - Lexmark Forms Printer 2481 | Technical Reference - Page 218
218 Section 9: Code Pages - Lexmark Forms Printer 2481 | 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 2481 | Technical Reference - Page 220
memory area 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 T TTL. Transistor-transistor logic. top-of-form (TOF). The line position of the paper where the first line of text - Lexmark Forms Printer 2481 | Technical Reference - Page 221
barcode 171 Code 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, OKI Microline mode 83 100 designing characters (for download) 248x Printers draft 105 fast draft 109 NLQ II 109 Index 221 - Lexmark Forms Printer 2481 | 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 2481 | 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 specifications automatic feed mode 16 continuous forms 14, 15 cut forms 14, 15 manual feed 17 manual insertion mode 16 tractor feeder 16 - Lexmark Forms Printer 2481 | Technical Reference - Page 224
set 1 33 select character set 2 33 serial adapter option 96 printer connections 96-?? RS-232C cable 98 communication parameters 100 connecting 96 22 parameters 23 set print quality, IBM emulation mode 48 set top of form and page length, IBM emulation mode cancel skip perforation 60 set page length - Lexmark Forms Printer 2481 | 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 may use or distribute whatever information you supply Questions or comments about supplies, service, applications, and so - Lexmark Forms Printer 2481 | 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 2481 | 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