Oki MICROLINE Turbo ML390 Reference Manual

Manual is about: High Performance 10/100 Base-T Ethernet Network Print Server

Summary of MICROLINE Turbo ML390

  • Page 1

    Models ml320 epson/ibm ml320 microline standard ml321 epson/ibm ml321 microline standard ml320 turbo & ml321 turbo ml390 turbo & ml391 turbo ml520 & ml521 ml590 & ml591 microline ® reference manual okidata ®.

  • Page 2

    Every effort has been made to ensure that the information in this document is complete, accurate and up-to-date. Okidata assumes no responsibility for the results of errors beyond its control. Okidata also cannot guarantee that changes in software and equipment made by other manufacturers, and refer...

  • Page 3: Contents

    Contents i contents how to use this manual .........................................................................................................Vii how the manual is organized.....................................................................................Vii conventions used in this manual ...

  • Page 4

    Contents ii proportional spacing commands (ibm/e/ml) ...........................................................25 intercharacter spacing commands (ibm/e/ml) .........................................................26 set horizontal motion index [hmi] command (epson lq).................................

  • Page 5

    Contents iii graphics density selection commands (ibm/e) ...........................................................62 graphics select/print command (ibm agm/e).............................................................63 reassign graphics codes command (ibm agm/e) ...................................

  • Page 6

    Contents iv chapter 9: vertical control commands .................................................................................. 85 set page length commands ........................................................................................85 set page length in inches command (ibm/e/ml) .......

  • Page 7

    Contents v upc a bar code commands .....................................................................................107 select upc a bar code command .........................................................................107 print upc a bar code command............................................

  • Page 8

    Contents vi half-speed printing commands (e/ml) ......................................................................127 initialize printer commands (e/ml)............................................................................127 most significant bit commands (epson) .............................

  • Page 9: How To Use This Manual

    How to use this manual vii 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...

  • Page 10

    How to use this manual viii conventions used in this manual the following conventions are used in the command chapters of this manual: • the emulation(s) to which each command applies is given in parentheses at the end of the heading for the command. The emulations (ibm = ibm proprinter, e = epson f...

  • Page 11

    How to use this manual ix 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 ep...

  • Page 12: Command Summary

    Ibm command summary xi command summary this summary is in four sections: • ibm commands • epson fx commands • epson lq commands • okidata microline standard commands each is section arranged numerically by the decimal value for the ascii command. The page number given in the last column refers you t...

  • Page 13

    Ibm command summary xii ibm command: ascii decimal function applies to model(s) page si 15 select compressed pitch ml320/321 e/i, ml320t/321t, ml390t/391t, ml520/521, ml590/591 16 dc1 17 print suppress mode off ml320/321 e/i, ml320t/321t, ml390t/391t, ml520/521, ml590/591 129 dc2 18 select 10 cpi ml...

  • Page 14

    Ibm command summary xiii ibm command: ascii decimal function applies to model(s) page esc ! N 27 33 n select international character set ml320/321 e/i, ml320t/321t, ml390t/391t, ml520/521, ml590/591 9 esc # 0 27 35 48 select hsd print mode ml320/321 e/i, ml320t/321t, ml520/521 29 esc $ 27 36 copy ro...

  • Page 15

    Ibm command summary xiv ibm command: ascii decimal function applies to model(s) page esc 3 n 27 51 n set line spacing to n/216” ml320/321 e/i, ml320t/321t, ml520/521, ml590/591 90 esc 3 n 27 51 n set line spacing to n/216” in ppr, or to n/180" in agm ml390t/ml391t 92 esc 4 27 52 set top of form ml32...

  • Page 16

    Ibm command summary xv ibm command: ascii decimal function applies to model(s) page esc b n 1 n 2 ... N k nul 27 66 n 1 n 2 ... N k 0 set vertical tabs ml320/321 e/i, ml320t/321t, ml390t/391t, ml520/521, ml590/591 94 esc c n 27 67 n set page length in lines. Ml320/321 e/i, ml320t/321t, ml390t/391t, ...

  • Page 17

    Ibm command summary xvi ibm command: ascii decimal function applies to model(s) page esc p 0 27 80 48 proportional spacing off ml320/321 e/i, ml320t/321t, ml390t/391t, ml520/521, ml590/591 25 esc p 1 27 80 49 proportional spacing on ml320/321 e/i, ml320t/321t, ml390t/391t, ml520/521, ml590/591 25 es...

  • Page 18

    Ibm command summary xvii ibm command: ascii decimal function applies to model(s) page esc z l n h n [data] 27 90 l n h n [data] quadruple density graphics ml320/321 e/i, ml320t/321t, ml390t/391t, ml520/521, ml590/591 54 esc [ @ l n h n nul nul n 1 n 2 27 91 64 l n h n 0 0 n 1 n 2 set character width...

  • Page 19

    Ibm command summary xviii ibm command: ascii decimal function applies to model(s) page esc n p n 27 110 p n select graphics aspect ratio: ppr only ml390t/391t, ml590/591 65 esc q n 27 113 n specify outline/shadow ml390t/391t, ml590/591 38 esc r n 27 114 n select color ml590/591 130 esc x 0 27 120 48...

  • Page 21

    Epson fx command summary xx epson fx commands epson fx command: ascii decimal function applies to model(s) page bs 8 backspace ml320/321 e/i, ml320t/321t, ml520/521 69 ht 9 execute horizontal tab ml320/321 e/i, ml320t/321t, ml520/521 73 lf 10 line feed (with carriage return) ml320/321 e/i, ml320t/32...

  • Page 22

    Epson fx command summary xxi epson fx command: ascii decimal function applies to model(s) page esc em i 27 25 73 insert sheet (cut sheet feeder) ml320/321 e/i, ml320t/321t, ml520/521 126 esc em r 27 25 82 eject sheet (cut sheet feeder) ml320/321 e/i, ml320t/321t, ml520/521 126 esc sp n 27 32 n set i...

  • Page 23

    Epson fx command summary xxii epson fx command: ascii decimal function applies to model(s) page esc 1 27 49 set line spacing to 7/72" ml320/321 e/i, ml320t/321t, ml520/521 90 esc 2 27 50 set line spacing to 1/6" ml320/321 e/i, ml320t/321t, ml520/521 90 esc 3 n 27 51 n set line spacing to n/216" ml32...

  • Page 24

    Epson fx command summary xxiii epson fx command: ascii decimal function applies to model(s) page esc b nul 27 66 0 clear vertical tabs ml320/321 e/i, ml320t/321t, ml520/521 94 esc b n 1 n 2 ... N k nul 27 66 n 1 n 2 ... N k 0 set vertical tabs ml320/321 e/i, ml320t/321t, ml520/521 94 esc c n 27 67 n...

  • Page 25

    Epson fx command summary xxiv epson fx command: ascii decimal function applies to model(s) page esc u 0 27 85 48 uni-directional printing off ml320/321 e/i, ml320t/321t, ml520/521 82 esc u 1 27 85 49 uni-directional printing on ml320/321 e/i, ml320t/321t, ml520/521 82 esc w 0 27 88 48 end double wid...

  • Page 26

    Epson fx command summary xxv epson fx command: ascii decimal function applies to model(s) page esc t 0 27 116 48 select epson set 1 ml320/321 e/i, ml320t/321t, ml520/521 7 esc t 1 27 116 49 select epson set 2 ml320/321 e/i, ml320t/321t, ml520/521 7 esc w 0 27 119 48 end double height printing ml320/...

  • Page 28

    Epson lq command summary xxvii epson lq commands epson lq command: ascii decimal function applies to model(s) page bs 8 backspace ml390t/ml391t, ml590/591 69 ht 9 execute horizontal tab ml390t/391t, ml590/591 73 lf 10 line feed (with carriage return) ml390t/391t, ml590/591 87 vt 11 vertical tab ml39...

  • Page 29

    Epson lq command summary xxviii epson lq command: ascii decimal function applies to model(s) page esc em i 27 25 73 insert sheet (cut sheet feeder) ml390t/391t 126 esc em r 27 25 82 eject sheet (cut sheet feeder) ml390t/391t 126 esc us 0 27 31 48 end double height printing ml390t/391t, ml590/591 21 ...

  • Page 30

    Epson lq command summary xxix epson lq command: ascii decimal function applies to model(s) page esc + n 27 43 n set line spacing to n/360" ml390t/391t, ml590/591 92 esc - 0 27 45 48 underline printing off ml390t/391t, ml590/591 36 esc - 1 27 45 49 underline printing on ml390t/391t, ml590/591 36 esc ...

  • Page 31

    Epson lq command summary xxx epson lq command: ascii decimal function applies to model(s) page esc b n 1 n 2 ... N k nul 27 66 n 1 n 2 ... N k 0 set vertical tabs ml390t/391t, ml590/591 94 esc c n 26 67 n set page length in lines. Ml390t/391t, ml590/591 85 esc c nul n 27 67 0 n set page length in in...

  • Page 32

    Epson lq command summary xxxi epson lq command: ascii decimal function applies to model(s) page esc w 0 27 87 48 end double width printing ml390t/391t, ml590/591 21 esc w 1 27 87 49 begin double width printing ml390t/391t, ml590/591 21 esc x p p n l p h p 27 88 70 p n l p h p select character pitch/...

  • Page 33

    Epson lq command summary xxxii epson lq command: ascii decimal function applies to model(s) page esc p 0 27 112 48 proportional spacing off ml390t/391t, ml590/591 25 esc p 1 27 112 49 proportional spacing on ml390t/391t, ml590/591 25 esc q n 27 113 n specify outline/shadow ml390t/391t, ml590/591 38 ...

  • Page 35

    Okidata microline standard command summary xxxiv okidata microline standard commands ml standard command: ascii decimal function applies to model(s) page etx 3 select graphics print mode ml320/321 std., ml320t/321t, ml520/521 59 etx stx 3 2 end graphics print mode ml320/321 std., ml320t/321t, ml520/...

  • Page 36

    Okidata microline standard command summary xxxv ml standard command: ascii decimal function applies to model(s) page esc ht x 1 y 1 z 1 ... X 16 y 16 z 16 cr 27 9 x 1 y 1 z 1 ... X 16 y 16 z 16 13 set horizontal tab by characters ml320/321 std., ml320t/321t, ml520/521 74 esc lf 27 10 reverse feed ml...

  • Page 37

    Okidata microline standard command summary xxxvi ml standard command: ascii decimal function applies to model(s) page esc % a m n 1 ... N 11 27 37 65 m n 1 ... N 11 down load ascender characters ml320/321 std., ml320t/321t, ml520/521 45 esc % b n 1 n 2 n 3 n 4 27 37 66 n 1 n 2 n 3 n 4 indent from le...

  • Page 38

    Okidata microline standard command summary xxxvii ml standard command: ascii decimal function applies to model(s) page esc ? N : 27 63 n 58 carriage return/feed selection ml320/321 std., ml320t/321t, ml520/521 87 esc c 27 67 underline printing on ml320/321 std., ml320t/321t, ml520/521 36 esc d 27 68...

  • Page 39

    Okidata microline standard command summary xxxviii ml standard command: ascii decimal function applies to model(s) page esc i 0 27 105 48 incremental printing on ml320/321t 82 esc i 1 27 105 49 incremental printing off ml320/321t 82 esc i 27 108 emphasized/enhanced printing off ml320/321 std., ml320...

  • Page 40: Chapter 1: Printer Drivers

    Chapter 1: working with commercial software 1 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 wha...

  • Page 41

    Chapter 1: working with commercial software 2 table 5: printer drivers for models ml520 & ml521 ibm proprinter emulation epson fx emulation okidata ml standard emulation okidata ml 520/1 ibm ibm proprinter iii ibm proprinter ii ibm proprinter ibm graphics printer okidata ml 520/1 epson epson fx850/1...

  • Page 42

    Chapter 1: working with commercial software 3 table 7: available drivers printer models available drivers if you can not download the driver: ml320 epson/ibm ml320 std. Ml321 epson/ibm ml321 std. Microsoft windows: 3.0, 3.1, 95 microsoft word (dos): 5.0, 5.5, 6.0 wordperfect (dos): 5.1, 5.2, 6.0 to ...

  • Page 43

    Chapter 1: working with commercial software 4 software driver selection selecting a software printer driver is usually a part of the software application installation process. Changing printers may require use of an external routine, or may be possible from within the application through menu select...

  • Page 44

    Chapter 2: character set commands 5 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 ...

  • Page 45

    Chapter 2: character set commands 6 select all character set [ibm set iii] command (epson lq) ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex select all character set esc ( ^ l n h n [data] 27 40 94 l n h n [data] 1b 28 5e l n h n [data] use this command to engage the all character ...

  • Page 46

    Chapter 2: character set commands 7 print one character from ibm all character set [ibm set iii] command (ibm) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex print specified character from ibm set iii esc ^ n 27 94 n ...

  • Page 47

    Chapter 2: character set commands 8 microline character set commands select microline standard character set command (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex select standard character set esc ! 0 27 33 48 1b 21 30 in the microline emulation, use ...

  • Page 48

    Chapter 2: character set commands 9 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 char...

  • Page 49

    Chapter 2: character set commands 10 select international character set command (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex select international character set esc r n 27 82 n 1b 52 n this command is used to...

  • Page 50

    Chapter 2: character set commands 11 function ascii dec hex print from code page esc [ t l n h n 0 0 h cp l cp 0 27 91 84 l n h n 0 0 h cp l cp 0 1b 5b 54 l n h n 00 00 h cp l cp 00 this command permits you to select a code page character set and to print the amount of data you specify within the co...

  • Page 51

    Chapter 2: character set commands 12 assign code page command (epson) ⻬ ml320 turbo, ml321 turbo function ascii dec hex assign code page to character set esc ( t 3 0 p n1 p n2 p n3 27 40 116 51 48 p n1 p n2 p n3 1b 28 74 33 30 p n1 p n2 p n3 this command allows you to assign a code page character se...

  • Page 52

    Chapter 2: character set commands 13 upper range control code commands (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex permit printing upper range control codes esc 6 or esc i 1* 27 54 or 27 73 49* 1b 36 or 1b ...

  • Page 53

    Chapter 2: character set commands 14 code page sets for p n1 , p n2 values p n2 p n3 code page set 0 0 italic 1 0 pc-437 (usa) 3 0 pc-850 (multilingual) 7 0 pc-860 (portugal) 8 0 pc-863 (canadian french) 9 0 pc-865 (norway) 25* 0* brascii* 26* 0* abicomp* * applies only to ml390 turbo and ml391 turb...

  • Page 54

    Chapter 3: character size & spacing commands 15 chapter 3: character size & spacing commands this chapter describes the commands used to set the size and spacing of characters printed: • pitch setting commands • superscript & subscript commands • double width & height commands • combined print featu...

  • Page 55

    Chapter 3: character size & spacing commands 16 function command select compressed pitch ascii: si or esc si dec: 15 or 27 15 hex: 0f or 1b 0f cancel compressed pitch not applicable ⻬ ml390 turbo, ml391 turbo function command notes select compressed pitch* ascii: si or esc si dec: 15 or 27 15 hex: 0...

  • Page 56

    Chapter 3: character size & spacing commands 17 pitch setting commands for compressed printing (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec. Hex. Select 17.1 cpi ascii: gs dec: 29 hex: 1d select 20 cpi ascii: esc # 3 dec: 27 35 51 hex: 1b 23 33 select ch...

  • Page 57

    Chapter 3: character size & spacing commands 18 parameter p n parameter p n 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 f...

  • Page 58

    Chapter 3: character size & spacing commands 19 example to set a point size (n p ) of 216: n p = [l p + (h p x 255] x 0.5 1. Assign a value of 1 to h p . 2. Multiply 216 by 2: 216 x 2 = 432. 3. Subtract 255 from 432: 432 - 255 = 177., then round this value down to the nearest even number, 176. Assig...

  • Page 59

    Chapter 3: character size & spacing commands 20 parameters l p and h p parameters l p and h p are used to set the point size according to the following equation: n p = [l p + (h p x 255] x 0.5 l p and h p can have any value from 0 to 255 decimal. See "table 17: epson esc x command — point sizes for ...

  • Page 60

    Chapter 3: character size & spacing commands 21 double width commands (ibm/e/ml) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml320 std., ml321 std. ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ibm epson ml begin double width printing ascii: esc w 1 dec: 27 87 49 hex: 1b ...

  • Page 61

    Chapter 3: character size & spacing commands 22 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) ⻬ ...

  • Page 62

    Chapter 3: character size & spacing commands 23 double height & width printing command, 24-pin printers (ibm) ⻬ ml390 turbo, ml391 turbo function ascii decimal hexadecimal double height printing esc [ @ n 1 n 2 m 1 m 2 m 3 m 4 27 91 64 n 1 n 2 m 1 m 2 m 3 m 4 1b 5b 40 n 1 n 2 m 1 m 2 m 3 m 4 paramet...

  • Page 63

    Chapter 3: character size & spacing commands 24 combined print features command (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex select print features esc & n 1 n 2 n 3 n 4 : 27 38 n 1 n 2 n 3 n 4 58 1b 26 n 1 n 2 n 3 n 4 3a this command lets you select ...

  • Page 64

    Chapter 3: character size & spacing commands 25 for example, to set 10 cpi, emphasized, nlq and underlining using this command, you would calculate the values for n 1 , n 2 , n 3 , and n 4 as follows: n 1 = 1 + 32 = 33 n 2 = 8 + 64 = 72 n 3 = 2 + 96 = 98 n 4 = 4 + 112 = 116 the resulting basic state...

  • Page 65

    Chapter 3: character size & spacing commands 26 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 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml320 std., ml321 std. Function ibm epson ml set intercha...

  • Page 66

    Chapter 3: character size & spacing commands 27 table 24: ml esc n command — character spacing (in inches) decimal value of n 10 cpi 12 cpi 17.1 cpi 20 cpi 0 3/120" 3/144" 3/206" 3/240" 1 4/120" 4/144" 4/206" 4/240" 2 5/120" 5/144" 5/206" 5/240" 3 6/120" 6/144" 6/206" 6/240" 4 7/120" 7/144" 7/206" 7...

  • Page 67

    Chapter 3: character size & spacing commands 28.

  • Page 68

    Chapter 4: character style commands 29 chapter 4: character style commands this chapter describes the commands for selecting print style including the following: • print mode & fonts commands • italics print commands • emphasized & enhanced print commands • underline/overscore/strike-through command...

  • Page 69

    Chapter 4: character style commands 30 individual print mode & font commands for 24-pin printers (ibm/e) ⻬ ml390 turbo, ml391 turbo function ascii dec. Hex. Select utility print mode esc x 0 27 120 48 1b 78 30 select lq print mode esc x 1 27 120 49 1b 78 31 select lq print mode & font esc k n 27 107...

  • Page 70

    Chapter 4: character style commands 31 combined select font command (ibm) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii decimal hexadecimal select print quality and character spacing esc i n 27 73 n 1b 49 n this command allo...

  • Page 71

    Chapter 4: character style commands 32 table 28: ibm esc i command — print modes coresponding to n values for 24-pin models ml590 & ml591 dec. Value of n print mode dec. Value of n print mode 0 10 cpi utility resident 14 12 cpi lq dll 2 10 cpi lq resident 16 17.1 cpi utility resident 3 proportional ...

  • Page 72

    Chapter 4: character style commands 33 is used to select the font as follows: table 30: ibm esc [ l command — fonts selected for calcualted h fid , l fid values font selected value invalid 0 courier 10 011 courier 10 italic 018 courier 10 symbol 008 courier 10/10 shalom 049 courier 12 085 courier 12...

  • Page 73

    Chapter 4: character style commands 34 character pitch settings for calculated h fwd , l fwd values hex value character pitch 00 command invalid 90 10 cpi 78 12 cpi 60 15 cpi 54 17 cpi 48 20 cpi the setting made using the h fwd and l fwd parameters will automatically be overridden if the fa paramete...

  • Page 74

    Chapter 4: character style commands 35 table 32: epson esc ! Command — print features for n values feature value compressed printing 4 double width printing 32 12 cpi (elite) printing 1 emphasized printing 8 enhanced printing 16 italics printing 64 proportional printing 2 underline printing 128 for ...

  • Page 75

    Chapter 4: character style commands 36 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...

  • Page 76

    Chapter 4: character style commands 37 overscore commands (ibm) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex overscore printing on esc _ 1 27 95 1 1b 5f 01 overscore printing off esc _ 0 27 95 0 1b 5f 00 the oversco...

  • Page 77

    Chapter 4: character style commands 38 parameters d 1 and d 2 parameter d 1 is used to set the type of score and parameter d 2 is used to set the attributes, as indicated in the table. Table 33: epson esc ( - command — score styles for d 1 and d 2 values d 1 d 2 score style 1 1 continuous, single un...

  • Page 78

    Chapter 5: custom character commands 39 chapter 5: custom character commands your printer's custom (down line loadable) character feature enables you to design your own characters and symbols, even entire character sets if you choose, and download them from your computer to the printer. You can desi...

  • Page 79

    Chapter 5: custom character commands 40 your arrangement of dots is translated into code that tells your printer the exact location of each dot within each column. The example which follows illustrates how this works. This character is 9 dots wide and is flush to the left. We'll print it in 10 cpi u...

  • Page 80

    Chapter 5: custom character commands 41 down line load characters command for 9-pin printers (ibm) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii decimal hexadecimal down line load characters esc = c 1 c 2 m n a 1 a 2 [data] 27 61 c 1 c 2 m n a 1 a 2 [data] 1b 3d c 1...

  • Page 81

    Chapter 5: custom character commands 42 here is a breakdown of the definitions for the various bit values for a 1 : bit b 7 : b 7 = 0: ascender b 7 = 1: descender note: if b 0 or b 1 is 0, b 7 is ignored. Bits b 6 , b 5 , b 4 , b 3 , b 2 : ignored bits b 1 and b 0 : b 1 , b 0 = 0, 0: no expansion to...

  • Page 82

    Chapter 5: custom character commands 43 epson custom character commands for 9-pin printers copy rom to ram command for 9-pin printers (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo function ascii dec hex copy rom character set to ram character set esc : nul nul nul 27 58 0 0 0 1b 3a 00 00...

  • Page 83

    Chapter 5: custom character commands 44 descenders: a is calculated as last dot column of character + (first dot column x 16) parameter a can be assigned any value in the range 0 to 255. End the command with the data for the character calculated from your grid. If you're downloading several characte...

  • Page 84

    Chapter 5: custom character commands 45 okidata microline standard custom character commands for 9-pin printers copy rom to ram command for 9-pin printers (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex copy rom character set to ram character set esc $ ...

  • Page 85

    Chapter 5: custom character commands 46 memory: • you reset the printer with the esc can command • you overwrite them with new custom characters • you use the esc $ command to overwrite them with the standard character set. Custom character commands: 24-pin printers designing a custom character for ...

  • Page 86

    Chapter 5: custom character commands 47 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. • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • ...

  • Page 87

    Chapter 5: custom character commands 48 follows: starting address = a 1 + (a 2 x 256) parameter a 3 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 param...

  • Page 88

    Chapter 5: custom character commands 49 bit = 1: data is a repeat of previous column the parameters specify data repetition as follows: d 1 : columns 1 to 8 d 2 : columns 9 to 16 d 3 : columns 17 to 24 d 4 : columns 25 to 32 d 5 : columns 33 to 40 epson custom character commands for 24-pin printers ...

  • Page 89

    Chapter 5: custom character commands 50 parameter n parameter n is used to specify the font to be used. Table 36: epson esc : command — fonts for n values value of n font value of n font 0 roman 6 ocr-a 1 swiss 7 orator 2 courier (default) 8 orator-s 3 prestige 122 swiss bold 4 script 124 letter got...

  • Page 90

    Chapter 5: custom character commands 51 custom character set on/off command for 24-pin printers (epson) ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex select standard character set esc % 0 27 37 0 1b 25 00 select custom character set esc % 1 27 37 1 1b 25 01 to switch from the stan...

  • Page 91

    Chapter 6: graphics commands for 9-pin printers 53 chapter 6: graphics commands for 9-pin printers overview your printhead has one column of pins. Images are created as the pins “fire,” striking the ribbon against the paper to produce dots. White spaces appear where the pins don't fire. In 8- pin gr...

  • Page 92

    Chapter 6: graphics commands for 9-pin printers 54 programming graphics in basic one important thing to remember when you're programming graphics is not to include extraneous line feeds in your programs. Using a semicolon after the data in an lprint statement will keep the print position on the same...

  • Page 93

    Chapter 6: graphics commands for 9-pin printers 55 graphics density selection commands (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex select single density graphics esc p or esc q 27 80 or 27 81 1b 50 or 1b 51 select double density graphics esc r 27 82...

  • Page 94

    Chapter 6: graphics commands for 9-pin printers 56 once you've selected the density you want to use, you have to design your graphic image. Begin by mapping out the pattern you want to print on a piece of graph paper. Here is a sample pattern for a triangle: parameters l n and h n these parameters t...

  • Page 95

    Chapter 6: graphics commands for 9-pin printers 57 reassign graphics codes command (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex reassign graphics esc ? M n 27 63 m n 1b 3f m n you can use this command to reassign any of the 8-pin graphics modes to o...

  • Page 96

    Chapter 6: graphics commands for 9-pin printers 58 table 38: ml esc * command — densities for n 1 values (9-pin printers) dots per inch/density value of n 1 60 dpi 1 72 dpi 2 single density 4 double density 8 quadruple density 16 for example, for 60 dpi printing at quadruple density, the value of n ...

  • Page 97

    Chapter 6: graphics commands for 9-pin printers 59 graphics print mode commands (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex select graphics print mode etx 3 03 end graphics print mode etx stx 3 2 03 02 to begin printing graphics, you must first send...

  • Page 98

    Chapter 6: graphics commands for 9-pin printers 60 special purpose line feed commands (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 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...

  • Page 99

    Chapter 7: graphics commands for 24-pin printers 61 chapter 7: graphics commands for 24-pin printers overview your printhead has one column of pins. Images are created as the pins “fire,” striking the ribbon against the paper to produce dots. White spaces appear where the pins don't fire. In 8- pin ...

  • Page 100

    Chapter 7: graphics commands for 24-pin printers 62 for optimum registration when printing graphics using bi-directional printing, use the print registration item in the printer menu to fine-tune the alignment of the vertical bars which print as part of the menu. Keep changing the setting until the ...

  • Page 101

    Chapter 7: graphics commands for 24-pin printers 63 graphics select/print command (ibm agm/e) ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex graphics select/print esc * m n 1 n 2 [data] 27 42 m n 1 n 2 [data] 1b 2a m n 1 n 2 [data] note: the ibm agm emulation combines the ibm propr...

  • Page 102

    Chapter 7: graphics commands for 24-pin printers 64 reassign graphics codes command (ibm agm/e) ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex reassign graphics esc ? M n 27 63 m n 1b 3f m n note: the ibm agm emulation combines the ibm proprinter emulation with epson lq graphics fo...

  • Page 103

    Chapter 7: graphics commands for 24-pin printers 65 table 41: ibm esc [ g command — horizontal graphics resolution for m values (24-pin printers) value of m resolution (dpi) pins notes 0 60 8 same as esc k 1 120 8 same as esc l 2 120 8 same as esc y 3 240 8 same as esc z 8 60 24 high resolution for ...

  • Page 104

    Chapter 7: graphics commands for 24-pin printers 66 parameters l n and h n parameters l n and h n are used to designate the number of bytes to follow in the subsequent parameters, where number of bytes = l n + (h n x 256) l n and h n can have any value from 0 to 255 decimal. Generally, l n is set to...

  • Page 105

    Chapter 7: graphics commands for 24-pin printers 67 parameter p v parameter p v sets the vertical dot density: p v = 10: 360 dots per inch (dpi) p v = 20: 180 dpi parameter p h parameter p h sets the horizontal dot density: p h = 10: 360 (dpi) p h = 20: 180 dpi parameter p m parameter p m sets the n...

  • Page 106

    Chapter 7: graphics commands for 24-pin printers 68.

  • Page 107

    Chapter 8: horizontal control commands 69 chapter 8: horizontal control commands this chapter describes the commands for horizontal control including the following: • backspace/carriage return commands • margin setting commands • horizontal tab commands • indent commands • print position commands • ...

  • Page 108

    Chapter 8: horizontal control commands 70 parameter m parameter m sets the right margin and can be any value from 0 to 255. Note: be sure to specify a right margin that is at least one more than the left margin. The only time you should use a value of 0 for the right margin is if you don't want to c...

  • Page 109

    Chapter 8: horizontal control commands 71 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 — ra...

  • Page 110

    Chapter 8: horizontal control commands 72 left and right margin commands (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex set left margin esc % c n 1 n 2 n 3 27 37 67 n 1 n 2 n 3 1b 25 43 n 1 n 2 n 3 set right margin esc % r n 1 n 2 n 3 n 4 27 37 82 n 1 ...

  • Page 111

    Chapter 8: horizontal control commands 73 horizontal tab commands execute horizontal tab command (ibm/e/ml) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml320 std., ml321 std. ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex execute horizontal tab ht 9 09 when y...

  • Page 112

    Chapter 8: horizontal control commands 74 function ascii dec hex set horizontal tab by characters esc ht x 1 y 1 z 1 ... X 16 y 16 z 16 cr 27 9 x 1 y 1 z 1 ... X 16 y 16 z 16 13 1b 09 x 1 y 1 z 1 ... X 16 y 16 z 16 0d this command can be used to set up to 16 horizontal tab stops at the intervals of ...

  • Page 113

    Chapter 8: horizontal control commands 75 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 — shift increment for charact...

  • Page 114

    Chapter 8: horizontal control commands 76 clear horizontal tab settings commands (ibm/e) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ibm epson clear horizontal tab ascii: esc d nul nul dec: 27 68 0 0 hex: 1b 44 00 00 ascii: esc ...

  • Page 115

    Chapter 8: horizontal control commands 77 the distance of the shift depends on the pitch engaged: table 54: ibm/ml esc % b command — shift increments for left margin indents pitch increment of shift 10 cpi 1/120" 12 cpi 1/144" 15 cpi 1/180" 17.1 cpi 1/206" 20 cpi 1/240" proportional 1/120" parameter...

  • Page 116

    Chapter 8: horizontal control commands 78 parameter a 1 this parameter establishes whether the print position is absolute or relative: a 1 = 0: absolute print position a 1 = 1: relative print position parameter a 2 this parameter determines whether the movement will be to the left or right: a 2 = 0:...

  • Page 117

    Chapter 8: horizontal control commands 79 table 57: ibm/e/ml esc dle @ command — maximum p 1 p 2 p 3 p 4 values for 9-pin models pitch ml320 turbo, ml520 ml321 turbo, ml521 10 cpi 1920 3264 12 cpi 2304 3916 15 2880 4896 17.1 3291 5595 20 cpi 3840 6528 table 58: ibm/e/ml esc dle @ command — maximum p...

  • Page 118

    Chapter 8: horizontal control commands 80 set relative dot position command (ibm) ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex set relative dot position to right esc d n 1 n 2 27 100 n 1 n 2 1b 101 n 1 n 2 set relative dot position to left esc e n 1 n 2 27 64 n 1 n 2 1b 65 n 1 n ...

  • Page 119

    Chapter 8: horizontal control commands 81 2 x 60 = 120 120/256 = 0 (h n ), with a remainder of 120 (l n ) to move the print position over 5": 5 x 60 = 300 300/256 = 1 (h n ), with a remainder of 44 (l n ) move to the right & left commands (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml...

  • Page 120

    Chapter 8: horizontal control commands 82 uni-directional printing off ascii: esc u 0 dec: 27 85 0 hex: 1b 55 00 ascii: esc u 0 dec: 27 85 0 hex: 1b 55 00 ascii: esc = dec: 27 61 hex: 1b 3d print uni-directional for one line only not applicable ascii: esc dec: 27 60 hex: 1b 3c not applicable your pr...

  • Page 121

    Chapter 8: horizontal control commands 83 justification commands (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex select left justification esc a 0 27 97 0 1b 61 00 select center justification esc a 1 27 97 1 1b...

  • Page 122

    Chapter 8: horizontal control commands 84.

  • Page 123

    Chapter 9: vertical control commands 85 chapter 9: vertical control commands this chapter describes the commands for vertical control including the following: • page length commands • form feed command • line feed commands • line spacing commands • vertical tab commands • vertical position commands ...

  • Page 124

    Chapter 9: vertical control commands 86 n. The page length will be the result of multiplying the line pitch by the value of the variable “n.” in the ibm emulation, the value of n can be from 1 to 255; in the epson emulation, it can be from 1 to 127. The actual page length will depend on the line spa...

  • Page 125

    Chapter 9: vertical control commands 87 form feed command (ibm/e/ml) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml320 std., ml321 std. ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex form feed ff 12 0c when you send a form feed command, the printer prints any...

  • Page 126

    Chapter 9: vertical control commands 88 33 carriage return only 34 forward line feed, no carriage return 35 forward line feed with a carriage return 48 reverse line feed, no carriage return 49 reverse line feed with a carriage return fine line feed commands (ibm/e/ml) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 ...

  • Page 127

    Chapter 9: vertical control commands 89 perform line feed command (ibm) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex set line feed stored by esc a n esc 2 27 50 1b 32 the esc 2 command sets the line feed value store...

  • Page 128

    Chapter 9: vertical control commands 90 line spacing commands general line spacing commands (ibm/e/ml) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml320 std., ml321 std. ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ibm ppr ibm agm epson ml set line spacing to 1/6" not ap...

  • Page 129

    Chapter 9: vertical control commands 91 n/144" ibm epson ml 0 to 127 0 to 127 0 to 127 n/216" ibm epson 0 to 255 0 to 255 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 ⻬ ml590, ...

  • Page 130

    Chapter 9: vertical control commands 92 esc 3 n line spacing command for 24-pin printers (ibm/e) ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ibm ppr ibm agm epson set line spacing to n/180" not applicable ascii: esc 3 n** dec: 27 51 n hex: 1b 33 n ascii: esc 3 n dec: 27 51 n hex: 1b 33 n set ...

  • Page 131

    Chapter 9: vertical control commands 93 table 64: ibm/epson n/360" line spacing commands — values of parameter n emulation values of n ibm 1 to 255 epson 0 to 255 whenever a value of zero is assigned to n, the line spacing command will be ignored. Set vertical units (ibm) ⻬ ml390 turbo, ml391 turbo ...

  • Page 132

    Chapter 9: vertical control commands 94 execute vertical tab command (ibm/e/ml) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml320 std., ml321 std. ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex execute vertical tab vt 11 1b set vertical tabs command (ibm/e) ⻬...

  • Page 133

    Chapter 9: vertical control commands 95 vertical format unit [vfu] commands (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex set vertical format unit (vfu) esc b m n 1 n 2 ... N k nul 27 98 m n 1 n 2 ... N k 0 1...

  • Page 134

    Chapter 9: vertical control commands 96 vertical format unit (vfu) commands (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex set vertical format unit (vfu) dc4 sp1...Sp1 n ... Sp...Sp ? 20 32...32 n ... 32...32 63 14 20...20 n ... 20...20 3f execute vfu ...

  • Page 135

    Chapter 9: vertical control commands 97 function ascii dec hex set relative vertical print position esc ( v l n h n l p h p 27 40 118 l n h n l p h p 1b 28 76 l n h n l p h p this command lets you move the print position very precisely either upward (up to 0.5-inch) or downward (up to 46.2 inches) f...

  • Page 136

    Chapter 9: vertical control commands 98 set absolute vertical position command (epson) ⻬ ml390 turbo, ml391 turbo function ascii dec hex set absolute vertical print position esc ( v l n h n l p h p 27 40 86 l n h n l p h p 1b 28 56 l n h n l p h p this command lets you place text or graphics very pr...

  • Page 137

    Chapter 9: vertical control commands 99 l t and h t can have any value from 0 to 255 decimal. Note: the top margin must be set at a value less than the bottom margin. Parameters l b and h b parameters l b and h b are used to set the top margin, as a mutliple of whatever line spacing is engaged: bott...

  • Page 138

    Chapter 9: vertical control commands 100 skip over perforation on/off commands (ml) ⻬ ml320 std., ml321 std. ⻬ ml320 turbo, ml321 turbo ⻬ ml520, ml521 function ascii dec hex skip over perforation on esc % s 1 27 37 83 49 1b 25 53 31 skip over perforation off esc % s 0 27 37 83 48 1b 25 53 30 if the ...

  • Page 139

    Chapter 10: bar code commands for 9-pin printers 101 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 • upc* e • code 128 • ean** 8 • interleaved 2 of 5 • ean** 13 • ...

  • Page 140

    Chapter 10: bar code commands for 9-pin printers 102 select code 39 bar code command the command for selecting code 39 is esc dle a m 2 0 n 3 n 4 n 5 n 6 n 7 n 8 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 p...

  • Page 141

    Chapter 10: bar code commands for 9-pin printers 103 code 39 parameter n 7 parameter n 7 is used in combination with parameters n 5 and n 6 to set the width of the wide bars and the wide spaces. Table 70: ibm/epson select code 39 command — wide bar widths for parameter n 5 , n 6 , n 7 values (9-pin ...

  • Page 142

    Chapter 10: bar code commands for 9-pin printers 104 print code 39 bar code command the command for printing code 39 bar codes is esc dle b m [data] 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 @ ...

  • Page 143

    Chapter 10: bar code commands for 9-pin printers 105 code 128 parameter n 5 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 5 values (9-pin printers) value of n5 character width 1 2...

  • Page 144

    Chapter 10: bar code commands for 9-pin printers 106 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) check digit code set ascii dec hex a g 103 67 b can 24 18 c @ 64 40 interleaved 2 of 5 bar code commands interl...

  • Page 145

    Chapter 10: bar code commands for 9-pin printers 107 interleaved 2 of 5 parameter n 6 parameter n 6 is used in combination with parameter n 7 to set the width of one character of the spaces, as follows: table 77: ibm/epson select interleaved 2 of 5 command — space widths for parameter n 6 , n 7 valu...

  • Page 146

    Chapter 10: bar code commands for 9-pin printers 108 table 78: ibm/epson select upc a command — character widths for parameter n 5 values (9-pin printers) value of n5 character width 1 2 3 4 5 6 7 19/144" 26/144" 33/144" 40/144" 47/144" 54/144" 61/144" when calculating the width of the printout, you...

  • Page 147

    Chapter 10: bar code commands for 9-pin printers 109 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 ...

  • Page 148

    Chapter 10: bar code commands for 9-pin printers 110 n 8 = 0: do not print readable characters print upc e bar code command the command for printing a upc e bar code is esc dle b m [data] where m designates the number of characters which will follow in the data. A check digit cannot be used with upc...

  • Page 149

    Chapter 10: bar code commands for 9-pin printers 111 print ean 8 bar code command the command for printing an ean 8 bar code is esc dle b m [data] 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 @ (6...

  • Page 150

    Chapter 10: bar code commands for 9-pin printers 112 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. Postnet bar code command postnet bar coding is used by ...

  • Page 151

    Chapter 11: bar code commands for 24-pin printers 113 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 • upc* e • code 128 • ean** 8 • interleaved 2 of 5 • ean** 1...

  • Page 152

    Chapter 11: bar code commands for 24-pin printers 114 code 39 parameters n 3 and n 4 these parameters set the vertical length of the bars in units of 15/180", as calculated by the equation [(n 3 x 10) + n 4 ] x 15/180" where the total value must be less than or equal to 25. Code 39 parameter n 5 thi...

  • Page 153

    Chapter 11: bar code commands for 24-pin printers 115 code 39 parameter n 7 parameter n 7 is used in combination with parameters n 5 and n 6 to set the width of the wide bars and the wide spaces. Table 86: ibm/epson select code 39 command — wide bar widths for parameter n 5 , n 7 values (24-pin prin...

  • Page 154

    Chapter 11: bar code commands for 24-pin printers 116 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-pi...

  • Page 155

    Chapter 11: bar code commands for 24-pin printers 117 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 5 values (24-pin printers) value of n 5 start code s...

  • Page 156

    Chapter 11: bar code commands for 24-pin printers 118 select interleaved 2 of 5 bar code command the command for selecting interleaved 2 of 5 is esc dle a m 3 0 n 3 n 4 n 5 n 6 n 7 n 8 interleaved 2 of 5 parameters n 3 and n 4 these parameters set the vertical length of the bars in units of 15/180",...

  • Page 157

    Chapter 11: bar code commands for 24-pin printers 119 interleaved 2 of 5 parameter n 8 this parameter sets whether or not the readable characters are printed. N 8 = 1: print readable characters n 8 = 0: do not print readable characters print interleaved 2 of 5 bar code command the command for printi...

  • Page 158

    Chapter 11: bar code commands for 24-pin printers 120 table 95: ibm/epson select upc a command — start/stop codes and center bars for parameter n 5 values (24-pin printers) value of n 5 start code center bar stop code 1 2 3 4 5 6 7 12/360" 18/360" 27/360" 33/360" 42/360" 48/360" 57/360" 28/360" 38/3...

  • Page 159

    Chapter 11: bar code commands for 24-pin printers 121 upc e parameter n 5 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 5 values (24-pin printers) value of n 5 character widt...

  • Page 160

    Chapter 11: bar code commands for 24-pin printers 122 table 97: ibm/epson select ean 8 command — maximum character widths for parameter n 5 values (24-pin printers) value of n 5 character width 1 2 3 4 5 6 7 35/360" 49/360" 70/360" 84/360" 105/360" 119/360" 140/360" when calculating the width of the...

  • Page 161

    Chapter 11: bar code commands for 24-pin printers 123 select ean 13 bar code command the command for selecting ean 13 is esc dle a m 0 2 n 3 n 4 n 5 0 0 n 8 ean 13 parameters n 3 and n 4 these parameters set the vertical length of the bars in units of 15/180", as calculated by the equation [(n 3 x 1...

  • Page 162

    Chapter 11: bar code commands for 24-pin printers 124 postnet bar code command postnet bar coding is used by the united states post office for sorting mail by automated equipment. It incorporates a coding system using five bars and four spaces for each digit. Select/print postnet bar code data comma...

  • Page 163

    Chapter 12: miscellaneous commands 125 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 command...

  • Page 164: Appendix A: Interfacing

    Appendix a: interfacing 133 appendix a: interfacing this appendix gives the pin assignments for the parallel and serial interfaces of microline printers. It also includes the most common serial cable configurations. Parallel interface note: the parallel cable should be no longer than 6 ft. (1.8m). T...

  • Page 165

    Appendix a: interfacing 134 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 pin signal sym...

  • Page 166

    Appendix a: interfacing 135 commonly used serial cable configurations ibm 25-pin cable configuration computer printer pg 1 1 pg td 2 3 rd rd 3 2 td cts 5 11 ssd dsr 6 20 dtr 6 dsr sg 7 7 sg 4 rts 5 cts ibm 9-pin cable configuration computer printer rd 2 2 td td 3 3 rd sg 5 7 sg dsr 6 20 dtr 6 dsr ct...

  • Page 167

    Appendix a: interfacing 136.

  • Page 168

    Chapter 12: miscellaneous commands 126 cut sheet feeder (csf) commands csf commands (ibm/e) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex insert sheet esc em i 27 25 73 1b 19 49 eject sheet esc em r 27 25 82 1b 19 52 ...

  • Page 169

    Chapter 12: miscellaneous commands 127 delete command (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391 turbo ⻬ ml590, ml591 function ascii dec hex delete one character command del 127 7f this command deletes the last character sent to the printer. It will ...

  • Page 170

    Chapter 12: miscellaneous commands 128 most significant bit commands (epson) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391turbo ⻬ ml590, ml591 function ascii dec hex set most significant bit (msb) to zero esc = 27 61 1b 3d set msb to 1 esc > 27 62 1b 3e cancel ...

  • Page 171

    Chapter 12: miscellaneous commands 129 print suppress mode commands print suppress mode on/off commands (ibm) ⻬ ml320 e/i, ml321 e/i ⻬ ml320 turbo, ml321turbo ⻬ ml520, ml521 ⻬ ml390 turbo, ml391turbo ⻬ ml590, ml591 function ml320 e/i, ml320t, ml520 ml321 e/i, ml321t, ml521 ml390t, ml590 ml391t, ml59...

  • Page 172

    Chapter 12: miscellaneous commands 130 select color command (ibm/e) ⻬ ml590, ml591 function ascii dec hex select color esc r n 27 114 n 1b 72 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.” t...

  • Page 173

    Chapter 12: miscellaneous commands 131 parameters l n and h n parameters l n and h n are used to designate the quantity of data, as follows: l n + (h n x 256) parameter p n parameter p n sets the increment of movement. It can have any value from 0 to 255. Table 101: epson esc ( u command — increment...

  • Page 174

    Chapter 12: miscellaneous commands 132.

  • Page 175

    Appendix c: listing of tables 137 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 ml3...

  • Page 176

    Appendix c: listing of tables 138 table 38: ml esc * command — densities (dpi) for n 1 values............................................... 58 table 39: ml esc * command —speed & word sizes for n 2 values ....................................... 59 table 40: epson esc * m command — 8-pin graphics de...

  • Page 177

    Appendix c: listing of tables 139 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 ...

  • Page 178

    Appendix c: listing of tables 140 parameter n 5 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 select...

  • Page 179: Index

    Index 141 index 9-pin graphics commands ..................... 53-60 24-pin graphics commands ..................... 61-66 a abbreviations ..........................Ix abicomp code page commands ..................... 11-13 absolute dot position command ..........................80 acronyms...............

  • Page 180

    Index 142 l latin american character set commands.................. 9-10 left justification command .......83 margin commands. 69-72, 76 line character set command........8 feed commands ........... 87-89 feed, graphics ....................60 spacing commands ...... 90-93 lotus 1-2-3...................