Forms Printer 248x/249x Technical Reference October 2000 www.lexmark.
Third Edition (October 2000) The following paragraph does not apply to the United Kingdom or any country where such provisions are inconsistent with local law: LEXMARK INTERNATIONAL, INC. PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Contents Section 1 - Introduction . . . . . . . . . . . . . . . . . . . . . . . . 9 Available Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Physical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Print Speeds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Printhead Description . . . .
Select Character Set 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Select Code Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Print From Code Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Continuously Print Characters from a Code Page . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Print One Character . . .
Set Page Length in Inches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Set Page Length in Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Set Skip Perforation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Cancel Skip Perforation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Printer Control . . . . . . .
Serial Computer Configuration Recommendations (RS-232C) . . . . . . . . . . . . . . . 103 Section 7 - Downloading Characters and Fonts . . 105 248x Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Designing Draft and NLQ Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Designing Fast Draft Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Character Set 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 Character Set 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
Introduction Section 1 Your dot-matrix printer is an easy-to-use desktop printer that provides lowcost, high-quality output from your personal computer. It handles cut forms, document-on-demand, and continuous form applications. Your printer is a wire-matrix printer. The printer makes impressions by forcing a hardened wire against an ink ribbon to transfer ink to the paper on impact. A dot is printed each time the wire strikes the ribbon against the paper.
Available Options 2480 2481 2490 2491 1329605 (10 ft.), 1427498 (20 ft.
Print Speeds Your printer supports the following burst print speeds in characters per second (cps).
Printhead Movement The printhead moves by a direct-current stepper motor. The printhead can print while moving in both directions (bidirectional print). When the printhead is printing in both directions, it automatically finds the shortest path to print the next line. The maximum velocity of the printhead is 1117.6 mm (44 in.) per second for the 248x and 1041.4 mm (41 in.) per second for the 249x.
Alternating Current Line Voltage Power Your printer uses one of the following alternating current (ac) line voltage power values. Note: Input voltage value varies with the country where the printer was purchased. • • 90-137 V ac, 50/60 Hz 180-265 V ac, 50/60 Hz Power Cord Printers for the United States and Canada have a 1.83 m (6.0 ft) power cord. Printers for all other countries have a 2.74 m (9.0 ft) power cord, with the correct plug to match the country requirements.
Paper Specifications 2480/2490 (Narrow Carriage Models) Cut Forms Paper Dimensions Single Continuous Forms Multiple part Single Multiple part Envelopes Width Maximum 297 mm (11.7 in.) See Note 297 mm (11.7 in.) See Note 254 mm (10 in.) 254 mm (10 in.) 241 mm (9.5 in.) Maximum Hole to Hole N/A See Note N/A 241 mm (9.5 in.) 241 mm (9.5 in.) N/A 76 mm (3.0 in.) 76 mm (3.0 in.) 76 mm (3.0 in.) 76 mm (3.0 in.) 152 mm (6.0 in.) N/A N/A 63 mm (2.5 in.) 63 mm (2.5 in.
2481/2491 (Wide Carriage Models) Cut Forms Paper Dimensions Single Continuous Forms Multiple part Single Envelopes Multiple part Width Maximum 420 mm (16.5 in.) 420 mm (16.5 in.) 406 mm (16.0 in.) 406 mm (16.0 in.) 241 mm (9.5 in.) Maximum Hole to Hole N/A N/A 393 mm (15.5 in.) 393 mm (15.5 in.) N/A Minimum 76 mm (3.0 in.) 76 mm (3.0 in.) 76 mm (3.0 in.) 76 mm (3.0 in.) 152 mm (6.0 in.) Minimum Hole to Hole N/A N/A 63 mm (2.5 in.) 63 mm (2.5 in.
Paper Size Narrow carriage (2480/2490) Wide carriage (2481/2491) Automatic Feed Mode (single-part form) Length 139.7 mm (5.5 in.) minimum 139.7 mm (5.5 in.) minimum 355.6 mm (14.0 in.) maximum 355.6 mm (14.0 in.) (See Note 1) maximum 558.8 mm (22 in.) (See Note 2) Width 105 mm (4.13 in.) minimum 105 mm (4.13 in.) minimum 215.9 mm (8.5 inch) maximum 364 mm (14.3 in.) maximum Tractor Feeder (continuous forms) Length Width 76 mm (3.0 in.) minimum 76 mm (3.0 in.
Ribbon Specifications The life expectancy of the 2300/2400 series standard re-inking ribbon is approximately 4 million characters in 10 characters per inch (cpi) draft mode. For replacement ribbon, order ribbon number 11A3540. Length: 1.8 m (6.0 ft) Width: 8 mm (0.315 in.) Fabric: 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.
To run the printer test, follow these steps: 1 2 3 4 Make sure the paper and ribbon are installed. Turn the printer Off. Press Line Feed while you turn the printer On. After a few seconds, release Line Feed. To stop or interrupt the printer test: 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.
1050 1060 1070 1080 1090 1100 1110 1120 1130 1140 1150 1160 1170 1180 1190 1200 1210 1220 1230 1240 1250 1260 1270 1280 1290 1300 1310 1320 1330 1340 1350 IF(I$ <> "<")THEN PRINT #2,I$;: GOTO 1090 I$ = INPUT$(1, #1) IF(I$ = "x")OR (I$ = "X") THEN GOSUB 1130: GOTO 1090 IF(I$ = "<")THEN PRINT#2,I$;: GOTO 1090 ELSE GOTO 1290 WEND CLOSE #1: CLOSE #2: SHELL "copy prtrout.
18 Section 1: Introduction
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 Ln Hn init ID p1...p22 Decimal 27 91 75 Ln Hn Hex 1B 5B 4B Ln Hn Ln is the number of parameters plus 2. Hn is 0. The decimal and hexadecimal digits for the printer command appear below the printer command format.
init sets the printer to user-defined or factory settings. The value for init can be: 22 Initial Values Description 0 Initializes printer to user-defined settings. The download font remains unchanged. If parameters are specified, they overwrite the default settings. If the emulation mode is changed, the download font is initialized.
Use the following parameters (parms) with SIC commands that use the printer ID of C5 and C6: Printer Dec Hex 2480 197 C5 2481 197 C5 2490 198 C6 2491 198 C6 Parm Description Selection Dec Hex 1 Emulation 0=No Change 1=PPDS 2=Epson 0 1 2 00 01 02 2 Panel Disable (see Note 1) 3 Macro (see Note 2) 0=No Change 1=Panel Disabled 2=Panel Enabled 0=No Change 1=Macro 1 2=Macro 2 3=Macro 3 4=Macro 4 255=Disable Macro 0 1 2 0 1 2 3 4 255 00 01 02 00 01 02 03 04 FF Notes: 1 You can disab
Parm Description Selection Dec Hex Notes (cont.): 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 or 05H is specified, parm3 is ignored. When init=00H, 01H, FEH, FFh are specified, parm3 value is used as Macro No. instead of Default Macro setting No. When init=FEH, FFh are specified parm3 value is overwritten to Default Macro setting in NVRAM. When the disable(=255) is set to parm3 Macro No.1 setting is used to initialize.
Parm 6 Description Selection Dec Hex Code Page 0=No Change 1=437 2=850 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0 1 0 1 2 3 4 0 1 2 3 4 00 01 00 01 02 03 04 00 01 02 03 04 0 1 2 3 4 5 6 00 01 02 03 04 05 06 0 1 2 3 4 5 0 1 2 0 1 2 00 01 02 03 04 05 00 01 02 00 01 02 3=860 7 Form Length 8 Lines Per Inch 9 Left Margin 10 11 12 13 Right Margin 4=863 5=865 6=437G 7=813 8=851 9=853T 10=857 11=869 12=920 13=1053 14=861 15=1004 16=858 0=No Cha
Parm Description 14 Auto LF 15 16 17 18 19 20 21 22 23 26 Selection 0=No Change 1=On 2=Off Slash Zero 0=No Change 1=Slashed Zero 2=Normal Zero Character Set 0=No Change 1=Set 1 2=Set 2 Print Direction 0=No Change 1=Unidirectional 2=Bidirectional Sheet Feeder 0=No Change 1=Disable 2=Enable Lock 0=No Change 1=Font Lock 2=Pitch Lock 3=Font and Pitch Lock 4=Font and Pitch Unlock 254=SIC Command Lock 254=SIC Command Unlock FF Enable 0=No Change (2480 only) 1=Ignore FF 2=Honor FF TOF Read 0=No Chan
IBM Emulation Mode Printer Commands 3 Section This section provides a detailed description of IBM emulation mode commands you can use with your printer. Control Codes Control codes are one-character printer commands that are used to: • • • Manage the printing of a job. Control the movement of the cursor, which changes the current print position. Control primary and secondary font selection. The first 32 characters of the Standard ASCII table are control codes.
Code Name Value (Dec) Value (Hex) Symbol Description CR Moves the current print position to the left 13 margin of the current line. 0D SO DoubleWide Printing by Line Prints all characters in double-width mode. 14 0E Condensed SI Printing Condenses printing from 10 characters per 15 inch (cpi) to 17.1 and 12 cpi to 20. 0F Select Printer DC1 Selects the printer.
that selects a right margin beginning at column 63, the right margin of each printed page begins at column 63. The margin remains constant until a right margin command with a different value resets the margin, or the printer is reset. In this section, command parameters are indicated by a lowercase n. Usage Notes explain how to compute this parameter. Command Structure The printer commands use ASCII; the decimal and hexadecimal digits are shown for your convenience.
Example of IBM Emulation Mode Printer Command Select Code Page (name of command) (A short description of the command follows) This command placed before the first character changes the active code page. (The printer command format follows with the decimal and hexadecimal values). Format ESC [ T 4 0 0 0 Hc Lc Decimal 27 91 84 4 0 0 0 Hc Lc Hex 1B 5B 54 04 00 00 00 Hc Lc Usage Notes The digits 4 0 0 0 (decimal), 04 00 00 00 (hexadecimal) are constants.
Printer Command Quick Reference (IBM Emulation Mode) Function Command Dec Hex For more information see...
Function Command Dec Hex For more information see...
Selecting a Character Set Select Character Set 1 Character set 1 contains characters and symbols that are used in the English language. Format ESC 7 Decimal 27 55 Hex 1B 37 See pag e216 for more information. Select Character Set 2 Character set 2 contains characters and symbols that are used in English and non-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.
• the code page number, then divide by 256. Code page information begins on page 188. Print From Code Page Continuously Print Characters from a Code Page Use this command to print characters from the all Characters Chart of a Code Page (see “Printing a Code Page” on page 204). Format ESC \ Ln Hn n1.....nn Decimal 27 92 Ln Hn n1.....nn Hex 1B 5C Ln Hn n1.....nn Ln Hn Ln (low number) and Hn (high number) identify the number of characters that you want to print.
located in the code page tables beginning on page 188. Print One Character Use this command to print a character from the All Characters Chart of a Code Page (see “Code Pages” on page 187). Format ESC ^ n Decimal 27 94 n Hex 1B 5E n Usage Note Substitute the decimal or hexadecimal digit of the character you want to print for the variable n. Download a Character Set This command downloads a character set to the printer and starts a character font image download.
start low/start high When character data is downloaded, the start address is the absolute address of 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 lookup table. data Character data from the character design, or lookup table data. Select Global Font This command allows you to vary the font and pitch typestyle within a file.
Table 1.
Table 2.
Table 3. Global Font and Size Parameters Pitch 24 CPI 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.
Select 12 cpi This command sets the pitch at 12 cpi. Format ESC : Decimal 27 58 Hex 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 49 n Usage Note • • 40 This command cancels any print combinations that conflict with ESC I.
248x Dec Hex 0 00 1 249x Print Mode Dec Hex Print Mode Draft - Resident 0 00 Normal (Draft) 10 cpi 01 Fast DP (12 cpi) Resident 8 08 Normal (Draft) 12 cpi 2 02 NLQ Gothic Resident 16 10 Normal (Draft) 17 cpi 3 03 NLQ Courier Resident 2 02 Normal (LQ) 10 cpi Courier 4 04 Draft - Download 10 0A Normal (LQ) 12 cpi Prestige 5 05 Fast DP (12 cpi) Download 18 12 Normal (LQ) 17 cpi Courier 6 06 NLQ - Download 3 03 Normal (LQ) Porportional 7 07 NLQ - Download 4 0
Select Print Type Style This command is used for varying the type style of the character and the number of line spacing.
m1 Selection Dec Hex 0 No Change 1 Start Italic Print (249x only) 2 Stop Italic Print (249x only) 4 Start Outline Print (249x only) 8 Stop Outline Print (249x only) 16 Start Shadow Print (249x only) 32 Stop Shadow Print (249x only) m3 Height Dec Line Space Hex 0 No Change No Change 1 Single No Change 2 Double No Change 16 No Change Single 17 Single Single 18 Double Single 32 No Change Single 33 Single Double 34 Double Double m4 Width Dec Hex 0 Unchanged 1 S
Emphasized (Bold) Print Use this command for bold print. To begin bold print: Format ESC E Decimal 27 69 Hex 1B 45 To end bold print: Format ESC F Decimal 27 70 Hex 1B 46 Double-Strike Print Double-strike print results in a darker print because the printhead strikes the character twice.
Superscript or Subscript To begin superscript: Format ESC S n Decimal 27 83 0 Hex 1B 53 00 To end superscript: Format ESC T Decimal 27 84 Hex 1B 54 To begin subscript: Format ESC S 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.
Continuous Double-wide Printing This command selects or cancels a double-wide printing mode that is not canceled by line feed terminators. Format ESC W n Decimal 27 87 n Hex 1B 57 n Usage Note The value of n can be any of the following: 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.
To select type: Cancel Decimal Hex Single Double 0 1 2 00 01 02 Usage Note To cancel this command, designate type as Dec 255 or Hex FF. Continuous Underline This command begins and ends continuous underline of spaces and characters. To begin Continuous Underline: Format ESC - n Decimal 27 45 1 Hex 1B 2D 01 To end Continuous Underline: Format ESC - n Decimal 27 45 0 Hex 1B 2D 00 Continuous Overscore This command prints a line above spaces and characters.
Set Print Quality This command sets the print quality to draft or letter quality.
Graphics Print Modes Normal Density Bit Image Graphics Use this command to print normal density bit images at 60 dots per inch (dpi) horizontally and 72 dpi vertically. Format ESC K Ln Hn data Decimal 27 75 Ln Hn data Hex 1B 4B Ln Hn data Usage Notes • • Ln and Hn identify the number of bytes in data. To print less than 256 bytes: — Hn is 0. — Ln is the number of bytes you want to print. To print more than 256 bytes: — Divide the number of bytes you want to print by 256.
Bit Number Binary Value Print Wires 2 4 14, 15 1 2 16, 17 If dots 1 and 0 print, wire 18 is also used. 0 1 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 Ln Hn mode data Hex 1B 5B 67 Ln Hn mode data Usage Notes • • Ln and Hn identify the number of bytes in mode and data. To print less than 256 bytes: — Hn is 0.
Mode • Dec Hex 8 08 60 24 9 09 120 24 11 0B 180 24 12 0C 360 24 13 0D 120 24 14 0E 180 24 16 10 360 48 Horizontal Density Wires data is the bit-mapped graphics information. The printhead moves at half the speed of mode 2, giving better resolution. Dual-Density Bit Image Graphics (Half Speed) Use this command to print normal density bit images at 120 dpi horizontally and 72 dpi vertically.
Dual-Density Bit Image Graphics (Normal Speed) Use this command to print dual-density bit images at 120 dpi horizontally and 72 dpi vertically. Format ESC Y Ln Hn data Decimal 27 89 Ln Hn data Hex 1B 59 Ln Hn data Usage Notes • • Ln and Hn identify the number of bytes in data. To print less than 256 bytes: — Hn is 0. — Ln is the number of bytes you want to print. To print more than 256 bytes: — Divide the number of bytes you want to print by 256. — The result is Hn. — The remainder is Ln.
Horizontal Movement Set Horizontal Tabulation Stops This command sets up to 28 tabulation stops to be used with the printer command HT, Horizontal Tabulation. Format ESC D tab stops Decimal 27 680 n1.....n28 Hex 1B 44 0 0 n1.....n28 00 Usage Notes n1.....n28 is used to set the tabulator stop positions. • • • • • • ESC D is terminated by a 0 entry. The first tabulation stop is at the leftmost column. Input the tabulation stops (n1.....n28) in ascending numerical order.
Set Horizontal Margins This command sets the left and right margins. Format ESC X n1 n2 Decimal 27 88 n1 n2 Hex 1B 58 n1 n2 Usage Notes • • • • Use n1 to select the left margin position. Use n2 to select the right margin position. Margins are specified in the character positions at the current pitchand are stored in absolute displacement from the left edge of the paper. The values for n1 and n2 must be between 0 and 255. If the value is set at 0, the margin is left unchanged.
Line Control Automatic Line Feed (LF) Executes an automatic line feed when a carriage return is received. To begin automatic line feed (LF) on carriage return (CR): Format ESC 5 Begin Decimal 27 53 1 Hex 1B 35 01 To end automatic line feed (LF) on carriage return (CR): Format ESC 5 End Decimal 27 53 0 Hex 1B 35 00 Reverse Line Feed Causes a reverse line feed; the paper is reversed according to the current line spacing.
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) Move Paper Vertically (ESC J). Format ESC [ \ 4 0 0 0 m3 m4 Decimal 27 91 92 4 0 0 0 m3 m4 Hex 1B 5B 5C 04 00 00 00 m3 m4 Usage Notes • • 4 0 0 0 (decimal), 04 00 00 00 (hex) are constant digits. m3 and m4 designate the denominator (the lower number) of a two-part fraction.
• • • ESC R (Set Default Tabulation Stops) and ESC B 0 will clear all vertical tab stops. Set the tabulation stops in ascending order (n1.....n64). The last digit in the sequence must be a 0 to terminate the command. Line Spacing Set Line Spacing to 1/8 Inch This command (ESC zero) sets the line spacing at 1/8 inch between each line, which is 8 lines per inch (lpi).
Set Line Spacing for Text This command sets line spacing 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 Decimal 27 65 n Hex 1B 41 n Usage Note The value for n must be between 1 and 85. Set Line Spacing for 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 received.
Set Top of Form and Page Length Set Top of Form This command sets the first line of printing on each page to the current paper position. Format ESC 4 Decimal 27 52 Hex 1B 34 Set Page Length in Inches This command sets the page length to a specified number of inches. Format ESC C 0 inches Decimal 27 67 0 n Hex 1B 43 00 n Usage Notes • • • The value of n is the number of inches you want to set as the page length and must be between 1 and 255.
• • 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 Skip Perforation This command specifies the number of lines to be skipped at the bottom of each page, which creates a bottom margin.
Printer Control Deselect Printer When this command is sent, the printer ignores all data except DC1 . Format ESC Q n Decimal 27 81 n Hex 1B 51 n The following values of n are valid: Model Dec Hex Mode Setting 3 03 ON 182 B6 OFF 22 16 ON 184 B8 OFF 2480 2481 23H 2490 B9H 24H 2491 B7H Setup Barcode Parameter This command sets the barcode parameters to the printer.
The barcode type is denoted by k. The following values are valid for k: k Barcode Type Dec Hex 177 B1 178 B2 EAN-13 179 B3 EAN-8 180 B4 CODE 39 181 B5 182 B6 INTERLEAVED 2 of 5 183 B7 UPC-A 184 B8 185 B9 POST-NET (barcode) 186 BA CODE 128 Module width is denoted by m. When m is 1, the barcode prints by 1/360 or 1/240 full dot method. For all other values, the barcode prints by half dot method.
The variable c denotes the control code. The control is made up of 8 bits (b1 - b8). The 8 bits are defined as follows: b1 Check Digit b2 Human Readable Character (0: print On, 1: print Off) b3 EAN-13, UPC-A flag character position (0: Center, 1: Under) b4 -b8 Not used Setup Barcode Data This command sets the barcode data on the current printing position. .
Automatic Check Digit Generation Flag On n1 (low byte) n2(high byte) Barcode Type 64 Dec Hex Dec Hex 12 0C 0 00 EAN-13 7 07 0 00 EAN-8 1 to 255 01 to FF 0 00 CODE 39 1 to 255 01 to FF 0 00 INTERLEAVED 2 of 5 11 0B 0 00 UPC-A 9 09 0 00 POST-NET (barcode) 2 to 255 02 to FF 0 00 CODE 128 Section 3: IBM Emulation Mode Printer Commands
Epson Emulation Mode Printer Commands Section 4 This section provides tables describing Epson mode commands you can use with your printer. Font Selection Name Dec Hex Description ESC % 27 37 n 1B 25 n Select User-defined Set n=0 Selects the resident set. n=1 Selects the user-defined set.
Name Dec Hex Description ESC R 27 82 n 1B 52 n Select an International Character Set n=0 USA n=1 France n=2 Germany n=3 U.K.
Name Dec Hex Description ESC k 27 107 n 1B 6B n 248x: Select Near-LetterQuality Font Selects the font to be used in NLQ mode. n=0 Courier n=1 Gothic 249x: Select Letter-Quality Font Selects the font to be used in LQ mode.
Name Dec Hex ESC (t 27 40 116 3 0 d1 d2 d3 1B 28 74 3 0 d1 d2 d3 Description Assign Character Tables Parameter range 0 ≤ d1 ≤ 1, 48 ≤ d1 ≤ 50 0 ≤ d2 ≤ 255 d3 = 0, 16 Function Assigns the d2 and d3 registered character table to the d1 character table according to the following values (the d1 character table is one of the four tables selectable with the ESC t command): 68 Section 4: Epson Emulation Mode Printer Commands d2 d3 Table/Code Page 0 1 1 2 3 3 4 4 5 5 6 7 8 9 11 15 24 0 0 16 16 0 16 0 16
Text Print Mode Name Dec Hex Description ESC M 27 77 1B 4D Print 12 Characters per Inch ESC P 27 80 1B 50 Print 10 Charaters per Inch ESC SP 27 32 n 1B 20 n Set Variable Character Spacing Sets additional space to the right of each character, which is added to the original space alloted to the character cell, n/120 inch. n can be a value of 0 to 127. ESC ! 27 33 n 1B 21 n Select Print Style Selects the print style as indicated in the n parameter.
Name Dec Hex Description ESC a 27 97 n 1B 61 n Select Justification n=0 prints the line of characters against the left margin. n=1 centers the line of characters between the left and right margins. n=2 prints the line of characters against the right margin. n=3 causes lines of characters to be printed evenly along both the left and right edges when the buffer becomes full.
Graphics Print Modes Name Dec Hex Description ESC ^ 27 94 m Ln 1B 5E m Ln 9-Pin Graphics Mode (248x only) Hn data Hn data Prints 9-pin bit-image graphics. m=0 Normal density (60 dpi) m=1 Dual density (120 dpi) m=2 High speed dual density (120 dpi) m=3 Quadruple density (240 dpi) ESC ? 27 63 n1 n2 1B 3F n1 n2 Change Graphics Mode Command Changes the graphic mode assigned to a graphics mode command.
Name Dec Hex Description ESC * 27 42 n Ln 1B 2A n Ln Set Graphics Mode Hn data Hn data Prints bit-image graphics in the mode specified by n. See the following tables for modes that can be specified by parameter n.
Horizontal Movement Name Dec Hex Description BS 8 08 Backspace Moves left one space, based on pitch setting. HT 9 09 Horizontal Tab Moves right to the next horizontal tab stop. Tab is set with the ESC D command. ESC D 27 68 0 n1 1B 44 0 n1, n2...n32 0 n2...n32 00 ESC $ 27 36 n1 n2 1B 24 n1 n2 Set Absolute Print Position Offsets the print position by an absolute distance from the left margin. The formula for calculating offset is: (n1 + (n2 x 256))/60 (inch).
Vertical Movement Name Dec Hex Description LF 10 0A Line Feed Advances the form one line. VT 11 0B Vertical Tab Advances the paper to the next vertical tab stop. ESC B 27 66 0 n1 1B 42 0 n1, n2...n16 0 n2...n16 00 Set Vertical Tab Stops Sets up to 16 tab stops. The sequence ends with 0. FF 12 0C Form Feed Advances the paper to the top of the next page. ESC J 27 74 n 1B 4A n Relative Move Base Line Advances the paper by n/216 inches on 248x printer; n/180 inches on 249x printer.
Name Dec Hex Description ESC 3 27 51 n 1B 33 n Set Graphics Line Spacing - 248x only Use a line spacing of 24/216 for bit-image graphics using 8 bits. n must be a 1-byte decimal value from 0 to 255. To move exactly n/216 inch per line, n must be an integer multiple of 3. Set Graphics Line Spacing - 249x only Sets line spacing to n/180 inches per line. ESC A 27 65 1B 41 Set n/72 Inch Line Spacing Sets line spacing to n/72 inch for subsequent line feed command.
Name Dec Hex Description BEL 7 07 Beeper Sounds the printer beeper for approximately 1 second. DC1 17 11 Select Printer (XON) The host sends this command to signal the printer to begin printing data. DC3 19 13 Null (XOFF) CAN 24 18 Cancel Data Clears data received since the last buffer terminator. NUL 0 00 Null ESC U 27 85 n 1B 55 n Set Print Direction n=0 bidirectional n=1 unidirectional ESC @ 27 64 1B 40 Initialize Printer Clears all data stored in the printer buffer.
Name Dec Hex Description ESC & 27 38 0 n1 1B 26 0 n1 n2 d1 data n2 d1 data Define Download Characers ESC : 27 58 0 n 0 1B 3A 00 n 00 Copy Normal Characters from ROM to RAM ESC < 27 60 1B 3C Select Left-to-Right Printing ESC = 27 61 1B 3D Set MSBs to Zero Sets the MSBs of all data sent to the printer to 0. ESC > 27 62 1B 3E Set MSBs to One Sets the MSBs of all data sent to the printer to 1.
Section 4: Epson Emulation Mode Printer Commands
OKI Microline Emulation Mode Printer Commands Section 5 This section provides tables describing OKI Microline mode commands you can use with your printer.
Name Dec ESC [ T 27 91 84 Ln Hn 0 0 Hcp Lcp 0 Hex Description 1B 5B 54 Ln Hn 0 0 Hcp Lcp 04 Print from Code Page If printing less than 256 characters: Ln = # characters to be printed H n= 0 If printing more than 256 characters, divide the total number of characters by 256: Ln = whole number of quotient Hn= remainder of quotient Hcp Lcp 1 2 3 3 3 4 4 Code Page Set Decimal 181 USA 82 Multilingual 92 Canadian French 95 Portugal 97 Norway 16 BRASCII 17 Abicomp Hcp Lcp Code Page Set Hexadecimal 01 B5 USA
Character Size and Spacing Name Dec Hex Description RS 30 1E Print 10 Characters per Inch FS 28 1C Print 12 Charaters per Inch ESC g 27 103 1B 67 Print 15 Charaters per Inch GS 29 1D Print 17.
Table 1. Variable Values and Factors for Combined Print Features Command Value n1 1 10 cpi 2 4 8 12 cpi 17.
Custom Characters Name Dec Hex Description ESC $ 27 36 1B 24 Copy ROM Character Set to 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 27 37 65 m 1B 25 41 m n1...n11 n1...n11 Down Line Load Ascender Characters Begins downloading an ascender character. ESC % D 27 37 68 m 1B 25 44 m n1...n11 n1...n11 Down Line Load Descender Characters Begins downloading an descender character.
Name Dec Hex Description ETX ETX 33 03 03 Stored graphics data in one dot column buffer Determines the graphics setting. In 7-bit mode, the graphic setting is 14/144"; in 8-bit graphics mode, it is 16/144" Table 2. Density n1 Dots per inch/Density 1 60 dpi 2 72 dpi 4 Single density 8 Double density 16 Quadruple density To calculate the density (value for n1), 1 Locate the dpi and density you want from the above table. 2 Select the corresponding n1 values for each.
5 Add the values selected in steps 2 and 4. 6 Add 64 to the total. Example: For double speed, 8-bit graphics, calculate the value of n2 as follows: n2=8+16+64=88 Horizontal Movement Name Dec Hex Description BS 8 08 Backspace CR 13 0D Carriage Return. ESC % C 27 37 67 n1 1B 25 43 n1, Set Left Margin n2 n3 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).
Name Dec ESC ETX ... 27 3 x1 y1 CR z1 w1...x16 y16 z16 w16 13 Hex Description 1B 03 x1 y1 z1 w1...x16 y16 z16 w16 0D Set Horizontal Tabs by Dot Columns Sets tab stops for up to 16 positions. The character pitch determines the distance represented by the tab (distance from the center of one dot to the center of the next dot). Pitch Shift Increment 10 cpi 1/120 12 cpi 1/144 15 cpi 1/180 17.
Name Dec Hex Description ESC DLE @ 27 16 64 pN 1B 10 40 pN Set Multiple Print Positions a1 a2 p1 p2 a1 a2 p1 p2 Moves the print position to the right or left, as an p3 p4 p3 p4 absolute or relative print position. pN=0 to 127 a1=0 (absolute print position) a1=1 (relative print position) a2=0 (move to the left (backward)) a2=1 (move to the right (forward)) The character pitch determines the distance represented by the tab (distance from the center of one dot to the center of the next dot).
Vertical Movement Name Dec Hex Description ESC G 27 71 Hn Ln 1B 47 Hn Ln Set Page Length in Inches Sets the page length in increments of 1/2" x the values of Hn Ln. The values for Hn and Ln should be between 00 and 99. For lengths less than 4.5", Hn = 0. ESC F 27 70 Hn Ln 1B 46 Hn Ln Set Page Length in Lines Sets the page length in increments of line pitch x the values of Hn Ln. The values for Hn and Ln should be between 00 and 99. For values less than 10, Hn = 0.
Name Dec Hex Description 20 32...32 14 20...20 n... Set Vertical Format Unit (VFU) DC4 SP...SP n... n... 32...32 20...20 n... 3F Programs up to 12 sets (channels) of vertical tabs. The maximum tab stops in one set (channel) is 27. SP...SP n...? n... 63 This command works in conjunction with the 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.
Name Dec Hex Description ESC V 27 86 1B 56 Eject Page Section 5: OKI Microline Emulation Mode Printer Commands
Using the Printer Interface Section 6 The printer interface is the physical connection point between the printer and other devices, such as a computer. The 2400 series printer offers a choice of three printer interfaces: parallel, Universal Serial Bus (USB), or serial. Use the parallel interface and parallel cable if you are attaching the printer to a personal computer’s parallel port. Use the USB interface and USB cable when you are attaching the printer to a personal computer’s USB port.
Computer to Printer Communication The parallel interface transfers data from computer to printer. The data path is 8 bits wide. The printer and the computer synchronize data transfer with the interface signals STROBE*, ACKNLG*, and BUSY. When the computer is ready to send a byte of data to the printer, the computer puts the byte of data on the data lines. Then the computer sends a STROBE* (low) pulse to the printer. The printer responds with a BUSY (high) signal.
Pin Connections The following illustration shows the pin assignments for connecting the 25-pin connector to the 36-pin connector. Lexmark Parallel Cables P/N 1329605 (10 ft.) P/N 1427498 (20 ft.
Parallel Pin Assignments Pin Line Description 1 STROBE* When the printer receives the STROBE* low from the computer, the printer reads the data from the interface and sets the BUSY line high. STROBE* must not occur when the BUSY line is high; otherwise, unpredictable results may occur. 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.
Pin Line Description 31 INIT* INIT* from the system resets the printer to its initial poweron-state. The BUSY line goes high, and any received data is printed. When INIT* goes low, the printer resets to the poweron default state. If data is in the USB buffer, the USB FIFO is not reset. 32 ERROR* The printer sets the ERROR* line low if the printer detects an error or out-of-paper condition. A critical error condition exists when both ERROR* and PE are low. 33 GND Ground level. 34-35 36 Not used.
Universal Serial Bus Interface The USB interface, with a signaling bit rate of 12 Mb/s (full speed), is in full compliance with the Universal Serial Bus Specification Revision 1.0. It has a USB Function Controller with two FIFO-based Endpoints: • • One bidirectional Control Endpoint 0 (8 bytes) One receive Endpoint 1 (1*64 bytes) Serial Interface You may want to use the serial interface when you need to use a cable more than 6 m (20 ft.
Serial Cable Pin Assignments (RS-232C) The following illustration shows the RS-232C serial cable: 25-Pin Male 13 25 1 14 25-Pin D-shell Female 25 14 Serial Adapter Side 13 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).
Serial Interface Cable (RS-232C) The recommended 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 the cable and the connector should be less than 2500 pF, or it will delay the signal transition by more than 4%. Following is a diagram of the serial cable (Lexmark part number 1038693 (15.24 m or 50 ft.)).
Using an IBM AT Personal Computer (RS-232C) If you are using an IBM AT or compatible computer, use a 9-pin to 25-pin EIA RS-232C cable. We recommend one of the following for a 9-pin to 25-pin cable: • • IBM P/N 6450242 (254 mm or 10 in.) IBM P/N 6450217 (3 m or 10 ft.) The following illustration shows the pin 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.
The voltage reference point is the signal ground on pin 7. A timing or control line is active if the voltage is more than +3 V, or inactive if the voltage is less than -3 V. A data signal more than +3 V means that the bit is a logical 0; less than -3 V means that the bit is a logical 1.
When No parity is selected, the pritner expects no parity bit when it receives data. The printer transmits data without parity bits. When Ignore parity is selected, the printer expects a parity bit when it receives a data frame. Although the printer expects a parity bit, it ignores the bit and does not check for a parity error condition. The printer uses even parity when it transmits data.
The following diagram illustrates DTR Protocol Timing. 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 computer that the printer buffer is full or the printer is busy and data transmission should stop.
2 Because all data transmissions require CTS, it must be detected prior to the XON/XOFF protocol initiating. Once CTS is detected, after POR, the printer transmits an XON command. It is not necessary for the host to detect this initial XON command prior to transmitting data to the printer. 3 The printer transmits an XOFF command to the host when the receive buffer is full.
1 2 3 4 Select the printer icon. 5 6 Select the settings you want to use. Select Open. Select Settings. The Printer - Settings screen appears. Select the serial port to which you want to attach the printer. The Serial Port - Settings screen appears. Select OK. The next example shows an alternative way to configure OS/2. From the OS/2 prompt, enter the following command: mode com1:9600,n,8,1,,DTR=on,OCTS=on,ODSR=on You can also include the following command statement in the CONFIG.
Downloading Characters and Fonts Section 7 This chapter explains how to download characters and provides programming examples for several escape sequences. The first part of the chapter is for 248x users; 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.
Vertical Lines The following drawing shows how the printer adds dots to a vertical line. Columns 1 2 3 4 5 6 7 8 9 10 11 Rows 1 2 3 4 5 6 7 8 9 The 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.
Intersections of Vertical and Horizontal Lines The drawing on the left shows how the printer adds the vertical dots to a vertical line that intersects a horizontal line. 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 illustrated in the drawing on the right.
Diagonal Intersecting Horizontal Line This drawing shows how the printer adds dots at the intersection of horizontal and diagonal lines. The printer considers the point of intersection as a two-dot vertical line. Columns 1 2 3 4 5 6 7 8 9 10 11 Rows 1 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.
When a diagonal line intersects a vertical line at a point other than the end of the vertical line, you should specify a horizontal dot at the intersection to improve character appearance. This ensures that the character is acceptable in Draft. Designing Fast Draft Characters The character matrix for Fast Draft characters is 10-dots wide and 9-dots high. Ascender characters generally use the top 7 rows, establishing row 7 as the baseline. Descender characters use the bottom 7 rows.
Initializing the Download Area Use the following command to initialize the download areas to the resident fonts: Downloading a Draft/NLQ Character Set The sequence to download characters for Draft/NLQ and Fast Draft is shown below: Syntax: ESC = count1 count2 font id start Decimal: 27 61 count1 count2 20 start Hex: 1B 3D count1 count2 14 start There are two parts of the ESC = escape se
Part Two: Specifying the Download Data Attribute byte 1 specifies the character type and additional information. Bit Bit Values Functions 7 0 if the character is an Ignored if bit 0 or bit 1 is set to 1. ascender (a character using only the upper 8 wires of the print head). 1 if the character is a Ignored if bit 0 or bit 1 is set to 1. descender, a character using only the lower 8 wires of the print head (for example, g). 6-2 Not used; set to zeros. 1, 0 0,0 no expansion.
Attribute byte 2 specifies proportional-spacing information. Bits 6-0 specify spacing information. Set these bits to 0 if proportional spacing is not desired. When you use proportional spacing with a downloaded font that has bits 6-0 set to 0, all 11 bytes of character data print. Bit Bit Values Functions 7 Set to 0. 6, 5, 4 Interpreted as a binary number. Specifies the number of leading dot columns to ignore. This number is the offset. Up to 7 dot columns can be ignored.
Designing and Downloading the Draft/NLQ Copyright (©) Symbol This example shows how the 11 bytes of printable data for the ’©’ symbol were determined. Columns 1 2 3 4 5 6 7 8 9 10 11 Rows 1 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 Hexadecimal Values- 38 44 00 92 AA AA AA 82 00 44 38 This example replaces the ’@’ character with the Draft ’©’ symbol. This character is an ascender without proportional spacing.
The following example 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.
Downloading an NLQ 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 download areas. To select the first area, use the ESC I x07 command. For the second download area, use the ESC I x0F command.
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 of character data. This field of 48 bytes must be repeated for each character. The following text describes the specifications of the attribute bytes and the character data. Attribute byte 1 specifies the character type. Bit Bit Values Functions 7 0 if the character is an Ignored if bit 0 or bit 1 is set to 1. ascender.
Attribute byte 2 is not used when specifying NLQ II. Set it to zero. Bit Functions Printable Data (Columns 1 to 23) • Defines the column data for each character from left to right. • Column 24 is always blank; therefore, only 23 columns can be defined. • There are 2 bytes per dot column, 46 bytes of printable data for each character. The two bytes of each dot-column are defined as follows: • The first byte defines dots in rows 1, 3, 5...15 (3, 5, 7...17 for descender characters).
When NLQ II font data is downloaded, 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 normal ’&’ character to be printed. The following figure shows the copyright symbol as it is designed and printed. Solid dots indicate downloaded and printed dots.
To replace the ampersand (’&’) symbol, use the following example to download and print the copyright © symbol.
249x Printers Designing and Downloading Characters The text 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 downloading a new font is designing and creating the character data for the characters in the font. You can download up to 256 characters.
on. For Letter Quality fonts, the font descriptor byte also identifies the pitch of the font. If multiple lookup tables have the same combinations of pitch and quality, only the first one is accessible. Font Descriptor Byte Bit 7 1 = This is the default font. Bit 6 1 = Another lookup table follows. Bits 5,4 Reserved (should be zero). Bits 3-0 Quality and pitch.
10 cpi LQ 36 dots 12 cpi LQ 30 dots 10 cpi ELQ 36 dots 12 cpi ELQ 30 dots Proportional characters in the 249x are based on a 7-unit width system where 1 unit is equal to 1/60 inch. Because 1 dot-column equals 1/360 inch, 1 unit is equal to 6 dot-columns. Proportional character width may vary from 3 units to 7 units. If you want to design a character that is n dots wide, you can only use n-1 dots. The nth dot-column must always be specified as a blank.
Count is the number of bytes of data being downloaded starting with the font ID byte. The count is a 2-byte value downloaded as the low byte followed by the high byte. The font ID byte is a 1-byte number that identifies the font. The ID byte for the 249x is 35 (x23). When downloading character data, the start address is the absolute address of the start of the character data. When downloading lookup table data, the start address is the address of the new entry in the lookup table.
Bit Bit Values Functions Used for the compression mask. There is one bit per dot column with bit 7 of byte 5 mapping to the leftmost column. For a character with 36 dot columns when decompressed, bit 4 of byte 9 would map to the rightmost column. All zeros indicate that a character is not compressed. If a proportional character has more dot columns than compression mask bits, the remaining dot columns must be stored without compression. Only 39 dot columns can be compressed.
Note: The lookup tables copied using the ESC = 0 0 command point 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 an example of designing and downloading a monospaced Fast Draft character with compression.
1 2 3 4 5 6 7 8 9 MSB 1 2 3 B Y 4 T E 5 1 6 7 LSB 8 MSB 9 10 11 B Y 12 T E 13 2 14 15 LSB 16 MSB 17 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 8 This example shows the design for the ampersand character (ASCII 38) from the All Characters chart.
Creating the Character Data Each dot column is sent to the printer as three bytes of data. To get the values of this data, convert the binary values to hexadecimal values. First byte of data (most significant byte) Top 8 print wires Second byte of data Middle 8 print wires Third byte of data (least significant byte) Bottom 8 print wires The ampersand figure shows the hexadecimal value for each byte in each column of the character.
Downloading the Character Data You can start the character data at any unused memory address greater than xA413. This example uses xB000.
Creating the Lookup Table Data Before creating lookup table data, note the following memory addresses: • • The valid download address range for the 249x is x800C to xFFFF. The ASCI 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 character data can start at any address greater than xA413.
Printing the Character To print the ampersand symbol, send the following command sequence: Designing Monospaced Draft Characters When designing monospaced draft characters, design the character for 10 cpi output and use as many dot-co
This example shows the design for the two-sixteenth note character (ASCII 14) from the All Characters Chart. Because the design of this character does not contain any consecutive columns that are identical, no compression can take place.
Creating the Character Data Each dot-column is sent to the printer as three bytes of data. To get the values of this data, convert the binary values to hexadecimal values. First byte of data (most significant byte) Top 8 print wires Second byte of data Center 8 print wires Third byte of data (least significant byte) Bottom 8 print wires The two-sixteenth character shows the hexadecimal value for each byte in each column of the character.
Downloading the Character Data You can start the character data at any unused memory address greater than xA413. This example uses xB000.
Example: Replace ASCII character 173 (inverted exclamation point) with the twosixteenth note. There are 9 bytes per entry, and entry 0 of the draft table starts at x8011. 9 x 173 = 1557 = x615 (the offset into the table) x615 + x8011 = x8626 (offset + character 0 lookup table address) The address for the new lookup table entry for ASCII character 173 is x8626.
Printing the Character To print the two-sixteenth note character at 12 cpi download draft, send the following sequence: Designing Proportionally Spaced Characters Proportional characters in the 249x are based on a 7-unit width system described in “Design Considerations” on page 121.
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.
Creating the Character Data Each dot-column is sent to the printer as three bytes of data. To get the values of this data, convert the binary values to hexadecimal values. First byte of data (most significant byte) Top 8 print wires Second byte of data Middle 8 print wires Third byte of data (least significant byte) Bottom 8 print wires The figure shows the hexadecimal value for each byte in each column of the character. For example, the first byte of column one is binary 0011 1100 or 60, x3C.
Downloading the Character Data You can start the character data at any unused memory address greater than xA413. This example uses xA414.
Creating the Lookup Table Data Before downloading lookup table data or character data, make note of the following memory addresses. • • The valid download address range for the 249x is x800C to xFFFF.
Printing the Character To print the trademark character, send the following sequence: 140 Section 7: Downloading Characters and Fonts
Designing Enhanced Letter Quality Characters When designing monospaced Enhanced Letter Quality characters, you can use horizontal consecutive dots. To design a character, start with a 35 dot wide by 24 dot high grid. Although the character matrix for an ELQ character is 36 dots wide, the last column must be blank. This example shows the draft design for the capital AE character (ASCII 146) from the All Characters Chart. Note: A blank column must be added after the last column of this character.
Creating the Character Data Each dot-column is sent to the printer as three bytes of data. To get the value for the first byte of data, convert the binary values of the bottom eight print wires to hexadecimal. The most significant bit of each byte is the top dot. The least significant bit of each byte is the bottom dot. The figure on page 141 shows the value for each byte in each column of the character. For example, the last byte of column two is binary 0001 0000 or 10.
Downloading the Character Data You can start the character data at any unused memory address greater than xA413. This example uses xA414.
Downloading the Font Descriptor Byte Send the following descriptor byte information to the printer: For more information about the Font Descriptor Byte, see page 121.
Downloading the Lookup Table Data Send the following lookup table information to the printer: Printing the
Section 7: Downloading Characters and Fonts
Barcodes Section 8 This section describes how to use your printer to generate barcodes. Barcode Function You can print barcodes on your printer in both IBM and Epson emulation modes. In the 248x printer’s Data Options setup menu, the barcode option must be set to ENABLE to reserve 1K of the receive buffer for barcode processing. If the option is not set to ENABLE, barcode printing is not possible. For 249x printers, buffer space is reserved automatically for barcode processing.
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 readable characters. Some barcodes use a check character, a character at a predetermined position within a barcode, whose value is computed by a mathematical algorithm.
k is the barcode type. Barcode Type k value EAN-13 178, xB2 EAN-8 179, xB3 Code 39 180, xB4 Interleaved 2of5 182, xB6 UPC-A 183, xB7 POSTNET 185, xB9 Code 128 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 to determine both bar and space widths. Bar Length (Height) B Width A B is a space module. m value A is a bar module. # of dots 248x module width 249x module width 0 (default) 2 dots 0.
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 range for possible s values is: -3 <= s <= 3.
v1, v2 define the bar height. Use the following steps to calculate the values of v1 and v2: 1 2 3 4 Determine the approximate desired height (in inches) of the bar. Let V = 2160 x (height in inches). Round V to the nearest whole number. v1 is the lower byte of V (remainder of V divided by 256). v2 is the upper byte of V (quotient of V divided by 256). Example: 1 2 3 4 Desired height is 0.47 inch. V = round (2160 x 0.47) = round (1015.2) = 1015.
b1: human readable character 0: Prints human readable character. 1: Does not print human readable character. b2: flag character position (for EAN-13 and UPC-A only) 0: Center 1: Under b3-b7: Not used An example of deriving the c parameter follows: 1 Check digit is to be printed by the printer. The human readable character is to be printed. The flag character position is to be centered. 2 Therefore, b2 = 0, b1 = 0, and b0 = 1.
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 European Article Numbering (EAN) barcode is the European version of the all-numeric, fixed length UPC symbology.
Examples: Valid EAN-13 command: 2359458890256 ...
Invalid EAN-13 command: 0584454824159 ...
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:
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 byte first) x0006, 6 B3 - barcode type = EAN-8 00 - module width = default 00 - space width adjustment = default 4003 - height (low byte first) - x0340 = 832 = 0.
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.
data character set: 160 Character Hex ’0’ x30 ’M’ x4D ’1’ x31 ’N’ x4E ’2’ x32 ’O’ x4F ’3’ x33 ’P’ x50 ’4’ x34 ’Q’ x51 ’5’ x35 ’R’ x52 ’6’ x36 ’S’ x53 ’7’ x37 ’T’ x54 ’8’ x38 ’U’ x55 ’9’ x39 ’V’ x56 ’A’ x41 ’W’ x57 ’B’ x42 ’X’ x58 ’C’ x43 ’Y’ x59 ’D’ x44 ’Z’ x60 ’E’ x45 ’-’ x2D ’F’ x46 ’.
Examples: Valid Code 39 command:
Invalid Code 39 command: CaT ...
INTERLEAVED 2of5 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.
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 Interleaved 2of5 command:
Invalid Interleaved 2of5 command: 058$ ...
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:
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:
POSTNET This all-numeric symbology is used to express U.S. Postal Service ZIP codes. k value: m value: s value: minimum v1, v2 values: c parameter: 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 bar 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.
Examples: Valid POSTNET command: 405111876403 ...
Since the v1, v2 values for the bar length are ignored for POSTNET, 00 00 is an acceptable bar length specification.
Code 128 Code 128 is a flexible symbology that uses numeric and certain alphabetic and symbolic characters. It provides three separate character sets and a method of shifting between character sets within the same barcode. The first byte of the data string defines the character set. If an invalid character is included for the first byte, the printer ignores all data defined by n1, n2 and does not print the barcode.
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.
data character set A: Character Hex Code Character Hex Code Character Hex Code Character Hex Code NUL x00 Space x20 ’@’ x40 FNC 3 x60 OH x01 ’!’ x21 ’A’ x41 FNC 2 x61 STX x02 ’”’ x22 ’B’ x42 Shift x62 ETX x03 ’#’ x23 ’C’ x43 CodeC x63 EOT x04 ’$’ x24 ’D’ x44 CodeB x64 ENO x06 ’%’ x25 ’E’ x45 FNC 4 x65 ACK x06 ’&’ x26 ’F’ x46 FNC 1 x66 BEL x07 ’‘’ x27 ’G’ x47 — — BS x08 ’(’ x28 ’H’ x48 — — HT x09 ’)’ x29 ’I’ x49 — — LF
data character set B: Character 174 Hex Code Character Hex Code Character Hex Code Space x20 ’@’ x40 ’!’ x21 ’A’ x41 ’a’ x61 ’”’ x22 ’B’ x42 ’b’ x62 ’#’ x23 ’C’ x43 ’c’ x63 ’$’ x24 ’D’ x44 ’d’ x64 ’%’ x25 ’E’ x45 ’e’ x65 ’&’ x26 ’F’ x46 ’f’ x66 ’‘’ x27 ’G’ x47 ’g’ x67 ’(’ x28 ’H’ x48 ’h’ x68 ’)’ x29 ’I’ x49 ’i’ x69 ’*’ x2A ’J’ x4A ’j’ x6A ’+’ x2B ’K’ x4B ’k’ x6B ’,’ x2C ’L’ x4C ’l’ x6C ’-’ x2D ’M’ x4D ’m’ x6D ’.
data character set C: Character Hex Code Character Hex Code Character Hex Code Character Hex Code ’00’ x3030 ’32’ x3332 ’64’ x3634 ’96’ x3936 ’01’ x3031 ’33’ x3333 ’65’ x3635 ’97’ x3937 ’02’ x3032 ’34’ x3334 ’66’ x3636 ’98’ x3938 ’03’ x3033 ’35’ x3335 ’67’ x3637 ’99’ x3939 ’04’ x3034 ’36’ x3336 ’68’ x3638 CodeB x3A ’05’ x3035 ’37’ x3337 ’69’ x3639 CodeA x3B ’06’ x3036 ’38’ x3338 ’70’ x3730 FNC 1 x3C ’07’ x3037 ’39’ x3339 ’71’ x3731 — —
Valid Code 128 command:
Invalid Code 128 command: 49545 ...
Valid Code 128 command using multiple character sets:
Notes For Barcode Printing • • • • Barcode printing 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 not print if undefined values are specified for the command parameters.
• The desired barcode may not print if invalid characters are specified in the data transfer command. Example: 012a5 ...
• 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:
• When the m parameter is set to 1 (m = 1), the printer does not print the human readable character. Example:
• Completing the barcode setup 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).
Example:
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
Section 8: Barcodes
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 designated countries. Code page 437 (U.S. English) is the factory default code page. All code pages are shown on the following pages.
Code Page 437 188 Section 9: Code Pages
Code Page 437G Section 9: Code Pages 189
Code Page 813 190 Section 9: Code Pages
Code Page 850 Section 9: Code Pages 191
Code Page 851 192 Section 9: Code Pages
Code Page 853T Section 9: Code Pages 193
Code Page 857 194 Section 9: Code Pages
Code Page 858 Section 9: Code Pages 195
Code Page 860 196 Section 9: Code Pages
Code Page 861 Section 9: Code Pages 197
Code Page 863 198 Section 9: Code Pages
Code Page 865 Section 9: Code Pages 199
Code Page 869 200 Section 9: Code Pages
Code Page 920 Section 9: Code Pages 201
Code Page 1004 202 Section 9: Code Pages
Code Page 1053 Section 9: Code Pages 203
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.
9x Ax Bx Cx Dx Ex Fx 9420952096209720 982099209A209B20 A420A520A620A720 A820A920AA20AB20 B420B520B620B720 B820B920BA20BB20 C420C520C620C720 C820C920CA20CB20 D420D520D620D720 D820D920
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, and code page. It uses the following best-fit algorithm: 1 Requested font, pitch, and code page. 2 Requested pitch and code page, first font found.
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 5 (Double Wide) Normal 244/246 x00F4/x00F6 00,244/00,246 Emphasized 245 x00F5 00,245 Normal 11 x000B 00,11 Emphasized 46 x002E 00,46 Italic 18 x0012 00,18 Emph./Italic 57 x0039 00,57 Normal 85/491 x0055/ x01EB 00,85/01,235 Emphasized 108 x006C 00,108 Italic 92 x005C 00,92 Emph.
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.
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) Courier 5 (Double Wide) Normal 244/246 x00F4/x00F6 00,244/00,246 Emphasized 245 x00F5 00,245 Normal 11 x000B 00,11 Emphasized 46 x002E 00,46 Italic 18 x0012 00,18 Emph./Italic 57 x0039 00,57 Normal 85/491 x0055/ x01EB 00,85/01,235 Emphasized 108 x006C 00,108 Italic 92 x005C 00,92 Emph.
249x Font Global IDs (FGIDs) Decimal, Hex and Byte Decimal Pitch Decimal (Hf times 256 plus Lf) Hex (Hf Lf) Byte Decimal (Hf, Lf) 286 x011E 01, 30 Normal 171 x00AB 00,171 Emphasized 184 x00B8 00,184 Italic 172 x00AC 00,172 Emph./Italic 185 x00B9 00,185 Font Style Courier (cont.) 24 Normal Emphasized Italic Emph.
249x Font Global IDs (FGIDs) Decimal, Hex and Byte Decimal Pitch Decimal (Hf times 256 plus Lf) Font Style Hex (Hf Lf) Byte Decimal (Hf, Lf) 287 x011F 01, 31 420 x01A4 01,164 Prestige (cont.
249x Font Global IDs (FGIDs) Decimal, Hex and Byte Decimal Pitch Decimal (Hf times 256 plus Lf) Hex (Hf Lf) Byte Decimal (Hf, Lf) 288 120 01,32 Normal 174 x00AE 00,174 Emphasized 157 x009D 00,157 Italic 162 x00A2 00,162 Font Style Gothic (cont.) 24 Normal Emphasized Italic Emph./DS PS Emph./DS sizehigh (Hs): The binary number that is the more significant byte of the 2-byte font size. sizelow (Ls): The binary number that is the less significant byte of the 2-byte font size.
Decimal Hex Code Page Hc Lc Hc Lc 863 3 95 x03 x5F 865 3 97 x03 x61 437G 40 197 x28 xC5 813 3 45 x03 x2D 851 3 83 x03 x53 853T 42 101 x2A x65 857 3 89 x03 x59 869 3 101 x03 x65 920 3 152 x03 x98 1053 4 29 x04 x1D 861 3 93 x03 x5D 1004 3 236 03 EC 858 3 90 03 5A Set Print Quality, ESC [d This command sets the print quality for draft or letter quality print: Syntax: ESC [ d 1 0 n Decimal: 27 91 100 1 0 n Hex: 1B 5B 64 01
Set Print Quality Selections Print Quality Decimal Hex Enhanced Letter Quality 192 to 254 xC0 to xFE Default Font 255 xFF Example Select Fast Draft: Syntax: ESC [ d 1 0 n Decimal: 27 91 100 1 0 1 Hex: 1B 5B 64 01 00 01 Interaction of Set Font Global and Set Print Quality Every font has an LQ version and a Draft version. Set Font Global changes the font and pitch within the current quality. Set Print Quality changes the quality within the current font and pitch.
Character Sets 1 and 2 The printer’s interpretation of code pages is based on whether character set 1 or character set 2 is selected. Character set 1 is the factory default character set and is printed if you do not specify otherwise. Character set 2 has foreign language characters and fewer control words. You can select a character set from Setup Mode or by using the Select Character Set (ESC 6 or ESC 7) command.
Character Set 1 216 Section 9: Code Pages
Character Set 2 Section 9: Code Pages 217
Section 9: Code Pages
Glossary A D APA. All points addressable. default. A value, parameter, or attribute the printer uses when none is specified. B bidirectional. Printing in either direction, right-to-left or left-to-right. buffer storage. A temporary storage area for holding input or output data. byte. The representation of a character. Usually, 8 bits grouped together as a unit make up a byte. C characters-per-inch (cpi). The number of characters printed within 1 inch horizontally across a page.
L S lines-per-inch (lpi). The number of lines of text or graphics that can be printed in 1 vertical inch. LPI is the movement of the line advance, not the size of the character being printed. If you set 6 LPI, one line is 1/6-inch; 8 LPI is 1/8-inch. software application. Any program loaded on your computer used to perform a specific task; for example, a word processing or spreadsheet program. LQ. Letter quality. N NLQ. Near letter quality. M T TTL. Transistor-transistor logic. mm. Millimeter.
Index Numerics C 248x Printers downloading characters 109 249x Printers downloading characters 120 9-pin compatible serial port 99 cable RS-232C 98 character set, OKI Microline mode 79 character size and spacing, OKI Microline mode 81 character style, OKI Microline mode 82 Code 128 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 A auto sheet feeder, option
249x Printers enhanced letter quality 141 monospaced draft 130 monospaced fast draft 125 proportional 135 diagnostics power-on 17 printer test 18 DOS serial computer configurations 103 download a character set, IBM emulation mode 35 downloading characters 248x Printers 109 249x Printers 120 mode dual-density bit image graphics (half speed) 51 dual-density bit image graphics (normal speed) 52 high-density bit image graphics 52 mode and horizontal density (249x only) 50 normal density bit image graphics 49
selecting a character set 33 set top of form and page length 59 structure 29 vertical tabulation 56 interfaces parallel 91–95 serial 96–?? Interleaved 2of5 barcode 163 L line control, IBM emulation mode automatic line feed (LF) 55 move paper vertically 55 reverse line feed 55 set vertical units 56 line spacing, Epson mode 74 line spacing, IBM emulation mode activate line spacing for text 57 set line spacing for graphics 58 set line spacing for text 58 set line spacing to 1/8 inch 57 set line spacing to 7/7
protocol timing RS-232C (DTR) 102 R Set Initial Conditions (SIC) command format 21 initial values 22 parameters 23 set print quality, IBM emulation mode 48 ribbon specifications 17 RS-232C serial adapter see serial adapter S select code page, IBM emulation mode set top of form and page length, IBM emulation mode cancel skip perforation 60 set page length in inches 59 set page length in lines 59 set skip perforation 60 set top of form 59 space width adjustment for barcode 150 start and stop bits RS-232
IBM 248x/249x Technical Reference 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 in any way it believes appropriate without incurring any obligation to you. 1. Did you find the book well organized? No ❒ Yes ❒ 2. Was the content of the book accurate and complete? No ❒ Yes ❒ 3. Was the book easy to use? No ❒ Yes ❒ 4.
Cut Along Line ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– Fold and Tape Please Do Not Staple Fold and Tape –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS FIRST CLASS MAIL REPLY PERMIT NO. 2659 MAIL LEXINGTON, KY POSTAGE WILL BE PAID BY ADDRESSEE Lexmark International Inc.
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.