Every effort has been made to ensure that the information in this document is complete,
accurate and up-to-date. Mention of software packages manufactured by other
companies does not necessarily constitute endorsement by Oki. We do not assume
responsibility for errors beyond our control, nor can Oki guarantee that changes in the
software and equipment made by other manufacturers and referred to in this book will
not affect the applicability of information in this book.
Oki is a registered trademark of Oki Electric Industry Co. Ltd.
Microline is a registered trademark of Oki Electric Industry Co. Ltd.
Epson is a registered trademark of Seiko Epson Corp.
IBM, IBM PC, PC XT and PC AT are registered trademarks of International Business
Machines Corp.
®
SWISS
is a trademark of Bitstream, Inc.
i
Page 3
Introduction
Oki ML590/91 Elite printers are now equipped with the latest Epson printer control
language called ESC/P2. While supporting ESC/P commands as its subset, ESC/P2
also provides:
–Fonts which can be defined by point size and pitch in one command.
–Font scaling between 8 and 64 points (Courier, Roman and Swiss typefaces).
–Enhanced raster graphics mode.
Your Microline 590/591 Elite incorporates INTELLIGENT HEAD TECHNOLOGY,
Oki’s proprietary method for improving paper handling and print quality. It
automatically senses the thickness of the loaded paper and adjusts the head gap prior
to printing. Therefore with awkward media like envelopes, multi part forms etc., it can
compensate for changes in the thickness of paper. Auto head gap technology means
superior print quality, especially on multi-part forms. It is simple to use as no manual
adjustment is necessary when changing paper types.
Other features of the ML590/591 Elite include:
–Zero tear for better forms management.
–Elimination of the bail arm, for a clearer and more versatile paper path.
–Seven resident fonts (including draft).
–Optional colour ribbon kit.
–Optional bottom push tractor unit, with stand and metal tear bar.
–Optional roll paper stand (ML590 Elite only).
–Single and dual bin cut sheet feeder assemblies.
–Eight resident bar code fonts.
–Fast Letter Quality printing at 120 cps and Draft at 360 cps (at 12 CPI).
ii
Page 4
Contents
Selecting Drivers ....................................................................................... vi
Serial Interfacing (RS-232C) ................................................................. C–5
Serial Interfacing (RS-422A)................................................................. C–7
Menu Selections for Serial Interfacing .................................................. C–10
Local Tests ............................................................................................. C–11
Communication Procedures ................................................................... C–12
v
Page 7
Selecting Drivers
Printer drivers are usually written for a particular model of printer and identified by the
name of that printer. Although most packages offer several selections, they cannot
have drivers for every printer. Therefore, you may have to choose a driver that was not
specifically written for the ML590/591 Elite but is compatible or nearly so. Installing
a driver is normally a simple process of making a selection from a menu. Look for one
of the following printers on your software’s printer driver selection. As you go further
down each list, you will have access to fewer ML590/591 Elite features.
The ML590/591 Elite is the successor to the ML390/391 but with added features. It is
therefore possible to use the ML390/391 printer driver in place of the ML590/591 Elite
driver.
IBMEPSON
EMULATIONEMULATION
Oki ML590/591Oki ML590/591
ML390/391ML390/391
IBM PPR (XL24E)Epson (LQ-850, LQ-1050, LQ-870 and
LQ-1170)
IBM AGM
vi
Page 8
IMPORTANT
The wires in this mains lead are coloured in accordance with the following code:
GREEN AND YELLOWEARTH
BLUENEUTRAL
BROWNLIVE
As the colours of the wires in the mains lead of this apparatus may not correspond with
the coloured markings identifying the terminals in your plug—PROCEED AS
FOLLOWS:
The wire coloured GREEN AND YELLOW must be connected to the terminal in the
plug marked with the letter E or by the safety earth symbol or coloured GREEN or
GREEN AND YELLOW. The wire coloured BROWN must be connected to the
terminal marked with the letter L or coloured RED. The wire coloured BLUE must be
connected to the terminal marked with the letter N or coloured BLACK or BLUE.
Ensure that the mains socket outlet is situated near your printer, for easy access.
WARNING: THIS APPARATUS MUST BE EARTHED
Ensure that your equipment is connected correctly. If you are in any doubt consult a
qualified electrician.
vii
Page 9
Setup
Choose a sturdy table, desk or printer stand to place your printer on when you remove
it from the carton box. Remove the styrofoam sides – be sure to save all packing
materials in case you need to ship the printer again – and check the box for these
contents:
●Oki Microline 590/591 Elite printer
●Paper guide
●AC mains cable
●Platen knob (fitted)
●Ribbon cartridge
●Printer handbook
Paper guide
☞
Printer
Platen knob
SEL
SEL
MENU
LF
SHIFT
FF/LOAD
MICRO FEED
TEAR
DOWN
PRINT QUALITY
MICRO FEED
PARK
DOWN
TOP
TOF
CHARACTER PITCH
TOF
AC Mains cable
Ribbon
Note: If any of these items is missing or damaged, see your dealer for a
replacement.
Interface cable and paper are sold separately.
If paper guide is not found in the accessories pack, it may already
be installed in the printer.
1 – 1
Page 10
Preliminaries
Open the access cover and remove the shipping retainer. (Save the shipping retainer
with the packaging materials, in case you need to ship the printer).
Shipping retainer
PRINT QUALITY
CHARACTER PITCH
QUIET
TOF
TOF
PARK
TEAR
PRINT
FF/LOAD
MICRO FEED
LF
DOWN
SET
MICRO FEED
DOWN
ITEM
SEL
SHIFT
GROUP
SEL
MENU
ALARM
POWER
The platen knob should already be installed, however, if this is not the case , or it has
been removed for any reason, the flat side of the shaft should be lined up with the flat
side of the knob (see diagram).
Platen knob
1 – 2
Page 11
☞
Connecting to Your Computer
Before you can use your printer, you need to attach it to your computer using an
interface cable.
Notes: Interface cables are not supplied with the printer.
Do not connect serial and parallel cables at the same time.
☞
AC mains cable
1.Make sure both your computer and your printer are switched OFF.
2.Attach the AC mains cable to the socket in the rear of the printer, and plug it into
an earthed power source.
Note: Do not use an unearthed adapter with your printer. The printer must
be connected to an earthed power supply.
3.Plug the printer end of your interface cable into the connector at the rear of the
printer.
4.Connect the other end of your interface cable to the printer port on your computer.
Interface cable
1 – 3
Page 12
Installing the Ribbon Cartridge
IMPORTANT
You have just bought the best printer, so be sure to use the only ribbons recommended
for it. Original Oki ribbons are the only ones recommended. Ask for them by name.
Please remember that if you buy any other ribbon your warranty may be invalidated.
Purchasing inferior ribbons really does not make sense. They do not last as long. They
are prone to shredding, which can cause damage to your printhead. That is why any
short term savings on cheaper ribbons are quickly lost.
So do not waste your time and money. Insist on Oki consumables for your Oki printer.
You can order them from your printer supplier.
1.Unpack the ribbon cartridge.
☞
2.Open the printer access cover.
3.Centre the printhead.
Centre the print head
PRINT QUALITY
CHARACTER PITCH
QUIET
TOF
TOF
PARK
TEAR
PRINT
FF/LOAD
MICRO FEED
LF
DOWN
SET
MICRO FEED
DOWN
ITEM
SEL
SHIFT
GROUP
SEL
MENU
ALARM
POWER
Note: The printhead can get very hot during extended periods of printing—
be sure to let it cool off before you touch it.
4.Place the ribbon into the printer, push down so that the cartridge snaps into
position.
5.Turn the blue take-up knob clockwise to take up any ribbon slack.
1 – 4
Page 13
Installing the Paper Guide
SEL
SEL
MENU
LF
SHIFT
FF/LOAD
MICRO FEED
TEAR
DOWN
MICRO FEED
DOWN
PRINT QUALITY
PARK
TOP
TOF
CHARACTER PITCH
TOF
Paper guide
Locate lugs into
grooves in paper
guide, and lift
Paper guide
1 – 5
Page 14
☞
Self Adjust Function
The self adjust function maintains the correct head gap setting and improved print
quality.
When the printer is powered up without paper, the printer starts the self adjust cycle
automatically after initialisation.
Use this function regularly when rear or bottom paper feed is used, and approximately
every one box or 2000 sheets.
Note: The printer ribbon must be installed before the self adjust function
is performed.
•Switch on the printer, the Power/ALARM lamp comes on and the printhead
assembly moves to its home position.
☞
•The Print Quality/Character Pitch lamp comes on.
•The Self Adjust cycle starts.
Note: Before replacing your printers ribbon deselect the printer, this will
centre the printhead (approximately two seconds) and maximise the head
gap (position 9). Once this has been done the old ribbon can be removed
and the new ribbon installed.
1 – 6
Page 15
Loading Rear Feed Continuous-Form Paper
When printing on rear feed continuous form paper use the built-in tractor.
1.Lift the rear paper guide
into the upright position.
2.Move the centre paper supports, on the tractor unit, to the middle of the paper.
Paper lever
Tractor unit
Paper support
3.Move the left hand tractor to the required position. (Pull the lever forwards to
unlock the tractor and slide to adjust. Push the lever back to lock.)
Paper guide removed
for clarity
1 – 7
Page 16
4.Open the tractor covers and set the first two sprocket holes on the paper on the
tractor pins.
Continuous
paper
Tractor cover
Lever
5.Adjust the right hand tractor to the width of the paper.
6.Close the tractor covers.
7.Lower the paper guide back into its horizontal position.
8.Pull the paper lever forwards (to the REAR paper symbol).
9.Press the FF/LOAD button to advance the paper to the front of the printer.
10.Set the Top Of Form, refer to Setting the TOF described in this chapter, to your
requirements and you are ready to print.
1 – 8
Page 17
Loading Single Sheet Paper
(No paper handling options installed)
PRINT QUALITY
SEL
SEL
MENU
EXIT
POWER
SHIFT
ALARM
LFFF/LOAD
Micro Feed
Down
Micro Feed
Up
GROUPITEM
TEARPARKQUIET
SET
PRINT
MENU
TOF
LQ
UTILITY
CHARACTER PITCH
10
RESET
17
COURIER
PRESTIGE
12
20
ROMAN
SWISS
GOTHIC
BOLD
15
PROP
1.If you have continuous-form paper in the printer, use the paper PARK feature to
back it out of the printer. Press the PARK button. The paper will retract from the
front of the printer.
2.Move the paper lever back to the single sheet setting (towards the back of the
printer – middle setting).
3.Raise the paper guide to its upright position.
Paper guides
Paper
4.Place a sheet of paper on the support and adjust the guides for the width of the
paper you are using. Start with the reference mark for the left edge. The paper will
then load automatically .
5.Adjust the TOF if necessary. Refer to Setting the TOF described later in this
chapter.
SEL
SEL
MENU
LF
SHIFT
FF/LOAD
MICRO FEED
TEAR
DOWN
PRINT QUALITY
MICRO FEED
PARK
DOWN
TOP
TOF
CHARACTER PITCH
TOF
1 – 9
Page 18
Printable Ar e a
The default top margin when using single sheets is 0.35 inch (8.89mm). However, the
1
top of form position can be adjusted by micro feed in steps of
position of 0.02 inches (0.5mm) from the top edge of the paper.
¦180 inches to a minimum
0.02 inch
minimum
(0.5mm)
0.02 inch
minimum
(0.5mm)
▼
▲
▼
▲
▲
0.16
inch
(4.1mm)
Additional Area
Additional Area
▲
▲
0.12
inch
(3.0mm)
▲
0.35 inch top
margin default
▼
(8.89mm)
Printable area
▲
0.5 inch bottom
margin default
▼
(12.7mm)
▲
The bottom margin defaults to 0.5 inches (12.7mm) with Bottom Margin Valid set in
the menu. If this menu item is set to Invalid, the bottom margin will be controlled by
the Page Length setting, and will allow printing to a minimum distance of 0.02 inches
(0.5mm) from the bottom edge of the page.
Note: Care should be exercised to ensure that the correct page length
☞
1 – 10
setting is selected when the Bottom Margin Invalid option is chosen, as
overprinting on to the platen roller could occur, damaging both the
printhead and the roller.
Page 19
Paper Park
Switching between continuous-form paper and single sheet paper is particularly easy
with your printer. Its automatic parking feature allows you to back continuous-form
paper out of the paper path at the touch of a button, and at the touch of another button
automatically positions a single sheet. The paper park feature still works when you
have an optional CSF installed on your printer whilst using continuous-form paper.
Continuous-form to Single Sheets
1.Press the PARK button. The continuous-form paper will retract from the paper
path.
2.Move the paper lever back (to the single sheet setting).
3.Press the FF/LOAD button to advance a sheet into the printer.
Single Sheet to Continuous-form
1.If there is a sheet in the printer, press the FF button to eject it.
2.Pull the paper lever forward (to the continuous-form setting).
3.Press the FF/LOAD button to advance the continuous-form paper to the front of
the printer.
1 – 11
Page 20
Setting the TOF
This establishes the position of the first print line on each page. The red line and M
character on the ribbon shield show the baseline of the current position and help place
the TOF where it is needed. To activate TOF press SHIFT and TOF together when the
SEL lamp is out.
If you are using a word processor that sets its own top margin, set the TOF for the
topmost line on the page. Otherwise we recommend positioning the top of the page in
line with the top of the plastic ribbon protector, attached to the printhead mechanism;
the first line of printing will then be about one inch from the top of the page.
1.Press the FF/LOAD button to advance the paper into the printer.
2.Press the SEL button so that the lamp goes out.
3.Continuous-form paper/Single Sheet paper: Hold down the SHIFT button and
use the MICRO FEED buttons corresponding to the direction you wish to move
the page. When the paper is in the correct position release both buttons.
4.Press the SEL button to re-select the printer.
When using the MICRO FEED buttons paper is moved in increments of
allowing accurate positioning of the TOF.
1
¦180 inch
1 – 12
Page 21
Clearing Paper Jams
In the unlikely event that you experience paper jams while using either continuousform paper or single sheets, the following guidelines explain in detail the correct
procedure for the removal and resetting of the jammed paper.
1.Turn the printer OFF.
2.Open the access cover.
3.Tear the paper off at the position of the push/pull tractor if you are using
continuous form paper.
4.If paper is jammed at the ribbon protector, move the printhead assembly away
from the jam carefully (ensure that there is no paper between the ribbon protector
and the platen) and turn the platen knob to feed the remaining paper out of the front
of the printer. If the paper jam occurs before the ribbon protector, turn the platen
knob so that the paper retracts along its loading path.
5.Clear the paper path and ensure that there are no scraps of paper left in the paper’s
loading path or the printer.
6.The printer is now ready for use.
1 – 13
Page 22
☞
Running a Self Test
After you have installed the ribbon and loaded paper, you are ready to run either of the
two self tests. These tests allow you to check that your printer is functioning properly.
Holding down the QUIET/TOF button while switching the printer ON produces a
continuous sample of the default print style.
Note: This sample prints along the entire length of the platen, so be sure
to use wide paper when running this test.
ML591Elite IEEF/W 05.00YR4084-3066-06
F/W 03.03
CG 03.01
Holding down the LF button while turning the printer ON produces a limited sample
of each available print style.
ML591EliteIEEF/W 05.00YR4084-3066-06
CG 03.01
When complete (three pages), the printer stops and the SEL lamp comes on.
To terminate either of these two self-tests, press the SEL button. This will return the
printer to its ready state and the SEL lamp will be lit.
1 – 14
Page 23
Optional Accessories
The following items are optional accessories for your printer.
Instructions for the installation of these items will be supplied with each accessory.
1. Cut Sheet Feeder
Cut Sheet Feeder
2. Pull Tractor and Cover
Available Types:
– Single bin 80 column
– Dual bin 80 column
– Single bin 136 column
– Dual bin 136 column
SEL
SEL
MENU
LF
SHIFT
FF/LOAD
MICRO FEED
TEAR
DOWN
PRINT QUALITY
MICRO FEED
PARK
DOWN
TOP
TOF
CHARACTER PITCH
TOF
Available Types:
– 80 column
– 136 column
3. Bottom Push Tractor Unit, Printer Stand and Tear Bar
Available Types:
– 80 column
– 136 column
Tear Bar
Printer Stand
1 – 15
Page 24
4. Font Card/RAM Card
y
y
Available Types:
INSERT
THIS SIDE UP
– East Europe All
– ECMA-94/Roman 8
ML590/591
– Greek
– OCR All
– Hebrew
FONT CARD
People to People Technolog
Made in Japan
5. Colour Printer Ribbon Kit
Ribbon lifting
mechanism
INSERT
THIS SIDE UP
ML590/591
RAM CARD
People to People Technolog
Made in Japan
32Kb for
Receive Buffer
(total 96Kb.)
Colour printer ribbon
6. Roll Paper Stand
Mounting plate
Ribbon advance key
Roll paper stand
1 – 16
Page 25
☞
7. Serial Interface Board.
Available Types:
– RS-232C Serial Interface board and
Current Loop Serial Interface Board
combined
– RS-422A Serial Interface board
IMPORTANT
Parallel and serial interface cables should not be connected to your printer
simultaneously.
1 – 17
Page 26
Operation
Using the Control Panel
The control panel puts many of your printer’s functions within reach of your fingertips.
It even lets you customise your printer for special applications without programming.
Experiment with these controls and you will see how much your printer can do and how
easy it is to use. The next few pages explain the basics of using the control panel.
SEL
SEL
MENU
EXIT
POWER
SHIFT
ALARM
LFFF/LOAD
Micro Feed
Down
GROUPITEM
Micro Feed
Up
TEARPARKQUIET
SET
MENU
PRINT
TOF
PRINT QUALITY
CHARACTER PITCH
RESET
LQ
UTILITY
10
17
COURIER
PRESTIGE
12
20
ROMAN
SWISS
GOTHIC
BOLD
15
PROP
Basic Controls
POWER light: Lit when On.
ALARM light: Lit to indicate alarm condition: paper out, paper jam, cover open.
LF button: Moves paper up one line (when printer is selected or deselected). If a CSF
is installed on the printer, pressing the LINE FEED button will cause a single sheet to
be inserted when there is no paper in the printer.
FF/LOAD button: Advances paper to the top of the next page (when printer is selected
or deselected). When bottom or rear feed is selected, the paper is loaded from the
tractor.
SHIFT and QUIET/TOF button: When the printer is deselected this button sets the
position of the Top Of Form. The TOF setting is not effective in single sheet mode.
SEL button: Selects or deselects the printer. When selected, the printer is ready to
receive data; when deselected, it will not print. Pressing this button during a self-test
will terminate the test and return the printer to its ready state.
SEL lamp: Lights when printer is selected (ready to receive data); goes out when it is
deselected. The light blinks when the printer is in Print Suppress mode (refer to the
Menu Settings for more details).
2 – 1
Page 27
PRINT QUALITY: Selects the quality and print style of the typeface.
CHARACTER PITCH: Selects the size of the printed characters.
PARK: Selects the park position for continuous paper, allowing single sheets to be fed
from the front of the printer.
TEAR: Advances the paper to the tear off position (serrated bar above acoustic cover),
allowing continuous paper to be torn off at random.
MICRO FEED: Advances the paper 1/180 inch in the direction of the arrows for fine
adjustment (up or down).
When pressing the MICRO FEED button (up or down) with the SHIFT button the
insert position for paper is set.
SHIFT button: Expands the facility of the buttons.
QUIET button: Selects the quiet printer mode.
Switch Combinations
The following buttons have special functions when held down during power up:
LF: Activates the print samples self-test.
LF and SEL: Resets the Menu to the factory settings.
QUIET/TOF: Activates the rolling ASCII print self-test.
SEL and FF/LOAD: Puts the printer into the Hex Dump Mode.
FF/LOAD and TEAR: Returns the printer to the default Menu (factory) settings.
This option also sets the insert position for paper to the factory setting.
PARK and QUIET/TOF: This option sets the insert position for paper to the factory
setting.
2 – 2
Page 28
Button Functions in Menu Select Mode
When the printer is in the MENU select mode, the features listed below the buttons are
activated.
MENU and SHIFT: Enters the MENU mode.
PRINT: Prints the current menu settings.
GROUP: Switches between the broad menu categories (FWD. direction).
SHIFT and GROUP: Switches between the broad menu categories (REV. direction).
ITEM: Displays the features contained in each of the categories (FWD. direction).
SHIFT and ITEM: Displays the features contained in each of the categories (REV.
direction).
SET: Selects and stores the options available for each feature in the menu (FWD.
direction).
SHIFT and SET: Selects and stores the options available for each feature in the menu
(REV. direction).
SHIFT and EXIT: Exits from the menu select mode and returns the printer to its ready
state. The buttons are returned to their basic functions.
SHIFT and PRINT: Prints the current menu group settings.
2 – 3
Page 29
Print Characteristics
The print quality and character pitch buttons let you control basic printing features
through your printer’s control panel:
1.Press the SEL button (SEL light goes out).
2.Press the features that you wish to change (light goes on).
3.Press the SEL button.
The panel always indicates the actual settings of the printer. If you change any of these
features through your software, the panel lights will also change to reflect this feature
choice.
The panel will only allow you to select valid combinations of features. For example,
proportional spacing can only be selected when the print quality choice is set to LQ.
The two printing features available on the control panel offer the following selection
of modes:
Print Quality
There are seven resident fonts which can be selected on your printer. For an example
of each please refer to the self test print out.
similar to a typewriter. Print in COURIER when you
want your correspondence and reports to look especially
polished. You can use COURIER mode to print 10, 12,
15, 17.1 and 20 Characters Per Inch (CPI), as well as
proportional spacing.
ROMANThe ROMAN mode also produces crisp, clean serif
characters in the same way as COURIER. You can use
ROMAN mode to print 10, 12, 15, 17.1 and 20 Characters
Per Inch (CPI), as well as proportional spacing.
GOTHICThe GOTHIC mode also produces crisp, clean sans serif
characters in the same way as COURIER. You can use
GOTHIC mode to print 10, 12, 15, 17.1 and 20 Characters
Per Inch (CPI), as well as proportional spacing.
SWISS BOLDThe SWISS BOLD mode also produces crisp, clean
characters in the same way as SWISS, however the
characters are emphasised. You can use SWISS BOLD
mode to print 10, 12, 15, 17.1 and 20 Characters Per Inch
(CPI), as well as proportional spacing.
SWISSThe SWISS mode also produces crisp, clean sans serif
characters in the same way as COURIER. You can use
SWISS mode to print 10, 12, 15, 17.1 and 20 Characters
Per Inch (CPI), as well as proportional spacing.
PRESTIGEThe PRESTIGE mode also produces crisp, clean serif
characters in the same way as COURIER. You can use
PRESTIGE mode to print 10, 12, 15, 17.1 and 20
Characters Per Inch (CPI), as well as proportional spacing.
2 – 5
Page 31
Serif typefaces:COURIER, ROMAN, GOTHIC
San Serif typefaces:SWISS, SWISS BOLD and PRESTIGE typefaces can
produce clean, crisp letter quality (LQ) characters. Use
these typefaces for professional looking correspondence
and reports.
UTILITYThe Utility mode is ideal for high-volume printing. It is
much faster than LQ, but the printed output is not as
dense as the higher-quality modes. Utility mode supports
all the character pitches.
Character Pitch (width selections)
10, 12, 15, 17.1 and 20 pitch and proportional spacing are available for use with
resident COURIER, GOTHIC, ROMAN, BOLD, SWISS, PRESTIGE and UTILITY
(as proportional).
☞
Note: Pitches available with downloaded fonts are font dependent.
2 – 6
Page 32
Using the Menu Select Mode
The Menu Select mode gives you fingertip control over some of your printer’s most
important features. Menu selections are chosen while in the Menu Select mode and
retained in the printer’s non-volatile memory. In effect your settings become the
default settings, although they can be changed through software commands, through
the control panel or through resetting the menu.
☞
Note: You can override features set on the menu using either the control
panel or commands sent from your computer. However, when you turn off
the printer, features set by those methods will be cancelled. Features set on
the menu will stay in effect, even when the printer is unplugged.
Entering the Menu Select Mode
To enter MENU mode, depress SEL/MENU and SHIFT buttons or depress SEL/
MENU during power up.
Upon entering Menu mode, press the GROUP button to print a group of menu items,
ITEM button to print a single line menu item or the SET button to assign a different
value.
See Key functions for description of operation within the Menu mode.
To exit MENU mode, press the SEL/MENU button together with the SHIFT button.
If conflicting features/functions are set in Menu mode, the printer will treat these
features/functions according to its priority table.
The TOF position is not affected by Menu mode if paper length is not changed. If paper
length changes, set the Menu end position at TOF.
Depressing SEL/MENU + LF or FF/LOAD + TEAR buttons while powering up will
reset the menu back to its factory defaults, (see Factory Settings for further details).
If the Operator Panel is set to Limited Operation, press the SEL/MENU button during
power up in order to enter MENU.
2 – 7
Page 33
☞
The MENU is printed bi-directionally in Utility mode.
Note: If in the middle of the Menu Select mode you should run out of paper,
the red alarm light on the control panel goes on and the printer goes off line.
Reload paper and continue by pressing the SEL button; the printer then
resumes its function in the Menu Select mode.
2 – 8
Page 34
Menu Selections
☞
NOTE: Factory default settings are printed in bold.
Danish I, Swedish I, Italian,
Spanish I, Japanese, Norwegian,
Danish II, Spanish II, Latin
American, French Canadian,
Dutch, Swedish II,
Swedish III, Swedish IV, Turkish,
Swiss I, Swiss II, Publisher
Zero CharacterUnslashed, Slashed
Code PageUSA, Canada-French,
DSR SignalValid, Invalid
DTR SignalReady on Power Up,
Ready on Select
Busy Time200 ms. 1 sec
CSF Bin 1Line Spacing6 LPI, 8 LPI
(when CSF
option is
installed)
2 – 12
Page 38
GroupItemSelections
Bottom MarginValid, Invalid
Page Width (591 E only)13.6", 8"
Page Length11", 112/3", 12", 14", 16.57",
3", 3.5", 4", 5.5", 6", 7", 8", 8.5"
Gap ControlAuto Gap, Semi Auto Gap, 1,
2, 3, 4, 5, 6, 7, 8, 9
CSF Bin 2Line Spacing6 LPI, 8 LPI
(when dual
bin CSF
option is
installed)
Bottom MarginValid, Invalid
Page Width13.6", 8"
Page Length11", 112/3", 12", 14", 16.57",
3", 3.5", 4", 5.5", 6", 7", 8", 8.5"
Gap ControlAuto Gap, Semi Auto Gap, 1,
2, 3, 4, 5, 6, 7, 8, 9
2 – 13
Page 39
Explanation of menu items
Emulation Mode: Select the printer command set you want your printer to use.
Choose Epson LQ series or IBM PPR or AGM.
Print Mode: Choose LQ for Letter Quality printing, Utility for quicker printing.
Pitch: Choose character width measured in characters per inch (CPI), or proportionally
spaced characters.
Style: Choose Normal (upright) or Italics (slanted).
Size: Choose Single or Double width and height.
Character Set: Choose IBM Character Set 1 or Set 2 as the default character set.
Language Set: These sets replace certain symbols with special characters used in the
respective foreign languages (see National Character Sets in Appendix B).
Zero Character: Choose Slashed when it is important to distinguish between a zero
(0) and a capital letter O.
Code Page: This option is available in both IBM and EPSON emulation. This allows
several character sets containing special characters to be accessed using the format
which selects IBM Character Sets 1 and 2 and the All Character Set.
Slashed letter O: Character ¢ (155) and ¥ (157) will be set to ø and Ø if set to YES.
Line Spacing: Choose 6 lines per inch (1/6 inch line spacing) or 8 LPI (1/8 inch
line spacing).
Form Tear Off: Use this option to turn the forms tear off feature ON or OFF or to allow
a wait time after a form feed occurs. When it is set to off, if the printer receives a FF
or end of page is reached and there is no more data, the paper is fed to the TOF position
and the printer is deselected. After the sheet has been removed the user should push the
SEL switch to resume or start a print job. The default setting is OFF.
2 – 14
Page 40
Bottom Margin: If this item is set to VALID, printing will not occur within the bottom
0.5 inch of the paper.
Skip Over Perforation: Choose YES if you want the printer to advance automatically
to the next page when it comes within one inch of the bottom of the page. If your
software has its own page formatting controls, set this item to NO to avoid interference.
Page Width: Choose the width of paper that you are printing on.
Page Length (Inches): Choose the length of the continuous form paper you are using.
This enables the printer to keep track of the initial printing position on each page
(TOF).
Paper Out Override: The paper out detector senses when less than one inch of paper
remains in the printer and stops printing at that point. Choosing YES overrides the
detector so you can print closer to the bottom of the page if you are using single sheets.
Be careful if you use this feature: it lets the printer continue printing when there is no
more paper, which causes loss of data and may damage the printhead and the platen.
The default setting is NO.
Graphics: Choose unidirectional (left to right only) for better graphics print registration
at slower speed. Choose bidirectional for higher print speed.
Receive Buffer Size: Choose the size of the buffer (64K, 32K, 1 Line or 96K with
optional RAM card installed). This allows you to send large jobs to your printer, which
can be held in a larger buffer, and reduce the time that your computer is busy sending
data.
If your computer has problems with device time-outs due to the time taken to clear the
buffer, select a smaller buffer size. The time taken to clear the buffer will be shorter
and the computer will be able to resume transmitting data.
Printhead Gap Control: If this item is set to Auto Gap, every time new paper is loaded
the printhead gap is automatically adjusted. If it is set to Semi Auto Gap, the printhead
gap is automatically adjusted every time the paper source is changed.
If constant thickness paper is used the following gap adjustments can be set for better
throughput.
Wait Time: Is the amount of time delay before the paper is automatically fed, using
the top feed.
Page Length Control: The printer can detect the page length by paper-end sensors if
the Actual Page Length is chosen. Otherwise, the default value is set in the menu.
Print Registration: Use this option with bidirectional bit image graphics to improve
registration. Although 0 is generally the best selection, choosing another value may
compensate for registration problems with some graphics software packages.
Operator Panel Functions: Full Operation is the normal setting. Choose Limited
Operation to deactivate the PRINT QUALITY and CHARACTER PITCH buttons on
the control panel. Then you can control these features only through your software. This
can be useful when several people are using the printer and you do not want its settings
changed.
Reset Inhibit: Choose YES if your software package or computer sends an initialization
command at the start of each job. This initialization command will reset any features
that you may have set to the menu default.
Print Suppress Effective: Select YES when you want the print suppress commands
in each of the emulations to be active. The print suppress commands are ignored when
this option is set to NO.
2 – 16
Page 42
Auto LF: Choose YES to have the printer automatically add a Line Feed command
to each Carriage Return command it receives. The choice depends on whether your
computer adds a Line Feed. If your printout is consistently double spaced, select NO;
if it overprints, choose YES.
Auto CR (IBM): Choose NO to prevent the printer from automatically adding a
Carriage Return to each Line Feed command it receives. This feature only appears in
IBM emulation.
CSF Bin Select: Select Bin 1 or Bin 2 for paper feed option.
SI Select (10 CPI): Selects 17.1 or 15 CPI, in IBM emulation only.
SI Select (12 CPI): Selects 20 or 12 CPI, in IBM emulation only.
Time Out Print: When validated, if the printer does not receive print commands and
nothing is received for 150msec, the buffer characters are printed. If invalidated, the
buffer is not printed until print commands are received.
Auto Select: If selected, after paper is automatically loaded using the FF/LOAD
button, the printer is set to ON-LINE. If NO is selected, the printer does not
automatically come ON-LINE after paper has been loaded.
Ribbon Selection: (Optional Colour Version only). If you are using a colour ribbon,
select the standard printing colour – normally Black. If you are using a black ribbon,
use the BLACK RIBBON selection for longer life.
Printhead Gap Adjust: If print quality is still light after installing a new ribbon, this
item should be set to -1. If paper jams occur, this item should be set to +1. Normally
this is set to 0.
Graphics Speed: Choose HIGH to make low density graphics printing faster.
Centering Position: This feature allows the user to obtain optimum quality and
performance when using smaller paper sizes. It does this by limiting the distance the
printhead has to travel. There are three settings, DEFAULT, MODE1 and MODE2
(591 only).
2 – 17
Page 43
The following options are used when the parallel interface is selected.
I-Prime: Buffer print—when this signal is received, the printer is initialised after the
buffer data is printed. Buffer clear—the printer is initialised after the current line has
been printed. Invalid—This signal is ignored.
Pin 18: This pin supplies 5V or open circuit as required by external device when
connected to interface.
Auto Feed XT(Epson emulation only): There is normally no Line Feed after a
Carriage Return if the Auto Line Feed is set to NO. However, in the Epson emulation,
if the Auto Line Feed is set to NO and the Auto Feed XT is set to valid, a Line Feed
is executed upon an Auto Feed signal on pin 14 of the parallel interface. This exception
may be necessary for some hardware/software combinations.
The following options are used only if the serial interface is selected (see Appendix
C for details).
Parity: Selects parity.
Serial Data 7- or 8- Bits: Selects data format. When the Serial Data 7- or 8- Bits is
set to 7, the Parity must be set to either ODD or EVEN. 7- Bit Serial Data will not be
printed correctly if the Parity is set to NONE.
Protocol: Selects interface protocol.
Diagnostic Test: Activates the printer’s interface diagnostic test.
Busy Line: Selects line used for busy signal.
Baud Rate: Selects data transmission speed.
2 – 18
Page 44
The following options are used when the parallel interface is selected.
Parity: Selects parity.
Serial Data 7- or 8- Bits: Selects data format. When the Serial Data 7- or 8- Bits is set
to 7, the Parity must be set to either ODD or EVEN. 7- Bit Serial Data will not be printed
correctly if the Parity is set to NONE.
Protocol: Selects interface protocol.
Diagnostic Test: Activates the printer’s interface diagnostic test.
Busy Line: Selects the line used for busy signal.
Baud Rate: Selects data transmission speed.
DSR Signal: Sets the Data Set Ready (DSR) signal status.
DTR Signal: Selects Data Terminal Ready (DTR) signal status.
Busy Time: Sets busy signal timing.
Cleaning
Every six months (or after 300 hours of operation), take a clean, dry soft cloth and dust
the area around the carriage shaft and platen. Be sure to remove any loose particles of
paper. Do not use solvents or strong detergents on the cabinet. Be sure to turn the printer
OFF before cleaning.
2 – 19
Page 45
Problem Solving
Why does nothing happen when I turn on the printer?
The printer may not be plugged in. Check the power cord connection to the printer and
the outlet.
Why is the ALARM light on?
Check to see if:
●Paper is out.
●The paper lever is not set for the type of paper that you are using (single sheet or
continuous-form paper).
●The paper or ribbon is jammed.
After correcting the alarm condition, you may have to turn the printer off and on again
to make the ALARM light go out.
Why is the MENU light flashing?
The printer suddenly changes to unidirectional printing, then stops completely and the
MENU lamp flashes.
This is a feature designed to protect the printhead. Heat can build up in the printhead
when it has been printing for a long period of time, so when the printhead reaches a
certain temperature, the printer switches to unidirectional printing. If heat continues to
increase, the printer will stop until the printhead cools down; then it resumes printing.
Why does the printer not print when data is sent from the computer?
You may have the printer deselected (the SELECT light is out). Press the SELECT
button. If the SELECT light still does not come on, even though the POWER light is
on, turn the printer OFF and check that the interface connection from the computer is
secure.
2 – 20
Page 46
Printer Specifications
Print MethodImpact dot matrix
Printhead24 pin
Print speed
Utility360 CPS (characters per second) at 12 CPI
Letter quality120 CPS at 12 CPI
Characters per line ML590 EliteML591 Elite
at 10 CPI80136
at 12 CPI96163
at 15 CPI120204
at 17.1 CPI137233
at 20 CPI160272
Reliability
Mean time between failures6000 hours at 25% duty cycle, 35% page density
Mean time to repair15 minutes
Printhead life200 million characters
Ribbon life4 million characters (black ribbon)
Width76.2 mm to 254.0 mm (3 inch to 10 inch) ML590
76.2 mm to 406.4 mm (3 inch to 16 inch) ML591
2 – 21
Page 47
Continuous forms
Single part forms
Weight45 – 90g/m2 (12 to 24 lb.)
Thickness0.051 mm to 0.124 mm (0.0020 inch to 0.0049 inch)
Multipart-carbon lined or
pressure sensitive
Weight34 – 42g/m2 (9 to 11lb.)
Number of copiesOriginal plus three copies
Thickness0.36 mm max. (0.014 inch max.)
Multipart-interleaf
WeightPaper: 38 – 45g/m2 (10 to 12 lb.)
Carbon: 34g/m2 (9 lb.)
Number of copiesOriginal plus three copies
Thickness0.36 mm max. (0.014 inch max.)
0.44 mmMax. (o.017 inch) – bottom feed only.
Cut sheets
Single part
Weight45 – 90g/m2 (12 to 24 lb.)
Thickness0.051 mm to 0.124mm (0.002 inch to 0.0049 inch)
☞
☞
Envelopes (individual)
Weight90g/m2 (24 lb.) max.
Thickness0.406 mm (0.016 inch max.)
Dimensions165 x 92 mm max. (6.5 inch x 3.625 inch)
225.4 mm x 98.4 mm (8.875 inch x 3.875 inch)
241.3 mm x 104.8 mm (9.5 inch x 4.125 inch)
Card stock
Weight150g/m2 (40 lb.) max.
Thickness0.20 mm (0.008 inch max.)
Dimensions127 mm x 203 mm max. (5 inch x 8 inch max.)
Note: Use with bottom feed only.
Labels
Carrier208.3 mm max. (8.20 inch max.) width
Thickness0.28 mm max. (0.011 inch max.)
Note: Use bottom feed only. Do not use fabric labels. Do not print on the
edge or the perforation of the label.
2 – 22
Page 48
☞
Continuous Envelope
Weight90g/m2 (24 lb.) max.
Thickness0.36 mm max. (0.014 inch max.) – bottom feed only.
No overlapping.
Transparencies (OHPs)
Thickness0.10 mm max. (0.004 inch max.)
Dimensions210 mm (8.20 inch) wide x 297 mm (11 inch) long.
Note: Oki recommend 3M transparencies.
2 – 23
Page 49
Control Code Reference
This chapter describes the printing and formatting features and the codes that control
them. It is not just for programmers, if you want to modify your software to add a
particular function, or if you want to embed extra commands in a document, you will
find the necessary information here. Even if you just use the front panel to control your
printer, the explanations of the features and how they work will be helpful.
In this chapter we list each control code in decimal, hexadecimal and ASCII notation.
The control code table in Appendix A gives you a quick reference for each function
code. Because the printer can emulate four printers, there may be as many as four
different ways to control a particular function, depending on the emulation you have
selected from the menu. To make sure you know which one to use, we have marked
the commands with letters to indicate which emulation they apply to:
E=Epson LQ series (LQ 850/LQ 1050
E2=Epson ESC/P2 series (LQ 870/LQ 1170 See Chapter 4)
P=IBM Proprinter X24E/XL24E
A=IBM Proprinter X24E/XL24E AGM (Alternate Graphics Mode)
In many cases, all emulations use the same commands. In almost all cases, both IBM
emulations use the same commands. Details on specific emulations fall under
appropriate headings. These separate sections only appear when there are differences
among the emulations.
Print QualityDecimalHexASCIIComp
Select LQ/Utility print27 120 n1B 78 nESC x nE
quality
n = 1: Select LQ; n = 0: Select Utility
EPSON
Use utility printing for drafts and other documents that you want to print quickly. LQ
(Letter Quality) printing is slower than Utility, but the characters are crisper and more
like the characters produced by a typewriter. Use LQ for final drafts and important
documents where appearance matters. Your printer’s front panel or the Menu Select
mode can also select print quality.
IBM
You can use the ESC I command to specify LQ or utility printing.
3 – 1
Page 50
Print QualityDecimalHexASCIIComp
Begin emphasised printing27 691B 45ESC EE P A
End emphasised printing27 701B 46ESC FE P A
Begin enhanced printing27 711B 47ESC GE P A
End enhanced printing27 721B 48ESC HE P A
Your printer produces bold type by printing each dot of a character twice instead of
once. In emphasized printing, the pairs of dots are offset horizontally, enhanced
printing is produced with a vertical offset.
You can combine enhanced and emphasized printing for an especially bold effect. For
headlines, try using them in combination with double width characters. You can also
combine emphasized printing with double height characters.
Select TypefaceDecimalHexASCIIComp
Select Typeface27 107 n1B 6B nESC k nE P A
n =0 Roman
1 Swiss
2 Courier
3 Prestige
5 OCR-B (if optional OCR-All font card is installed)
6 OCR-A (if optional OCR-All font card is installed)
122 Swiss Bold
124 Letter Gothic
126 Resident (Courier)
127 Option Card (if any option card is installed)
This command allows you to select a typeface. The resident Courier typeface is your
printer’s default. (A resident font is built into the printer, as opposed to those that are
available on optional font cards.) If you want to select OCR-A or OCR-B you must
have the appropriate font card installed. You can switch easily between resident and
font card typefaces by substituting the appropriate value for the variable in this escape
sequence. You can also use Menu Select mode or the FONT button on the printer’s
control panel to select resident or font card typefaces.
3 – 2
Page 51
ItalicsDecimalH e xASCIIComp
Begin italics27 521B 34ESC 4E
End italics27 531B 35ESC 5E
Begin italics27 37 711B 25 47ESC % GP A
End italics27 37 721B 25 48ESC % HP A
Italic printing is slanted (e.g. OKI) and is used to lend emphasis to phrases, sentences
or entire paragraphs.
If you intend to print an entire document in italics, you may choose to select this
printing style in Menu Select mode.
Outline and ShadowDecimalH exASCIIComp
Begin outline27 113 11B 71 01ESC q SOHE P A
Begin shadow27 113 21B 71 02ESC q STXE P A
Begin shadow and outline27 113 31B 71 03ESC q ETXE P A
Cancel shadow and/or outline 27 113 01B 71 00ESC q NULE P A
☞
Use the outline and shadow effects to produce more interesting and stylish headings.
They can be combined together as well as with emphasised and /or enhanced printing
for an even more striking effect.
Note: Outline and shadow printing commands can only be used for
printing characters, they cannot be used to print line graphics.
Character PitchDecimalHexASCIIComp
Begin 10 CPI (Pica)27 801B 50ESC PE
Begin 12 CPI (Elite)27 771B 4DESC ME
Begin 10 CPI (Pica)1812DC2P A
Begin 12 CPI (Elite)27 581B 3AESC :P A
Begin 15 CPI27 1031B 67ESC gE P A
Character pitch, or width, is measured in Characters Per Inch (CPI). For example, at
1
10 CPI, each character is
/10 inch wide. The double width and compressed printing
commands interact with the basic pitches listed above to produce a range of character
widths. See the Character Width table below for all possible widths.
3 – 3
Page 52
Pitch can also be set in Menu select mode or on the printer’s control panel. In addition,
pitch is one of the features available through the print mode combination commands
in both emulations.
17.1 CPI8.5 CPICannot be compressed
20 CPI10 CPICannot be compressed
ProportionalProportional doubleProportional condensed
* These compressed width values apply to the Epson emulation only. In IBM
emulations, the SI command produces 17.1 CPI and ESC SI produces 20 CPI
regardless of initial pitch.
Proportional SpacingDecimalHexASCIIComp
Proportional spacing27 112 n1B 70 nESC p nE
n = 1: Begin proportional spacing; n = 0 End proportional spacing
Proportional spacing27 80 n1B 50 nESC P nP A
n = 1: Begin proportional spacing; n = 0 End proportional spacing
Proportional spacing adjusts the space between letters to compensate for the varying
widths of individual characters. Unlike fixed spacing, where all characters are formed
within a matrix of uniform width at a specified pitch, proportional spacing gives more
horizontal space to wide characters, such as w or M, and less to narrow characters, such
as I or f. The printed result is more attractive and easier to read than fixed-space
printing.
Because the characters have different widths, proportionally spaced fonts have no
fixed pitch. Therefore, margin settings are only approximate unless your software
specifically supports proportional spacing. Proportional spacing is available only with
Letter Quality (LQ) printing. You can also select proportional spacing in Menu Select
mode or on the printer’s control panel. In addition, proportional spacing is one of the
features available through the print mode combination commands in all the emulations.
3 – 4
Page 53
Double WidthDecimalHexASCIIComp
Double width printing27 87 n1B 57 nESC W nE P A
or28 69 n1C 45 nFS E nE
n = 1: Begin double width printing; n = 0 End double width printing
Begin one-line double width140ESOE P A
printing
Begin one-line double width27 141B 0EESC SOE
printing
End one-line double width2014DC4E P A
printing
Use these commands to produce characters twice as wide as regular characters. For
example, if the current character pitch is 12 CPI, double width characters will print at
6 CPI. The Character Width table shows all the possible combinations. The one-line
double width commands are especially convenient for titles and headlines, since they
turn off double width printing automatically at the end of the line. If you want to cancel
one-line double width printing before the line ends, send a DC4 or ESC W 0 command.
(But note that when you use ESC W 1 to turn on continuous double width printing, the
only way to stop it is with ESC W 0; DC4 has no effect.)
You can also choose continuous double width printing in Menu Select mode.
Epson
The one-line double width command ESC SO is identical in function to the SO
command.
Compressed PrintingDecimalHexASCIIComp
Begin compressed printing150FSIE P A
Epson: depends on current pitch; IBM: prints in 17.1 CPI
Begin compressed printing27 151B 0FESC SIE P A
Epson: depends on current pitch; IBM: prints in 20 CPI
End compressed printing1812DC2E
3 – 5
Page 54
Epson
The SI and ESC SI commands function identically. If the current pitch is 10 CPI, the
compressed printing command will produce 17.1 CPI printing. With a current pitch
of 12 CPI, compressed printing is 20 CPI. When you send the DC2 command, the
printer will return to whatever basic pitch was in effect before you began compressed
printing.
IBM
SI produces 17.1 CPI from all pitches except 12 CPI, while ESC SI results in 20 CPI
printing, no matter what the current pitch is. To turn off compressed printing in the
IBM emulations, send one of the basic pitch commands.
Double HeightDecimalHexASCIIComp
Double height printing27 31 n1B 1F nESC US nE
or27 119 n1B 77 nESC w nE
or28 86 n1C 56 nFS V nE
or
n = 1: Begin double height printing; n = 0 End double height printing
Double height printing produces characters twice as tall as normal size characters. It
can be combined with double width and emphasized printing for an even more striking
effect.
When you use double height printing, you will probably need to adjust the line spacing
to accommodate the taller characters. The variables in the IBM command let you make
this adjustment as you select the height of your characters.
Epson
Begin double height printing by replacing n with 1, and return to normal height printing
by using 0 in place of n. To adjust for the height of the taller letters, use the line spacing
commands described later in this chapter.
3 – 6
Page 55
IBM
This command lets you specify character width and line spacing in addition to
character height. The various combinations of these three features are determined by
the values given to the variables n1 and n2, with n1 controlling character height and
line spacing and n2 controlling character width.
Values for n1 (IBM)
ValueResult
0Current line spacing and character height
1Current line spacing standard character height
2Current line spacing double character height
16Single line spacing current character height
17Single line spacing standard character height
18Single line spacing double character height
32Double line spacing current character height
33Double line spacing standard character height
34Double line spacing double character height
Values for n2 (IBM)
Value Result
0Current character width
1Standard character width
2Double character width
Example (IBM)
To use double height characters with double the normal line spacing, without changing
the width of the characters, use this BASIC statement:
Selects colour printing27 114 n1B 72 nESC r nE P A
Colour printing is available on this printer, however, you must have the optional colour
print ribbon installed. You must also change the menu setting from BLACK RIBBON
to another selection. We recommend BLACK which is the black band of the colour
ribbon. Using this selection, black is selected as the standard colour but all other
colours are also available to you through software commands. Use the ESC r n
command to print in colour. Your selection for n represents a particular colour as
depicted in the following table.
This command underscores all characters, including the space character, but does not
underscore graphics or the space produced by a horizontal tab character.
3 – 8
Page 57
IBM
This command prints a continuous line over all characters, including the space
charcter, but does not overscore the space produced by a horizontal tab command.
OverscoreDecimalHe xASCIIComp
Overscore27 95 n1B 5F nESC _ nP A
n = 1: Begin overscore; n = 0: End overscore
EPSON
This command lets you specify the style and location of line scoring. n1 must be 3, n2
must be 0 and m must be 1. The various combinations of these two features are
determined by the values given to the variables d1 and d2, with d1 controlling the
location of line scoring and d2 controlling the style.
Set Scoring StyleDecimalHexASCIIComp
Set scoring style27 40 451B 28 2DESC ( -E
n1 n2 mn1 n2 mn1 n2 m
d1 d2d1 d2d1 d2
d1Locationd2Style
0Cancel scoring
1Underline1Single line
2Strike-through2Double line
3Overscore5Single, broken line
6Double, broken line
Superscripts/SubscriptsDecimalHexASCIIComp
Begin super/subscript27 83 n1B 53 nESC S nE P A
n = 1: Begin subscript; n = 0: Begin superscript
End super/subscript27 841B 54ESC TE P A
3 – 9
Page 58
Superscript characters are printed above the normal print line, and are used for
2
exponents and special typographic effects (X
; MICROLINE®). Subscripts are handy
for chemical formulae (H
O).
2
If you are using compressed printing, super/subscripts will print as full width
characters. Subscripts cannot be used with double height printing.
Bar Code Selection
This command defines the bar code type size, both for the IBM and EPSON
emulations.
Bar Code SelectionDecimalHexASCIIComp
Bar code selection27 16 651B 10 41 n1ESC DLE AE P A
n1 specifies the the following parameters byte length.
If n1 is 0, 1 or 3 then this command should be ignored.
If n1 is 2, 4, 5, 6, 7 or 8 then this command is valid.
m1 and m2 specifies the bar code type.
m1m2Bar Code
01EAN8
02EAN13
10UPC-A
14UPC-E
20Code 3 of 9
30Interleaved 2 of 5
40Code 128
m3 and m4 specify the bar height in units of
Then average height is (m3 x 10 + m4) x
6
/72 inch.
6
/72 inch.
The value should not exceed the limit of 24.
3 – 10
Page 59
The following codes print the bar code data in uni-directional mode.
Bar Code PrintingDecimalHexASCIIComp
Bar code printing (uni-direct.) 27 16 661B 10 42ESC DLEE P A
n1 (Data)n1 (Data)B n1 (Data
Postnet ZIP Code27 16 671B 10 43ESC DLEE P A
n1 (Data)n1 (Data)C n1 (Data)
n1 specifies the byte length of the following data.
Combined CommandsDecimalHexASCIIComp
Print mode combinations27 33 n1B 21 nESC ! nE
n = 0 to 255
Print mode combinations27 73 n1B 49 nESC | nP A
These commands provide a shortcut for specifying combinations of features in a single
escape sequence. However, the two versions differ both in the features accessible
through the command and in the way you specify those features.
EPSON
The ESC ! command lets you use any combination of the features listed in the table
below. To determine the value of n, add up the values for all the features you wish to
use. To turn off all these features and return to 10 CPI printing, substitute 0 for n.
For example, to print underlined italics at 12 CPI, assign n the value 193 (128 + 64 +
1).
Each time you send the ESC ! 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). This means that
if you have requested 12 CPI underlined italics, and then want to add emphasized
printing to these features, you must add 8 (the value for emphasized print) to 193 and
send the command as: ESC ! 201. Just sending ESC ! 8 would turn off all the other
features as it turned on emphasized print.
Example
To see the range of print styles you can produce with ESC ! n, run the following short
BASIC program, which prints a sample of each possible combination. (Since the
program prints all 256 combinations, it will take a few minutes and about 12 pages for
the entire sample to print.)
10 FOR I = 0 TO 255
20 LPRINT:LPRINT
30 LPRINT CHR$(27);“!”;CHR$(I);“ESC !”;I;“selects this combination.”
40 NEXT I
IBM
This command allows you to select print quality and character spacing for either
resident/font card or downloadable (DLL) fonts. Substitute a value for n from the table
on the next page.
If r1 = 0, no change.
If r1 = 1, fixed pitch defined by p1 and p2 is available.
If r1 = 2, proportional spacing is defined.
Character SpacingDecimalHexASCIIComp
Set character spacing27 32 n1B 20 nESC SP nE
n = 0 to 127
Use this command to adjust the amount of space to the right of each character. This
value is expressed in dots; the number of dots per inch depends on the current print
mode, as shown in the table below.
Character Spacing Increments
Print Quality CPIDPI
LQ10180
12180
15180
17180
20180
Draft10120
12120
15120
17120
20120
Proportional180
Proportional Condensed180
3 – 15
Page 64
National CharactersDecimalHexASCIIComp
Select National Char. Set27 82 n1B 52 nESC R nE
and code pages
Th ese commands allow you to select character sets that replace some less frequently
used characters with symbols used in a variety of European languages.
EPSON
The EPSON Emulation offers a set of national character sets and code pages. The
following tables give the value of n to select the different character sets. The
Multilingual, Portugal, Norway and Turkey code pages are resident in the printer. To
select all other code pages, the relevant IC card containing the code page must be
inserted in the IC card slot.
When a code page is selected and national character set command is sent, the code page
will be reset to USA (All Character Set).
When the code page selection command is sent, the national character set will be reset
to default.
3 – 16
Page 65
National Character Sets / Code Pages Epson (ESC R n)
Epson National Character Sets (selected by ESC R n)
This table shows the ASCII character and the corresponding characters that it is
replaced with, when an alternative language character set is selected by menu or
command.
Note: For Code Pages, Character Sets, refer to Appendix B.
☞
3 – 18
Page 67
National Character Sets IBM
Value of nNationalityValue of nNationality
64ASCII (slashed zero)73Italian
65ASCII (unslashed zero)74French Canadian
66British75Spanish
67German76Swedish II
68French77Swedish III
69Swedish I78Swedish IV
70Danish79Turkish
71Norwegian80Swiss I
72Dutch81Swiss II
90Legal/Publisher
IBM National Character Sets (selected by ESC ! n)
This table shows the ASCII character and the corresponding characters that it is
replaced with, when an alternative language character set is selected by menu or
command.
3 – 19
Page 68
Select Italics/Graph. Chars. DecimalHexASCIIComp
Select italics/graphics or DLL 27 116 n1B 74 nESC t nE
or28 73 n1C 49 nFS | nE
n = 0 italics; n = 1: graphics; n = 2: DLL, n = 3: USA (only for ESC t n)
Epson
You can specify the set of characters to occupy decimal values 160 to 255, either italic
characters or a set of special symbols and graphics characters. Refer to Appendix B for
the tables of these characters. You will notice that with either of these sets selected, the
characters from decimal 128 to 159 are either control codes or are unused.
If you want to use one of the IBM character sets, you will first have to send this
command, selecting graphics characters by substituting 1 for the variable n. If you have
downloaded (DLL) custom characters (refer to Chapter 5), the upper half of the
character table (from 128 to 255) is replaced by the DLL characters that you have
created.
When you create characters they are assigned values from 0 to 127, therefore when
n=2, and they are copied to the upper half of the table you must add 128 to the assigned
value in order to print them. If you select n = 2 without defining any characters, the
characters in the lower half of the table are duplicated in the upper half.
IBM Character SetDecimalHexASCIIComp
Select IBM Char. Set 127 551B 37ESC 7E P A
Select IBM Char. Set 227 541B 36ESC 6E P A
Both of these character sets contain special symbols and graphics characters in addition
to the standard alphanumerics. The difference is that in Set II, decimal values 3 to 6,
21, and 128 to 159 represent printable characters, while in Set I, these positions are
either occupied by control codes or unused. Refer to Appendix B for the character
tables.
3 – 20
Page 69
All Character SetDecimalHexASCIIComp
Select All Char. Set27 92 n1 n21B 5C n1 n2ESC \ n1 n2P A
n1, n2 = 0 to 255
Print one char. in All Char.27 941B 5EESC ^P A
Set
IBM
The All Characters Set, shown in Appendix B, contains only printable characters,
with the exception of decimal codes 0 and 255. Besides giving you a broad range of
graphics characters and other special symbols, the All Characters Set is a handy
debugging tool for programmers, since you can print out and examine files that contain
control codes and escape sequences.
If you just want to print a single character from this set, use the ESC ^ command. The
next character printed will be taken from the All Characters Set.
Printing continuously from the All Characters Set is a little more complicated, because
you have to specify how many characters you intend to print. If you are printing fewer
than 256 characters, substitute the number of characters for the variable n1, and replace
n2 with 0. To print 256 or more characters, divide the number of characters you want
to print by 256. Replace n2 with the whole number result, and assign the remainder to
n1.
When you send this command, the next n1 +(n2 x 256) characters will come from the
All Characters Set.
Examples
To print the next 80 characters from the All Characters Set, use this BASIC statement:
LPRINT CHR$(27);“\”;CHR$(80);CHR$(0)
To print the next 600 characters from the All Characters Set, use this BASIC statement:
LPRINT CHR$(27);“\”;CHR$(88);CHR$(2)
(600 divided by 256 is 2, with a remainder of 88.)
3 – 21
Page 70
Code Page
Normally the Code Page USA is the base for printable characters for the IBM Character
Sets I and II and the All Character Set. In sets I and II some areas are used for control
codes, in the All Character Set all 255 positions are printable.
These printable characters are reassigned using the Code Page option, the control codes
in the IBM sets I and II do not change.
To select code pages in IBM emulation, take the IBM ID number and divide it by 256.
Assign this number to n1 and the remainder to n2. The Multilingual, Portugal, Norway
and Turkey code pages are resident in the printer. To select all other code pages the
relevant IC card containing the code page must be installed in the IC card slot.
Example
To specify code page 850 use this BASIC statement:
437*USA
850*Multilingual
851Greek
852East Europe
853(reserved)
855Cyrillic I
857Turkey
860*Portugal
862Hebrew NC
863*Canada-French
865*Norway
866Cyrillic II
869Greek
3 – 22
Page 71
IDCode Page
895Kamenicky (MJK)
1000Greek ABG
1001Greek ABC
1002Greek DEC
1008Greek 437
1009Greek 928
1010Greek 851
1011Greek 437 Cyprus
1012*Turkey
1013Cyrillic
1014Polska Mazovia
1015ISO Latin 2
1016Serbo Croatic I
1017Serbo Croatic II
1018ECMA-94
1019Windows East Europe
1020Windows Greek
1021Windows Turkey
1022Windows Cyrillic
1023Windows ANSI
1024Hungarian CWI
1025HP 3000
1030Hebrew NC (862)
1031Hebrew OC
* These code pages are resident.
☞
3 – 23
Page 72
Set Left and Right MarginDecimalH exASCIIComp
Set left margin27 108 n1B 6C nESC l nE
n = 0 to 255
Set right margin27 81 n1B 51 nESC Q nE
n = 1 to 255
Set Left and Right MarginDecimalH exASCIIComp
Set left and right margin27 88 n1 n21B 58 n1 n2ESC X n1 n2P A
n1 = left margin n2 = right margin; n1 = 0 to 245 n2 = 1 to 255
In both margin commands, you set margins by columns. The actual position of the
margin depends on the current pitch: a margin of 10 columns will come out as one inch
in 10 CPI and one half inch in 20 CPI. However, once you have set a margin, its
absolute position remains the same, even if you change pitch, until you specifically
reset the margin. This saves you the work of adjusting margins with every pitch change
in your document.
You should always send margin commands at the beginning of a line.
Be sure to specify a right margin that is at least one more than the left margin.
Epson
Sending the left margin command will cancel any horizontal tab stops you may have
set, returning the printer to its default of tab stops every eight columns.
If you just want to change one of the margins, give a value of 0 for the margin you do
not want to change. The default left margin for the two IBM emulations is 1; for default
right margins, see the table below.
PitchML590ML591
10 CPI80136
12 CPI/proportional96163
15 CPI120204
17.1 CPI137233
20 CPI160255
JustificationDecimalHexASCIIComp
Justification27 97 n1B 61 nESC a nE
n = 0 : Left; n = 1: Centre; n = 2: Right; n = 3: Full (left and right)
Epson
This command lets you specify the alignment of text on the page: along the left or right
margin, centred between the margins, or along both the left and right margins. When
you are using centre, right or full justification, the backspace character (ASCII BS,
decimal 8) will not function. If you are using full justification, use a carriage return only
at the end of a paragraph, not at the end of each line.
3 – 25
Page 74
Horizontal TabsDecimalHexASCIIComp
Horizontal tab909HTE P A
Set horizontal tab stops27 681B 44ESC DE P A
n1...nk 0n1...nk 00n1...nk NUL
Epson: n = 1 to 255; k = 1 to 32; IBM: n = 1 to 255; k = 1 to 28
When you turn on your printer, its tab stops are automatically set for every eight
columns. Each time you send a tab character (ASCII HT, decimal 9), the printhead
moves 8 columns to the right before printing the next character.
In all three emulations, you can use the ESC D command to set horizontal tab stops
at specific columns on the page. As with margins, the actual position of the stops
depends on the pitch you are using, and will not change if you switch to a different
character width. Be sure to give the stops in ascending order, and after you have
specified all the stops, end the sequence with a NUL character (use CHR$(0) in
BASIC).
If you send the command as ESC D NUL, with no stops specified, all horizontal tab
stops will be cleared, including the 8-column default stops. Turning the printer off and
on again restores the printer’s default tab stops of every eight columns.
Epson
You can set up to 32 tab stops.
Setting a new left margin or sending the Reset command (ESC @) will also restore the
default tab stops.
You can set up to 28 tab stops in both emulations.
ESC R resets tab stops to the default.
Vertical TabDecimalHexASCIIComp
Vertical tab110BVTE P A
Set vertical tab stops27 661B 42ESC BE P A
n1...nk 0n1...nk 00n1...nk NUL
Epson: k = 1 to 16; n = 1 to 255 IBM: k = 1 to 64; n = 1 to 255
When you turn the power on, your printer does not have any vertical tab stops. Sending
a VT command with no stops set results in a single line feed.
You can use the ESC B command to set a series of vertical tab stops. Once you have
set the stops, each time you issue a VT command the paper will move up to the next
stop position. You must enter the stops in ascending order, ending the series with a
NUL character. ESC B NUL will delete all vertical tab stops.
The actual position of the stops depends on the line spacing in effect when you send
the ESC B command. For example, at 6 lines per inch, a tab stop of 24 will appear four
inches from the top of the page, whereas at 8 lines per inch, the stop will be positioned
three inches from the top of the page. However, once you have set the vertical tab stops,
their position is absolute, and will not move, even if you change the line spacing later.
An ESC B NUL command will cancel all the vertical tabs which have been set.
Epson
Up to 16 stops are allowed.
IBM
Both emulations give you as many as 64 stops.
3 – 27
Page 76
Vertical Tab ChannelDecimalHexASCIIComp
Select vertical tab channel27 47 n1B 2F nESC / nE
Select vertical tab stops27 98 n1B 62 nESC b nE
for channel nm1...mk 0m1...mk 00m1...mk NUL
n = 0 to 7; m = 1 to 255; k = 1 to 16
Epson
You have the option of setting up to eight separate sets—called channels—of vertical
tab stops. The command to set vertical tab channels, ESC b, uses the same principles
as ESC B: stops are listed in ascending order, and the list ends with NUL. You have
to specify which channel you are setting stops for, by giving a value from 0 to 7 for
the variable n. Once you have set up the stops in the channels you are using, you
perform the vertical tabs by sending the ESC / command to specify a channel, followed
by VT.
Example
The following BASIC program sets stops in three channels, and then performs a series
of vertical tabs in the different channels:
CHR$(55);CHR$(0)
40REM Stops in channel 2: lines 12, 24, 48
50LPRINT CHR$(27);“b”;CHR$(2);CHR$(12);CHR$(24);CHR$(48);CHR$(0)
60LPRINT CHR$(27);“/”;CHR$(1): REM Select channel 1
70LPRINT CHR$(11);“This prints on line 5”
80LPRINT CHR$(11);LPRINT CHR$(11);“This prints on line 35”
90LPRINT CHR$(27);“/”;CHR$(2): REM Select channel 2
100LPRINT CHR$(11);“This prints on line 48”
110LPRINT CHR$(27);“/”;CHR$(0): REM Select channel 0
120LPRINT CHR$(11);“This prints on line 50”
3 – 28
Page 77
Relative TabDecimalHexASCIIComp
Set relative tab stops27 101 n m1B 65 n mESC e n mE
n = 1: Vertical tabs; n = 0: Horizontal tabs; m = 0 to 127
Executive relative tab27 102 n m1B 66 n mESC f n mE
n = 1: Vertical position; n = 0: Horizontal position; m = 0 to 127
Epson
These commands use the current print position as a reference point, rather than the top
of the page or the left margin. If n=0, the movement from the current print position is
horizontal, and m represents character spaces from the print position. If n= 1,
indicating vertical movement, m represents the number of lines from the current print
position. Once you have set relative tab stops, use the regular HT and VT commands
to move to the stop position. The ESC f command provides one-time positioning.
Reset Horiz./Vert. TabsDecimalHexASCIIComp
Reset horiz./vert. tabs to27 821B 52ESC RP A
default
IBM
Use this command to cancel any tab stops you have set and return to the printer’s
defaults. This means that horizontal tab stops will occur every eight columns, and that
there will be no vertical stops—a VT command will just produce a single line feed.
Space backwards27 101 n1 n21B 65 n1 n2ESC e n1 n2P A
This command moves the print position a specified number of n/120 inches to the left
of the current position.
To calculate the values of n1 and n2, divide the number of dots (n) you want to move
by 256, the result is n2 and the remainder is n1.
n = n1 + n2 * 256
Values beyond the left margin will result in a jump to the left margin.
These commands let you place text or graphics very precisely on the page. (For precise
vertical positioning, see the description of the fine line feed and line spacing
commands.)
In all of the commands, determine the values of the two variables by dividing the
desired dot position by 256; assign the whole number result to n2 and the remainder
to n1.
3 – 30
Page 79
Epson
The ESC $ command uses the left margin as a reference point, and moves the print
position in
1
/60 (default setting)inch increments.
The ESC \ command lets you move the print position to either the right or the left of
the current print position. Underline and overscore characters do not print in the space
1
between the two positions. The default settings are
/180" (LQ) and 1/120" (UTL).
The ESC ( U command (ESC/P2) sets the print positioning parameters that the printer
1
uses when calculating other commands. The available values are
1
/90", 1/72", and 1/60".
/360", 1/180 ", 1/120",
First determine the distance you want to move. Movement is measured in dots, and the
number of dots per inch depends on the current print mode. Use the Horizontal Position
Units table to calculate the number of dots you want to move.
Horizontal Position Units
Print modeDPI Dots per line
ML590 EliteML591 Elite
Utility1209601632
LQ18014402448
(These are default settings).
If you want to move to the right, use the method described above to calculate n1 and
n2. If you are moving to the left of the current print position, subtract the number of
dots from 65536, then calculate the values of n1 and n2 as described above.
IBM
1
The ESC d command moves only to the right of the current print position in
/120 inch
increments. Underline and overscore will print in the space moved using this
command.
3 – 31
Page 80
Line FeedDecimalHexASCIIComp
Line feed100ALFE P A
Fine line feed27 74 n1B 4A nESC J nE P A
n
n = 0 to 255 Epson LQ, IBM X24E/XL24E/AGM: line feed is
IBM Proprinter X24E/XL24E: line feed is
n
/216inch
/180inch
Fine line feed (
n = 0 to 255
Fine line feed (
n = 0 to 255
Reverse
n = 0 to 255
Reverse line feed27 931B 5DESC ]P A
Line feed direction backward28 821C 52FS RE
Line feed direction forward28 701C 46FS FE
n
n
/360 inch)27 93 n1B 5D nESC ] nE
n
/360 inch)27 37 52 n1B 25 34 nESC % 4 nP A
/180 inch line feed27 106 n1B 6A nESC j nE
The line feed command (ASCII LF, decimal 10) makes the printer print a line and then
moves the print position down one line on the page. If Auto CR is ON in the menu,
this line feed also results in a carriage return, which puts the print position at the left
margin.
The amount of vertical movement depends on the current line spacing. (See “Line
Spacing” for details.) This command also cancels one-line double width printing.
Unlike the simple LF code, the fine line feed commands are not accompanied by a
carriage return, and do not cancel one-line double width printing. If you substitute 0
for n in any of these commands, no line feed will be performed.
The fine line feed commands are ideal for printing graphics, since they give you precise
control over the vertical placement of dots in an image. The Graphics Fine Line
Spacing table below shows how to set line feeds for graphics so that the rows of dots
will not overlap or leave spaces vertically.
3 – 32
Page 81
Graphics Fine Line Spacing
Line feed/line spacingValue of n
n
/21624
n
/36020
n
/36040
Epson
The line feed direction commands determine the platen movement of subsequent line
feed commands. The line feed direction backwards command reverses the normal
direction of the line feed commands. Any line feed command which follows the line
feed direction backwards command is acted upon as though it were a reverse line feed
command; a reverse line feed command initiates a forward line feed.
The line feed direction forward cancels this reversal of movement, and all subsequent
line feeds commands are acted upon in the normal manner.
n
Use the reverse line feed command to move the paper up in
/180 inch increments. The
paper will not advance beyond the top of form position.
3 – 33
Page 82
Line SpacingDecimalHe xASCIIComp
Begin
Begin
Begin
1
/8 inch line spacing27 481B 30ESC 0E P A
7
/72 inch line spacing27 491B 31ESC 1P A
1
/6 inch line spacing27 501B 32ESC 2E
Set variable line spacing27 65 n1B 41 nESC A nE P A
n
Epson: n = 0 to 127 spacing is
IBM XL24E/AGM n = 1 to 255 spacing is
/60 inch IBM Proprinter: n = 1 to 255 spacing is n/72 inch
n
/60 inch
Activate variable line spacing 27 501B 32ESC 2P A
Begin fine line spacing27 51 n1B 33 nESC 3 nE P A
Epson: IBM XL24E/AGM: n = 0 to 255 spacing is n/180 inch IBM Proprinter n = 1 to 255
spacing is
Begin
n
/216 inch
n
/360 inch line spacing27 91 n1B 58 nESC [ nE
or27 43 n1B 2B nESC + nE
or28 51 n1C 33 nFS 3 nE
n = 0 to 255
n
Begin
/360 inch line spacing27 37 56 n1B 25 38 nESC % 8 nP A
n = 1 to 255
Set line spacing units27 91 92 41B 5B 5C 04 ESC [ \ EOTP A
0 0 0 0 n00 00 00 00NUL NUL
nNUL NUL n
The most common spacings for text are 6 and 8 Lines Per Inch (LPI). A spacing of 8
LPI works well with compressed character pitches, and lets you fit more lines on a
page.
Several of these commands let you control vertical movement in very fine units, which
helps with the precise placement of graphics. The Graphics Fine Line Spacing table
shows the values to include in these commands so that the rows of dots will not overlap
or leave spaces in graphic images. (See also ESC 1 in the IBM emulations.)
3 – 34
Page 83
Epson
The ESC A command both sets and begins n/60 inch line spacing.
IBM
You must use the ESC A and ESC 2 commands together. ESC A specifies line spacing
n
of
/72 inch or n/60 inch, and then the ESC 2 command tells the printer to begin using the
new line spacing. (The other commands both specify and begin spacing.) If you send
an ESC 2 command without first using ESC A, the printer will reset the line spacing
to the current menu setting.
You can use the ESC [ \ command to change the units used in the fine line commands
ESC 3 and ESC % 8. The only possible values for n are 180 for
n
/216 inch spacing; and 0 to keep the current unit.
for
Form feed/form lengthDecimalHexASCIIComp
Form feed120CFFE P A
Set form length in inches27 67 0 n1B 43 00 nESC C NUL nE P A
n
/180 inch spacing; 216
Epson: n = 1 to 22 IBM: n = 1 to 50
Set form length by lines27 67 n1B 43 nESC C nE P A
Epson: n = 1 to 127 IBM: n = 1 to 255
Epson Max. 50 inches
IBM Max. 50 inches
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.
You can specify a form length in either inches or lines. If you will most often be using
one of the standard page lengths listed on the menu, we recommend using Menu Select
mode to set a default form length, and then using one of the form length commands
whenever you want to change it temporarily.
When you use ESC C or ESC C NUL to change the form length, the skip over
perforation setting is cleared.
3 – 35
Page 84
☞
Skip over perforationDecimalHexASCIIComp
Skip over perforation27 78 n1B 4E nESC N nE P A
Epson: n = 1 to 127 IBM: n = 1 to 255
Cancel skip over perforation27 791B 4FESC OE P A
If skip over perforation is set to YES on the menu, the printer will automatically skip
an inch from the bottom of one page to the top of the next form. Use the ESC N
command to change the number of lines skipped. The actual amount of space skipped
between pages varies with the current line spacing. After you have set the skip size,
it will not increase or decrease if you change line spacing. The ESC O command
cancels the perforation skip.
Note: The skip over perforation feature will interfere with page formatting
controlled by software packages such as word processors. If you are using
a package that controls page length directly, you should set the SKIP
OVER PERFORATION item in the menu to NO.
Top of formDecimalHexASCIIComp
Set top of form27 521B 34ESC 4P A
Vertical margins setting27 91 831B 5B 53ESC [ S n1P A
n1 n2 m1 m2n1 n2 m1 m2 n2 m1 m2
p1 p2p1 p2p1 p2
n1 n2:numbered parametersn1 + 256 x n2
m1 m2: top margin256 x m1 + m2
p1 p2:bottom margin256 x p1 + p2
n1 and n2 are the number of bytes in the sequence. Normally this will be four so n1
= 4 and n2 = 0, or two n1 = 2 and n2 = 0.
m1 and m2 defines the top margin distance from the top of form to the top edge of the
first line. The unit is
n
/1440 inch.
p1 and p2 defines the bottom margin distance from the top of form to the top edge of
n
the bottom margin. The unit is
/1440 inch.
3 – 36
Page 85
Carriage returnDecimalHexASCIIComp
Carriage return130DCRE P A
When it receives this command, the printer will print data from the print buffer and
return the printing position to the beginning of the line. If Auto Line Feed is ON in the
menu, the printer adds a line feed to each carriage return. This command cancels oneline double width printing.
BackspaceDecimalH exASCIIComp
Backspace808BSE P A
The backspace command prints any data that is in the print buffer and moves the
printhead one character to the left. The actual width of the backspace depends on the
current pitch. If you are using proportional spacing, the BS command moves the
printhead 1/10 inch to the left.
ResetDecimalHe xASCIIComp
Reset (initialise printer)27 641B 40ESC @E
or28 641C 40FS @E
or27 125 001B 7D 00ESC } NULE P A
or27 91 751B 5B 4BESC [ KP A
n1 n2 m1n1 n2 m1n1 n2 m1
m2 m3 m4m2 m3 m4m2 m3 m4
(n1 + n2 x 256) stands for the following parameters byte length.
m1 specifies the initialistaion mode.
m2 specifies the ID number of the printer, 03H, 16H, 23H or 24H (to be specified).
m3 and m4 specify the menu setting, after initialisation.
This command removes any data in the printer’s buffer and returns the printer to the
current menu settings. It will override any features set on the printer’s front panel. This
is also called initialisation. If Reset Inhibit is YES in the menu, these commands will
be ignored .
3 – 37
Page 86
Many software packages send the reset command to initialise the printer before or after
printing. This is done to make sure that settings from a previous print job do not
accidentally carry over into the next one. However, this could interfere with settings
you have made on the control panel or through control codes.
If your software lets you add or modify initialisation strings (also called setup strings),
you can eliminate reset commands you do not want, or add them where you want to
be sure the printer is set to its defaults (the menu settings). Check your software manual
for details on modifying initialisation strings.
Clear bufferDecimalHexASCIIComp
Clear buffer2418CANE P A
This command clears all the data from the print buffer, but does not reset printing
features that have been set using control codes.
Delete one characterDecimalHexASCIIComp
Delete one character1277FDELE
Epson
This command deletes the last character sent to the printer. It will not delete graphics
data, and only deletes one space of a horizontal tab skip.
Automatic line feedDecimalHexASCIIComp
Automatic line feed27 53 n1B 35 nESC 5 nP A
n = 1: Activate auto line feed n = 0: Deactivate auto line feed
IBM
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 menu.
3 – 38
Page 87
Unidirectional printingDecimalHexASCIIComp
Unidirectional printing27 85 n1B 55 nESC U nE P A
n = 1: Begin unidirectional printing n = 0: Begin bidirectional printing
Your printer is designed to maximise speed by printing alternately from the left and
right (bidirectional printing), rather than moving the printhead back to the left margin
so that each line prints from left to right (unidirectional printing).
Use unidirectional printing when precise vertical alignment from line to line is critical.
You can also select unidirectional printing in Menu Select Mode.
One line unidirect. printing DecimalHexASCIIComp
One line unidirect. printing27 601B 3CESC <E
Epson
This command activates unidirectional printing for one line only.
Printing speedDecimalHexASCIIComp
Printing speed27 115 n1B 73 nESC s nE
n = 1: Begin half speed printing n = 0: Begin full speed printing
Epson
Use this command to control the speed of printing. Half speed printing is quieter than
full speed.
Set the MSB to 1 or 0DecimalH exASCIIComp
Set the 8th data bit to 127 621B 3EESC >E
Set the 8th data bit to 027 611B 3DESC =E
Accept data as is27 351B 23ESC #E
3 – 39
Page 88
Epson
The ESC > command sets the most significant bit (MSB) of an 8-bit data input to 1.
The ESC = command sets the MSB to 0. ESC # cancels MSB control established by
either ESC > or ESC = and all data is interpreted exactly as sent from the computer.
Print suppress modeDecimalH exASCIIComp
Begin print suppress mode1913DC3E
Begin print suppress mode27 81 n1B 51 nESC Q nP A
n = 1: Begin half speed printing n = 0: Begin full speed printing
Begin print suppress mode27 1061B 6AESC jP A
End print suppress mode1711DC1E P A
After the printer has received one of the commands to begin print suppress mode, it
ignores all data until it receives the DC1 command. The SEL light will blink when the
printer is in print suppress mode.
Paper-Out Override
Any time you want to disable the paper-out switch to keep the printer printing to the
very bottom of the page, enter:
Paper out sensorDecimalH exASCIIComp
Paper out sensor OFF27 561B 38ESC 8E P A
Paper out sensor ON27 571B 39ESC 9E P A
Emulation Mode
This command will change the emulation of the printer to the specified mode.
Note: The following commands are active only when the optional Cut
Sheet Feeder is installed on the printer.
Insert pageDecimalHexASCIIComp
Insert page27 25 731B 19 49ESC EM IE P A
This command feeds a sheet of paper from the CSF to the top of form position. If paper
is already in the printer, the printer will eject the page and load another.
Eject pageDecimalHexASCIIComp
Eject page27 25 821B 19 52ESC EM RE P A
This command prints data in the print buffer and ejects the page.
Select binDecimalHexASCIIComp
Select bin 127 25 491B 19 31ESC EM 1E P A
Select bin 227 25 501B 19 32ESC EM 2E P A
With these commands you can select the bin from which the paper will be fed, if you
have a dual bin CSF. If you are working with a Dual Bin Cut Sheet Feeder you can use
the following commands to select between the bins:
A separate TOF can be set for each of the bins on the CSF. This enables you to print
on letter-headed paper, fed from one bin, leaving a large margin, followed by printing
on pages fed from the other bin with a smaller margin.
Cut sheet feeder controlDecimalHexASCIIComp
Cut sheet feeding27 91 701B 5B 46ESC [ FP A
n1 n2 m1n1 n2 m1n1 n2 m1
m2 m3m2 m3m2 m3
n1 n2:number of parametersn1 + n2 * 256
m1:paper feeding method
m2:reserved
m3:bin number
3 – 41
Page 90
n1 and n2 are the length bytes, normally n1 = 3 and n2 = 0.
m1 defines paper feeding method; m2 is always set to 1; m3 defines the bin number.
These commands select the factory setup and menu defaults as shown above, then
initialize the printer.
Pno=Length of the following parameters (MSB is invalid).
This changes the current menu setting and parameters as follows:
Panbit6 = 1 (fixed)
MSB is invalid
40H (C0H) <= Pa <= 7FH (FFH)
Pbnbit6 = 0 (fixed)
MSB is invalid
00H (80H) <= Pa <= 3FH (BFH)
3 – 42
Page 91
ESC/P2 Command Summary
This chapter contains information detailing commands and features capable of being
generated using ESC/P2 commands. This emulation allows the user to generate
scalable fonts on 24-pin dot matrix printers.
All Character ModeDecimalHexASCIIComp
Set character printing mode27 40 941B 28 5EESC ( ^E2
Ln Hn (Data)Ln Hn (Data)Ln Hn (Data)
Ln and Hn:Length of the following data calculated by Ln + Hn x 256
(MSB of Hn is ignored.)
Print Position UnitDecimalHexASCIIComp
Set print position unit27 40 851B 28 55ESC ( UE2
Ln Hn PnLn Hn PnLn Hn Pn
Ln and Hn:Length of the following Pn calculated by Ln + Hn x 256
(MSB of Hn is ignored.)
Normally Ln =1, Hn = 0, Pn = 10, 20, 30, 40, 50 or 60.
This sets the unit of the vertical and horizontal print positions as follows:
Ln and Hn:Length of the following parameters calculated by
This sets the page length as follows:
Page length=(Lp + Hp x 256) a the current unit (inches) defined by ESC ( U.
Ln + Hn x 256.
(MSB of Hn is ignored.)
Normally Ln = 2, Hn = 0.
4 – 1
Page 92
Page FormatDecimalHexASCIIComp
Set Page Format (top and27 40 99 Ln Hn1B 28 63 Ln HnESC ( c Ln HnE2
bottom margins)Lt Ht Lb HbLt Ht Lb HbLt Ht Lb Hb
Ln and Hn:Length of the following parameters calculated by
Ln + Hn x 256.
(MSB of Hn is ignored.)
Normally Ln = 4, Hn = 0.
This sets the top and bottom margins in current page length as follows:
Top margin=(Lt + Ht x 256) a the current unit (inches) defined by ESC ( U.
Bottom margin=(Lt + Ht x 256) a the current unit (inches)
defined by ESC ( U.
Relative VerticalDecimalHexASCIIComp
Print Position
Set Relative Vertical27 40 118 Ln1B 28 76 LnESC ( v LnE2
Print PositionHn Lp HpHn Lp HpHn Lp Hp
Ln and Hn:Length of the following parameters calculated by
Ln + Hn x 256.
(MSB of Hn is ignored.)
Normally Ln = 2, Hn = 0.
This command moves the vertical position from the current position, both up and down
as shown in the following table:
(Lp + Hp x 256) data valid area table (MSB of Hp is ignored.)
Unit (inch)
FWD LF
REV LF
Hp.bit6 = 0:FWD,1:REVREV. LF value = 8000H-(Lp+Hp x 256)
Compatibility
E = Epson P = IBM Proprinter X24E/XL24E A = IBM X24E/XL24E/AGM
E2 = Epson ESC/P2
FunctionASCIIDecimalHexadecimalCompat.
Character Sets
Print one character inESC ^27 941B 5EP A
All Characters set
Select all characters setESC \ n1 n227 92 n1 n21B 5C n1 n2P A
(n1, n2 = 0 to 255)
Select IBM character set IESC 727 551B 37E P A
Select IBM character set IIESC 627 541B 36E P A
Select international character setESC R n27 82 n1B 52 nE
Select international character setESC ! n27 33 n1B 21 nP A
Select italics/graphics/DLLESC t n27 116 n1B 74 nE
characters n = 0: italics n =1:
graphics n = 2: DLL
Select italics/graphics charactersFS I n28 73 n1C 49 nE
Begin 10 CPIESC P27 801B 50E
Begin 10 CPIDC21812P A
Begin 12 CPIESC M27 771B 4DE
Begin 12 CPIESC:27 581B 3AP A
Begin 15 CPIESC g27 1031B 67E P A
Begin 17.1 CPI printingSI150FP A
(unless 12 CPI set)
Begin 20 CPI printingESC SI27 151B 0FP A
Begin compressed printingSI150FE
Begin compressed printingESC SI27 151B 0FE
Begin one-line double width printingSO140EE P A
Begin one-line double width printingESC SO27 141B 0EE
Double height printingESC w n27 119 n1B 77 nE
Double height printingESC US n27 31 n1B 1F nE
Double height printingFS V n28 86 n1C 56 nE
n = 0: End double height printing
n = 1: Begin double height printing
Double width printingESC W n27 87 n1B 57 nE P A
Double width printingFS E n28 69 n1C 45 nE
n = 0: End double width printing
n = 1: Begin double width printing
End compressed printingDC21812E
End one-line double width printingDC42014E P A
Proportional spacingESC p n27 112 n1B 70 nE
n = 0: End proportional spacing
n = 1: Begin proportional spacing
Proportional spacingESC P n27 80 n1B 50 nP A
n = 0: End proportional spacing
n = 1: Begin proportional spacing
Character Spacing
Set character spacing (n = 0 to 127)ESC SP n27 32 n1B 20 nE
Character Style
Begin emphasised printingESC E27 691B 45E P A
Begin enhanced printingESC G27 711B 47E P A
Begin italicsESC 427 521B 34E
Begin italicsESC % G27 37 711B 25 47P A
Begin outlineESC q SOH27 113 11B 71 01E P A
Begin shadowESC q STX27 113 21B 71 02E P A
Begin shadow and outlineESC q ETX27 113 31B 71 03E P A
End emphasized printingESC F27 701B 46E P A
End enhanced printingESC H27 721B 48E P A
End italicsESC 527 531B 35E
End italicsESC % H27 37 721B 25 48P A
End shadow and/or outlineESC q NUL27 113 001B 71 00E P A
Select LQ/Utility print qualityESC x n27 120 n1B 78 nE
n = 0: Select Utility n = 1: Select LQ
Select typefaceESC k n27 107 n1B 68 nE P A
Value of n: 0 = Roman, 1 = Swiss, 2 = Courier, 3 = Prestige, 5 = OCR-B, (if optional OCR-ALL font card is installed); 6 = OCR-A (if optional OCR-ALL font card is installed);
122 = Swiss Bold; 124 = Letter Gothic; 126 = Resident (Courier), 127 = Option Card (if any option card is installed)
Select FontESC [ l n1 n227 91 73 n1 n2 1B 5B 49 n1 n2P A
Select custom character set*ESC % n27 37 n1B 25 nE
n = 0: Select standard character set; n = 1: Select custom character set
Cut-Sheet Feeder Control
Eject cut-sheet feeder page from printerESC EM R27 25 821B 19 52E P A
Feed cut-sheet feeder page into printerESC EM I27 25 731B 19 49E P A
Select bin 1ESC EM 127 25 491B 19 31E P A
Select bin 2ESC EM 227 25 501B 19 32E P A
Cut-sheet feeder controlESC [ F n1 n227 91 70 n1 n21B 5B 46 n1 n2 P A
m1 m2 m3m1 m2 m3m1 m2 m3
Forms Control
Form feedFF120CE P A
Cancel skip over operationESC 027 791B 4FE P A
Set form length by inchesESC C NUL n27 67 0 n1B 43 00 nE P A
Epson: n = 1 to 22 IBM: n = 0 to 255
Set form length by linesESC C n27 67 n1B 43 nE P A
Epson: n = 1 to 127 IBM: n = 1 to 255
Set top of formESC 427 521B 34P A
Skip over perforationESC N n27 78 n1B 4E nE P A
Epson: n = 1 to 127 IBM: 1 to 255
Set vertical marginsESC [ s n1 n227 91 83 n1 n21B 5B 53 n1 n2 P A
m1 m2 p1 p2m1 m2 p1 p2 m1 m2 p1 p2
Graphics
Begin high resolution graphics*ESC * m n1 n227 42 m n1 n21B 2A m n1 n2E A
n1, n2 = 0 to 255(graphics data)(graphics data)(graphics data)
Begin high resolution graphics*ESC [ g n1 n2 m 27 91 103 n1 n2 1B 58 67 n1 n2P A
n1, n2 = 0 to 255(graphics data)(graphics data)(graphics data)
Begin high speed single density*ESC Y n1 n227 89 n1 n21B 59 n1 n2E P A
graphics(graphics data)(graphics data)(graphics data)
n1, n2 = 0 to 255
Begin low speed double density*ESC L n1 n227 76 n1 n21B 4C n1 n2E P A
graphics(graphics data)(graphics data)(graphics data)
n1, n2 = 0 to 255
Set Aspect Ratio*ESC n d27 100 d1B 6E dP
A – 3
Page 100
FunctionASCIIDecimalHexadecimalCompat.
Begin low speed single densityESC K n1 n227 75 n1 n21B 4B n1 n2E P A
graphics*(graphics data)(graphics data) (graphics data)
n1, n2 = 0 to 255
Begin quadruple density graphics*ESC Z n1 n227 90 n1 n21B 5A n1 n2E P A
n1, n2 = 0 to 255(graphics data)(graphics data) (graphics data)
Reassign graphics codes*ESC ? n m27 63 n m1B 3F n mE
n = “K”, “L”, “Y”, or “Z”
m = 0, 1, 2, 3, 4, 6, 32, 33, 36, 38, 39, 40
Begin hex density graphics*FS Z n1 n228 90 n1 n21C 5A n1 n2E
n1, n2 = 0 to 255(graphics data)(graphics data) (graphics data)