background image

 

   Application Note 

   532 Fellowship Rd. Mount Laurel, NJ 08054

      an OKI AMERICA company

FAXABLE FACTS  800-654-6651

   609-235-2600    Fax: 609-778-4184

    

OKILINK II Support BBS: 609-234-5344

Document #:

Date:

02/05/96

Category:

Application

   Title: 

Control Codes for the OL400e / OL410e / OL410e-PS

Replaces Doc #:

Product Model: 

OL400e, OL410e, OL410e-PS

This document contains the complete command set for the OL400e, OL410e and the OL410e/PS (PCL 
Mode) printer emulations. Usually these codes will be transparent to the user. We include the command 
set for those software applications which require you to enter printer commands to select printer features. 

About the Escape Sequences

In the sequences below, ESC represents the escape character (decimal 27,
hexadecimal 1B). The letters l and O are printed in italics to distinguish them
from the numbers 1 and 0.

The spaces in the font command sequences were added for legibility. Do not
enter them as part of a command.

In all font-related escape sequences the character `` ( '' is used to indicate
primary font characteristics. You should substitute the character`` ) '' for a
secondary font.

The font commands below include the escape sequences that specify all of each
font's characteristics. In some cases the entire sequence is not necessary to
change fonts, but if you shorten the sequence, keep two things in mind, in
order to avoid unexpected results:

Make sure that the new font you requested (bold or italic, for
example) is available.

Remember that a higher priority font characteristic will override a
lower priority one.

Escape sequences with the same beginning characters can be combined. To do
this, change the final letter of the first sequence from upper case to lower case
and omit the common characters. For example, combining proportional
spacing ESC(s1P with 10 point character height ESC(s10V results in
the following:

ESC(s1p10V
Keep in mind that there should only be one uppercase letter in a combined
sequence, and that uppercase letter must come at the end of the sequence. Also
remember that the commands are executed in the order in which they are
given.

Summary of Contents for OL400e Series

Page 1: ...all font related escape sequences the character is used to indicate primary font characteristics You should substitute the character for a secondary font The font commands below include the escape se...

Page 2: ...tation 2 makes secondary symbol set same as current primary symbol set in current orientation 3 selects default secondary font in current orientation Specify primary font symbol set ASCII ESC ID Dec 2...

Page 3: ...default 1 italic Specify primary font weight ASCII ESC s B Dec 27 40 115 66 7 to 7 1 to 7 light 0 normal default 1 to 7 bold Specify secondary font weight ASCII ESC s B Dec 27 41 115 66 7 to 7 1 to 7...

Page 4: ...10v 0s 3b 3T Courier 10 point italic ESC 8U ESC s 0p 12h 10v 1s 0b 3T Line Printer 8 5 point ESC 8U ESC s 0p 16 66h 8 5v 0s 0b 0T Swiss 14 4 point bold B ESC 0U ESC s 1p 14 4v 0s 3b 4T Swiss 14 4 poin...

Page 5: ...landscape orientation ESC 13X ESC 99Y ESC s 0p 1 18h 64 6v 0s 0b 0T Commands Specific to OL410e HP4 LaserJet Series III Commands LaserJet Series III Font Commands ID Resident Fonts Command Sequence 0...

Page 6: ...C b X must be a multiple of 8 max value 3200 Transfer raster graphics ESC b W decimal ASCII number Full graphics mode ESC b0M Select graphics mode 1 ESC b1M Select graphics mode 2 ESC b2M Select graph...

Page 7: ...urrent pattern N3 current cross hatch pat tern Select advanced graphics source transparency ESC L N 0 transparent 1 opaque Select advanced graphics pattern transparency ESC L 0 0 transparent 1 opaque...

Page 8: ...xiintermediate x coordi nate yiintermediate y coor dinate xeend x coor dinate yeend y coordi nate chdchord angle range of xi yi xe and ye is 67 108 863 to 67 108 863 Character fill mode CF fm ep Circ...

Page 9: ...ht height is 32 767 999 to 32 767 999 Wedge edge EW r sa sw chd rradius sastart angle swsweep angle chdchord angle Primary font by ID FI id 3 id0 to 2048 Secondary font by ID FN id id0 to 2048 Fill p...

Page 10: ...108 863 Pen down PD x1 y1 xn yn Polygon encoded PE flg val x y Range of flg is or 7 Page advance PG n n 32 767 to 32 767 Polygon mode PM n Plot relative PR x1 y1 xn yn Pen up PU x1 y1 xn yn OL410e Fea...

Page 11: ...i fied and val0 or 1 knd3 font pitch specified and val0 to 32 767 9999 knd4 font height specified and val0 to 32 767 9999 knd5 do not use this value knd6 font stroke weight and val 7 3 0 3 7 knd7 type...

Page 12: ...eed ASCII LF Dec 10 Half line feed ASCII ESC Dec 27 61 Form feed ASCII FF Dec 12 Font Characteristics Select primary character set ASCII SI Dec 15 Select secondary character set ASCII SO Dec 14 Page F...

Page 13: ...set in increments Set vertical motion index VMI ASCII ESC l C Dec 27 38 108 67 set in increments 0 126 Move cursor vertically to line indicated VMI unit ASCII ESC a R Dec 27 38 97 82 number of lines i...

Page 14: ...of bytes of font data to follow Down load character ASCII ESC s W character data Dec 27 40 115 87 ASCII value of character Raster Graphics Commands Specify raster graphics density ASCII ESC t R Dec 27...

Page 15: ...SC f Y Dec 27 38 102 89 0 to 32 767 Macro control function ASCII ESC f X Dec 27 38 102 88 0 start macro definition 1 stop macro definition 2 execute current macro 3 call curent macro 4 auto macro over...

Page 16: ...FF 3 CR CR LF LF CR LF FF CR FF Display Function On ASCII ESC Y Dec 27 89 Display Function Off ASCII ESC Z Dec 27 90 Transparent mode ASCII ESC p X data Dec 27 38 112 88 number of bytes of data to fo...

Page 17: ...ion ESC 0E RomanEx Oki Dutch ESC 90D Dutch Oki Swedish 1 ESC 91S Swedsh1 Oki Swedish 2 ESC 92S Swedsh2 Oki Swedish 3 ESC 93S Swedsh3 Oki Code Page 437 ESC 2038Z IBM 437 OL400e 410e Symbol Sets Command...

Page 18: ...icrosoft Publ ESC 6J MS Publ Windows ESC 9U Windows Desktop Type Dir ESC 7J DeskTop Code Page 852 East Europe ESC 17U PC 852 Windows 3 1 Turkish ESC 2043Z Win Tur Windows 3 1 East Europe ESC 9E Win Lt...

Page 19: ...SO 17 German ESC 1G ISO 21 French ESC 0F ISO 25 Chinese ESC 2K ISO 57 Danish Norwegian ESC 0D ISO 60 Norwegian ESC 1D ISO 61 French ESC 1F ISO 69 IBM Portuguese ESC 5S ISO 84 IBM Spanish ESC 6S ISO 85...

Page 20: ...SC 99Y USPS STP OL410e Symbol Sets Command Menu Display Symbol Sets Specific to OL410e Ventura Math ESC 6M VNMath Ventura Int ESC 13J VNInt l Ventura US ESC 14J VN US PostScript Math ESC 5M PS Math Po...

Page 21: ...Code Page 866 Cyrillic 2 ESC 3R PC 866 Window 3 1 Greek ESC 2042Z Win Grk Code Page 869 Greek ESC 2041Z PC 869 Code Page 855 Cyrillic 1 ESC 2031Z PC 855...

Reviews: