Oki MICROLINE ML521 Reference Manual

Oki microline ml521: reference guide
Hide thumbs Also See for MICROLINE ML521:
Table of Contents

Advertisement

MICROLINE
OKIDATA
ML320 Epson/IBM
ML320 MICROLINE Standard
ML321 Epson/IBM
ML321 MICROLINE Standard
ML320 Turbo & ML321 Turbo
ML390 Turbo & ML391 Turbo
Reference Manual
®
Models
ML520 & ML521
ML590 & ML591
®

Advertisement

Table of Contents
loading

Summary of Contents for Oki MICROLINE ML521

  • Page 1 MICROLINE OKIDATA ML320 Epson/IBM ML320 MICROLINE Standard ML321 Epson/IBM ML321 MICROLINE Standard ML320 Turbo & ML321 Turbo ML390 Turbo & ML391 Turbo ML520 & ML521 ML590 & ML591 Reference Manual ® ® Models...
  • Page 2 We welcome you to visit our web site: http://www.okidata.com OKIDATA and MICROLINE are registered trademarks of Oki Electric Industry Company, Ltd.; marques déposées de Oki Electric Industry Company, Ltd. OKIDATA—Marca Registrada, Oki Electric Industry Company, Ltd. Epson is a registered trademark of Epson America, Inc.
  • Page 3: Table Of Contents

    Pitch Setting Commands for Compressed Printing (Epson)...16 Pitch Setting Commands for Compressed Printing (ML) ...17 Select Character Pitch/Point Size Command (Epson) ...17 Select Character Pitch/Point Size Command (IBM-Oki unique)...19 Superscript/Subscript Commands (IBM/E/ML)...20 Double Width Commands (IBM/E/ML)...21 Double Height Commands (E/ML) ...21 Double Width &...
  • Page 4 Proportional Spacing Commands (IBM/E/ML) ...25 Intercharacter Spacing Commands (IBM/E/ML) ...26 Set Horizontal Motion Index [HMI] Command (Epson LQ)...27 Chapter 4: Character Style Commands ... 29 Print Mode & Fonts Commands ...29 Individual Print Mode & Font Commands for 9-Pin Printers (IBM/E/ML) ...29 Individual Print Mode &...
  • Page 5 Graphics Density Selection Commands (IBM/E) ...62 Graphics Select/Print Command (IBM AGM/E)...63 Reassign Graphics Codes Command (IBM AGM/E) ...64 Graphics Resolution Command (IBM)...64 Select Graphics Aspect Ratio Command (IBM)...65 Select Graphics Mode Command (Epson) ...65 Set/Reset Graphics Mode Command (Epson)...66 Print Raster Graphics Command (Epson) ...66 Chapter 8: Horizontal Control Commands ...
  • Page 6 Chapter 9: Vertical Control Commands ... 85 Set Page Length Commands ...85 Set Page Length in Inches Command (IBM/E/ML) ...85 Set Page Length in Lines Command (IBM/E/ML) ...85 Set Page Length in Defined Unit Comand (Epson)...86 Form Feed Command (IBM/E/ML) ...87 Line Feed Commands...87 Line Feed with Carriage Return Command (IBM/E/ML)...87 Line Feed without Carriage Return Command (ML)...87...
  • Page 7 UPC A Bar Code Commands ...107 Select UPC A Bar Code Command ...107 Print UPC A Bar Code Command...108 UPC E Bar Code Commands ...109 Select UPC E Bar Code Command ...109 Print UPC E Bar Code Command ...110 EAN 8 Bar Code Commands ...110 Select EAN 8 Bar Code Command ...110 Print EAN 8 Bar Code Command ...111 EAN 13 Bar Code Commands...111...
  • Page 8 Half-Speed Printing Commands (E/ML) ...127 Initialize Printer Commands (E/ML)...127 Most Significant Bit Commands (Epson) ...128 Paper-Out Sensor Commands (IBM/E/ML) ...128 Print Suppress Mode Commands ...129 Print Suppress Mode On/Off Commands (IBM) ...129 Print Suppress Mode On/Off Commands (E/ML) ...129 Select Color Command (IBM/E) ...130 Set Unit Command (Epson)...130...
  • Page 9: How To Use This Manual

    How To Use this Manual This Programmer’s Guide/Reference Manual is a supplement to the manuals for the various model printers. It contains additional information on selecting printer drivers and on the printer commands, as well as interfacing specifications. How the Manual is Organized...
  • Page 10: Conventions Used In This Manual

    OKIDATA MICROLINE Standard) are described in Chapter 1. For example: Proportional Spacing Commands (IBM/E/ML) The printer models to which each command applies are given immediately below the command heading, preceded by a check mark ( ). ML320 E/I, ML321 E/I = Models ML320 & ML321, Epson/IBM-Compatible ML320 Std., ML321 Std.
  • Page 11: Abbreviations & Acronyms

    Abbreviations & Acronyms The following abbreviations and acronyms are used in this manual: ASCII American Standard Codes for Information Interchange Cpi Characters per inch Cpl Characters per line CSF Cut Sheet Feeder Dec Decimal DLL Down Line Loading Dpi Dots per inch E Epson FX Emulation E/I Epson/IBM Compatible Model Hex Hexadecimal...
  • Page 12: Command Summary

    Note: If you’re not sure which version of the ML320 or ML321 printer you have, run the Self Test (hold LF button while turning on the printer), then look at the first line that prints: if you see EI, you have the Epson/IBM version; if you see OKI, you have the OKIDATA MICROLINE Standard version.
  • Page 13 IBM Command: ASCII Decimal Function ESC SI 27 15 ESC DLE @ P 27 16 64 P ESC DLE A m n ... n 27 16 65 m n ... n ESC DLE A m n ... n 27 16 65 m n ...
  • Page 14 IBM Command: ASCII Decimal Function ESC ! n Select international 27 33 n character set ESC # 0 Select HSD print mode 27 35 48 ESC $ Copy ROM character set 27 36 to RAM character set ESC % 4 n Perform n/360"...
  • Page 15 IBM Command: ASCII Decimal Function ESC 3 n 27 51 n ESC 3 n 27 51 n ESC 4 27 52 ESC 5 0 27 53 48 ESC 5 1 27 53 49 ESC 6 27 54 ESC 7 27 55 ESC 8 27 56 ESC 9...
  • Page 16 IBM Command: ASCII Decimal Function ESC B n ... n Set vertical tabs 27 66 n ... n ESC C n Set page length in lines. 27 67 n ESC C NUL n Set page length in inches. 27 67 0 n ESC D NUL NUL Clear horizontal tab 27 68 0 0...
  • Page 17 IBM Command: ASCII Decimal Function ESC P 0 27 80 48 ESC P 1 27 80 49 ESC Q ETX 27 81 3 ESC Q SYN 27 81 16 ESC Q # 27 81 23 ESC Q $ 27 81 24 ESC R 27 82 ESC S 0...
  • Page 18 IBM Command: ASCII Decimal Function ESC Z L [data] 27 90 L [data] ESC [ @ L NUL NUL n 27 91 64 L 0 0 n ESC [ @ n 27 91 64 n ESC [ T L NUL NUL H 27 91 84 L 0 0 H ESC [ \ 4 0 0 0 n...
  • Page 19 IBM Command: ASCII Decimal Function ESC n P 27 110 P ESC q n 27 113 n ESC r n 27 114 n ESC x 0 27 120 48 ESC x 1 27 120 49 ESC { n 27 123 n ESC } NUL 27 125 0 xviii...
  • Page 21: Epson Fx Commands

    Epson FX Commands Epson FX Command: ASCII Decimal Function ESC SO 27 14 ESC SI 27 15 ESC DLE @ P 27 16 64 P ESC DLE A m n ... n 27 16 65 m n ... n ESC DLE B m n [data] 27 16 66 m n [data] ESC DLE C P [data]...
  • Page 22 Epson FX Command: ASCII Decimal Function ESC EM I Insert sheet (Cut Sheet Feeder) 27 25 73 ESC EM R Eject sheet (Cut Sheet Feeder) 27 25 82 ESC SP n Set intercharacter spacing 27 32 n ESC ! n Combined print mode 27 33 n ESC #...
  • Page 23 ESC > Set MSB to 1 27 62 ESC ? m n Reassign graphics 27 63 m n ESC @ Initialize printer 27 64 Set line spacing to n/72" ESC A n 27 65 n xxii Applies to Model(s) ML320/321 E/I,...
  • Page 24 Epson FX Command: ASCII Decimal Function ESC B NUL Clear vertical tabs 27 66 0 ESC B n ... n Set vertical tabs 27 66 n ... n ESC C n Set page length in lines. 27 67 n ESC C NUL n Set page length in inches.
  • Page 25 Epson FX Command: ASCII Decimal Function ESC U 0 Uni-directional printing off 27 85 48 ESC U 1 Uni-directional printing on 27 85 49 ESC W 0 End double width printing 27 88 48 ESC W 1 Begin double width printing 27 88 49 ESC Y L [data]...
  • Page 26 Epson FX Command: ASCII Decimal Function ESC t 0 Select Epson Set 1 27 116 48 ESC t 1 Select Epson Set 2 27 116 49 ESC w 0 End double height printing 27 119 48 ESC w 1 Begin double height printing 27 119 49 ESC x 0 Select Utility print mode...
  • Page 28: Epson Lq Commands

    Epson LQ Commands Epson LQ Command: ASCII Decimal Function ESC SO 27 14 ESC SI 27 15 ESC DLE @ P 27 16 64 P ESC DLE A m n ... n 27 16 65 m n ... n ESC DLE B m n [data] 27 16 66 m n [data] ESC DLE C P [data]...
  • Page 29 Epson LQ Command: ASCII Decimal Function ESC EM I 27 25 73 ESC EM R 27 25 82 ESC US 0 27 31 48 ESC US 1 27 31 49 ESC SP n 27 32 n ESC ! n 27 33 n ESC # 27 35 ESC $ L...
  • Page 30 ESC > Set MSB to 1 27 62 ESC ? m n Reassign graphics 27 63 m n ESC @ Initialize printer 27 64 ESC A n Set line spacing to n/60" 27 65 n ESC B NUL Clear vertical tabs...
  • Page 31 Epson LQ Command: ASCII Decimal Function ESC B n ... n 27 66 n ... n ESC C n 26 67 n ESC C NUL n 27 67 0 n ESC D NUL NUL 27 68 0 0 ESC D n ...
  • Page 32 Epson LQ Command: ASCII Decimal Function ESC W 0 End double width printing 27 87 48 ESC W 1 Begin double width printing 27 87 49 ESC X p P Select character pitch/point size 27 88 70 P ESC Y L [data] Double speed/double density graphics 27 89 L...
  • Page 33 Epson LQ Command: ASCII Decimal Function ESC p 0 27 112 48 ESC p 1 27 112 49 ESC q n 27 113 n ESC r n 27 114 n ESC s 0 27 115 48 ESC s 1 27 115 49 ESC t 0 27 116 48 ESC t 1...
  • Page 35: Okidata Microline Standard Commands

    Okidata MICROLINE Standard Commands ML Standard Command: ASCII Decimal Function ETX STX ETX ETX ETX LF ETX SO ETX DC2 ETX DC4 DC4 SP1...SP1 n ... SP...SP ? 20 32...32 n ... 32...32 63 ESC ETX x ... x 27 3 x ...
  • Page 36 Select bar code type and size Print bar code data Print Postnet bar code data Graphics line feed without carriage return) Initialize printer End double height printing Begin double height printing Select international character Italics printing off Italics printing on...
  • Page 37 ML Standard Command: ASCII Decimal Function ESC % A m n ... n 27 37 65 m n ... n ESC % B n 27 37 66 n ESC % C n 27 37 67 n ESC % D m n ...
  • Page 38 ML Standard Command: ASCII Decimal Function ESC ? n : 27 63 n 58 ESC C 27 67 ESC D 27 68 ESC E 0 27 69 48 ESC E 1 27 69 49 ESC F H 27 70 H ESC G H 26 71 H ESC H...
  • Page 39 ML Standard Command: ASCII Decimal Function ESC I 0 27 105 48 ESC I 1 27 105 49 ESC I 27 108 ESC { n 27 123 n ESC } NUL 27 125 0 xxxviii Okidata MICROLINE Standard Command Summary Incremental printing on Incremental printing off Emphasized/enhanced...
  • Page 40: Chapter 1: Printer Drivers

    Chapter 1: Printer Drivers Usable Drivers The tables below summarize usable drivers for each printer emulation. They are listed in order by decreasing compatibility as you go down the list: select one from as high up on the list as possible, based on what is available from among the drivers supplied with your software.
  • Page 41: Okidata Software Drivers

    Don’t be surprised if boldfaced items are printed twice, underlines are misplaced, wide spaces are left between lines or the printer behaves chaotically (turn off the printer if the latter occurs). These are all characteristics of an incompatible driver selection.
  • Page 42 To obtain a diskette containing all these drivers, send a written request to OKIDATA PO Box 4603 Trenton, NJ 08650-9852 Select one: #MS-8838 for 3½ " HD diskette #MS-8839 for 5¼ " HD diskette Drivers are shipped with the printer...
  • Page 43: Software Driver Selection

    Embedded Commands In some cases, commercial software packages will permit you to create and/or modify the printer driver. Even if a driver specifically designed for the printer is available, this option can provide additional room for customization. Typically, the driver modification routine will present a list of operations with some method for entering printer commands, permitting substitution, such as entering the italic command in place of the underline command.
  • Page 44: Chapter 2: Character Set Commands

    Chapter 2: Character Set Commands This chapter describes the character set commands for your printer, including IBM Character Sets I, II, and III Epson Character Sets Microline Character Sets International Character Sets Code Page Character Sets Upper Range Control Codes...
  • Page 45: Select All Character Set [Ibm Set Iii] Command (Epson Lq)

    Select All Character Set [IBM Set III] Command (Epson LQ) ML390 Turbo, ML391 Turbo Function ASCII Select All Character Set ESC ( ^ L Use this command to engage the All Character Set (IBM Set III) and apply it to the data which follows the command.
  • Page 46: Print One Character From Ibm All Characters Set [Ibm Set Iii] Command (Ibm)

    Character Set III (also known as the All Characters set). When the printer receives this command, it will print the character “n” from IBM Character Set III. The value of n can be from 0 to 255 decimal (00 to FF hexadecimal).
  • Page 47: Microline Character Set Commands

    MICROLINE Character Set Commands Select MICROLINE Standard Character Set Command (ML) ML320 Std., ML321 Std. Function Select Standard Character Set ESC ! 0 In the Microline emulation, use this command to specify the standard Microline symbol set. Select MICROLINE Block Graphics Symbol Set Command (ML) ML320 Std., ML321 Std.
  • Page 48: International Character Set Commands

    International Character Set Commands These commands allow you to select special international character sets which replace less-frequently used characters with symbols used in a variety of European languages or in the publishing industry. Select International Character Set Command (IBM/ML) ML320 E/I, ML321 E/I ML320 Std., ML321 Std.
  • Page 49: Select International Character Set Command (Epson)

    Select International Character Set Command (Epson) ML320 E/I, ML321 E/I Function Select International Character Set This command is used to use characters from the specified international character set to replace the standard characters. To access these characters, replace m in the command with the appropriate value taken from column two in the table below.
  • Page 50 Function ASCII Print from Code Page ESC [ T L This command permits you to select a Code Page character set and to print the amount of data you specify within the command from that Code Page set. It applies to both the IBM emulation (all models listed) and the Okidata Microline emulation (Models ML320/321 Turbo and ML520/521 only).
  • Page 51: Assign Code Page Command (Epson)

    Assign Code Page Command (Epson) ML320 Turbo, ML321 Turbo Function ASCII Assign Code Page to ESC ( t 3 0 Character Set This command allows you to assign a Code Page character set (see Apendix C) to Epson Character Set 1 or Set 2, which you can then select using ESC t 0 or ESC t 1, respectively. Parameter P This parameter specifies which character set you are replacing with a Code Page set: = 0: replaces Epson Character Set 1...
  • Page 52: Upper Range Control Code Commands (Epson)

    Upper Range Control Code Commands (Epson) ML320 E/I, ML321 E/I Function Permit Printing Upper Range Control Codes Cancel Printing Upper Range Control Codes * Not available for ML390 Turbo or ML391 Turbo. In the Epson emulation, the ASCII characters from decimal 128 through 159 are normally interpreted as control codes and cannot be printed.
  • Page 53 Code Page Sets for P * Applies only to ML390 Turbo and ML391 Turbo For example, use the command to store the PC-865 Norwegian code page set in table area 03. Chapter 2: Character Set Commands Values Code Page Set Italic PC-437 (USA) PC-850 (Multilingual)
  • Page 54: Chapter 3: Character Size & Spacing Commands

    10 cpi, each character is 1/10" wide. The number of characters that will fit on a line depends on the pitch you have selected and on whether you have a narrow carriage or a wide carriage printer. You can also set pitch using the printer's front panel or the menu (see “Menu Mode” in your printer manual).
  • Page 55: Pitch Setting Commands For Compressed Printing (Epson)

    Hex: 0F 1B 0F Not applicable Notes SI Select item in the printer Menu must be set to 12 CPI in order to select compressed pitch. If 10 cpi character pitch is engaged, printer will go to 17.1 cpi pitch.
  • Page 56: Pitch Setting Commands For Compressed Printing (Ml)

    10, 10.5 and 21. The table below shows which typeface will print in other sizes when these typefaces are selected. Note: If you wish to use this command to print to an ML320/321 Turbo printer in a UNIX environment, you must reboot the system after the command is entered.
  • Page 57 Parameter P Parameter P is used to set the character pitch. It can have any value from 0 to 127 decimal for ML320/321 Turbo and for ML590/591 printers, or from 0 to 255 for ML390/391 Turbo. Table 16: Epson ESC X Command — Character Pitch Settings for P 18 (2 to 19) 21 (21 to 23) 24 (24 to 29)
  • Page 58: Select Character Pitch/Point Size Command (Ibm-Oki Unique)

    ESC DLE F P Pitch/ Point Size Use this OKI unique command to select printable fonts by character pitch and point size. Parameter P This parameter is used to give the number of bytes to follow in the subsequent parameters. It can have any value from 0 to 255 decimal.
  • Page 59: Superscript/Subscript Commands (Ibm/E/Ml)

    Parameters L and H Parameters L and H are used to set the point size according to the following equation: and H can have any value from 0 to 255 decimal. See "Table 17: Epson ESC X Command — Point Sizes for N Superscript/Subscript Commands (IBM/E/ML) ML320 E/I, ML321 E/I ML320 Std., ML321 Std.
  • Page 60: Double Width Commands (Ibm/E/Ml)

    Double Width Commands (IBM/E/ML) ML320 E/I, ML321 E/I ML320 Std., ML321 Std. Function Begin Double Width ASCII: ESC W 1 Printing Dec: 27 87 49 Hex: 1B 57 31 End Double Width ASCII: ESC W 0 Printing Dec: 27 87 48 Hex: 1B 57 30 Begin Double Width ASCII: SO...
  • Page 61: Double Width & Height Printing Commands

    Double Width & Height Printing Commands The double width & height commands allow you to select double width, double height, or double width and double height printing in the IBM emulation. Double Width & Height Printing Command, 9-Pin Printers (IBM) ML320 E/I, ML321 E/I Function ASCII...
  • Page 62: Double Width & Height Printing Command, 24-Pin Printers (Ibm)

    Double Height & Width Printing Command, 24-Pin Printers (IBM) ML390 Turbo, ML391 Turbo Function Double Height Printing Parameters n and n These variables specify the number of mode bytes in the command. Normally, n is set to 0. Parameters m These variables control the mode.
  • Page 63: Combined Print Features Command (Ml)

    You can enter the variables in any order. Be sure to add in the variable factor when calculating the variable values—this number tells the printer which variable is which. You'll get unexpected results if you select incompatible features (e.g., if you pick both 10 and 12 cpi), or if you've added up the values incorrectly.
  • Page 64: Character Spacing Commands

    You can also select proportional spacing using the printer menu or the front panel buttons. In addition, proportional spacing is one of the features available through the composite command in the Epson mode.
  • Page 65: Intercharacter Spacing Commands (Ibm/E/Ml)

    Intercharacter Spacing Commands (IBM/E/ML) Note: Intercharacter spacing can NOT be set in the HSD and bit image graphics modes. ML320 E/I, ML321 E/I ML320 Std., ML321 Std. Function Set Intercharacter ASCII: ESC V n Spacing Dec: 27 86 n Hex: 1B 56 n Values for n n = 0 to 11 ML390 Turbo, ML391 Turbo...
  • Page 66: Set Horizontal Motion Index [Hmi] Command (Epson Lq)

    Table 24: ML ESC N Command — Character Spacing (in Inches) Decimal Value of n For example, if you are printing at 10 cpi and want to set the character spacing at 11/120", use this BASIC command: LPRINT CHR$(@7);"N";CHR$(8) Set Horizontal Motion Index [HMI] Command (Epson LQ) ML390 Turbo, ML391 Turbo Function Set Horizontal Motion Index (HMI)
  • Page 67 Chapter 3: Character Size & Spacing Commands...
  • Page 68: Chapter 4: Character Style Commands

    To select the NLQ print mode in the Epson emulation, you must send two commands: ESC x 1 and ESC k n. The ESC x 1 command must be sent to the printer first, followed by the ESC k n command.
  • Page 69: Individual Print Mode & Font Commands For 24-Pin Printers (Ibm/E)

    Use LQ for top-quality printing of final drafts and important documents, where appearance matters. You can also use your printer’s front panel or the menu to set the print quality, but settings made using the front panel are likely to be overridden by software applications.
  • Page 70: Combined Select Font Command (Ibm)

    Combined Select Font Command (IBM) ML320 E/I, ML321 E/I Function Select Print Quality and Character Spacing This command allows you to select print quality and character spacing for resident fonts for all models listed. It also allows you to select print quality and character spacing for downline loadable (DLL) fonts for all but Models ML390 Turbo and ML391 Turbo.
  • Page 71: Select Font Command (Ibm)

    Table 28: IBM ESC I Command — Print Modes Coresponding to n Values for 24-Pin Models ML590 & ML591 Dec. Value of n Print mode 10 cpi Utility Resident 10 cpi LQ Resident Proportional LQ Resident 10 cpi Utility DLL 10 cpi LQ DLL Proportional LQ DLL 12 cpi Utility Resident...
  • Page 72 is used to select the font as follows: Table 30: IBM ESC [ l Command — Fonts Selected for Calcualted H Font Selected Invalid Courier 10 Courier 10 Italic Courier 10 Symbol Courier 10/10 Shalom Courier 12 Courier 12 Italic Courier 12/12 Shalom Courier 15 Courier 15/15 Shalom...
  • Page 73: Combined Print Mode Command (Epson)

    Character Pitch Settings for Calculated H The setting made using the H parameter is set to 02 hexadecimal. Parameter f Parameter f is used to engage proportional spacing. = 02 hexadecimal (2 decimal): engage proportional spacing = 00 hexadecimal (0 decimal):use character pitch set by parameters H Combined Print Mode Command (Epson) ML320 E/I, ML321 E/I Function...
  • Page 74: Italics Print Commands (Ibm/E/Ml)

    Table 32: Epson ESC ! Command — Print Features for n Values Feature Compressed printing Double width printing 12 cpi (Elite) printing Emphasized printing Enhanced printing Italics printing Proportional printing Underline printing For example, to print underlined italics at 12 cpi, assign n the value of 193 (128 + 64 + 1). Each time you send this command, it sets or cancels the values for all nine of the features it controls (the eight features listed in the table, plus 10 cpi).
  • Page 75: Emphasized & Enhanced Print Commands (Ibm/E/Ml)

    If you intend to print an entire document in italics, you can use the printer menu to select italics. You will find italics in the menu under the group “Font” and the setting “Style.” See “Menu Mode” in your printer manual for more information on making changes in the menu settings.
  • Page 76: Overscore Commands (Ibm)

    Overscore Commands (IBM) ML320 E/I, ML321 E/I Function ASCII Overscore Printing On ESC _ 1 Overscore Printing Off ESC _ 0 The overscore feature prints a continuous line over all characters, including the space character, but does not overscore the space produced by a horizontal tab command. This feature is available only in the IBM emulation.
  • Page 77: Outline/Shadow Commands (Ibm/E)

    Parameters D and D Parameter D is used to set the type of score and parameter D indicated in the table. Table 33: Epson ESC ( - Command — Score Styles for D Using a value of 0 for D will cancel the score mode.
  • Page 78: Chapter 5: Custom Character Commands

    Begin by designing your character on a grid. The height of the grid for a normal character is 7 dots, each corresponding to a pin on the printer's printhead. The width of the grid usable for a character is a maximum of 11 dots (the twelfth dot in the grid width is reserved as blank).
  • Page 79: Ibm Custom Character Commands For 9-Pin Printers

    Copy ROM Character Set to RAM Character Set This command copies a complete set of the characters resident in the printer to the area of its memory reserved for custom characters. The new character will become part of this character set.
  • Page 80: Down Line Load Characters Command For 9-Pin Printers (Ibm)

    ML320 E/I, ML321 E/I Function Down Line Load Characters Use this command with the ML520 or the ML521 printer to begin downloading the characters. Parameters c and c These parameters specify the total count of characters to be downloaded. How these variables are calculated depends on which mode is engaged: Utility printing or Near Letter Quality (NLQ) printing.
  • Page 81 Here is a breakdown of the definitions for the various bit values for a Bit b = 0: ascender = 1: descender Note: If b or b is 0, b Bits b : ignored Bits b and b = 0, 0: No expansion to 12 dots high: b = 0, 1: Selects line draw characters;...
  • Page 82: Epson Custom Character Commands For 9-Pin Printers

    Copy ROM Character Set to RAM Character Set This command is used with the ML320 E/I, ML321 E/I, ML320T, or ML321T printer to copy a complete set of the characters resident in the printer to the area of its memory reserved for custom characters.
  • Page 83: Custom Character Set On/Off Commands For 9-Pin Printers (Epson)

    To switch back to the standard character set, use the ESC % 0 command. Otherwise, the custom character set will remain in the printer's memory until one of the following happens: you turn off the printer you reset the printer with the ESC @ command you overwrite them with new custom characters you use the ESC : NUL NUL NUL command to overwrite them with the standard character set.
  • Page 84: Okidata Microline Standard Custom Character Commands For 9-Pin Printers

    Copy ROM Character Set to RAM Character Set This command copies a complete set of the characters resident in the printer to the area of its memory reserved for custom characters. The new character will become part of this character set.
  • Page 85: Custom Character Commands: 24-Pin Printers

    Utility Proportional Note: If the printer is in superscript or subscript mode, only the first two or last two bytes are needed for each column. Characters are designed on a grid made up of columns of 24 dots. Each column, in turn, is divided into three 8-dot groups, and each 8-dot group is represented by a byte of data.
  • Page 86: Ibm Custom Character Commands For 24-Pin Printers

    Your arrangement of dots is translated into code that tells the printer the exact locations of each dot in each column. The example below shows how this works. Byte 1 Byte 2 Byte 3 The width of the grid in dots depends on the printing mode in use. This example character is 27 dots wide and has 4 blank columns on either side.
  • Page 87 follows: Parameter a indicates the number of characters to be down loaded. Note: If fewer than 256 characters are loaded, all character codes must be consecutive from the starting point. Parameter m The bits of this parameter determine the character pitch and print mode as follows: : always 0 : ignored = 0, 0: Utility, all pitches...
  • Page 88: Epson Custom Character Commands For 24-Pin Printers

    Copy ROM Character Set to RAM Character Set This command is used to copy a complete set of the characters resident in the printer to the area of its memory reserved for custom characters. The new character will become part of this character set.
  • Page 89: Down Line Load Characters Command For 24-Pin Printers (Epson)

    Load Custom Characters ML590, ML591 Function Load Custom Characters Use these commands to begin downloading the character(s) to the printer. Parameter m This parameter selects the available area in RAM. The only available values/locations are m = 0 or m = 128.
  • Page 90: Custom Character Set On/Off Commands For 24-Pin Printers (Epson)

    To switch back to the standard character set, use the ESC % 0 command. Otherwise, the custom character set will remain in the printer's memory until one of the following happens: you turn off the printer you reset the printer with the ESC @ command...
  • Page 91: Chapter 6: Graphics Commands For 9-Pin Printers

    A bit's value can be either 1 or 0. When the printer receives the data, it interprets a bit with a value of 1 as a command to fire the corresponding pin.
  • Page 92: Programming Graphics In Basic

    However, there is an additional complication: by default, BASIC assigns to all printers a maximum line length of 80 characters. After the printer has received 80 bytes of data, it will automatically perform a carriage return and line feed. Since graphics data typically consists of many bytes, it's quite easy to exceed this limit.
  • Page 93: Graphics Density Selection Commands (Ml)

    Graphics Density Selection Commands (ML) ML320 Std., ML321 Std. Function Select Single Density Graphics Select Double Density Graphics Select Double Speed & Quadruple Density Graphics Use these commands to select the density of the printing that will be used: single density (60 dpi), double density (120 dpi), or quadruple density (240 dpi).
  • Page 94 Next, we can write a BASIC statement that sends the command begin 8-pin graphics: LPRINT CHR$(27);”*”;CHR$(3);CHR$(96);CHR$(0); Note: Be sure to include the semicolon(;) at the end of this statement. That way, the printer won't insert a carriage return and line feed before your graphics data.
  • Page 95: Reassign Graphics Codes Command (Epson)

    Reassign Graphics Codes Command (Epson) ML320 E/I, ML321 E/I Function Reassign Graphics You can use this command to reassign any of the 8-pin graphics modes to one of the graphics commands (ESC K, ESC L, ESC Y, or ESC Z). Parameter m This parameter designates which of the four commands you're redefining.
  • Page 96 Table 38: ML ESC * Command — Densities for n Dots per inch/Density 60 dpi 72 dpi Single density Double density Quadruple density For example, for 60 dpi printing at quadruple density, the value of n follows: Parameter n This parameter specifies the speed of the printing and a word length of 8 bits. To calculate the value of n , first select the speed and determine the value of n below.
  • Page 97: Graphics Print Mode Commands (Ml)

    ETX STX command which ends graphics printing. The listing below is a BASIC program that generates a row of six triangles in quadruple density. 10 WIDTH “LPT1:,”255 ‘Set printer for maximum line width 20 LPRINT CHR$(27);”*”;CHR$(113);CHR$(80);”:”;CHR$(3); 30 REM CHR$(113) and CHR$(80) are the attribute codes for normal speed,...
  • Page 98: Special Purpose Line Feed Commands (Ml)

    ML320 Std., ML321 Std. If you are printing more than one line of graphics, you will need to use line feeds. In the Okidata MICROLINE Standard emulation, your printer has a variety of special purpose line feed commands for use in graphics printing:...
  • Page 99: Chapter 7: Graphics Commands For 24-Pin Printers

    A bit's value can be either 1 or 0. When the printer receives the data, it interprets a bit with a value of 1 as a command to fire the corresponding pin.
  • Page 100: Programming Graphics In Basic

    However, there is an additional complication: by default, BASIC assigns to all printers a maximum line length of 80 characters. After the printer has received 80 bytes of data, it will automatically perform a carriage return and line feed. Since graphics data typically consists of many bytes, it's quite easy to exceed this limit.
  • Page 101: Graphics Select/Print Command (Ibm Agm/E)

    Parameters L and H These parameters tell the printer how many columns of data you'll be sending: 8-pin modes have one byte of data per column, 24-pin modes have three bytes of data per column. These parameters can be assigned any value from 0 to 255. To calculate the values, first determine how many columns of dots there will be in your graphics image.
  • Page 102: Reassign Graphics Codes Command (Ibm Agm/E)

    Reassign Graphics Codes Command (IBM AGM/E) ML390 Turbo, ML391 Turbo Function ASCII Reassign Graphics ESC ? m n Note: The IBM AGM emulation combines the IBM Proprinter emulation with Epson LQ graphics for special graphics applications. You can use this command to reassign any of the graphics modes to one of the graphics commands (ESC K, ESC L, ESC Y, or ESC Z).
  • Page 103: Select Graphics Aspect Ratio Command (Ibm)

    Select Graphics Mode Command (Epson) ML390 Turbo, ML391 Turbo Function ASCII Select Graphics Mode ESC ( G L Use this command to place the printer in graphics mode. Chapter 7: Graphics Commands for 24-Pin Printers Resolution (dpi) Pins Notes Same as ESC K...
  • Page 104: Set/Reset Graphics Mode Command (Epson)

    Parameters L and H Parameters L and H are used to designate the number of bytes to follow in the subsequent parameters, where Number of Bytes = L and H can have any value from 0 to 255 decimal. Generally, L Parameter P Parameter P sets the graphics mode.
  • Page 105 No. of dots = L + (H x256) and set H Values Value Model Maximum Dots ML590 2880 ML591 4896 ML590 1440 ML591 2448 Values for P Values = 0. For more than 256 , then assign and the width of the printer...
  • Page 106 Chapter 7: Graphics Commands for 24-Pin Printers...
  • Page 107: Chapter 8: Horizontal Control Commands

    The carriage return command causes the printer to print data from the print buffer and return the printing position to the beginning of the line. If the printer menu item Auto LF (under Set- Up group) has been set to YES (factory default is NO), the printer automatically adds a line feed to each carriage return.
  • Page 108: Left And Right Margin Commands (Epson)

    Sending the left margin command will cancel any horizontal tab stops you may have set, returning the printer to its default setting (tab stops every eight columns). You should always send margin commands at the beginning of a line.
  • Page 109 Parameter n This parameter can range in value from 0 to 254 for the left margin and from 1 to 255 for the right margin. Note: You must always specify a right margin that is at least one more than the left margin. Table 45: Epson ESC L and ESC Q Commands —...
  • Page 110: Left And Right Margin Commands (Ml)

    Left and Right Margin Commands (ML) ML320 Std., ML321 Std. Function ASCII Set Left Margin ESC % C n Set Right Margin ESC % R n In the MICROLINE Standard emulation, margins for these commands are measured in units of 1/120"...
  • Page 111: Horizontal Tab Commands

    Function Execute Horizontal Tab When you turn on your printer, its tab stops are automatically set for every eight columns. Each time you send the tab character (HT), the printhead moves eight columns to the right before printing the next character.
  • Page 112: Set Tabs By Dot Columns Command (Ml)

    Setting tabs by dot columns gives you more precise control than setting tabs by character space. Chapter 8: Horizontal Control Commands 27 9 x would be 010, etc. So, you would enter the BASIC for each pitch and printer model: Maximum xyzw Maximum xyzw ML320 ML520...
  • Page 113 The distance represented by the tab (distance from the center of one dot to the center of the next dot) depends on the character pitch in effect when the printer receives the HT command, as follows: Table 52: MML ESC ETX Command —...
  • Page 114: Clear Horizontal Tab Settings Commands (Ibm/E)

    In the IBM emulation, the ESC D NUL command will clear all horizontal tabs, including the default tabs. In the Epson and MICROLINE Standard emulations, these commands will clear out the tab settings and return the printer to the default horizontal tab settings (every eight spaces). Clear Horizontal Tab Settings Commands (ML) ML320 Std., ML321 Std.
  • Page 115: Set Multiple Print Positions Command (Ibm/E/Ml)

    The distance of the shift depends on the pitch engaged: Table 54: IBM/ML ESC % B Command — Shift Increments for Left Margin Indents Pitch 10 cpi 12 cpi 15 cpi 17.1 cpi 20 cpi Proportional Parameters n through n These parameters represent a four-digit ASCII number.
  • Page 116 Table 56: IBM/E/ML ESC DLE @ Command — Shift Increments for 24-Pin Models Suppose you have your pitch set at 20 cpi and want your ML 520 printer to move to a relative dot position (a = 1) 1" backwards (a increments of 1/480", so the value of P...
  • Page 117: Set Relative Dot Position Command (Ibm)

    Table 57: IBM/E/ML ESC DLE @ Command — Maximum P Pitch ML320 Turbo, ML520 10 cpi 12 cpi 17.1 20 cpi Table 58: IBM/E/ML ESC DLE @ Command — Maximum P Print Quality Letter Quality Utility Set Relative Dot Position Command (IBM) ML320 Turbo, ML321 Turbo Function Set Relative Dot Position...
  • Page 118: Set Relative Dot Position Command (Epson)

    Set Relative Dot Position Command (IBM) ML390 Turbo, ML391 Turbo Function Set Relative Dot Position to Right Set Relative Dot Position to Left These commands move the printhead to the left or right of the current print position in increments of 1/120". The number of increments equals n 1632.
  • Page 119: Move To The Right & Left Commands (Ml)

    Proportional For example, suppose you have your pitch set at 20 cpi and want your printer to move 1" to the right. From the table above, at 20 cpi your shift will be in increments of 1/240", so the value of would be 0240 (1"...
  • Page 120: Incremental Printing Commands (Ibm/E/Ml)

    Print Uni-directional for One Line Only Your printer is designed to maximize speed by printing alternately from the left and right (bi-directional printing), rather than moving the printhead back to the left margin so that each line prints from left to right (uni-directional printing). Use uni-directional printing when precise vertical alignment from line to line is critical.
  • Page 121: Justification Commands (Epson)

    Justification Commands (Epson) ML320 E/I, ML321 E/I Function Select Left Justification Select Center Justification Select Right Justification Select Full (Left & Right) Justification These commands let you specify the alignment of text on the page: along the left or right margin, centered between the margins, or along both the left and right margins.
  • Page 122 Chapter 8: Horizontal Control Commands...
  • Page 123: Chapter 9: Vertical Control Commands

    (see "Menu Mode" in your printer manual), it’s a good idea to use the printer menu to set the default page length and then use the page length command whenever you wish to change it temporarily.
  • Page 124 (see “Menu Mode” in your printer manual), it's a good idea to use the printer menu to set the default page length and then use this command whenever you wish to change it temporarily.
  • Page 125: Form Feed Command (Ibm/E/Ml)

    Form Feed When you send a form feed command, the printer prints any data that is in its buffer, and the print position moves to the top of the next page. You can also use the FORM FEED button on the control panel to feed a page through the printer.
  • Page 126: Fine Line Feed Commands (Ibm/E/Ml)

    Fine Line Feed Commands (IBM/E/ML) ML320 E/I, ML321 E/I ML320 Std., ML321 Std. Function Perform n/216" ASCII: ESC J n Line Feed Dec: 27 74 n Hex: 1B 4A n Perform n/144" ASCII: ESC % 5 n Line Feed Dec: 27 37 53 n Hex: 1B 25 35 n ML390 Turbo, ML391 Turbo Function...
  • Page 127: Perform Line Feed Command (Ibm)

    Auto Line Feed Off ESC 5 0 When you activate automatic line feed, the printer will add a line feed to each carriage return code it receives. You can also control this feature through the printer menu (see "Menu Mode"...
  • Page 128: Line Spacing Commands (Ibm/E/Ml)

    Line Spacing Commands General Line Spacing Commands (IBM/E/ML) ML320 E/I, ML321 E/I ML320 Std., ML321 Std. Function IBM PPR Set Line Spacing Not applicable Not applicable ASCII: ESC 2 to 1/6" Set Line Spacing ASCII: ESC 0 to 1/8" Dec: 27 48 Hex: 1B 30 Set Line Spacing ASCII: ESC 1...
  • Page 129: Esc A N Line Spacing Command For 24-Pin Printers (Ibm/E)

    n/144" n/216" Whenever a value of zero is assigned to n, the line spacing command will be ignored. ESC A n Line Spacing Command for 24-Pin Printers (IBM/E) ML390 Turbo, ML391 Turbo Function Set Line Spacing to n/60 Set Line Spacing to n/72" * In the IBM ProPrinter mode, the ESC A n command must be followed by the ESC 2 Perform Line Feed command (described earlier in this chapter) to set the value of n.
  • Page 130: Esc 3 N Line Spacing Command For 24-Pin Printers (Ibm/E)

    ESC 3 n Line Spacing Command for 24-Pin Printers (IBM/E) ML390 Turbo, ML391 Turbo Function Set Line Spacing to n/180" Set Line Spacing to n/216" ** In the IBM mode, the line spacing increment for the ESC 3 n command is controlled by the Set Vertical Unit commands described below.
  • Page 131: Set Vertical Units (Ibm)

    Table 65: IBM ESC [ \ Command — Vertical Tab Commands When you turn your printer on, it doesn't have any vertical tab stops. Sending a VT command with no stops set will produce a single line feed. The commands described below are used to set vertical tab stops. In the Epson and...
  • Page 132: Execute Vertical Tab Command (Ibm/E/Ml)

    Execute Vertical Tab Command (IBM/E/ML) ML320 E/I, ML321 E/I ML320 Std., ML321 Std. Function Execute Vertical Tab Set Vertical Tabs Command (IBM/E) ML320 E/I, ML321 E/I Function Set Vertical Tabs ASCII: ESC B n Dec: 27 66 n Hex: 1B 42 n In the IBM and Epson emulations, you can use the ESC B n vertical tab stops.
  • Page 133: Vertical Format Unit [Vfu] Commands (Epson)

    Vertical Format Unit [VFU] Commands (Epson) ML320 E/I, ML321 E/I Function ASCII Set Vertical Format ESC b m n Unit (VFU) Select Vertical Tab ESC / n Channel The Epson emulation gives you the option of setting up to eight separate channels of vertical tab stops using the command ESC b m n Parameter m Parameter m designates the channel to which the tab stops are being assigned and can have...
  • Page 134: Vertical Format Unit [Vfu] Commands (Ml)

    The command DC4 SP...SP n ... SP...SP ? is used to set up the tabs. Then whenever the printer receives a VT code followed by a channel code, it will skip to the next tab stop in that channel.
  • Page 135 Function ASCII Set Relative Vertical ESC ( v L Print Position This command lets you move the print position very precisely either upward (up to 0.5-inch) or downward (up to 46.2 inches) from the current print position, in increments established by the Set Unit command (see Chapter 12).
  • Page 136: Set Absolute Vertical Position Command (Epson)

    When you send these commands, a new top of form is set at the current position of the printhead. In both emulations, you can also set a new top of form using the front panel (see "Top of Form" in the index of your printer manual). Set Page Format Command (Epson)
  • Page 137: Skip Over Perforation Commands

    Skip Over Perforation On Skip Over Perforation Off If the skip over perforation is set to Yes (factory default is No) on the menu, the printer will automatically skip an inch from the bottom of one page to the top of the next.
  • Page 138: Skip Over Perforation On/Off Commands (Ml)

    Skip Over Perforation On Skip Over Perforation Off If the skip over perforation is set to Yes (factory default is No) on the menu, the printer will automatically skip an inch from the bottom of one page to the top of the next.
  • Page 139: Chapter 10: Bar Code Commands For 9-Pin Printers

    Chapter 10: Bar Code Commands for 9-Pin Printers 9-Pin models ML320 Turbo, ML321 Turbo, ML520 and ML521 incorporate eight bar codes in both the Epson FX and IBM emulations: Code 39 Code 128 Interleaved 2 of 5 UPC* A *UPC = Universal Product Code **EAN = European Article Numbering These commands are the same as those given in Chapter 11 for the 24-pin printers;...
  • Page 140: Select Code 39 Bar Code Command

    Select Code 39 Bar Code Command The command for selecting Code 39 is Code 39 Parameter m Parameter m designated the number of parameters to be set. The value of m is normally set to hexadecimal 08. Code 39 Parameters n and n These parameters set the vertical length of the bars in units of 6/72", as calculated by the equation...
  • Page 141 Code 39 Parameter n Parameter n is used in combination with parameters n and the wide spaces. Table 70: IBM/Epson Select Code 39 Command — Wide Bar Widths for Parameter n 4/144" 6/144" 5/144" 7/144" 6/144" 9/144" 7/144" 11/144" 9/144" 13/144 10/144"...
  • Page 142: Print Code 39 Bar Code Command

    Print Code 39 Bar Code Command The command for printing Code 39 bar codes is where parameter m designates the number of characters which will follow in the data. If you wish to include a check digit, enter the ASCII character @ (64 Dec, 40 Hex) at the end of the data.
  • Page 143: Print Code 128 Bar Codes Command

    Code 128 Parameter n This parameter sets the maximum width of one character in 1/144" increments as follows: Table 73: IBM/Epson Select Code 128 Command — Character Widths for Parameter n When calculating the width of the printout, you must take into consideration the Start and Stop Code patterns: Table 74: IBM/Epson Select Code 128 Command —...
  • Page 144: Interleaved 2 Of 5 Bar Code Commands

    Each set has a different check digit. Table 75: IBM/Epson Print Code 128 Command — Check Digits for Code 128 Code Sets (9-Pin Printers) Interleaved 2 of 5 Bar Code Commands Interleaved 2 of 5 bar coding is used mainly in the distribution industry. Two digits are encoded: one in the bars and one in the spaces.
  • Page 145: Print Interleaved 2 Of 5 Bar Code Command

    Interleaved 2 of 5 Parameter n Parameter n is used in combination with parameter n spaces, as follows: Table 77: IBM/Epson Select Interleaved 2 of 5 Command — Space Widths for Parameter n 26/144" 33/144" 28/144" 35/144" 30/144" 39/144" 32/144" 43/144"...
  • Page 146: Print Upc A Bar Code Command

    Table 78: IBM/Epson Select UPC A Command — Character Widths for Parameter n When calculating the width of the printout, you must take into consideration the Start Code pattern, the Center bar pattern, and the Stop Code pattern as shown in the table which follows. Table 79: IBM/Epson Select UPC A Command —...
  • Page 147: Upc E Bar Code Commands

    UPC E Bar Code Commands UPC E bar coding is a six-digit variation of UPC A, used for labeling small items. The digits can be any ASCII character from 0 to 9 (48 to 57 Dec, 30 to 39 Hex). Select UPC E Bar Code Command The command for selecting UPC E is UPC E Parameters n...
  • Page 148: Print Upc E Bar Code Command

    = 0: do not print readable characters Print UPC E Bar Code Command The command for printing a UPC E bar code is where m designates the number of characters which will follow in the data. A check digit cannot be used with UPC E bar codes. EAN 8 Bar Code Command s EAN bar coding is a variation of UPC coding.
  • Page 149: Print Ean 8 Bar Code Command

    Print EAN 8 Bar Code Command The command for printing an EAN 8 bar code is where parameter m designates the number of characters which will follow in the data. If you wish to include a check digit, enter the ASCII character @ (64 Dec, 40 Hex) at the end of the data.
  • Page 150: Select/Print Postnet Bar Code Data Command

    Postnet Parameter P Parameter P tells the printer how many bytes of bar code data to expect. Its value can be any ASCII character from NUL to DC4 (1 to 20 Dec, 01 to 14 Hex): any values for P range will cause the data to be ignored.
  • Page 151: Chapter 11: Bar Code Commands For 24-Pin Printers

    Chapter 11: Bar Code Commands for 24-Pin Printers 24-pin models ML390 Turbo, ML391 Turbo, ML590 and ML591 incorporate eight bar codes, in both the Epson LQ and IBM emulations: Code 39 Code 128 Interleaved 2 of 5 UPC* A *UPC = Universal Product Code **EAN = European Article Numbering These commands are the same as those given in Chapter 10 for the 9-pin printers;...
  • Page 152 Code 39 Parameters n and n These parameters set the vertical length of the bars in units of 15/180", as calculated by the equation where the total value must be less than or equal to 25. Code 39 Parameter n This parameter sets the width of the narrow bars in 1/360"...
  • Page 153: Print Code 39 Bar Code Command

    Code 39 Parameter n Parameter n is used in combination with parameters n and the wide spaces. Table 86: IBM/Epson Select Code 39 Command — Wide Bar Widths for Parameter n 7/360" 11/360" 9/360" 14/360" 12/360" 18/360" 14/360" 21/360" 17/360" 25/360"...
  • Page 154: Code 128 Bar Code Commands

    Code 128 Bar Code Commands Code 128 has 106 different characters, each of which can have any one of three different meanings depending on which code set is engaged: Table 88: IBM/Epson Select Code 128 Command — Characters for Each Code Set (24-Pin Printers) Characters Code Set ASCII...
  • Page 155: Print Code 128 Bar Code Command

    When calculating the width of the printout, you must take into consideration the Start and Stop Code patterns: Table 90: IBM/Epson Select Code 128 Command — Start and Stop Codes for Parameter n Value of n Code 128 Parameter n This parameter sets whether or not the readable characters are printed.
  • Page 156: Select Interleaved 2 Of 5 Bar Code Command

    Select Interleaved 2 of 5 Bar Code Command The command for selecting Interleaved 2 of 5 is Interleaved 2 of 5 Parameters n These parameters set the vertical length of the bars in units of 15/180", as calculated by the equation where the total value must be less than or equal to 25.
  • Page 157: Print Interleaved 2 Of 5 Bar Code Command

    Interleaved 2 of 5 Parameter n This parameter sets whether or not the readable characters are printed. = 1: print readable characters = 0: do not print readable characters Print Interleaved 2 of 5 Bar Code Command The command for printing Interleaved 2 of 5 bar codes is where parameter m designates the number of characters which will follow in the data.
  • Page 158: Print Upc A Bar Code Command

    Table 95: IBM/Epson Select UPC A Command — Start/Stop Codes and Center Bars for Parameter n Value of n UPC A Parameter n This parameter sets whether or not the readable characters are printed. = 1: print readable characters = 0: do not print readable characters Print UPC A Bar Code Command The command for printing a UPC A bar code is where parameter m designates the number of characters which will follow in the data.
  • Page 159: Print Upc E Bar Code Command

    UPC E Parameter n This parameter sets the maximum width of one character in 1/360" increments as follows: Table 96: IBM/Epson Select UPC E Command — Maximum Character Widths for Parameter n When calculating the width of the printout, you must take into consideration the Start Code and Stop Code patterns as shown in the table which follows.
  • Page 160: Print Ean 8 Bar Code Command

    Table 97: IBM/Epson Select EAN 8 Command — Maximum Character Widths for Parameter n When calculating the width of the printout, you must take into consideration the left hand guard pattern, the center guard pattern and the right hand guard pattern. EAN 8 Parameter n This parameter sets whether or not the readable characters are printed.
  • Page 161: Select Ean 13 Bar Code Command

    Select EAN 13 Bar Code Command The command for selecting EAN 13 is EAN 13 Parameters n and n These parameters set the vertical length of the bars in units of 15/180", as calculated by the equation where the total value must be less than or equal to 25. EAN 13 Parameter n This parameter sets the maximum width of one character in 1/360"...
  • Page 162: Postnet Bar Code Command

    Postnet Parameter P Parameter P tells the printer how many bytes of bar code data to expect. Its value can be any ASCII character from NUL to DC4 (1 to 20 Dec, 01 to 14 Hex): any values for P range will cause the data to be ignored.
  • Page 163: Chapter 12: Miscellaneous Commands

    This chapter describes the following commands: Cancel Command Change Emulation Command Cut Sheet Feeder Commands Delete Command Half-Speed Printing Command Initialize Printer Commands Most Significant Bit Commands Cancel Command (IBM/E/ML) ML320 E/I, ML321 E/I ML320 Std., ML321 Std. Function ASCII...
  • Page 164 Not used Chassis Ground 18† +5V* 19-30 31† I-Prime Fault 34-35 Not used † Pins controlled by jumper plugs in the printer. * 50 mA maximum. Return Pin Direction To Printer To Printer To Printer To Printer To Printer To Printer...
  • Page 165: Serial Interface

    Serial Interface See your Printer Handbook for serial menu settings Note: The serial cable should be no longer than 50 ft. (15.25m). The cable must be shielded in order to comply with FCC requirements. Table 103: Pin Assignments for Serial Interface Signals...
  • Page 166 CTS 5 DSR 6 SG 7 IBM 9-Pin Cable Configuration Computer RD 2 TD 3 SG 5 DSR 6 CTS 8 Printer 1 PG 3 RD 2 TD 11 SSD 20 DTR 6 DSR 7 SG 4 RTS 5 CTS...
  • Page 167 Appendix A: Interfacing...
  • Page 168: Cut Sheet Feeder (Csf) Commands

    ESC EM R The insert page command feeds a sheet of paper from the cut sheet feeder (CSF) to the top of form position. If CSF paper is already in the printer, the printer will eject the page and load another.
  • Page 169: Delete Command (Epson)

    Also known as the initialize printer or reset commands. Note: In order for this command to be effective, the Reset Inhibit item in the printer Menu must be set to NO (the factory default). If the setting has been changed to YES, this command will be ignored.
  • Page 170: Most Significant Bit Commands (Epson)

    This command overrides the sensor so that you can print closer to the bottom of the page. (The feature is also menu selectable.) Be careful if you use this feature, since it lets the printer continue printing when there's no more paper. This can cause loss of data and may damage the printhead.
  • Page 171: Print Suppress Mode Commands

    Mode Off Hex: 11 When the printer receives the command to begin Print Suppress mode, it ignores all data until it receives the DC1 code. This means that any data will be lost. The SEL light blinks when the printer is in the Print Suppress mode. These commands will only work if the Print Suppress Effective item in the printer menu is set to Yes (the factory default).
  • Page 172: Select Color Command (Ibm/E)

    ESC r n 27 114 n This command selects the color that will print when the printer has a color ribbon installed and the menu is set to any setting other than “Black Ribbon.” Table 100: IBM/Epson ESC r Command —...
  • Page 173: Software I-Prime Command (Ibm/E/Ml)

    Software I-Prime ESC } NUL This command clears the print buffer and resets the printer to the default settings, regardless of the setting for the Reset Inhibit item in the printer menu. If the Cut Sheet Feeder (CSF) is installed, this command will also eject any paper loaded into the printer from the CSF.
  • Page 174 Chapter 12: Miscellaneous Commands...
  • Page 175: Appendix B: Listing Of Tables

    Appendix B: Listing of Tables Table 1: Printer Drivers for ML320 Epson/IBM & ML321 Epson/IBM ... 1 Table 2: Printer Drivers for ML320 MICROLINE Standard & ML321 MICROLINE Standard ... 1 Table 3: Printer Drivers for Models ML320 Turbo & ML321 Turbo... 1 Table 4: Printer Drivers for Models ML390 Turbo &...
  • Page 176 Table 38: ML ESC * Command — Densities (DPI) for n Table 39: ML ESC * Command —Speed & Word Sizes for n Table 40: Epson ESC * m Command — 8-Pin Graphics Density Codes ... 63 Table 41: IBM ESC [ g Command — Horizontal Graphics Resolution for m Values ... 65 Table 42: Epson ESC .
  • Page 177 Values (9-Pin Printers) ... 105 Table 75: IBM/Epson Print Code 128 Command — Check Digits for Code Sets (9-Pin Printers)105 Table 76: IBM/Epson Select Interleaved 2 of 5 Command — Black Bar Width for Parameter Values (9-Pin Printers) ... 106 Table 77: IBM/Epson Select Interleaved 2 of 5 Command —...
  • Page 178: Parallel Interface

    Parameter n Values (24-Pin Printers) ... 123 Table 99: IBM/E/ML ESC { Command — Emulations for n Values... 125 Table 100: IBM/Epson ESC r Command — Color Selections for n Values ... 130 Table 101: Epson ESC ( U Command — Increments of Movement for P Values ...
  • Page 179: Index

    ...xi-xviii emulation, drivers ... 1-2 Incremental printing command... 82 Increment of movement command... 130-131 Indent commands ... 69-72, 76 Initialize printer command... 127 Intercharacter spacing commands ... 25-26 Interfacing parallel ... 133 serial... 134-135 International character set commands ... 9-10 Italian character set commands ...
  • Page 180 Portugal code page command ...11-13 Postnet bar code commands... 112, 124 Print quality commands...29-32 suppress mode commands... 129 Printer drivers ...1-2 Programming graphics ... 54, 62 Proportional spacing commands... 25 Publisher character set commands...9-10 Quadruple density graphics commands...54-56, 62-63 Raster graphics command ... 66 Reassign graphics command ...

Table of Contents