Download Print this page
OKIDATA OL400e Application Note
Hide thumbs Also See for OL400e:

Advertisement

Quick Links

532 Fellowship Rd. Mount Laurel, NJ 08054
609-235-2600 Fax: 609-778-4184
Document #:
Title: Control Codes for the OL400e / OL410e / OL410e-PS
Replaces Doc #:
Product Model:
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.

Application Note

an OKI AMERICA company
Date: 02/05/96
OL400e, OL410e, OL410e-PS
FAXABLE FACTS 800-654-6651
OKILINK II Support BBS: 609-234-5344
Category: Application

Advertisement

loading
Need help?

Need help?

Do you have a question about the OL400e and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for OKIDATA OL400e

  • Page 1: Application Note

    OL400e, OL410e, OL410e-PS Product Model: 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.
  • Page 2 Commands Specific to OL400e (HP LaserJet Series IIP) OL400e Function Command Notes Select common character pitch ASCII: ESC & k # S Dec: 27 #=0: 10 cpi #=2: 16.66 cpi #=4: 38 107 # 83 12 cpi Primary font default...
  • Page 3 Specify secondary font ASCII: ESC ) s # H Dec: 27 41 #=characters per inch (cpi). character pitch 115 # 72 Default is 10 cpi. Specify primary font character ASCII: ESC ( s # V Dec: 27 40 #=point size (default is 12 pt.) height 115 # 86 Specify secondary font...
  • Page 4 #=10: like Orator Specify font ID ASCII: ESC * c # D Dec: 27 42 #=0 (default) to 32,767 99 # 68 OL400e Font Commands OL400e Font Printer Command Courier 12 point ESC(8U ESC(s 0p 10h 12v 0s 0b 3T...
  • Page 5 Dutch 8 point compressed (B) ESC(0U ESC(s -1p 8v 0s 0b 5T Dutch 8 point (F) ESC(8U ESC(s 1p 8v 0s 0b 5T HP 12 point ZIP code ESC(15Y ESC(s 1p 12v 0s 0b 0T USPS 9.1 point ZIP code, portrait orientation ESC(2X ESC(97Y ESC(s 0p 21.06h 9.1v 0s 0b USPS 9.1 point ZIP code, landscape orientation ESC(12X ESC(97Y ESC(s 0p 21.06h 9.1v 0s 0b 0T...
  • Page 6 OL410e Feature Command Notes OL410e Unique Commands Down load LCD message ESC/d#W[data] PostNet Check Digit Print ESC/b#W[data] Begin multiple collated copies ESC/m#S End multiple collated copies ECS/m#E Specify copy mark ESC/m#M Port lockout/ resume(TRAP) ESC/i#L Auto Emulation(TRAP) ESC DEL# Select 600dpi class graphics ESC*t600R Download 600dpi class bitmap Font Header=20...
  • Page 7 Anchor point at PCL cursor ESC*c0T HPGL/2 horizontal window size ESC*c#X #0.01 to 32,767.99 inches in decipoints HPGL/2 vertical window size in ESC*c#Y #0.01 to 32,767.99 inches decipoints Reset PCL and HPGL/2 ESCE Set PCL rotation in 90 ESC&a#P #0,90,180, or 270; #0: return to increments current default Select transparency pattern...
  • Page 8 Alternate text definition AD knd,val...,knd, val; kndintegers 1 to 7; knd1: char. set specified and val- 32,767.9999 to 32,767.9999; knd2: font spacing specified and val0 or 1; knd3: font pitch specified and val0 to 32,767.9999; knd4: font height specified and val0 to 32,767.9999;...
  • Page 9 Define variable text path DV pat,lin; pat0: text path is hori- zontal to the right; pat1: text path is vertical down; pat2: text path is horizon- tal to the left; pat3: text path is vertical up; lin0 or 1 Rectangle edge absolute EA x,y;...
  • Page 10 Line attributes LA knd,val...,knd,val; When knd1, val1: butt ends, 2: square ends, 3 triangular ends, 4: round ends; when knd2: val1: mitered joins, 2; mitered/ beveled joins, 3: triangular joins, 4: round joins, 5: bev- eled joins, 6: no join applied;...
  • Page 11 Relative arcThree point RT xi,yi,xe,ye,chd xiintermediate x coordinate, yiintermediate y coordinate, xeend x coordinate, yeend y coordinate, chdchord angle; range of xi, yi, xe, and ye is - 67,108,863 to 67,108,863; chd is chord angle Alternate character set SA n; ndecimal ASCII number Bitmap font enable SB n;...
  • Page 12 32,767.9999 Wedge with fill WG r,sa,sw,chd; rradius, sastart angle, swsweep angle, chdchord angle Pen width unit selection WU typ Commands used by OL400e and OL410e OL400e/410e Function Command Notes Carriage return ASCII CR Dec: 13 Backspace ASCII BS Dec: 08...
  • Page 13 # is positive, movement is absolute. OL400e/410e Feature Command Notes Specify vertical cursor position ASCII: ESC & a # V Dec: 27 set in increments: if value of #...
  • Page 14 #=2: delete current font #=3: delete current character code #=4: make font temporary #=5: make font permanent #=6: copy/assign current font OL400e/410e Feature Command Notes Create font ASCII: ESC ) s # W [font data] #=number of bytes of font data...
  • Page 15 ASCII: ESC * c # P Dec: 27 40 #=0: black rule print pattern 99 # 80 #=2: gray scale #=3: predefined pattern OL400e/410e Feature Command Notes Specify pattern ID ASCII: ESC * c # G Dec: 27 40 #=1% to 100% if gray scale is...
  • Page 16 ASCII: ESC / b # W [data] Dec: #=number of bytes of data to calculation and bar code 27 47 98 # 87 [data] follow printing OL400e/410e Symbol Sets Command Menu Display Roman 8 ESC(8U Roman 8 ECMA-94 LATIN 1...
  • Page 17 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 Menu Display Oki Code Page 850 ESC(19U IBM-850 Menu Display Oki Code Page 860 ESC(2037Z IBM-860 Oki Code Page 863...
  • Page 18 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 OL400e/410e Symbol Sets Command Menu Display Roman 8 ESC(8U Roman 8 ECMA-94 LATIN 1 ESC(0N ECMA-94...
  • Page 19 Oki Roman Extension 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 Menu Display Oki Code Page 850 ESC(19U IBM-850...
  • Page 20 Menu Display Oki Code Page 860 ESC(2037Z IBM-860 Oki Code Page 863 ESC(2036Z IBM-863 Oki Code Page 865 ESC(2035Z IBM-865 IBM PC Set 1 ESC(8Q PCSet1 Oki PC Extension ESC(9Q PCExtUS PC Extension Danish ESC(2033Z PCExtDN PC Set 2 US ESC(2034Z PC2 US PC Set 2 Danish...
  • 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...

This manual is also suitable for:

Ol410eOl410e-ps