Preview only show first 10 pages with watermark. For full document please download

Note To Customers

   EMBED


Share

Transcript

Note To Customers 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. © Copyright 1992 by OKI. 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. HELVETICA® is a registered trademark of Linotype AG and/or its subsidiaries . SWISS® is a trademark of Bitstream, Inc. i Contents Introduction .............................................................................. v Important Note ......................................................................... vi Selecting Drivers ..................................................................... vi Chapter 1: Setup ....................................................................... Preliminaries ........................................................................ Optional Font Cartridges.................................................... Connecting to Your Computer .......................................... Inserting the Ribbon Cartridge .......................................... Adjusting the Printhead Gap ............................................. Installing the Paper Support .............................................. Installing the Paper Separator ........................................... Installing the Optional Tractor .......................................... Installing the Optional Cut-Sheet Feeder ......................... Loading Rear Feed Continuous-Form Paper................... Loading Single Sheet Paper ............................................... Loading Bottom Feed Paper .............................................. Loading the Cut-sheet Feeder ............................................ Printable area using the Cut-Sheet Feeder ....................... Printing Envelopes using the Cut-Sheet Feeder ............. Printing on Continuous-Form Paper with the CSF Installed ..................................................... Setting the TOF/PARK ....................................................... Paper Park ............................................................................ Continuous-Form to Single Sheets .............................. Single Sheet to Continuous-Form ................................ Clearing Paper Jams ............................................................ Running a Self Test .............................................................. Information on Self-Test ..................................................... ii 1-1 1-1 1-2 1-3 1-5 1-7 1-8 1-9 1-10 1-14 1-17 1-19 1-21 1-24 1-26 1-26 1-27 1-27 1-29 1-29 1-29 1-30 1-31 1-32 Chapter 2: Operation ............................................................... Using the Control Panel...................................................... Basic Control ................................................................... Print Characteristics ............................................................ Font ................................................................................... Print Quality .................................................................... Using the Menu Select Mode ............................................. Menu Selection ..................................................................... Explanation of Menu Terms .............................................. Cleaning ................................................................................ Auto Fan Stop ...................................................................... Problem Solving................................................................... 2-1 2-1 2-1 2-4 2-5 2-6 2-7 2-9 2-13 2-17 2-17 2-18 Chapter 3: IBM Control Code Reference ............................ Character Format ................................................................. Page Format .......................................................................... Line Spacing ......................................................................... Printing Features ................................................................. Carriage Movement ............................................................ Utility Commands ............................................................... 3-1 3-1 3-10 3-13 3-16 3-21 3-25 Chapter 4: Epson Control Code Reference ......................... Character Format ................................................................. Page Format .......................................................................... Line Spacing ......................................................................... Printing Features ................................................................. Carriage Movement ............................................................ Utility Commands ............................................................... 4-1 4-1 4-7 4-11 4-14 4-21 4-26 iii Chapter 5: Graphics ................................................................. Control Codes for Graphics in Normal IBM Mode ........ The IBM Alternate Graphics Mode ................................... Epson Graphics Mode ......................................................... Programming in AGM and Epson Modes ....................... Programming 24-pin Graphics .......................................... Writing the Program ........................................................... 8-pin Graphics ...................................................................... Reassigning Graphics Commands .................................... Quasi 8-bit Graphics............................................................ Print Registration ................................................................. 5-1 5-5 5-8 5-10 5-11 5-12 5-13 5-17 5-17 5-17 5-18 Chapter 6: Downloadable Characters .................................. Designing Characters .......................................................... Dot Assignments and Programming ................................ Defining a Character ........................................................... Epson Downloadable Characters ...................................... IBM Downloadable Characters ......................................... 6 -1 6 -1 6 -2 6 -4 6 -4 6 -8 Appendix A: Control Code Tables ....................................... A-1 IBM Control Code Tables ................................................... A-1 Epson Control Code Tables................................................ A-10 Appendix B: ASCII Character Code Tables ....................... B-1 IBM Character Code Tables ............................................... B-1 Epson Character Code Tables ............................................ B-12 Appendix C: Interfacing ......................................................... Parallel Interfacing .............................................................. RS232-C Serial Interfacing .................................................. Local Tests: Serial Interface ................................................ Menu Selections for Serial Interfacing .............................. C-1 C-1 C-3 C-4 C-6 Appendix D: Specifications ................................................... D-1 iv Introduction The Setup Guide will help you get your new printer set up and running quickly. Here is how it is organised: Setup shows you how to get the printer ready, connect it to your computer, install the standard and optional paper handling accessories, load different types of paper and run a self test. Operation describes how to run your printer using the control panel and gives you some hints on what to do if you are having problems. If you want more details about working with software or advanced topics like graphics, read Chapters 3 to 6. Use it to find out more about particular commands or to explore your MICROLINE’s advanced capabilities. In addition to this manual, make sure you have the following items: ❿ ➘ ❡ ➆ 1. 2. 3. 4. 5. MICROLINE printer Platen knobs (2) (fitted) Power cord Ribbon cartridge (black for ML393, colour for ML393C) Paper support *Paper and interface cable sold separately v Important Note If you are like most printer users you probably will not need to read this entire book. Rather, you will flip from section to section as required to learn how to make your printer do what you want it to do. The Setup Guide contains information on loading paper and most of the mechanical aspects of running your printer. The Reference Guide pertains more to controlling your printer’s features, such as format and print settings, and the method of doing so. ● Chapters 3 and 4, IBM and Epson control code references, give you the command codes and descriptions of their functions. ● Chapters 5 and 6 explain the particulars of writing commands for generating graphics and designing your own characters. ● The Appendices provide you with code reference tables and interfacing information, as well as other tables and technical references you may require. 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 ML393 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 ML393 features. vi IBM EMULATION EPSON EMULATTION OKI ML393 OKI ML393 IBM XL24/IBM 4207, 4208 EPSON LQ-1000 or LQ-800 IBM PPR XL/IBM 4202 IBM PPR/IBM 4201 EPSON LQ-2500 (best choice for colour printing) IBM GRAPHICS PRINTER/IBM 5152 Epson LQ-1500 Epson LQ Epson FX Epson JX Epson LX Epson RX Epson MX IMPORTANT The wires in this mains lead are coloured in accordance with the following code: GREEN AND YELLOW BLUE BROWN EARTH NEUTRAL LIVE 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. WARNING: THIS APPARATUS MUST BE EARTHED Ensure that your equipment is connected correctly. If you are in any doubt consult a qualified electrician. vii Chapter 1 Setup Preliminaries Open the access cover and remove the shipping restraint. (Save the shipping restraint with the packaging materials). The platen knobs should already be fitted to each side of the printer. However, if they are removed for any reason, the flat side of the shaft should be lined up with the flat side of the knob. Setup 1 – 1 Optional Font Cartridges Insert cartridges with the label facing upwards; ensure that the cartridge is firmly seated. ▲ Insert font cartridges here Important: Ensure that the printer is turned off before inserting or removing font cartridges. 1 – 2 Setup Connecting to Your Computer Before you can use your printer, you need to attach it to your computer using an interface cable. Note: Interface cables are not supplied with the printer. Power cable Interface cable Microline 393 Printer (Rear view) 1. Make sure both your computer and your printer are switched OFF. 2. Attach the power cord 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. Setup 1 – 3 3. Plug the printer end of your interface cable into the connector at the rear of the printer. Your printer has two interface ports. Loosen the metal plate with a Phillips screwdriver and slide to uncover the proper connector for the interface cable you are using. Serial interface Tighten screw to fasten cable Parallel interface Fasten clips to cable Note: Set the serial interface option in the menu so that it matches the printer interface of your computer 4. Connect the other end of your interface cable to the printer port on your computer. 1 – 4 Setup Inserting 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. Remove the shipping restraint and push the idler roller lock to the right to free the idler roller. Takeup knob Remove shipping restraint Pin Push to right to release idler roller ML393 Ribbon cartridge Setup 1 – 5 2. Open the printer access cover. 3. Centre the printhead. 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 so that the pins on the ribbon cartridge fit into the notches in the side plates of the printer. Push down so that the cartridge snaps into position. Centre the printhead 5. Thread the ribbon around the posts on the printhead, making sure that you follow the proper path (refer to the following illustration). Thread ribbon around posts as shown ML393 ML393C 6. Turn the take-up knob clockwise to take up any ribbon slack. 1 – 6 Setup Adjusting the Printhead Gap The blue head gap lever (located on the righthand side of the printer, below the access cover) adjusts the printhead for printing on different types of paper. The following are recommended settings for commonly used papers. You may want to try varying the settings to get the easiest feeding and best print quality for the paper you are using. Ream weight Single part paper Lever position 1 2 3 4 5 6 7 8 9 45-75 g/m2 (12-15 lb) 75-90g/m2 (20-24 lb) Multiple part paper (pressure - sensitive paper, carbon - lined 2 part 35-40g/m2 (9-11 lb) paper) 3 part 4 part 2 part Multiple part paper (interleaf paper) 38-45g/m2 (10-12 lb) 3 part 4 part Labels Envelopes Headgap lever Important: The incorrect setting of the printhead gap lever can cause printhead damage or ribbon jams. To avoid these problems set the printhead gap for the type of stationery being used. Setup 1 – 7 Installing the Paper Support Paper support Holes pop into tabs on the rear cover Brace holds support upright for single sheets of paper 1 – 8 Setup Installing the Paper Separator The paper separator is fitted at the factory. These instructions are supplied should it have had to have been removed. Opens to prevent paper from curling back into the printer Paper separator Place the front end in first, then lower the back and snap it into position Setup 1 – 9 Installing the Optional Tractor This option lets you feed continuous-form paper from the bottom of the printer. Use bottom feed for labels and other speciality papers that have problems wrapping around the platen, as well as for normal continuous-form paper. To feed continuous paper from the bottom of the printer you need: ● The optional pull tractor kit. ● A slotted printer stand. Acoustic cover Paper guide Pull tractor 1. Remove the paper separator by tilting it forwards and lifting it out. Open bail Open rear cover Move paper lever forwards 1 – 10 Setup 2. Open the rear cover and the front access cover. 3. Pull the bail arm forwards. 4. Pull the paper lever forwards. 5. Lower the tractor on to the printer, fitting the tabs on the tractor into the notches on the printer. 6. Pull forwards on the top of the tractor until it clicks into place on the printer platen shaft. (To remove the tractor press the locking buttons and tilt back.) Clamp Setup 1 – 11 7. Push the bail arm back. 8. Close the rear cover. Fit the front tabs of the acoustic cover into the slots on the sides of the rear cover, then tilt into place. Tab fits into slots 9. Fit the tabs on the paper guide into the notches on the rear of the acoustic cover. 1 – 12 Setup 10. Close the front cover. The acoustic cover fits over the acoustic shield on the front cover. Acoustic cover Setup 1 – 13 Installing the Optional Cut-Sheet Feeder The CSF 3001 single-bin and CSF 3002 dual-bin Cut-Sheet Feeders (CSF) are ideal for high volume printing using single sheet paper. Paper can be fed automatically, controlled either by the control panel or through your computer. The dual-bin allows you to alternate between letterhead and plain stationery. Since the two CSF are installed in the same way, we will illustrate the procedure with the CSF 3001, noting any differences as they appear. CSF 3001 Output tray Bin racks CSF 3002 Output tray Bin racks 1 – 14 Setup 1. Open the printer cover. 2. Remove the rear cover: tilt the cover slightly lift it up and off the printer. Remove rear cover. 3. Pull the bail arm forwards. 4. Fit the hooks on the CSF over the platen shaft and gently lower on to the printer. Bail lever forwards CSF hooks on to platen Setup 1 – 15 5. Close the access cover. 6. Plug the CSF cable into the socket on the rear of the printer. The arrow on the plug should point upwards. 7. Slide the output tray into the channels on the sides of the CSF. 8. Fit the wire rack into the holes in the back of the CSF paper bin. 9. Push the bail arm back. Wire racks Channels Paper lever back 1 – 16 Setup Loading Rear Feed Continuous-Form Paper When printing on rear feed continuous form paper use the builtin tractor. 1. Open the rear cover. 2. Move the centre paper guides to the middle of the paper. Rear cover Paper guides 3. Insert the paper through the gap below the rear cover and pull through. Insert paper Pull paper through Setup 1 – 17 4. 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.) 5. Open the tractor covers and set the first two sprocket holes on the paper on the tractor pins. Tractor cover Lever 6. Adjust the right hand tractor to the width of the paper. 7. Close the tractor covers. 8. Close the rear cover. 9. Pull the paper lever forwards (to the continuous paper symbol). 10. Turn the printer ON. Press the FORM FEED button to advance the paper to the front of the printer. 11. Set the PARK/TOF, refer to Setting the PARK/TOF described in this chapter, to your requirements and you are ready to print. 1 – 18 Setup Loading Single Sheet Paper (No paper handling options installed) 1. If you have continuous-form paper in the printer, use the paper park feature to back it out of the printer. With SELECT LIGHT on, press the TOF/PARK button. The paper will retract from the front of the printer. 2. Push the paper lever back to the single sheet setting (towards the back of the printer). 3. Raise the paper support to its upright position. Paper FORM FEED button Reference mark for left edge Paper lever back 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. Setup 1 – 19 5. Press the FORM FEED button to insert the paper into the printer. 6. Adjust the TOF if necessary. Refer to Setting the PARK/TOF described later in this chapter. 1 – 20 Setup Loading Bottom Feed Paper You can feed continuous-form paper from the bottom of the printer when you have the optional pull tractor installed. Open acoustic cover Optional tractor unit Pull paper lever forwards Pull bail lever forwards Slide paper guide to middle of paper width Open front cover 1. Open the acoustic cover on the pull tractor. 2. Open the printer access cover. 3. Pull the bail lever forwards. 4. Pull the paper lever for wards (to the continuous paper symbol). 5. Move the centre paper guides to the middle of the of the paper. 6. Push the paper up through the slot in the bottom of the printer and pull it up in front of the platen to the tractor. Setup 1 – 21 7. 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.) 8. Open the tractor covers and set the first two sprocket holes on the paper on the tractor pins. Tractor cover 9. Lever Adjust the right hand tractor to the width of the paper. 10. Close the tractor covers. 11. Push the bail lever back. 12. Close the printer access cover and the tractor acoustic cover. Important: The front cover must be closed for the printer to operate. 1 – 22 Setup Wind paper through Close front cover first then acoustic cover 13. Set the PARK/TOF, refer to Setting the PARK/TOF for your requirements and you are ready to print. Setup 1 – 23 Loading the Cut-Sheet Feeder Each bin of the CSF 3001 and CSF 3002 holds up to 130 sheets of 20lb. paper, or between 100 and 120 sheets of 24lb. paper, depending on the thickness and texture. Note: Be sure to set the head gap lever for the type of paper that you are using. Put letterhead stationery in with the letterhead facing down and towards the printer. Reset lever Envelope lever Paper lever Insert paper in bin Adjust guides to width of paper 1. Fan the paper and square it. 2. Pull the reset lever up to the RESET position. 3. Put the paper into the bin. 4. Adjust the guides to the width of the paper. 5. Ensure that the envelope lever is forwards in the paper position. 6. Push the reset lever down to the SET position. 7. Ensure that the paper lever is pushed back to the single sheet setting (towards the back of the printer). 1 – 24 Setup 7. CSF 3002: To select the bin that you wish paper to be fed from deselect the printer and press the BIN SELECT button on the CSF. When the BIN SELECT light is ON, BIN 1 is selected, when it is OFF, BIN 2 is selected. BIN 1 is the default selection when the printer is switched ON. Bin 1 selected when light is ON Select bin 2 by pressing the BIN SELECT button. The light will go out Note: This button has no function on the CSF 3001. 8. Press the FORM FEED or LINE FEED button to insert a sheet of paper. 9. Adjust the TOF if necessary. Refer to Setting the PARK/TOF. 10. To insert a new sheet of paper, press the FORM FEED button. Setup 1 – 25 Printable Area Using the CSF The default top margin when using the CSF is 1 inch. However, paper can be fed to the top of the page using the reverse line feed command to allow printing in this margin. 0.17” ▲ ▼ ▲ ▼ Additional areas available for printing but not recommended because of non-guarantee of print quality, paper skewing and acoustic levels. Recommended printable area ▲ 1” bottom ▲ ▼ margin ▲ ▲ 0.39” ▲ ▼ ▲ 0.17” 1” Top Margin 0.39” Printing Envelopes with the CSF You can use # 10 envelopes (standard business size) in your CSF 3001 and in the front bin only of the CSF 3002. Make sure that you adjust the blue head gap lever to the correct setting and push the envelope lever on the CSF back to the envelope symbol. Load envelopes with the flaps facing down and towards the front of the printer. 1 – 26 Setup For best results avoid printing on areas where the flap overlaps the envelope. Printing where the envelope varies in thickness may be uneven. Printing on Continuous-Form Paper with the CSF Installed If you use single part continuous-form paper you can leave the CSF installed on your printer and alternate between printing on continuous-form paper or sheets from the CSF. Use the paper park feature, described in the following pages, to select the form you wish to print upon. When paper is moved forwards to the print position from the park position in the continuous-form mode, the FORM FEED button must be used. This method of alternating between forms is not recommended when multipart continuous-form paper is used. Setting the PARK/TOF This establishes the position of the first print line on each page. The red line on the ribbon shield shows the baseline of the current position and helps you place the TOF where you want it. 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 under the bail; the first line of printing will then be about one inch from the top of the page. Setup 1 – 27 Red line shows baseline for printing Bail 1. Press the FORM FEED button to advance the paper into the printer. 2. Press the SELECT button so that the SELECT light goes out. 3. Continuous-form paper: Use the platen knob to move the paper to the correct position. Single Sheets: Hold down the PARK/TOF button and press: LINE FEED to move up the page, or FORM FEED to move down the page. This allows you to move the paper in increments of 1/180 inch so you can position the TOF precisely on single sheets. 4. Press the PARK/TOF button to the set position. 5. Press the SELECT button to select the printer. 1 – 28 Setup 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 also works when you have an optional CSF installed on your printer. Continuous-form to Single Sheets 1. Make sure that the SELECT light is ON and press the PARK/ TOF button. The continuous-form paper will retract from the paper path. 2. Push the paper lever back (to the single sheet setting). 3. Press the FORM FEED button to advance a sheet into the printer. Single Sheet to Continuous-form 1. If there is a sheet in the printer, press the FORM FEED button to eject it. 2. Pull the paper lever forwards (to the continuous-form setting). 3. Press the FORM FEED button to advance the continuous-form paper to the front of the printer. Setup 1 – 29 Clearing Paper Jams In the unlikely event that you experience paper jams while using either continuous-form 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 and set the head gap lever to the maximum setting 9. 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. Reset the head gap lever to the required position. 7. The printer is now ready for use. Warning: Do not remove or loosen the ribbon protector screws at any time, as the protector is fixed at a precise setting. 1 – 30 Setup 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 PARK/TOF button while switching the printer ON produces: A continuous sample of the default print style. This sample prints along the entire length of the platen, so be sure to use wide paper when running this test. Holding down the LINE FEED button while turning the printer ON produces: A limited sample of each available print style. When complete (about three pages), the printer stops and the SELECT light goes out. To terminate either of these two self-tests, press the SELECT button. This will return the printer to its ready state and the SELECT light will be lit. Setup 1 – 31 Information on the Self Test ML393 ELITE Model IE E Emulation Model for Europe P F/W 01.00 RES 01.00 Interface P = Parallel S = Serial Firmware revision number Have this information at hand if you call for service. 1 – 32 Setup YRXXXX-XXXX Chapter 2 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. Basic Controls POWER light: Lit when On. ALARM light: Lit to indicate alarm condition: paper out, paper jam, cover open. QUIET light: Lights when printer is operating in the quiet mode. QUIET button: Pressing this button when the printer is selected turns quiet mode on and off. This reduces printing noise in Letter Quality (LQ) and Utility (UTL) modes. When the printer is deselected, this button puts the printer into the Menu mode. LINE FEED 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 is in the printer. Operation 2 – 1 FORM FEED button: Advances paper to the top of the next page (when printer is selected or deselected). PARK/TOF button: When the printer is deselected this button sets the position of the first print line. When the printer is selected and continuous-form paper is loaded, this button activates the automatic paper park feature. When single sheets are inserted holding down the TOF/PARK button, and pressing the LINE FEED button allows you to move up the page in increments of 1/180 inch to set the TOF, while pressing the FORM FEED button allows you to move down the page. SELECT 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. SELECT light: 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). FONT: Selects the typeface that the characters will be printed in. PRINT QUALITY: Selects the quality of print of the typeface. CHARACTER PITCH: Selects the size of the printed characters. The following buttons have special functions when you hold them down while turning the printer on: QUIET: Activates the Menu Select Mode. LINE FEED: Activates the print samples self-test. PARK/TOF: Activates the continuous self-test. FORM FEED: Puts the printer into the Menu Select Mode. 2 – 2 Operation SELECT and FORM FEED: Puts the printer into the Hex Dump Mode. SELECT and TOF/PARK: Returns the printer to the default Menu settings. QUIET and LINE FEED: Returns the paper loading position to the default setting. Button Functions in Menu Select Mode When the printer is in the menu select mode, the features listed below the buttons are activated. PRINT: Prints the current menu settings. GROUP: Switches between the broad menu categories. ITEM: Displays the features contained in each of the categories. SET: Selects and stores the options available for each feature in the menu. EXIT: Exits from the menu select mode and returns the printer to its ready state. The buttons are returned to their basic functions. Operation 2 – 3 Print Characteristics The font, print quality and character pitch buttons let you control basic printing features through your printer’s control panel: 1. Press the SELECT button (SELECT light goes out). 2. Press the features that you wish to change (light goes on). Note: If all the lights on the PRINT QUALITY section of the panel are out, the printer will print in the High Speed Draft (HSD) Mode. 3. Press the SELECT 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. Similarly CART cannot be selected on the control panel unless a font cartridge is installed in the FONT slot. The three printing features available on the control panel offer the following selection of modes: 2 – 4 Operation Font There are eight combinations of font which can be selected on your printer, six resident fonts, a cartridge font and a downloaded font. The resident fonts are: COURIER: Selected when the COURIER light is lit. ROMAN: Selected when the ROMAN light is lit. PRESTIGE: Selected when the COURIER and SWISS lights are lit. GOTHIC: Selected when the ROMAN and BOLD lights are lit. SWISS: Selected when the SWISS light is lit. SWISS BOLD: Selected when the BOLD light is lit. CART: Selects the font from the optional cartridge, if installed. Selected when the COURIER and ROMAN lights are lit. DLL: Selects a font downloaded from the computer. Selected when the SWISS and BOLD lights are lit. Operation 2 – 5 Print Quality LQ: The Letter Quality mode produces crisp, clean characters, almost like a typewriter. Print in LQ when you want your correspondence and reports to look especially polished. You can use LQ mode to print 10, 12, 15, 17.1 and 20 Characters Per Inch (CPI), as well as proportional spacing. NLQ: Near Letter Quality printing is faster than LQ, and produces characters that are almost as sharp as Letter Quality. NLQ is available in 10 and 12 CPI. UTILITY: The Utility mode is ideal for high-volume printing. It is much faster than LQ or NLQ, but the printed output is not as dense as the higher-quality modes. Utility mode supports all the character pitches with the exception of proportionally spaced text. HSD: High Speed Draft is the fastest of the print modes. Use it for quick printouts of long documents. High Speed Draft is only available at 15 and 17.1 CPI. CHARACTER PITCH (width selections) 10, 12,15, 17.1 and 20 CPI. Proportional spacing is also available for use with resident LQ printing only. Note: Pitches available with downloaded or cartridge fonts are font dependent. Print quality and pitch combinations are available as described above. 2 – 6 Operation 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 nonvolatile 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 Make sure that the printer is loaded with ribbon and paper. Switch the printer ON while pressing the QUIET button in. If the printer is already on and the SELECT light is off, press the QUIET button. The functions listed underneath the buttons become active. If you press the PRINT button, the current menu will be printed in its entirety. It lists all the currently selected print features. If you press the GROUP button, you can progress through the broad menu categories until you reach the category that you want to change. Pressing the ITEM button allows you to select the feature of each category that you want to change. Pressing the SET button lets you make the final selection for each item of the group. Operation 2 – 7 When you have made all the changes that you want, press the EXIT button to store the changes and to return to the print mode. The SELECT light will light to show that the printer is ready to print, and the control panel will indicate any changes that you made to the default settings while in the menu 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 SELECT button; the printer then resumes its function in the Menu Select mode. 2 – 8 Operation Menu Selections NOTE: Factory default settings are pnnted in bold. Group Item Selections FONT PRINT MODE LQ, NLQ, UTILITY, HSD TYPE STYLE COURIER, SWISS, SWISS BOLD, ROMAN, LETTER GOTHIC, PRESTIGE ELITE, CARTRIDGE, DLL PITCH 10CPI, 12CPI, 15CPI, 17.1CPI, 20CPI, PROPORTIONAL STYLE NORMAL, ITALICS SIZE SINGLE, DOUBLE, TRIPLE SMOOTHING GENERAL EMULATION CONTROL MODE +1 NO, YES EPSON LQ, IBM PPR, IBM X24 AGM GRAPHICS UNIDIRECTIONAL, BIDIRECTIONAL MAX RECEIVE BUFFER 8K, 23K, 40K (OPTION), 1 LINE PAPER OUT OVERRIDE NO, YES PRINT 0, -1 -2, -3, -4, -5, +5, +4, +3, +2, REGISTRATION OPERATOR PANEL FULL OPERATION, LIMITED OPERATION FUNCTIONS RIBBON SELECTION MAGENTA, CYAN, VIOLET, ORANGE, GREEN, BLACK RIBBON, BLACK, YELLOW Operation 2 – 9 Group Item Selections RESET INHIBIT NO, YES PRINT SUPPRESS YES, NO EFFECTIVE PAGE WIDTH 13.6", 8" CPU STANDARD, SPEClAL COMPENSATION VERTICAL LINE SPACING CONTROL 2 – 10 Operation 6 LPI, 8 LPI FORM TEAR OFF OFF, 300ms, 2 SEC, 4 SEC, OFFLINE SKIP OVER PERFORATION NO, YES AUTO LF NO, YES AUTO CR (IBM) NO, YES AUTO FEED XT (EPSON) INVALID, VALID FORM LENGTH BASE INCHES, LINES PAGE LENGTH (INCHES) 12", 11", 11 2/3", 14", 17", 3", 3.5", 4", 5.5", 6", 7", 8", 8.5" PAGE LENGTH (LINES*100) 0, 1 PAGE LENGTH (LINES * 10) 7, 8, 9, 0, 1, 2, 3, 4, 5, 6 PAGE LENGTH (LINES * 1) 2, 3, 4, 5, 6, 7, 8, 9, 0, 1 SHEET PAGE LENGTH 11 2/3", 14", 16.57", 3", 3.5", 4", 5.5", 6", 7", 8", 8.5", 12", 11" Group SYMBOL SETS Item MENU LINE 6, 1 CHARACTER SET SET II, EPSON, SET I CODE PAGE USA, MULTILINGUAL, NORWAY, PORTUGAL, TURKEY, GREEK 928*, GREEK 851*, GREEK 437* LANGUAGE SET ASCII, FRENCH, GERMAN, BRITISH, 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 CHARACTER UNSLASHED, SLASHED SLASHED LETTER O NO, YES SERIAL PARITY INTERFACE OPTIONS SERIAL DATA 7- or 8- BITS TEST Selections NONE, ODD, EVEN 8, 7 PROTOCOL READY/BUSY, XON/XOFF DIAGNOSTIC NO, YES Operation 2 – 11 Group Item Selections BUSY LINE BAUD RATE SSD-, SSD+, DTR, RTS 9600 BPS, 4800 BPS, 2400 BPS, 1200 BPS, 600 BPS, 300 BPS, 19200 BPS DSR SIGNAL VALID, INVALID DTR SIGNAL READY ON POWER UP, READY ON SELECT BUSY TIME 200 ms, 1 SEC * The Greek Code Page Font Card must be installed to select one of these Code Pages. 2 – 12 Operation Explanation of menu items Print Mode: Choose LQ for Letter Quality printing, NLQ for Near Letter Quality printing, Utility for quicker printing, or HSD (High Speed Draft) for fastest printing speed. Type Style: Choose the font in which you wish to print your document. Pitch: Choose character width measured in characters per inch (CPI), or proportionally spaced characters. Style: Choose Normal (upright) or Italics (slanted). Size: Choose Single, Double or Triple width and height. Smoothing: This feature is used with double and triple sized printing. If SMOOTHING is set to YES, extra dots will be printed in the character matrix in order to give a better quality of character. The curve and shape of the character will be smoother. Emulation Mode: Select the printer command set you want your ML393 to use. Choose Epson LQ series, IBM Proprinter or IBM Graphics Printer. See the Reference Guide for hints on how to make your selection. Graphics: Choose unidirectional (left to right only) for better graphics print registration at slower speed. Choose bidirectional for higher print speed. Max Receive Buffer: Choose the size of the buffer. 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. Operation 2 – 13 If you want to download two separate character sets, you will have to change the MENU to 1 line. (Epson). If you change the MENU to 40K (option), IBM DLL cannot be downloaded. 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. Print Registration: Use this item 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, CHARACTER PITCH, and FONT buttons on the control panel. You can then only control these features through your software. This can be useful when several people are using the printer and you do not want its settings changed. Ribbon Selection: (ML393C 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. 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. 2 – 14 Operation Print Suppress Effective: Select VALID 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 INVALID. Page Width: Choose the width of paper that you are printing on. CPU Compensation: Select Standard if the printer is to be used with Microsoft Windows version 2.xx. This avoids a Centronics parallel interface timing problem. 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 item to turn the forms tear off feature On or Off or to allow a waiting time after a form feed occurs. When it is set to offline, if the printer receives a FF or end of page is reached and there is no more data, the paper is fed to the FTO 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. 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. 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 emulations. Operation 2 – 15 Auto Feed XT (Epson): Normally, there is 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 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 special exception may be necessary for some combinations of hardware and software. Form Length Base: This allows you to select the correct page length by number of inches or number of lines per page. 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). Page Length (Lines 100), (Lines * 10), (Lines * 1): Choose the length of the continuous form paper you are using in number of lines. You can choose from 0 to 127. Sheet Page Length: Choose the length of single sheets of paper that you are printing on. Menu Line: Line feed in the menu mode can be set to one or six lines between options. Character Set: Choose IBM Character Set 2, Epson or Set 1 (see Appendix B) as the default character set. 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. Language Set: These sets replace certain symbols with special characters used in the respective foreign languages (see National Character Sets in the Reference Manual). Zero Character: Choose Slashed when it is important to distinguish between a zero (0) and a capital letter O. 2 – 16 Operation Slashed Letter O: Characters (155) and ¥ (157) will be set to slashed ø and slashed Ø if you set this item to YES. The following items are used only if the optional serial interface has been installed (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 print 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. DSR Signal: Sets the Data Set Ready (DSR) signal. 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. Auto Fan Stop When the printer has been in the idle mode for a short time, the fan inside the printer will stop. The printer remains in the Select mode and is ready to receive data. As soon as the printer starts to print the fan will resume operation. Operation 2 – 17 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 front cover is open. 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 ALARM light flashing? Turn the printer off and check to see if: ● The bail is open. Make sure the bail lever is towards the back of the printer. ● The paper or ribbon is jammed. ● Something is blocking the path of the printhead. If you are unable to rectify the problem contact your nearest OKI service centre. 2 – 18 Operation 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. Why are dots missing in my printout? The headgap may not be set correctly. Try moving the headgap lever to a lower setting. If that does not help, the printhead may be damaged. Call for service. Why does my ribbon come off? • Make sure that the ribbon cartridge is seated properly. • Ensure that the ribbon is properly located around the ribbon guide, as shown on the ribbon fitting instruction label. How can I check the data that my computer is sending to the printer? By entering the hexadecimal mode. Hold the SELECT and FORM FEED buttons down while turning the printer ON. All data sent to the printer, including text and printer commands, will be printed in hexadecimalformat. For example, this line of BASIC code: LPRINT CHRS(27);“0”, CHR$(30);“12345", CHR$(10) would print in this format; 1B 30 1E 31 32 33 34 35 0A . 0. 1 2 3 4 5. To return to standard printing, turn the printer OFF then ON again. Operation 2 – 19 Chapter 3 IBM Control Code Reference In the following chapters several of the commands can be accepted in two formats. Where the decimal value in the command is the variable n = 0 or 1, the printer can accept both values of 0 and 48 for n = 0, and 1 or 49 for n = 1. For example, the command to begin double width printing can be sent in either of the following forms: CHR$(27);CHR$(87);CHR$(l) or CHR$(27);CHR$(87);CHR$(49) For convenience this manual generally uses the second form. Character Format Double Width One Line Printing ASCII Hexadecimal Decimal Sets double width one line Cancels double wide one line SO DC4 0E 14 14 20 Double character width for one line only; prints half as many characters per inch in each pitch. SO can also be cancelled by a carriage return, line feed, VT, or Form Feed or ESC W 0 command. At the end of the line of double wide characters, current print mode resumes. ESC W 1 takes precedence over SO. Continuous Double Width Printing Sets double width print mode Cancels double width print mode ASCII Hexadecimal Decimal ESC W 1 ESC W 0 1B 57 31 1B 57 30 27 87 49 27 87 48 Doubles the width of all characters; produces half as many characters per inch in each pitch. With this command, double width characters print continuously until reset by ESC W 0. Double width can also be set by the ESC [ @ command. The DC4 command—cancel double width one line — will not cancel the double width mode set by ESC W 1. IBM Control Code Reference 3 – 1 Triple Width Printing ASCII Hexadecimal Decimal Sets triple width printing Cancels triple width printing ESC m ESC W 0 1B 6D 1B 57 30 27 109 27 87 48 Triples the width of the characters. You can also cancel this feature by choosing either double or single width printing in the Menu Select mode. Double/Triple Height ASCII Hexadecimal Decimal Sets double height printing ESC US SOH ESC US STX ESC US NUL LB LF 01 27 3l 1 LB LF 02 27 31 2 LB LF 00 27 31 0 Sets triple height printing Cancel double/triple height Double/triple height characters are printed twice/three times the height of standard characters from the same base line. Double/ triple and standard height characters can all be printed within the same line. To avoid having lines overlap, use the variable line spacing command to set double line spacing for double height and triple line spacing for triple height. You may also set it through your software. Print modes that accommodate double/triple height include utility and DLL utility, emphasized, double/triple width, and NLQ/LQ. Two and three passes are required for double and triple height characters respectively. Double Width/ Double Height Set double width or double height printing 3 – 2 IBM Control Code Reference ASCII Hexadecimal Decimal ESC [ @ n1 1B 5B 40 n1 27 91 64 n2 m1 m2 n2 m1 m2 n1 n2 m1 m3 m4 m3 m4 m2 m3 m4 With this command you can set either double height or double width or both, together with the control of line spacing. The following table will help you choose the correct parameters for your requirements. n1 and n2 are the number of bytes in the sequence. Normally this will be four so n1 = 4 and n2 = 0. m1 to m4 are the modes available. m1 and m2 are ignored and are therefore constantly set at 0. m3 defines the character height and line feed value. m4 defines character width. CHR$ (m3) 0 1 2 16 17 18 32 33 34 Function No change LF unchanged/standard height characters LF unchanged/double height characters single LF/character height unchanged single LF/standard height characters single LF/double height characters double LF/character height unchanged double LF/standard characters double LF/double height characters CHR$(m4) specifies either standard or double width characters as follows. CHR$ (m4) 0 1 2 Function no change standard double width characters IBM Control Code Reference 3 – 3 Italic Characters ASCII Hexadecimal Decimal Sets italic print mode Cancels italic printing ESC % G 1B 25 47 ESC % H 1B 25 48 27 37 71 27 37 72 Prints italic (slanted) characters. You can also select italic printing using the menu. Characters may overlap on to the next character cell. IBM line graphics (position 176-223) and the integral sign halves (position 244 and 245) will not be slanted. Select IBM Character Set ASCII Hexadecimal Decimal Select IBM Set 1 Select IBM Set 2 ESC 7 ESC 6 1B 37 1B 36 27 55 27 54 Use these commands to select either of the IBM character sets illustrated in Appendix B. Print from All Character Set ASCII Hexadecimal Decimal Print one character Print continuously ESC ^ n 1B 5E n ESC \ n1 1B 5C n1 n2 n2 27 94 n 27 95 n1 n2 Using these commands you can make control characters like ESC or SI printable. Using the All Character Set there is a printable character for all 255 places of the character table. If you want to print just one character from this set use ESC ^ n, where n specifies this character. If you want to print ‘m’ characters, use ESC \ n1 n2. Take the following formula to specify n1 and n2: m = n1 = (n2 * 256) The ‘m’ control codes or characters to be printed must follow ESC\ n1 n2. You will find the All Character tables in Appendix B. 3 – 4 IBM Control Code Reference Emphasized Printing ASCII Hexadecimal Decimal Sets emphasized print mode Cancels emphasized print mode ESC E ESC F 1B 45 1B 46 27 69 27 70 Prints second dot slightly to the right of each printed dot, creating characters that are thicker horizontally. Emphasized printing is performed at half-speed, and can be done in conjunction with enhanced printing. The Menu Select mode can also implement emphasized printing. Enhanced/Double Strike Printing ASCII Hexadecimal Decimal Sets enhanced print mode Cancels enhanced print mode ESC G ESC H 1B 47 1B 48 27 71 27 72 Prints second dot slightly below each printed dot, creating characters that are thicker vertically. The printer makes two passes per line. This feature can be combined with emphasized printing. The Menu Select mode can also control enhanced printing. Character Pitch ASCII Hexadecimal Decimal 10 CPI 12 CPI 15 CPI 17.1 CPI 20 CPI DC2 ESC : ESC g SI ESC SI 12 1B 3A 1B 67 0F 1B 0F 18 27 58 27 103 15 27 15 You can directly get to 12 CPI from 10 CPI by using ESC :. In order to use 17.1 CPI character pitch you must use the SI control code when you are in 10 CPI mode. IBM Control Code Reference 3 – 5 Proportional Spacing ASCII Sets/cancels proportional spacing ESC P n Hexadecimal Decimal 1B 50 n 27 80 n Either sets or cancels proportional printing. Where n=1 proportional printing is turned on; where n=0 it is turned off. Proportional spacing is only available in LQ mode. Superscript Printing ASCII Hexadecimal Decimal Sets superscript mode Cancels superscript mode ESC S 0 ESC T 1B 53 30 1B 54 27 83 48 27 84 Superscripts cannot be printed in double or triple height, but the superscript command is not cancelled by double or triple height commands. You can print superscripts in compressed print mode; they appear as half-high, full-width characters. Subscript Printing ASCII Hexadecimal Decimal Sets subscript mode Cancels subscript mode ESC S 1 ESC T 1B 53 31 1B 54 27 83 49 27 84 Subscripts cannot be printed in double or triple height, but the subscript command is not cancelled by double or triple height commands. You can print subscripts in compressed print mode; they appear as half-height, full-width characters. 3 – 6 IBM Control Code Reference Select Font ASCII Select Font ESC [ I n1 1B 5B 49 n1 27 91 73 n2 m1 m2 n2 m1 m2 p1 n1 n2 m1 p1 p2 r1 p2 r1 m2 p1 p2 r1 n1 n2: m1 m2: p1 p2: r1: Number of parameters Font ID number Font width Spacing Hexadecimal Decimal n1 + 256 * n2 256 * m1 + m2 256 * p1 + p2 n1 and n2 are the number of bytes in the sequence. Normally this will be five so n1 =5 and n2 =0. m1 and m2 define the Font ID number of the font to be selected. See table below. Typeface m1 m2 Typeface m1 m2 Courier 000 000 000 000 000 000 000 000 000 000 008 011 018 049 085 092 098 171 223 226 Roman 000 000 000 000 155 159 166 167 Letter Gothic 000 000 000 087 222 255 Script 000 084 Prestige Elite 000 000 000 000 000 000 012 080 086 100 164 221 OCR-B 000 003 OCR-A 000 019 ORATOR 000 005 p1 and p2 define the font width in units of 1/1440". IBM Control Code Reference 3 – 7 For example: To set 10 CPI, p1 =0 and p2 = 144 See table below p1 p2 Description 000 000 000 000 000 000 000 072 084 096 120 144 No Change 20 pitch 17 pitch 15 pitch 12 pitch 10 pitch If p1 = 0 and p2 = 0, there is no change. r1 defines the font spacing. If r 1 = 0, no change. If r 1 = 1, fixed pitch defined by p1 and p2 is available. If r 1 = 2, proportional spacing is defined. Font Selection ASCII Selects typestyles ESC k n Hexadecimal Decimal 1B 6B n 27 107 n With this command you can choose either the typestyles resident in the printer or a typestyle in an optional font cartridge. If the value of n is not one of those given in the table below, the resident typestyle will be selected. 3 – 8 IBM Control Code Reference . Decimal value of n 0 1 2 3 5 installed) 6 installed) 122 124 126 127 Typestyle Roman Swiss Courier (default font) Prestige OCR-B (with OCR-B font cartridge OCR-A (with OCR-A font cartridge Swiss Bold Letter Gothic Resident Cartridge (with any font cartridge installed) IBM Control Code Reference 3 – 9 Page Format Margin Setting ASCII Hexadecimal Decimal Left/right margin set ESC X n1 n2 1B 58 n1 n2 27 82 n1 n2 The CHR$(27);“X”;CHR$(n1);CHRS(n2); command sets the left and the right margins at the same time. In this command, n1 represents the left margin and n2 represents the right one. Both n1 and n2 refer to the character column 0. The following table gives you the maximum values for n1 and n2. If n1 or n2 are 0 the current margin value will be used for n1 and n2. Character Pitch Max. column n2-n1 min. 10 CPI 12 CPI 15 CPI 17.1 CPI 20 CPI PROP 136 3 163 4 204 5 233 6 272 6 163 4 Auto Skip Over Perforation ASCII Hexadecimal Decimal Set skip over perforation Cancels skip over perforation ESC N n ESC O 1B 4E n 1B 4F 27 78 n 27 79 Sets the printer to automatically skip a specified number of lines between the last printed line of one page and the first printed line on the next page. The allowable range that can be skipped may be set from 1 to 255 lines at the current line spacing; the value of n cannot exceed the length of the current form. ESC N is reset by the ESC O command or a page length set command. 3 – 10 IBM Control Code Reference This feature is handy for printing program listings, and printouts from software that has no format control. However, we advise against using it with packages that do have page formatting controls, such as word processors: the skip over perforation is likely to interfere with the software and ruin your page format. Form Length in Inches ASCII Hexadecimal Decimal Sets form length in inches ESC C NUL n 1B 43 00 n 27 67 0 n Sets the form length to a specific number of inches where the value of n ranges from 1 to 182. The top of form position is set by this command, vertical tab settings are cleared, and the skip over perforation is cleared. Form Length by Lines ASCII Hexadecimal Decimal Sets form length by lines ESC C n 1B 43 n 27 67 n Sets the form length to a specific number of lines where the value of n ranges from 1 to 255. This command also sets the top of form position, clears vertical tab settings, and resets the skip over perforation. Top of Form Set ASCII Hexadecimal Decimal Sets TOF ESC 4 1B 34 27 52 The current position of the printhead will become the new top of form position (TOF) upon the receipt of this command. This command only sets the TOF when continuous form paper is installed in the printer and is ignored in CSF and SASF modes. IBM Control Code Reference 3 – 11 Vertical Margins Setting ASCII Vertical Margins Setting ESC [ S 1B 5B 53 n1 n1 n2 m1 n2 m1 m2 m2 p1 p2 p1 p2 n1 n2: m1 m2: p1 p2: Hexadecimal Decimal 27 91 83 n1 n2 m1 m2 p1 p2 number of parameters n1 + 256 * n2 top margin 256 * m1 + m2 bottom margin 256 * p1 + p2 n 1 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 edge of the first line. The unit is 1/1440". p1 and p2 defines the bottom margin distance from the top of form to the top edge of the bottom margin. The unit is 1/1440". 3 – 12 IBM Control Code Reference Line spaclng Lines Per Inch Spacing ASCII Hexadecimal Decimal Sets line spacing to 1/8 inch (8 lines per inch) Sets line spacing to 7/72 inch ESC 0 1B 30 27 48 ESC 1 1B 31 27 49 Sets line spacing to 1/8 or 7/72 inch. These commands do not affect the top of form position. You can also set 8 lines per inch in the Menu Select mode. Variable n/72 inch Line Spacing Selects line spacing value as n/72 inch* Activates the line spacing selected by ESC A n* ASCII Hexadecimal Decimal ESC A n 1B 41 n 27 65 n ESC 2 1B 32 27 50 ESC A n stores line spacing value in n/72 inch where n can range from 1 to 85. Important: Values greater than 85 may result in uncontrolled printing. This line spacing must be activated by ESC 2 to come into effect. For example, to set line spacing for double height characters, n would be 24. Then to set line spacing for triple height characters, n would be 36. Using the ESC 2 sequence without a previous ESC A n sets the line spacing to 6 lines per inch. Fine Line Spacing ASCII Sets the line spacing to n/216 inch* 27 51 n Hexadecimal Decimal ESC 3 n 1B 33 n Sets line spacing to n/216 of an inch where n can range from 1 to IBM Control Code Reference 3 – 13 255. Sets Base Unit to 1/180 inch or 1/216 inch ASCII Sets base unit for ESC 3 and ESC J to 1/180 inch or 1/216 inch ESC \ 4 0 1B 5B 5C 04 0 0 n1 n2 00 00 00 n1 n2 Hexadecimal Decimal 27 91 92 4 0 0 0 n1 n2 This command sets the base unit used in the commands ESC 3 and ESC J to either 1/180 inch or 1/216 inch. n1 = either 180 or 216, n2 = 0. Line feed ASCII Hexadecimal Decimal Executes line feed LF 0A 10 Depending on the setting of the AUTO CR item in the menu a CR will be added or not. Auto Line Feed ASCII Hexadecimal Decimal Sets Auto LF on Sets Auto LF off ESC 5 1 1B 35 31 ESC 5 0 1B 35 30 27 53 49 27 53 48 When Auto-LF is set to ON, each CR will cause a line feed to be executed. Fine Line Feed (n/216 inch) ASCII Executes n/216 inch line feed* ESC J n Hexadecimal Decimal 1B 4A n 27 74 n ESC J n sends an immediate n/216 inch line feed without changing the current line spacing. The variable n can have a range of 1 to 255. This command will not clear one-line double width character code SO. The menu setting defines whether a CR is sent. 3 – 14 IBM Control Code Reference Reverse Line Feed ASCII Hexadecimal Decimal Executes reverse line feed ESC ] 1B 5D 27 93 The current horizontal position does not change when this command is executed. * These commands have different functions in AGM. (Refer to the IBM Alternative Graphics Mode in Chapter 3). Note: Depending on the language set selected by menu, “]’’ could be another character. IBM Control Code Reference 3 – 15 Printing Features Underlining ASCII Hexadecimal Decimal Sets underline mode Cancels underline mode ESC - 1 ESC - 0 1B 2D 31 1B 2D 30 27 45 49 27 45 48 Underlining occurs at the same time characters are printed. The underline for super-/subscript characters appears on the same print line as that of the preceding characters, but does not strike through subscripts. All text, including spaces and punctuation, is underlined. Graphics are not underlined. Overscoring ASCII Hexadecimal Decimal Sets overscore mode ESC _ 1 1B 5F 31 27 95 49 Cancels overscore mode ESC _ 0 1B 5F 30 27 95 48 Overscoring prints a continuous line over the characters designated. The overscore for super-/subscript appears on the same line as for the preceding character. Print Mode Composite ASCII Hexadecimal Decimal Selects print mode ESC I n 1B 49 n 3 – 16 IBM Control Code Reference 27 73 n n Dec Print Mode 0 2 3 4 6 7 8 10 12 14 16 18 20 22 24 26 32 34 Utility LQ LQ Utility DLL LQ DLL LQ DLL Utility LQ Utility DLL LQ DLL Utility LQ Utility DLL LQ DLL Utility LQ Utility LQ Character Pitch 10 CPI 10 CPI Proportional 10 CPI 10CPI Proportional 12 CPI 12 CPI 12 CPI 12 CPI 17.1 CPI 17.1 CPI 17.1 CPI 17.1 CPI 15 CPI 15 CPI 20 CPI 20 CPI Using this composite command you can specify the print mode and the character pitch within one command. LQ stands for Letter Quality and DLL for DownLine Loadable characters. NLQ/High Speed Draft Sets NLQ printing or Sets High Speed Draft or ASCII Hexadecimal Decimal ESC # 2 or 1B 23 32 or 27 35 50 ESC ( 2 ESC # 0 or 1B 28 32 1B 23 30 or 27 40 50 27 35 48 ESC ( 0 1B 28 30 27 40 48 NLQ prints in either 10 or 12 CPI, while the High Speed Draft mode functions in either 15 or 18 CPI. Before switching print modes, make sure that the printer is set for a compatible pitch. IBM Control Code Reference 3 – 17 Colour Printing ASCII Hexadecimal Decimal Selects Colour Printing ESC r n 1B 72 n 27 114 n Colour printing is available on the ML393C printer only. If you own an ML393C, you must have a colour ribbon installed in order to print colour. 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. Value of n Colour 0 1 2 3 4 5 6 Black Magenta Cyan Violet Yellow Orange Green National Character Set ASCII Hexadecimal Decimal Selects National Character Set ESC ! n 1B 21 n 27 33 n Selects from 19 character sets a specific international character set, each of which has a set of characters and symbols used in a particular language. The decimal value of n ranges from 64 to 81 and 90. The following table shows the values that access these character sets. 3 – 18 IBM Control Code Reference Language n ASCII n decimal n Hexadecimal USA (0) USA (0) British German French Swedish 1 Danish Norwegian Dutch Italian French-Canadian Spanish Swedish 2 Swedish 3 Swedish 4 Turkish Swiss 1 Swiss 2 Legal/Publisher @ A B C D E F G H I J K L M N O P Q Z 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 90 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 5A IBM Control Code Reference 3 – 19 Code Page Normally the code page USA is the base for printable characters for the IBM Character Sets 1 and 2 and the All Character Set. In the sets 1 and 2 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 pages, the control codes in the IBM sets 1 and 2 do not change. To use one of the Code Pages the menu must be set accordingly. Using code pages like Multilingual, Norway, Turkey or Portugal enables you to use national characters and symbols which are not available in the normal character sets. The Code Page Character Sets are shown in Appendix B. National characters ASCII Hexadecimal Decimal Select Code Page ESC [ T ENQ NUL NUL NUL n 1 n2 NUL 1B 5B 54 05 00 00 00 n1 n2 00 27 91 84 5 0 0 0 n1 n2 0 These commands allow you to select character sets that replace some less frequently used characters with symbols used in a variety of European languages. Note: When Code Pages are selected, slashed zero can be selected by the menu. 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. Example To specify code page 850 use this BASIC statement: LPRINT CHR$ (27); “[T”; CHR$ (5); CHR$ (0); CHR$ (0); CHR$ (0);CHR$ (3); CHR$ (82); CHR$ (0); 3 – 20 IBM Control Code Reference Carriage Movement Backspace ASCII Hexadecimal Decimal Backspace BS 08 8 This prints 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 pitch in effect. Horizontal Tab ASCII Hexadecimal Decimal Execute horizontal tab HT 09 9 Causes the printhead to skip to the next horizontal tab setting which is specified either through default or the ESC D command. Tab positions are pitch dependent; settings remain in effect with pitch change. Vertical Tab ASCII Hexadecimal Decimal Tabs to next stop VT 0B 11 Prints data in the print buffer and advances paper to the next stop programmed by ESC B. If the AUTO CR option in the menu is set to YES a CR will be added to each VT. If no vertical tabs have been set, the VT command will be executed as a Line Feed. Form Feed ASCII Hexadecimal Decimal Advances to TOF FF 0C 12 Advances paper to the next top of form according to the current page length. A CR will be executed automatically. IBM Control Code Reference 3 – 21 Carriage Return ASCII Hexadecimal Decimal Carriage Return CR 0D 13 Initiates the printing of data from the print buffer and resets oneline double width mode. If the Auto Line Feed is set, a line feed is also automatically executed with the CR command. Horizontal Tab ASCII Hexadecimal Decimal Set Horizontal Tab ESC D n1 1B 44 n1 n2 n3... n2 n3 ...00 NUL 27 68 n1 n2 n3 ...0 Sets up to 28 horizontal tabs, which depend on the character pitch in effect. Specify tab settings from the home position in ascending order, and end the sequence with NUL. The range of n is a decimal value from 1 to 255. Tab settings are absolute and change in accordance with the left margin if it is reset. The HT command then causes the printer to skip to the next horizontal tab. Maximum n values are specified in the following table according to pitch: Pitch 10 12 15 17.1 18 20 Max. Value 135 162 203 232 243 255 ESC D NUL deletes all horizontal tabs. 3 – 22 IBM Control Code Reference Vertical Tabs ASCII Hexadecimal Decimal Sets Vertical Tab stops ESC B n1 1B 42 n1 n2 NUL n2...00 27 66 n1 n2...0 Sets from 1 to 64 absolute vertical tabs where n represents the line number, ranging from 1 to 255. Values must be entered in ascending order. Tabs are set in the current line spacing. End the tab sequence with NUL. The VT command then causes the printer to skip to the next tab stop. Vertical tabs are cleared with ESC B NUL or ESC R. Default Tab Setting ASCII Hexadecimal Decimal Sets Tabs to default ESC R 1B 52 27 82 The horizontal tabs will be set to their default value, which is every 8th column starting at column 9. The vertical tabulators will all be cleared, so a VT will result in a LF. Relative Dot Position ASCII Hexadecimal Decimal Relative dot position n/120 inch ESC d n1 n2 1B 64 nl n2 27 100 nl n2 Moves the print position a specified number of n/120 inches (dots) to the right of the current position. To calculate the values of nl and n2, divide the number of dots (n) you want to move by 256; the result is n2 and the remainder is n1. In other words, n = n1 + n2*256. The dot position is not print mode dependant. Values beyond the right margin will jump to the right margin. IBM Control Code Reference 3 – 23 Space Backwards ASCII Hexadecimal Decimal Space Backwards ESC e n1 1B 65 n1 n2 n2 27 101 n1 n2 This moves the print position a specified number of n/l 20 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 moves the cursor to the left margin. 3 – 24 IBM Control Code Reference Utility Commands Print Suppress Mode ASCII Hexadecimal Decimal Sets print suppress Cancels print suppress ESC Q # DC1 1B 51 23 11 27 81 35 17 When it receives the ESC Q # command, the printer ignores all data until it receives the DC1 command. The SELECT light will blink when the printer is in Print Suppress mode. The PRINT SUPPRESS EFFECTIVE menu option must be set to VALID for these commands to be activated. Deselect Printer ASCII Hexadecimal Decimal Sets printer offline ESC j 1B 6A 27 106 This command changes the printer from the select to the deselect mode like pushing the SELECT button. The only way to get into select mode again is to push the SELECT button. Cancel ASCII Hexadecimal Decimal Clears data CAN 18 24 Clears the print buffer. This command does not affect control codes stored in the printer’s memory. Unidirectional Printing ASCII Hexadecimal Decimal Unidirectional printing on Unidirectional printing off ESC U 1 ESC U 0 1B 55 31 1B 55 30 27 85 49 27 85 48 IBM Control Code Reference 3 – 25 Your printer is designed to maximize speed by printing alternately from the left and the right, rather than moving the printhead back to the left margin for each line. This bidirectional printing is fast, but may result in vertical misalignment of graphics or double and triple height characters. Turn on unidirectional printing when precise vertical alignment from line to line is critical. Quiet Mode ASCII Hexadecimal Decimal Set quiet print mode Cancel quiet mode ESC q 1 ESC q 0 1B 71 31 1B 71 30 27 113 49 27 113 48 Quiet mode reduces noise while the printer is in LQ, utility, or graphics modes. You can also select quiet mode on the front panel. You will notice that printing is much slower when you turn on quiet mode. Paper Out Detector ASCII Hexadecimal Decimal Enables paper out detector Disables paper out detector ESC 9 ESC 8 1B 39 1B 38 27 57 27 56 The detector senses when less than one inch of paper remains. When this happens, the alarm light goes on and the printer is deselected. This command overrides the detector so that you can print closer to the bottom of the page. (The feature is also menu selectable.) You can also override the detector manually by pressing the SELECT button, which causes the printing of a line of data followed by a line feed. Unprinted data is saved and printed after paper is replaced. Bell/Buzzer ASCII Hexadecimal Decimal Sounds buzzer BEL 07 This command sounds a beeper in the printer. 3 – 26 IBM Control Code Reference 7 Cut-Sheet Feeder Control These commands are only valid when a cut sheet feeder is installed. CSF Single Paper Feed ASCII Hexadecimal Decimal Feeds paper ESC EM I 1B 19 49 27 25 73 This command feeds a sheet of paper to the top of form position. If paper is already loaded, the printer ejects the loaded paper, and loads another sheet. The FF code is used to feed paper from the output tray. CSF Single Sheet Eject ASCII Hexadecimal Decimal Eject single sheet ESC EM R 1B 19 52 27 25 82 Ejects a single sheet. Data in the print buffer is printed before paper is ejected. A line feed code at the end of the page causes next sheet to load automatically. Multi Bin Select ASCII Hexadecimal Decimal Determines paper bin ESC EM n 1B 19 n 27 25 n Determines which paper bin is active when the dual bin CSF 3002 is installed. Bin 1 is the default. Replace n with 2 to select bin 2, or 1 to select bin 1. Note: Use Bin 1 for envelopes and be sure to adjust the printhead gap. See the Setup Guide for details. IBM Control Code Reference 3 – 27 Cut Sheet Feeder ASCII Cut Sheet Feeding ESC [ F 1B 5B 46 n1 n2 n1 n2 m1 m2 m3 m1 m2 m3 n1 n2: m1: m2: m3: Hexadecimal Decimal 27 91 70 n1 n2 m1 m2 m3 number of parameters n1 + n2 * 256 paper feeding method reserved should be m2 = 1 or m2 = 3 bin number n1 and n2 are the number of bytes in the sequence. Normally this will be three so n1 = 3 and n2 = 0. m1 defines paper feeding method and m2 is usually set to 1 and m3 defines the bin number. m1 = 1 m1 = 3 m3 = 0 m3 = 1 m3 = 2 set manually inserting mode set CSF mode no change Bin 1 Bin 2 3 – 28 IBM Control Code Reference Chapter 4 EPSON Control Code Reference Character Format Character Format (One line) ASCII Hexadecimal Decimal Sets double width for one line SO or ESC SO Cancels double width for one line DC4 0E or 1B 0E 14 14 or 27 14 20 Doubles character width for one line only; prints half as many characters per inch in each pitch. SO and ESC SO can also be cancelled by a carriage return or line feed, ESC W 0 or the ESC ! command. At the end of the line of double width characters current print mode resumes. ESC W 1 takes precedence over SO. Continuous Double Width Printing Sets double width print mode Cancels double width print ASCII Hexadecimal Decimal ESC W 1 or FS E 1 ESC W 0 or FS E 0 1B 1C 1B 1C 57 45 57 45 31 or 31 30 or 30 27 87 49 or 28 69 49 27 87 48 or 28 69 48 Doubles the width of all characters; produces half as many characters per inch in each pitch. With this command, double width characters print continuously until reset by ESC W 0. Double width can also be set by the ESC ! command. Triple Width Printing ASCII Hexadecimal Decimal Sets triple width printing Cancels triple width printing ESC m ESC W 0 1B 6D 1B 57 30 27 109 27 87 48 Triples the width of the characters. You can also cancel this feature by choosing either double or single width printing in the Menu Select mode. EPSON Control Code Reference 4 – 1 Double/Triple Height ASCII Sets double height printing ESC US SOH Sets triple height printing ESC US STX Cancel double/triple height ESC US NUL Sets double height printing FS V SOH Cancel double height printingFS V NUL Sets triple height printing ESC w SOH Cancel triple height printing ESC w NUL Hexadecimal Decimal 1B 1B 1B 1C 1C 1B 1B 1F 1F 1F 56 56 77 77 01 02 00 01 00 01 00 27 27 27 28 28 27 27 31 1 31 2 31 0 86 1 86 0 119 1 119 0 Double/triple height characters are printed twice/three times the height of standard characters from the same base line. Double/ triple and standard height characters can all be printed within the same line. To avoid having lines overlap, use the variable line spacing command to set double line spacing for double height and triple line spacing for triple height. You may also set it through your software. Print modes that accommodate double/triple height include utility and DLL utility, emphasised, double/triple width, and NLQ/LQ. Two and three passes are required for double and triple height characters respectively. Italic Characters ASCII Hexadecimal Decimal Set italic print mode Cancels italic printing ESC 4 ESC 5 1B 34 1B 35 27 52 27 53 Prints italic (slanted) characters. You can also select italic printing using the ESC ! command or the menu. Characters may overlap on to the next character cell. 4 – 2 EPSON Control Code Reference Select IBM Character Set ASCII Hexadecimal Decimal Selects IBM Set 1 Selects IBM Set 2 ESC 7 ESC 6 1B 37 1B 36 27 55 27 54 Use these commands to select either of the IBM character sets illustrated in Appendix B. Before selecting either set, send the command ESC t 1 to select the graphics character tables. Compressed Print ASCII Hexadecimal Decimal Sets 17.1 or 20 CPI pitch SI or ESC SI DC2 0F or 1B 0F 12 Cancels 17.1/20 CPI 15 or 27 15 18 When compressed print is in effect, pica print (10 cpi) becomes 17.1 cpi, and elite print (12 cpi) becomes 20 cpi. Neither double nor triple width is affected by the SI command, which you can place anywhere within a line. Emphasised Printing ASCII Hexadecimal Decimal Sets emphasised print mode Cancels emphasised print mode ESC E ESC F 1B 45 1B 46 27 69 27 70 Prints second dot slightly to the right of each previously printed dot, creating characters that are thicker horizontally. Emphasised printing is performed at half speed, and can be done in conjunction with enhanced printing. The ESC ! command and the Menu Select mode can also implement emphasised printing. Enhanced/Double Strike Printing ASCII Hexadecimal Decimal Sets enhanced print mode Cancels enhanced print mode ESC G ESC H 1B 47 1B 48 27 71 27 72 EPSON Control Code Reference 4 – 3 Prints second dot slightly below each printed dot, creating characters that are thicker vertically. The printer makes two passes per line. This feature can be combined with emphasised printing. ESC ! command and the Menu Select mode can also control enhanced printing. Outline and Shadow Printing ASCII Hexadecimal Decimal Begin outline 1B 71 01 27 113 1 1B 71 02 27 113 2 1B 71 03 27 113 3 1B 71 00 27 113 0 Begin shadow Begin shadow and outline End shadow and/or outline ESC q SOH ESC q STX ESC q ETX ESC q NUL Use the outline and shadow effects to produce more interesting and stylish headings. They can be combined together, as well as with emphasized 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 Pitch ASCII Hexadecimal Decimal Elite (12 cpi) Pica (10 cpi) 15 CPI ESC M ESC P ESC g 1B 4D 1B 50 1B 67 27 77 27 80 27 103 In compressed mode, elite pitch becomes 20 cpi and pica becomes 17.1 cpi; compressed mode does not affect 15 cpi. Note: You can make pitch changes within a line without affecting double or triple width printing. 4 – 4 EPSON Control Code Reference Space Between Characters ASCII Hexadecimal Decimal Sets spacing between characters ESC SP n 1B 20 n 27 32 n Upon receipt of this command the printer determines the amount of space to be added to the right of each character which is to be specified in dots. The value of n may be from 0 to 127. Proportional Spacing ASCII Sets/cancels proportional spacing ESC p n Hexadecimal Decimal 1B 70 n 27 112 n Either sets or cancels proportional printing. Where n = l proportional printing is turned on; where n = 0 it is turned off. Superscript Printing ASCII Hexadecimal Decimal Sets superscript mode Cancels superscript mode ESC S 0 ESC T 1B 53 30 1B 54 27 83 48 27 84 You can print superscripts in the compressed print mode; they appear as half height, full-width characters. Subscript Printing ASCII Hexadecimal Decimal Sets subscript mode Cancels subscript mode ESC S 1 ESC T 1B 53 31 1B 54 27 83 49 27 84 You can print subscripts in the compressed print mode; they appear as half-height, full-width characters. EPSON Control Code Reference 4 – 5 Font Selection ASCII Hexadecimal Decimal Select typestyles ESC k n 1B 6B n 27 107 n With this command, you can choose either the typestyle resident in the printer or a typestyle in an optional font cartridge. If the value of n is not one of those given in the following table, the resident typestyle will be selected. Decimal value of n 0 1 2 3 5 6 122 124 126 127 Typestyle Roman Swiss Courier (default font) Prestige OCR-B (with OCR-B font cartridge installed) OCR-A (with OCR-A font cartridge installed) Swiss Bold Letter Gothic Resident (Courier) Cartridge (with any font cartridge installed) Extended Character Set ASCII Hexadecimal Decimal Italics set ESC t NUL or FS I NUL ESC t SOH or FS I SOH ESC t STX 1B 74 1C 49 1B 74 1C 49 1B 74 27 28 27 28 27 Graphics set DLL Set 00 or 00 01 or 01 02 116 0 73 0 116 1 or 73 1 116 2 This command selects the set of characters printed for the high ASCII values, 128 through 255. Use the command ESC t 1 before selecting one of these graphics character sets. 4 – 6 EPSON Control Code Reference Page Format Left Margin ASCII Hexadecimal Decimal Sets left margin ESC l n 1B 6C n 27 108 n This command sets the left margin. The value of n is the width of the margin from the far left printhead position, measured in spaces at the active character pitch (proportional spacing is treated as 10 cpi). Changing the pitch later will not affect the margin. Send this command at the beginning of a line, because it will delete any data that has been sent to the printer, but has not been printed. Using this command will reset horizontal tabs to the default of eight spaces, starting at the new margin. The left margin cannot be more than 254 spaces, and it must be less than the right margin. The following table shows the maximum allowable left and right margins for the various character pitches. Pitch (cpi) 10 12 15 17.1 18 20 Left Margin Right Margin 135 162 203 232 243 254 136 163 204 233 244 255 EPSON Control Code Reference 4 – 7 Right Margin ASCII Hexadecimal Decimal Sets right margin ESC Q n 1B 51 n 27 81 n This command sets the right margin. The value of n is the margin’s distance from the far left printhead position, measured in spaces at the active character pitch. (Proportional spacing is treated as 10 cpi). Changing the pitch later will not affect the margin. Send this command at the beginning of a line, because it will delete any data that has been sent to the printer, but has not been printed. The right margin cannot be more than 255 spaces, and it must be greater than the left margin. The previous table shows the maximum allowable left and right margins for the various character pitches. Auto Skip Over Perforation ASCII Hexadecimal Decimal Sets skip over perforation Cancels skip over perforation ESC N n ESC O 1B 4E n 1B 4F 27 78 n 27 79 Sets the printer to automatically skip a specified number of lines between the last printed line of one page, and the first printed line on the next page. The allowable range that can be skipped may be set from 1 to 127 lines at the current line spacing; the value of n cannot exceed the length of the current form. ESC N is reset by the ESC O command or a page length set command. This feature is handy for printing program listings, and printouts from software that has no format control. However, we advise against using it with packages that do have page formatting controls, such as word processors: the skip over perforation is likely to interfere with the software and ruin your page format. 4 – 8 EPSON Control Code Reference Form Length in inches ASCII Hexadecimal Decimal Sets form length in inches ESC C NUL n 1B 43 00 n 27 67 0 n Sets the form length to a specific number of inches where the value of n ranges from 1 to 22. The top of form position is set by this command, and vertical tab settings are cleared. Form Length by lines ASCII Hexadecimal Decimal Sets form length by lines ESC C n 1B 43 n 27 67 n Sets the form length to a specific number of lines where the value of n ranges from 1 to 127. This command also sets the top of form position, clears vertical tab settings, and cancels skip over perforation. Auto justification ASCII Hexadecimal Decimal Aligns print on the page ESC a n 1B 61 n 27 97 n To use this feature, issue the command at the beginning of the block of text you want to justify. Only use carriage return at the end of a paragraph. Selections depend on the value of n as follows: Value of n Justification 0 1 2 3 Left Centre Right Full EPSON Control Code Reference 4 – 9 In left justification (the default), each line is even with the left margin. The centre selection centres each line between the left and right margins. Right justification aligns against the right margin, leaving the left margin ragged. With full justification, both the left and right margins are justified. 4 – 10 EPSON Control Code Reference Line Spacing 8 Lines Per Inch Spacing ASCII Hexadecimal Decimal Sets line spacing to 8 lpi ESC 0 1B 30 27 48 Sets line spacing to 8 lines per inch. This command does not affect the top of form position. You can also set this feature through the Menu Select mode. 6 Lines Per Inch Spacing ASCII Hexadecimal Decimal Sets line spacing to 6 lpi ESC 2 1B 32 27 50 This is the default line spacing. This command does not affect the top of form position. You can also set this feature through the Menu Select mode. Variable n/60 Inch Line Spacing Sets variable line spacing to n/60 inch ASCII Hexadecimal Decimal ESC A n 1B 41 n 27 65 n Sets line spacing to n/60 of an inch where n can range from 0 to 127 (although it is recommended that the range does not exceed 85). Line feeds will not occur if n = 0. For example, to set line spacing for double height characters, n would be 20. Then to set line spacing for triple height, n would be 30. Fine Line Spacing (n/180 inch) ASCII Sets variable line spacing to n/ 180 inch Hexadecimal Decimal ESC 3 n 1B 33 n 27 51 n Sets line spacing to n/180 of an inch where n can range from 0 to 255. Line feeds will not occur if n = 0. EPSON Control Code Reference 4 – 11 Fine Line Spacing ASCII Hexadecimal Decimal Sets variable line spacing to n/360 inch ESC [ n 1B 5B n or or ESC + n 1B 2B n or or FS 3 n 1C 33 n 27 91 n or 27 43 n or 28 51 n Sets line spacing to n/360 of an inch where n can range from 0 to 255. Line feeds will not occur if n = 0. Note: Depending on the language set selected by menu, “[“ could be another character. Line Feed ASCII Hexadecimal Decimal Initiates line feed LF 0A 10 LF initiates the printing of data and moves to the next line. Reverse Line Feed ASCII Hexadecimal Decimal Executes reverse line feed ESC j n 1B 6A n 27 106 n Initiates a single reverse line feed n/180 inch, where n can range in value from 0 to 60. This command does not change the current line spacing. Remember to return to the previous position after reverse line feeding or you may overstrike characters. Note: Do not use reverse line feeds if you are using the optional pull tractor. 4 – 12 EPSON Control Code Reference Fine Line Feed (n/180 inch) ASCII Hexadecimal Decimal Executes n/180 inch line feed ESC J n 1B 4A n 27 74 n ESC J sends an immediate n/180 of an inch line feed without changing current line spacing. The variable n can have a range of 0 to 255; no line feed occurs when n = 0. Fine Line Feed (n/360 inch) ASCII Hexadecimal Decimal Executes n/360 inch line feed ESC ] n 1B 5D n 27 93 n ESC ] sends an immediate n/360 of an inch line feed without changing current line spacing. The variable n can have a range of 0 to 255; no line feed occurs when n = 0. Note: Depending on the language set selected by the menu, “]” could be another character. Line Feed Direction ASCII Line feed direction backwards FS R Line feed direction forwards FS F Hexadecimal Decimal 1C 52 1C 46 28 82 28 70 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 forwards line feed. The line feed direction forwards command cancels this reversal of movement, and all subsequent line feed commands are acted upon in the normal manner. EPSON Control Code Reference 4 – 13 Printing Features Underlining ASCII Hexadecimal Decimal Sets underline mode Cancels underline mode ESC - 1 ESC - 0 1B 2D 31 1B 2D 30 27 45 49 27 45 48 Underlining occurs at the same time characters are printed. The underline for super-/subscript characters appears on the same print line as that of the preceding characters, but does not strike through subscripts. Set Scoring Style ASCII Hexadecimal Decimal Set Scoring Style ESC ( – n1 n2 m d1 d2 1B 28 2D 27 40 45 n1 n2 m d1 d2 n1 n2 m d1 d2 This command sets the style and location of the line scoring. n1 and n2 specify the number of bytes in the sequence. n1 must be 3, n2 must be 0 and m must be 1. d1 sets the location of the line scoring and d2 sets the style. d1 Location d2 Style 1 2 3 underline strike-through overscore 0 1 2 5 6 cancel scoring single line double line single, broken line double, broken line 4 – 14 EPSON Control Code Reference Combination Print ASCII Hexadecimal Decimal Selects a combination of print modes ESC ! n 1B 21 n 27 33 n By changing the value of n in this command, you can set any combination of the printing styles in the following table. Calculate n by adding up the values for the features you want to use. Each feature has a numerical value as follows: Feature Underline Italics Double width Enhanced Emphasized Compressed Proportional Elite (12 CPI) Value 128 64 32 16 8 4 2 1 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. This means that if you have requested 12 CPI underlined italics, and then want to add emphasized printing to the features, you must add 8 (the value for emphasized) to 193, and send the command as: ESC ! 201. Just sending ESC ! 8 would turn off all the other features as it turned emphasized on. To see the range of print styles you can access with the ESC ! n command, 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.) EPSON Control Code Reference 4 – 15 10 OPEN “LPT1:” AS #1: WIDTH “LPT1:”, 255 20 FOR I=0 TO 255 30 PRINT # 1: PRlNT # 1 40 PRINT #1, CHR$(27);“!”;CHR$(I);“ESC!”;“n”; selects this combination” 50 NEXT I NLQ/High Speed Draft ASCII Hexadecimal Decimal Sets NLQ printing Sets High Speed draft ESC ( 2 ESC ( 0 1B 28 32 1B 28 30 27 40 50 27 40 48 NLQ prints in either 10 or 12 cpi, while the High Speed Draft mode functions in either 15 or 18 CPI. Before switching print modes, make sure that the printer is set for a compatible character pitch. LQ/Utility ASCII Hexadecimal Decimal Sets LQ printing Sets Utility printing ESC x 1 ESC x 0 1B 78 31 1B 78 30 27 120 49 27 120 48 LQ is the factory set print mode; it is available in 10, 12, 15, 17.1, and 20 CPI. Utility printing is available in 10, 12,15, 17.1, and 20 CPI. LQ is the only mode that allows proportional spacing. The LQ print command sent while the printer is in either the utility or DLL modes initiates LQ proportional space printing. The proportional space cancel command then returns the printer to its respective print mode, either DLL or utility. 4 – 16 EPSON Control Code Reference Colour Printing ASCII Hexadecimal Decimal Select Colour Printing ESC r n 1B 72 n 27 114 n Colour printing is available on the ML393C printer only. lf you own an ML393C, you must have a colour ribbon installed in order to print colour. 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: Value of n 0 1 2 3 4 5 6 Colour Black Magenta Cyan Violet Yellow Orange Green EPSON Control Code Reference 4 – 17 Foreign Character Set ASCII Hexadecimal Decimal Selects Foreign Character Set ESC R n 1B 52 n 27 82 n Selects from 22 character sets a specific international character set each of which has a set of 16 characters and symbols used in a particular language. The decimal value of n ranges from 0 to 20 and 64. You can also print international characters in italics. The following table shows the values that access the character sets. Language ASCII FRENCH GERMAN BRITISH DANISH I SWEDISH ITALIAN SPANISH I JAPANESE NORWEGIAN DANISH II SPANISH II LATlN AMERICAN FRENCH CANADIAN DUTCH SWEDISH II SWEDISH III SWEDISH IV TURKISH SWISS I SWISS II LEGAL/PUBLISHER 4 – 18 EPSON Control Code Reference Decimal value of n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 64 Hexadecimal Decimal 23 24 26 40 4F 5B 5C 5D 5E 5F 60 69 7B 7C 7D 7E 35 36 38 64 79 91 92 93 94 95 96 105 123 124 125 126 n = Language \ ] ^ _ ` i { | } ~ 0 [ ° ç § ^ _ ` i é ù è ¨ § 0 Ä Ö Ü ^ _ ` i ä ö ü & @ 0 [ \ ] ^ _ ` i { | } ß ~ & @ 0 Æ O Å ^ _ ` i æ ø å ~ $ & É 0 Ö Å Ü _ é i ä ö å ü # $ & @ 0 Ä ° \ _ ù i à ò è $ & @ 0 ¡ Ñ é ¿ ^ Pt ^ _ ` i ¨ ñ } ì ~ $ & @ 0 [ ¥ ] ^ _ ` i { | } ~ & É 0 Æ Ø Å Ü _ é i æ ø å ü $ & É 0 _ é i æ ø å ü á 0 Ñ Å ¿ Ü & Æ ¡ Ø $ é _ ` i í ñ ó ú # $ & á 0 ¡ Ñ ¿ é _ ü i í ñ ó ú 13 French-Canadian ü $ ë à 0 â ç ê î ï ô i é ù è 14 Dutch £ $ & @ 0 [ IJ ] ^ _ ` i { ij } û ~ 15 Swedish II # $ & É 0 Ä Ö Å Ü _ é i ä ö å ü 16 Swedish III § $ & É 0 Ä Ö Å Ü _ é i ä ö å ü 17 Swedish IV § & É 0 Ä Ö å ^ _ é i ä ö å ü 18 Turkish ç s $ g Ç S 0 i ö ü G _ ç i ± Ö Ü 19 Swiss I £ $ & ç 0 à é è ^ _ ` i ä ö ü Ç " 20 Swiss II £ $ & § 0 ö & § 0 ¶ ± ` ` ä $ è " i # ç ' _ Legal/Publisher à ° ^ 64 i © 0 ASCII (0) # $ & @ 0 1 French # $ & à 2 German # $ & 3 British £ $ 4 Danish I # $ 5 Swedish I # 6 Italian 7 Spanish I 8 Japanese # 9 Norwegian # 10 Danish II # 11 Spanish II # 12 Latin-American ü é † ™ EPSON Control Code Reference 4 – 19 National Characters ASCII Hexadecimal Decimal Select National Character Set and Code Pages ESC R n 1B 52 n 27 82 n 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. When a code page is selected and national character set command is sent, the code page will be reset to USA. Slashed zero can be selected by the menu even though code page is selected. ESC R 7 sets Spanish I when standard Italic Character Set is selected. ESC R 7 sets Cyrillic code page when Graphic Character Set is selected. When the code page selection command is sent, the national character set will be reset to default. 4 – 20 EPSON Control Code Reference Carriage Movement Backspace ASCII Hexadecimal Decimal Backspace BS 08 8 This prints 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 pitch in effect. Horizontal Tab ASCII Hexadecimal Decimal Execute horizontal tab HT 09 9 Causes the printhead to skip to the next horizontal tab setting which is specified either through default or the ESC D command. Tab positions are pitch dependent; settings remain in effect with pitch change. Vertical Tab ASCII Hexadecimal Decimal Execute vertical tab VT 0B 11 Prints data in the print buffer and advances paper to the next tab stop programmed by ESC B or ESC/. Form Feed ASCII Hexadecimal Decimal Advances to TOF FF 0C 12 Advances paper to the next Top of Form according to the current page length. EPSON Control Code Reference 4 – 21 Carriage Return ASCII Hexadecimal Decimal Carriage Return CR 0D 13 Initiates the printing of data from the print buffer and resets oneline double width mode. If the Auto Line Feed is set, a line feed is also automatically sent with the CR command. Horizontal Tab ASCII Hexadecimal Decimal Set horizontal tab ESC D n1 n2 n3...NUL 1B 44 n1 n2 n3...00 27 68 n1 n2 n3...0 Sets up to 32 horizontal tabs, which depend on the character pitch in effect. Specifies tab settings from the home position in ascending order, and end the sequence with 0. The range of n is a decimal value from 1 to 255. Tab settings are absolute and change in accordance with the left margin if it is reset. The HT command causes the printer to skip to the next horizontal tab. Maximum n values are specified as follows according to pitch: Pitch 10 12 15 17.1 18 20 Max. Value 135 163 203 233 243 255 4 – 22 EPSON Control Code Reference Vertical Tabs ASCII Hexadecimal Decimal Sets vertical tab stops ESC B n1 n2...NUL 1B 42 n1 n2...00 27 66 n1 n2...0 Sets from 1 to 16 absolute vertical tabs where n represents the line number, ranging from 0 to 255. Values must be entered in ascending order. Tabs are set in the current line spacing. End the tab sequence with 0. ESC B NUL clears the vertical tabs. The VT command causes the printer to skip to the next tab stop. Vertical Tab Channel ASCII Hexadecimal Decimal Selects vertical tab channel ESC / n 1B 2F n 27 47 n Causes the printer to select one of the vertical tab channels, previously set through the ESC b command. The variable n represents the number of the desired channel, and can have a value from 0 to 7. Absolute Horizontal Tab ASCII Hexadecimal Decimal Absolute horizontal tabs ESC $ n1 n2 1B 24 n1 n2 27 36 n1 n1 n2 Moves the printhead to an absolute position (independent of character pitch) and initiates printing. To calculate the values of n1 and n2, begin with the distance of the tab from the left margin in inches. Multiply that distance by 60, then divide the result by 256; the whole number result is n2 and the remainder is n1. Suppose, for example, you want to set a tab 9 inches from the margin: 9 multiplied by 60 equals 540; 540 divided by 256 equals 2, with a remainder of 28, so n1 = 28 and n2 = 2. EPSON Control Code Reference 4 – 23 Relative Dot Position ASCII Hexadecimal Decimal Relative dot position ESC \ n1 n2 1B 5C n1 n2 27 92 n1 n2 Moves the print position a specified number of dots to the left or right of the current print position. To calculate the values of n1 and n2, divide the number of dots you want to move by 256; the result is n2 and the remainder is n1. Actual dot position is print mode dependent use the dots/inch figures in the following table to calculate position in inches. Values beyond the right margins are ignored. Allowable dot position values can range to the following maximums: Mode Dots/Line Dots/inch HSD, NLQ, Utility LQ, Proportional 1631 2447 120 180 Remark: Depending on the language set selected by menu, “ \ “ could be another character. Set Vertical Format Unit ASCII Hexadecimal Decimal Sets vertical tabs for specified channels ESC b n x1 x2 .. NUL 1B 62 n x1 x2..00 27 98 n x1 x2..0 Allows you to set up to eight sets of vertical tab stops (channels), each of which can contain up to 16 stops, represented by x1, x2.... The variable n represents the channel (0 to 7). Values given to the x variables can range from 1 to 254 and represent the line number of the stop. The stops must be given in ascending order; the sequence is terminated by sending a 0 to the printer. To clear the vertical tabs in a given channel, send the ESC b n 0 command. 4 – 24 EPSON Control Code Reference Relative Tab Stops ASCII Hexadecimal Decimal Sets variable horizontal or vertical tabs ESC e n x 1B 65 n x 27 101 n x Sets horizontal or vertical tabs where x can range from 0 to 127 and represents either character or line spaces from the current print position. The value of n specifies horizontal (n = 0) or vertical (n = l) tabs. Relative Print Position ASCII Hexadecimal Decimal Sets horizontal position Sets vertical position ESC f 0 n ESC f 1 n 1B 66 30 n 1B 66 31 n 27 102 48 n 27 102 49 n This command moves the printhead either horizontally or vertically. If the horizontal setting is used, n represents 0 to 127 space characters. With the vertical setting, n represents 0 to 127 line feed characters. EPSON Control Code Reference 4 – 25 Utility Commands Reset ASCII Hexadecimal Decimal Resets printer ESC @ or FS @ 1B 40 or 1C 40 27 64 or 28 64 This command resets the printer, returning it to its default state (i.e., the settings on the current menu and, if set, Macro 1). This is also called initializing the printer. Resetting also clears any data in the printer’s buffer waiting to be printed. If RESET INHIBIT in the menu is set to YES, these commands will be ignored. Resetting is sometimes used to initialize the printer at the beginning or end of a program run. Many applications are written to automatically reset the printer, which could interfere with settings you have made on the control panel or through control codes. If your software allows you to add or modify setup strings or initialization strings, you can eliminate reset commands that you do not need, or add them where you want to automatically return the printer to its defaults. Refer to your software manual for details on modifying printer drivers. Print Suppress Mode ASCII Hexadecimal Decimal Sets print suppress Cancels print suppress DC3 DC1 13 11 19 17 When it receives the DC3 command, the printer ignores all data until it receives the DC1 command. If this causes loss of data, you can use the Menu Select mode to make the printer ignore DC3. The SELECT light will blink when the printer is in Print Suppress mode. The menu option PRINT SUPPRESS EFFECTIVE must be set to VALID for these commands to be active. 4 – 26 EPSON Control Code Reference Cancel ASCII Hexadecimal Decimal Clears data CAN 18 24 Clears the print buffer. This command does not affect control codes stored in the printer’s memory. Unidirectional Printing ASCII Hexadecimal Decimal Unidirectional printing on Unidirectional printing off ESC U 1 ESC U 0 1B 55 31 1B 55 30 27 85 49 27 85 48 Your printer is designed to maximise speed by printing alternately from the left and the right, rather than moving the printhead back to the left margin for each line. This bidirectional printing is fast, but may result in vertical misalignment of graphics or double and triple height characters. Turn on unidirectional printing when precise vertical alignment from line to line is critical. Half Speed Printing ASCII Hexadecimal Decimal Half Speed Printing on Half Speed Printing off ESC s 1 ESC s 0 1B 73 31 1B 73 30 27 115 49 27 115 48 Sets or cancels half speed printing in text modes only. This is another way to reduce noise when you are printing. EPSON Control Code Reference 4 – 27 Paper Out Detector ASCII Hexadecimal Decimal Enables paper out detector Disables paper out detector ESC 9 ESC 8 1B 39 1B 38 27 57 27 56 The detector senses when less than one inch of paper remains. When this happens, the alarm light goes on and the printer is deselected. This command overrides the detector so that you can print closer to the bottom of the page. (This feature is also menu selectable.) You can also override the detector manually by pressing the SELECT button, which causes the printing of a line of data to be followed by a line feed. Unprinted data is saved and printed after the paper is replaced. One Line Unidirectional ASCII Hexadecimal Decimal One Line Unidirectional printing on ESC < 1B 3C 27 60 Initiates unidirectional printing for one line only. 7- or 8-Bit Commands ASCII Hexadecimal Decimal Sets MSB to 1 Sets MSB to 0 Cancels 7-bit or 8-bit selection ESC > ESC = ESC # 1B 3E 1B 3D 1B 23 27 62 27 61 27 35 The ESC > command sets the Most Significant Bit (MSB) of an 8- bit data input to 1. The ESC = commands 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. Bell/Buzzer ASCII Hexadecimal Decimal Sounds buzzer BEL 07 This command sounds a beeper in the printer. 4 – 28 EPSON Control Code Reference 7 Delete Character ASCII Hexadecimal Decimal Deletes last character sent to print buffer DEL 7F 127 Deletes the last character sent to the printer. This command deletes one space of a horizontal tab skip and will not delete graphics data. Cut-Sheet Feeder Control These commands are only valid when a cut sheet feeder is installed. CSF Single Paper Feed ASCII Hexadecimal Decimal Feeds paper ESC EM 1 1B 19 49 27 25 73 This command feeds a sheet of paper to the top of form position. If paper is already loaded, the printer ejects the loaded paper, and loads another sheet. The FF code is used to feed paper from the output tray. CSF Single Sheet Eject ASCII Hexadecimal Decimal Ejects single sheet ESC EM R 1B 19 52 27 25 82 Ejects a single sheet. Data in the print buffer is printed before paper is ejected. A line feed code at the end of the page causes the next sheet to load automatically. EPSON Control Code Reference 4 – 29 Multi Bin Select ASCII Hexadecimal Decimal Determines paper bin ESC EM n 1B 19 n 27 25 n Determines which paper bin is active when the dual-bin CSF 3002 is installed. Bin 1 is the default. Replace n with 2 to select bin 2, or 1 to select bin 1. Note: Use Bin 1 for envelopes and be sure to adjust the printhead gap. See the Setup Guide for details. 4 – 30 EPSON Control Code Reference Chapter 5 Graphics Your printer’s bit image graphics feature lets you create rules, borders, charts, and even entire illustrations. Just as a newspaper photograph is actually made up of tiny dots, the graphic images your printer makes are actually tiny dot patterns that together make up a picture. The challenge is managing the hundreds or even thousands of dots as you would like to. Because it is the easiest and most effective way for you to create images, we suggest that you use a graphics software package. These packages are sophisticated programs designed to handle all those graphic dots for you, so that you can create images easily without writing a single line of programming. But, if you really want to, you can write your own programs to produce graphics printouts. First you must learn a little about your printer’s technology. Your ML393 printhead has two columns of 12 pins, for a total of 24 pins. Images are created as the pins “fire,” pressing the inked ribbon against the paper to produce dots. In places where no pins have been fired, no ink is deposited on the paper, and white space appears on the page. In some of the ASCII modes the printer uses a “Quasi-8-bit Mode”. Basically this means that although you program the byte for 8 pins your printer will automatically convert this data for its 24 pin printhead. So that for every dot you program in a columm, two dots will be printed. Graphics 5 – 1 The following table should help you to understand the effect this has: Pin/Bit Set. Top Bottom 7 6 5 4 3 2 1 0 Pins Fired 1 4 6 9 11 14 16 19 and and and and and and and and 2 5 7 10 12 15 17 20 Note: Pin 3 would also be fired if 7 and 6 are set to fire together. This also applies for Pins 8, 13 and 18 when the pins above and below are set to fire together. Pins 21 to 24 are not used in this mode. The ML393’s 24-pin graphics modes use all the pins to create a column of 24 dots. Obviously, images produced with all 24 pins can be sharper and more detailed than 8-pin images. Note: If you have software that supports 24-pin graphics, you will be able to print in all the 24-pin modes. Owners of older software that supports only 8-pin graphics can use the ML393’s 8-pin modes. Graphics programs, whether sophisticated commercial packages or simple programs similar to our graphics demo send a series of commands to the printer, which then uses them to control the firing of the pins. The software control for graphics comes from both the control codes listed later on and the graphics data sent from the computer. Before we discuss the control codes, let us take a look at the structure of graphics data. 5 – 2 Graphics Graphics data, like all other data sent to the printer, consists of a series of bytes. Each of the eight bits in a byte of graphics data corresponds to one pin on the printhead. A bit’s value can be either 1 or 0. When the printer receives the data, it interprets a bit with a value of 1 as a command to fire the corresponding pin. Bits that are set to 0 do not cause pins to fire. Instead of sending the data to the printer bit by bit, you will probably want to convert this binary information into decimal or hexadecimal format for use with your programming language. In the following figure we show how to determine the decimal value for a given pattern of bits/pins. A Byte of Graphics Data 128 Pin fired Pin not fired 128 x 1 = 128 64 64 x 0 = 0 32 32 x 1 = 32 16 16 x 1 = 16 8 8x0 = 0 4 4x1 = 4 2 2x1 = 2 1 1x1 = 1 183 In the 8-bit graphics modes, where only 8 pins may be used, a single byte of data (8 bits) represents one column of printed graphics. In the 24-pin modes, the printer co-ordinates the printhead’s movement with the firing of pins in such a way that the printed dots appear in a single column, 24 dots high. For this reason, 3 bytes of data (for a total of 24 bits) are needed for each column of 24-pin graphics. Graphics 5 – 3 A Byte of 24 Pin Graphics Data Byte 1 Byte 2 Byte 3 128 128 x 1 = 128 64 64 x 0 = 0 32 32 x 1 = 32 16 16 x 1 = 16 8 8x0 = 0 4 4x1 = 4 2 2x1 = 2 1 1x1 = 1 128 128 x 0 = 0 64 64 x 1 = 64 32 32 x 1 = 32 16 16 x 1 = 16 8 8x0 = 0 4 4x1 = 4 2 2x1 = 2 1 1x0 - 0 128 128 x 0 = 0 64 64 x 1 = 64 32 32 x 0 = 0 16 16 x 1 = 16 8 8x0 = 0 4 4x1 = 4 2x1 = 2 1x1 = 1 1 Pin fired Pin not fired 5 – 4 Graphics Byte 1 = 183 Byte 2 = 118 Byte 3 = 87 Control Codes for Graphics in Normal IBM Mode The following graphics commands apply to the normal IBM mode. Graphics Command ASCII Hexadecimal Decimal Single Density n2 1B 4C n1 n2 ESC Y n1 n2 density High Density ESC K n1 n2 1B 4B n1 n2 27 75 n1 Double Density half speed ESC L n1 n2 27 76 n1 n2 Doub1e Density full speed 1B 59 n1 n2 27 89 n1 n2 Quadruple ESC Z n1 n2 1B 5A n1 n2 27 90 n1 n2 ESC [ g 1B 5B 67 27 91 103 n1 n2 m n1 n2 m n1 n2 m Probably the easiest command to use from the above table will be the High Density Command ESC[g nl n2 m data, where n1 n2 are the number of bytes of data that are going to be printed in graphics, m is the mode which is followed by the actual dot-column information. Graphics 5 – 5 Note: The calculation of nl and n2 is described in the AGM section under the heading Writing the Program. The reason for this command being the easiest is that it covers all the other commands as you can see from the following table: m = Dots per Inch (h) 0 1 2 3 8 9 11 12 60 120 120 240 60 120 180 360 Dots Per Line Pins 816 1632 1632 3264 816 1632 2448 4896 8* 8* 8* 8* 24 24 24 24 Comment same as ESC K command same as ESC L command same as ESC Y command same as ESC Z command *8 denotes quasi 8-bit graphics. In addition to the commands for graphic density, there are also several control codes for setting different line spacings. These are only summarised in the following table because for the ASCII 5 – 6 Graphics mode, the commands have already been explained in some detail under Line Spacing in Chapter 1. Note: If you Line have Spacing set the AGM some of these commands will have a different Graphics ASCII Hexadecimal Decimal function to those described in the following table. Selects line spacing value ESC A n 1B 41 n 27 65 n in n/72 inch Activates the line spacing ESC 2 1B 32 27 50 selected by ESC A n Sets the line spacing to ESC 3 n 1B 33 n 27 51 n n/216 inch Executes n/216 inch line feed ESC J n 1B 4A n 27 74 n Sets the base constant for ESC [ \ 4 1B 5B 5C 04 27 91 92 4 ESC J and ESC 3 NUL NUL 00 00 00 000 NUL n1 n2 n1 n2 n1 n2 Note: 1. Depending on the language set selected by the menu, “ [“ could be another character. 2. n1 = 0, n2 = either 180 or 216 (216 is default). Select Aspect Ratio ASCII Hexadecimal Decimal Select aspect ratio ESC n d 1B 6E d 27 110 d This command specifies the horizontal to vertical aspect ratio for the graphics bit image commands, ESC K, ESC L, ESC Y and ESC 2. d = 0 or 1: d = 2: d >= 3: select aspect ratio of 5:6 select aspect ratio of 1:1 ignored. The aspect ratio determines the vertical dot density depending on the bit image command being used. Graphics 5 – 7 The IBM Alternate Graphics Mode In this mode (AGM) all commands which are involved in graphic line spacing have a different meaning. This mode is partly compatible to the EPSON LQ series printers: LQ 1500 LQ 800/1000 LQ 2500 as far as the graphic commands are concerned. The following commands are affected by the AGM: ESC A n ESC J n ESC 2 ESC 3 n One command is unique to AGM: ESC * m nl n2 The commands are described in the following tables: Variable n/60 inch Line Spacing ASCII Hexadecimal Decimal Sets variable line spacing to n/60 inch Activates the line spacing selected by ESC A n ESC A n 1B 41 n 27 65 n ESC 2 1B 32 27 65 Sets line spacing to n/60 inch where n can range from 1 to 255. For example, to set line spacing for double height characters, n would be 20. Then to set line spacing for triple height, n would be 30. The line spacing selected by ESC A n must be followed by ESC 2 before it can come into effect. Using ESC 2 without a previous ESC A n command sets the line spacing to 6 lines per inch. 5 – 8 Graphics Fine line spacing n/180 inch ASCII Hexadecimal Decimal Sets variable line spacing to n/180 inch ESC 3 n 1B 33 n 27 51 n Sets line spacing to n/180 where n can range from 1 to 255. Fine Line Feed (n/180) inch ASCII Hexadecimal Decimal Executes n/180 inch line feed ESC J n 1B 4A n 27 74 n ESC J sends an immediate n/180 of an inch line feed without changing current line spacing. The variable n can have a range of 1 to 255. No line feed occurs when n = 0. This command will not clear one-line enlarged character codes (SO). A CR will either be sent or not depending on the menu setting. Sets Base Unit to 1/180 inch or 1/216 inch Sets base unit for ESC 3 and ESC J to 1/180 inch or 1/216 inch ASCII Hexadecimal Decimal ESC [ \ 4 1B 5B 5C 04 27 91 92 4 0 0 0 n1 n2 00 00 00 n1 n2 0 0 0 n1 n2 This command sets the base unit used in the commands ESC 3 and ESC J to either 1/180 inch or 1/216 inch. n1 = 0, n2 = either 180 or 216. Graphic Mode ASCII Hexadecimal Decimal Selects graphic ESC * m n1 n2 1B 2A m n1 n2 27 42 m n1 n2 This command is only effective in the AGM and is used to choose the graphic mode required. Graphics 5 – 9 Epson Graphics Mode Graphic Mode ASCII Enter/exit bit image graphics ESC * m n1 n2 Hexadecimal Decimal 1B 2A m n1 n2 27 42 m n1 n2 Begin hex density graphics FS 2 n1 n2 1C 5A n1 n2 (graphics (graphics data) data) 28 90 n1n2 (graphics data) Set quasi 8-bit mode Reset quasi 8-bit mode Reassign alternate graphics modes ESC y 1 1B 79 31 ESC y 0 1B 79 30 ESC ? n m 1B 3F n m 27 121 49 27 121 48 27 63 n m 5 – 10 Graphics Programming in AGM and Epson Modes There are 11 graphics modes available to you: 6 in 8-pin graphics and 5 in 24-pin. The following table describes the features of each: Horizontal Density Dots per inch Dots per line m= Mode Pins 0 1 2 Single Density Double Density High-Speed Double Density Quadruple-Density CRT I CRT II Single Density Double-Density CRT III Triple-Density Hex-Density 8 8 8 60 120 120 816 1632 1632 8 8 8 24 24 24 24 24 240 80 90 60 120 90 180 360 3264 1088 1224 816 1632 1224 2448 3 4 6 32 33 38 39 40 4896 Note: Adjacent horizontal dots are not printed in the High-Speed Double Density or Quadruple-Density modes. Graphics 5 – 11 Programming 24-pin Graphics The 24-pin graphics mode uses the full potential of the ML393 printhead. There are five print densities available to you in the 24pin mode. Higher densities are achieved by increasing the number of dots that appear horizontally on one line. We will show you examples of what each of the five densities look like when printed. To create a graphic, begin by mapping out the image you want to print out on a piece of graph paper. We are using a triangle. Byte 1 Byte 2 Byte 3 Since our example illustrates 24-pin graphics, each column is made up of 3 groups of 8 dots, arranged vertically. To print each column, you will need to send 3 bytes of data. The first byte you send controls the top eight pins in the column, the second byte controls the middle, and the third controls the bottom eight pins. 5 – 12 Graphics Writing the Program Before your printer can interpret the graphics data, you must send the command that puts it mto the graphics mode: ESC * m For m, substitute the density code for the graphics mode you want to use: 8-pin modes 24-pin modes Single Density: Double Density: 0 1 DoubleDensity: Quad Density: CRT I CRT II 2 3 4 6 Single Density: Double Density: High Speed: CRT III: Triple Density: Hex Density: 32 33 38 39 40 Next you must specify the number of columns of graphics you will be printing. In our triangle example, each triangle requires 48 columns. We will be printing a row of 6 triangles, however, so the total number of graphics columns is 288 (6 x 48). This information is given in the two variables n1 and n2. If your pattern consists of less than 256 columns, replace n1 with the number of columns, and assign n2 the value 0. For patterns with 256 columns or more, n2 represents the number of 256-column groups in the pattern, while n1 is the number of single columns left over when all the 256-column groups have been accounted for. In our example of a 288-column pattern, n2 is 1, and the remainder, n1, is 32. n2 = int 288 = 1 256 n1 = 288 - (n2 x 256) = 32 Graphics 5 – 13 When the graphic bytes you specify have all been read, then your computer switches out of the graphics mode automatically. Listing 1 is the BASIC program that generates a row of 6 triangles in different densities. 5 – 14 Graphics Listing 1: Six Triangles in Various Densities 10 25 30 31 32 33 34 50 35 40 50 60: 70: 80 90 100 110 120 130 140 141 145: 150 160 170 180 190 200 210 220 230 240 250 260 265 270 REM 24-pin graphic demo OPEN “LPT1:” AS #l:WIDTH “LPT1:”,255: REM prepare output PRINT# 1,CHR$(27); “@”;: REM init printer FOR MODE =1 to 5 IF MODE =1 THEN PRINT# 1,“24-pin Single-Density”; CHR$(10);CHR$(10): D=32:GOTO 50 IF MODE =2 THEN PRINT# 1,“24-pin Double Density”;CHR$(10)CHR$(10): D=33:GOTO 50 IF MODE =3 THEN PRINT#1,“24-pin CRT III”;CHR$(10);CHR$(10)D=38: GOTO IF MODE =4 THEN PRINT#1,“24-pin Triple Density”;CHR$(10);CHR$(10): D=39:GOTO 50 IF MODE =5 THEN PRINT#1,“24-pin hexdensity”;CHR$(10);CHR$(10);: D=40 PRINT# 1,CHR$(27);“*”;CHR$(D);CHR$(32);CHR$(1); REM CHR$(D) is the density in this case D=40 for hex-density REM CHR$(32) and CHR$(1) indicate the number of columns: 288=32+(1*256) FOR I=1 TO 6: REM repeat triangle pattern 6 times FOR J=1 TO 48: REM triangle is made of 48 columns READ A,B,C: REM 3 bytes for each column PRINT#1,CHR$(A);CHR$(B);CHR$(C);: REM send it to printer NEXT J RESTORE NEXT I:PRINT#1,CHR$(10);CHR$(10): REM next triangle NEXT MODE DATA 0, 0, 1, 0, 0, 3, 0, 0, 7, 0, 0, 15 DATA 0, 0, 31, 0, 0, 63, 0, 0,127, 0, 0,255 DATA 0, 1,255, 0, 3,255, 0, 7,255, 0, 15,255 DATA 0, 31,255, 0, 63,255, 0,127,255, 0,255,255 DATA 1,255,255, 3,255,255, 7,255,255, 15,255,255 DATA 31,255,255, 63,255,255,127,255,255,255,255,255 DATA 255,255,255,127,255,255, 63,255,255, 31,255,255 DATA 15,255,255 7,255,255, 3,255,255 1,255,255 DATA 0,255,255, 0,127,255, 0, 63,255, 0, 31,255 DATA 0, 15,255, 0, 7,255, 0, 3,255, 0, 1,255 DATA 0, 0,255, 0, 0,127, 0, 0, 63, 0, 0, 31 DATA 0, 0, 15, 0, 0, 7, 0, 3, 0, 0, 1 END Graphics 5 – 15 Your printout will look like this: Should the graphics appear displaced, set the Menu Option AUTO CR to YES. 5 – 16 Graphics 8-Pin Graphics Aside from differences in data format, 8-pin and 24-pin graphics are programmed identically. Usually, you will use the standard ESC * m n1 n2 command to enter either 8- or 24-pin graphics modes. However, there are alternative commands for four of the 8-pin modes: Single-Density: Double-Density: High-Speed Double-Density: Quadruple-Density: ESC K n1 n2 ESC L n1 n2 ESC Y n1 n2 ESC Z n1 n2 Reassigning Graphics Commands You can reassign any of the eleven 8- and 24-pin graphics modes to one of the shorter alternative commands (ESC K, ESC L, ESC Y, or ESC Z) with the command: ESC ? n m. For n, substitute one of the four letters (K, L, Y, or Z) used in the alternative commands. This indicates which of the alternative commands you are redefining. The variable m stands for the density code (from the density table shown earlier) of the mode that you are reassigning to an alternative command. For example, to reassign 24-pin HexDensity (density code 40) to the command ESC L n1 n2, send the following command to the printer: ESC ? L 40 Quasi 8-bit Graphics This is a form of graphics printing that lets you print what looks like double density 8-pin graphics at the speed of the single density 8-pin mode. This is accomplished by repeating each dot. Quasi 8-bit graphic printing is available in the Single-Density, 8bit mode only. Enter quasi 8-bit graphics by sending the command ESC y 1. ESC y 0 returns the printer to single density 8-bit printing. Graphics 5 – 17 Print Registration The PRINT REGISTRATION Menu Select item is a bit image graphics option that is only used with bidirectional printing. It lets you affect the printout position of a graphic image or table where precise column alignment is important. Choose 1 of 11 settings: 0.25 mm to the right at +5 0.20 mm to the right at +4 0.15 mm to the right at +3 0.10 mm to the right at +2 0.05 mm to the right at + 1 0 05 mm to the left at -1 0.10 mm to the left at -2 0.15 mm to the left at -3 0.20 mm to the left at -4 0.25 mm to the left at -5 Because the setting required may vary, you will need to experiment with these settings to find which you like best. You can determine the best value by printing several columns of vertical bar characters at each registration value. Use the value that produces the straightest vertical column. 5 – 18 Graphics Chapter 6 Downloadable Characters The ML393’s downloadable character feature enables you to design your own characters and symbols, even entire character sets if you choose, and store them to be used later. You can design and store up to 96 characters. Downloadable characters are assigned to keys of your choice on your keyboard. Then, whenever you need that character, all you need to do is invoke the character set in which you have stored it and press the key assigned to your character. The actual designing of these characters requires some work on your part and can become tedious. Like graphics design, you assign dot placement bit by bit. There are commercial software packages available that will greatly simplify all of this, and we recommend that you use one to design and use downloadable characters with the ML393. But you can design and download characters through programming if you want to. We will provide the necessary information for those who want to give it a try. Designing Characters The technique of designing your own downloadable characters is much like creating your own graphic. The character you create is itself a graphic that occupies a one-character matrix. Characters can be designed in either the utility or LQ mode, depending upon the print mode currently active. As you would expect, the higher resolution print modes provide higher print quality. You can begin by designing your character on a grid. The height of the grid is 24 dots, each corresponding to a pin of the ML393 printhead. The width of the grid and the character within it varies according to print mode as follows: Downloadable Characters 6 – 1 Mode Maximum Width in Dots 10 CPI Utility 12 CPI Utility 10 CPI LQ 12 CPI LQ Proportional 12 10 36 30 42 (maximum) Maximum Character Width in Dots 9 9 29 29 37 (maximum) Keep the intended use of your character in mind. If it is to be generally included with text, leave the top row and bottom two rows of the matrix blank, in keeping with general font design standards. Character baselines occur at the sixth dot from the bottom. The columns of the matrix to the left and right of your character affect where it will appear in relation to the characters on either side of it. If you do not leave blank columns, adjacent characters may appear to run right into your character. Note: To design proportionally spaced characters, vary the number of blank columns in proportion to the width of your characters. Dot Assignments and Programming Your arrangement of dots within columns is translated into code that tells your ML393 the exact location of each dot within each column. 6 – 2 Downloadable Characters The following example illustrates how this works. Our character is 27 dots wide and has 4 blank columns to the left and 5 blank columns to the right. We will print it in 10 CPI Letter Quality. This is a 24-pin mode, which means 3 bytes of data are required to specify a single column. Just like 24-pin graphics, the first 3 bytes specify dot positions for the first column, the second group of 3 bytes specifies dot positions for the second column, and so on up to the last column for which dot positions are specified. The value of each byte is determined by adding up the values of its bits. Now we need to load this data into a set of instructions so that we can use the character. Downloadable Characters 6 – 3 Defining A Character We need to specify which key will be used to represent our character. Up to 96 characters can be created and stored in decimal locations 32 to 127. Also, we need to specify in code how we have positioned the character within the matrix. We also need to copy a set of characters into the part of the printer’s memory reserved for downloaded characters. The new character will become part of this character set. In the case of our character, the LQ 10 CPI mode must also be specified. All of this is accomplished through a series of commands demonstrated in Listing 2, a BASIC program that replaces the character @ with an arrow character. Epson Downloadable Characters The downloadable character commands for the Epson mode are summarized in the following table: Downloadable Character Commands ASCII Hexadecimal Copies the resident character set to the area of memory reserved for downloaded characters. f = 0 to 127 decimal value of font ESC: NUL f NUL Defines area of memory in which character is stored; specifies key used to access character, and defines dot placement. ESC & NUL 1B 26 00 a1 a1 a2 d0 a2 d0 d1 d1 d2 d2 6 – 4 Downloadable Characters 1B 3A 00 f NUL Decimal 27 58 0 f NUL 27 38 0 a1 a2 d0 d1 d2 Downloadable Character Commands ASCII Hexadecimal Decimal Selects the downloaded character set or the resident character set. ESC % n 1B 25 n 27 37 n Selects one of two downloaded character sets ESC v n 1B 76 n 27 118 n Using these commands in conjunction with the data we have already calculated, we can write a short program to turn on Letter Quality 10 CPI, copy our standard character set into downloaded character memory, define our character, select the downloaded character set, and finally print our character. If you want to download two separate character sets, you will have to change the menu selection to 1 line. You can then switch between the downloaded sets using the ESC v n command. Downloadable Characters 6 – 5 Listing 2: Demo of downloaded custom character 1 10 20 30 40 50 60 70 80 81 82 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 265 270 280 290 300 305 310 320 330 REM DLL demo 24 pin OPEN “LPT1:”AS #1: WIDTH ”LPT1: ,255” : REM prepare output PRINT#1, CHR$(27);“@”: REM init printer PRINT#1, CHR$(27),“x1”; : REM select LQ PRINT#1, CHR$(27),“:”;CHR$(0);CHR$(0);CHR$(0);: ROM-CG to RAM-CG PRINT#1, CHR$(27); “& ”; CHR$ (0);: REM start of definition PRINT#1, “@@”;: REM from @ to @ PRINT#1, CHR$(4);CHR$(29);CHR$(4); : REM width before character 4 dots : REM width of character 29 dots : REM width behind character 4 dots FOR I = 1 TO 29: REM 29 columns READ A,B,C: REM each column has 3 bytes PRINT# 1, CHR$(A);CHR$(B);CHR$(C);: REM send it to printer NEXT I : REM begin of character pattern data DATA 0, 124, 0, 0, 130,0, 0, 0, 0, 0, 130, 0 DATA 0, 0, 0, 0, 130, 0, 0, 0, 0, 0, 130, 0 DATA 0, 0, 0, 0, 130, 0, 0, 0, 0, 0, 130, 0 DATA 0, 0, 0, 0, 130, 0, 0, 0, 0, 0, 130, 0 DATA 0, 0, 0, 63, 131, 248, 64, 0, 4, 32, 0, 8 DATA 16, 0, 16, 8, 0, 32, 4, 0, 64, 2, 0, 128 DATA 1, 1, 0, 0, 130, 0, 0, 68, 0, 0, 40, 0 DATA 0, 16, 0 : REM end of character pattern data PRINT#1, “downline loadable character set not selected: @@@@@@” PRINT#1, CHR$(10);CHR$(10); PRINT#1, CHR$(27);“%”;CHR$(1);: REM select DLL PRINT#1, “downline loadable character set selected !”; PRINT#1, CHR$(27);“E”;: REM emphasized, see note PRINT#1, “@@@@@@” PRINT#1, CHR$(10);CHR$(10); PRINT#1, CHR$(27);“%”;CHR$(0);: REM Deselect DLL PRINT#1, CHR$(27);“F”;: REM turn off emphasized END 6 – 6 Downloadable Characters Your printout will look like this: Downline loadable character not set not selected: @@@@@@ downline loadable character set selected ! Note: We turned on emphasized printing before using the downloaded character to compensate for the constraint against having 2 dots next to each other horizontally in a custom character. Emphasized printing is accomplished by offsetting dots horizontally, so it fills in the gaps somewhat. Switch between the resident character set and a downloaded set with the ESC % n command. If n is 1, the downloaded characters will be used; if n is 0, the resident character set is selected. If you have downloaded two character sets, you can switch between them with the ESC v n command, replacing n with either 1 or 2 (for the first or second downloaded character set). The ESC : NUL f NUL command copies a complete set of the printer’s resident characters to the area of memory that is used for downloaded characters. If you are only designing a few characters, but still need all the usual letters and numbers, send this command before you download your custom characters. As the resident characters are being written to the download area of memory, they overwrite any custom characters that have been downloaded. Downloadable Characters 6 – 7 Downloaded characters remain in the printer’s memory until: the printer is turned off the printer receives the Reset command: ESC @ (or FS @ in Epson Mode) they are overwritten by new downloaded characters the ESC: NUL f NUL command overwrites them with the resident character set. IBM Downloadable Characters The new method used by the IBM emulations to encode custom characters is extremely complex, and it is beyond the scope of this Guide to describe its data structure in any detail. The information in this section is for reference only. DLL Loading ASCII Loads DLL Set ESC = n1 n2 # a1 a2 a3 m ad1 ad2 id1 id2 d1...d5 C1...Cx Hexadecimal 1B 3D n1 n2 23 a1 a2 a3 m ad1 ad2 id1 id2 d1...d5 C1...Cx Decimal 27 61 n1 n2 35 a1 a2 a3 m ad1 ad2 id1 id2 d1...d5 C1...Cx The command can be broken down into two groups. The first section ESC = n1 n2 # a1 a2 a3 m which is sent only once. This is followed by ad1 ad2 id1 id2 d1 d2 d3 d4 d5 and finally the actual character definition C1 C2 C3 ... Cx. The latter section being sent for each character (i.e. 256 times). 6 – 8 Downloadable Characters A Control Code Tables IBM Control Code Table This table is arranged by control code function. Use it to find the commands that you need for writing your own printer control programs or modify printer drivers. Normally the control codes work in both modes ASCII and AGM. If a control code is applied to just one of them or the effect depends on the mode selected, it is mentioned under FUNCTION. Function ASCII Decimal Hexadec. SO 14 0E Cancels immediate double width characters DC4 20 14 Double width printing n = 0: cancel n = 1: set ESC W n 27 87 n 1B 57 n Triple width characters ESC m 27 109 1B 6D Double/triple height printing n = 0: cancel n = 1: double n = 2: triple ESC US n 27 31 n 1B 1F n Double width/double height characters Set italics printing ESC [ @ 27 91 64 1B 5B 40 ESC % G 27 37 71 1B 25 47 Cancel italics printing 10 CPI 12 CPI 15 CPI 17.1 CPI 20 CPI ESC % H DC2 ESC : ESC g SI ESC SI 27 18 27 27 15 27 1B 12 1B 1B 0F 1B Character Format Immediate double width characters 37 72 58 103 15 25 48 3A 67 0F A–1 Function ASCII Decimal Hexadec. Proportional spacing n = 0: cancel n = 1: set ESC P n 27 80 n 1B 50 n Select font where n = 0 1 2 3 5 6 122 124 126 127 A–2 ESC k n 27 107 n Roman Swiss Courier (default font) Prestige OCR-B (with OCR-B font cartridge installed) OCR-A (with OCR-A font cartridge installed) Swiss Bold Letter Gothic Resident (Courier) Cartridge (with any font cartridge installed) 1B 6B n Set emphasized printing ESC E 27 69 1B 45 Reset emphasized printing ESC F 27 70 1B 46 Set double strike printing ESC G 27 71 1B 47 Reset double strike printing ESC H 27 72 1B 48 Superscript/subscript printing n = 0: superscript n = 1: subscript ESC S n 27 83 n 1B 53 n Cancel super-/subscript ESC T 27 84 1B 54 Select Font ESC [ I n1 n2 m1 m2 p1 p2 r1 1B 5B 49 n1 n2 m1 m2 p1 p2 r1 27 91 73 n1 n2 m1 m2 p1 p2 r1 Function ASCII Decimal Hexadec. Set top of form ESC 4 27 52 1B 34 Set form length in inches ESC C NUL n 27 67 0 n 1B 43 00 n Set form length in lines ESC C n 27 67 n 1B 43 n Skip over perforation ESC N n 27 78 n 1B 4E n Cancel skip over perforation ESC O 27 79 1B 4F Left/right margin set ESC X nl n2 27 88 n1 n2 1B 58 n1 n2 Vertical Margin Setting ESC [ S n1 n2 m1 m2 p1 p2 27 91 83 n1 n2 m1 m2 p1 p2 1B 5B 53 n1 n2 m1 m2 p1 p2 Line Feed Reverse line feed Automatic line feed n = 0: cancel n = 1: set LF ESC ] ESC 5 n 10 27 93 27 53 n 0A 1B 5D 1B 35 n 8 lines/inch ESC 0 27 48 1B 30 7/72 inch line spacing ESC 1 27 49 1B 31 ASCII: variable line spacing (n/72 inch) ESC 2 must follow ESC A n 27 65 n 1B 41 n Page Format Line Spacing A–3 Function ASCII Decimal Hexadec. AGM: Variable line spacing (n/60 inch) ESC 2 must follow ESC A n 27 65 n 1B 41 n Trigger ESC A n spacing ESC 2 27 50 1B 32 Set line spacing base ESC [ \ 27 91 92 1B 5B 5C Fine line spacing (n/360 inch) ESC % 8 n 27 37 56 n 1B 25 38 n Fine line feed (n/360 inch) ESC % 4 n 27 37 52 n 1B 25 34 n ASCII: Fine line spacing (n/216 inch) AGM: Fine line spacing (n/180 inch) ESC 3 n 27 51 n 1B 33 n ASCII: Fine line feed (n/216 inch) AGM: Fine line feed (n/180 inch) ESC J n 27 74 n 1B 4A n Underline printing n = 0: cancel n = 1: set ESC - n 27 45 n 1B 2D n Overscore printing n = 0: cancel n = 1: set Select mode or n = 0: HSD mode n = 2: NLQ mode ESC _ n 27 95 n 1B 5F n ESC # n ESC ( n 27 35 n 27 40 n 1B 23 n 1B 2B n Printing Features A–4 Function ASCII Decimal Hexadec. Colour selection n = 0: black n = 1: magenta n = 2: cyan n = 3: violet n = 4: yellow n = 5: orange n = 6: green ESC r n 27 114 n 1B 72 n Printing Speed Reset Printing Speed Reset ESC } NUL ESC { K n1 n2 m1 m2 m3 m4 27 125 0 27 91 95 n1 n2 m1 m2 m3 m4 1B 7D 00 1B 5B 4B n1 n2 m1 m2 m3 m4 Backspace BS 8 08 Relative dot position ESC d n1 n2 27 100 n1 n2 1B 64 n1 n2 Space backwards ESC e n1 n2 27 101 n1 n2 1B 65 n1 n2 Horizontal tab HT 9 09 Set horizontal tabs, k = 1 to 28 ESC D n1 ... nk NUL 27 68 n1 ... nk 0 1B 44 n1 ... nk 00 Vertical tab VT 11 0B Set vertical tab stops, k =1 to 64 ESC B n1 ... nk NUL 27 66 n1 ... nk 0 1B 42 n1 ... nk 00 Reset tabulators ESC R 27 82 1B 52 Form feed FF 12 0C Carriage Return CR 13 0D Carriage Movement A–5 Function ASCII Decimal Hexadec. Graphics AGM only: ESC * ... 27 42 ... 1B 2A ... Graphics single density ESC K n1 n2 27 75 n1 n2 1B 4B n1 n2 Graphics low speed/ double density ESC L n1 n2 27 76 n1 n2 1B 4C n1 n2 Graphics double density ESC Y n1 n2 27 89 n1 n2 1B 59 n1 n2 Graphics quadruple density ESC Z n1 n2 27 90 n1 n2 1B 5A n1 n2 High resolution graphics ESC [ g n1 n2 27 91 103 n1 n2 1B 5B 67 n1 n2 Select Aspect Ratio ESC n d 27 110 d 1B 6E d Set quasi 8-bit mode Reset Quasi 8-bit mode ESC y 1 ESC y 0 1B 79 31 1B 79 30 27 121 49 27 121 48 Select character font ESC I n 27 73 n 1B 49 n IBM set 1 IBM set 2 ESC 7 ESC 6 27 55 27 54 1B 37 1B 36 Print one char. from All Char. set Print m characters from All Char. set ESC ^ 27 94 1B 5E ESC \ n1 n2 27 92 n1 n2 1B 5C n1 n2 National character set selection ESC ! n 27 33 n 1B 21 n Composite graphics command Font and Custom Character Control A–6 Function ASCII Decimal Hexadec. Downloadable character generator ESC = ... 27 61 ... 1B 3D ... Code Page ESC [ T ENQ NUL NUL NUL n1 n2 NUL 27 91 84 05 00 00 00 n1 n2 00 1B 5B 54 5 0 0 0 n1 n2 0 Print suppress mode ESC Q # 27 81 35 1B 51 23 Cancel print suppress mode DC1 17 11 Deselect printer ESC j 27 106 1B 6A Cancel function CAN 24 18 Unidirectional printing n = 0: cancel n = 1: set ESC U n 27 85 n 1B 55 n Quiet mode n = 0: cancel n = 1: set ESC q n 27 113 n 1B 71 n Paper end sensor off Paper end sensor on Bell/Buzzer ESC 8 ESC 9 BEL 27 56 27 57 7 1B 38 1B 39 07 ESC EM I ESC EM R ESC EM n 27 25 73 27 25 82 27 25 n 1B 19 49 1B 19 52 1B 19 n Utility Commands Cut-Sheet Feeder Control Cut-sheet feeder insert Cut-sheet feeder eject Cut-sheet feeder n = 1: bin 1 n = 2: bin 2 A–7 Function Cut Sheet Feeding ASCII ESC I F n1 n2 m1 m2 m3 Decimal 27 91 70 n1 n2 m1 m2 m3 Hexadec. 1B 5B 46 n1 n2 m1 m2 m3 EPSON Control Code Table Function ASCII Decimal Hexadec. Character Format A–8 1-line double width characters SO ESC SO 14 27 14 0E 1B 0E Cancel 1-line double width characters DC4 20 14 Set/cancel continuous double width characters n = 0: cancel dble/triple n = 1: set double ESC W n or FS E n 27 87 n or 28 69 n 1B 57 n or 1C 45 n Set triple width characters ESC m (ESC W 0 to cancel) 27 109 1B 6D Double/triple height characters n = 0: normal n = 1: double n = 2: triple (only ESC US n) ESC US n or FS V n or ESC w n 27 31 n or 28 86 n or 27 119 n 1B 1F n or 1C 56 n or 1B 77 n Set italic characters ESC 4 27 52 1B 34 Cancel italic characters ESC 5 27 53 1B 35 Function ASCII Decimal Hexadec. Begin outline ESC q SOH 27 113 1 1B 71 01 Begin shadow ESC q STX 27 113 2 1B 71 02 Begin shadow and outline ESC q ETX 27 113 3 1B 71 03 End shadow and/or outline ESC q NUL 27 113 0 1B 71 00 Compressed character pitch (17.1 or 20 CPI) SI ESC SI 15 27 15 0F 1B 0F Cancel compressed character pitch DC2 18 12 Set emphasized print mode ESC E 27 69 1B 45 Cancel emphasized print mode ESC F 27 70 1B 46 Set enhanced/double strike print mode ESC G 27 71 1B 47 Cancel enhanced/ double strike print mode ESC H 27 72 1B 48 Elite character pitch (12 CPI) ESC M 27 77 1B 4D Pica character pitch (10 CPI) ESC P 27 80 1B 50 15 CPI character pitch ESC g 27 103 1B 67 Set/cancel proportional spacing n = 0: cancel n = 1: set ESC p n 27 112 n 1B 70 n A–9 Function A – 10 ASCII Decimal Hexadec. Set super-/subscripts n = 0: superscript n = 1: subscript ESC S n 27 83 n 1B 53 n Cancel super-/subscripts ESC T 27 84 1B 54 Select typestyles ESC k n 27 107 n where n = 0 Roman 1 Swiss 2 Courier (default font) 3 Prestige 5 OCR-B (with OCR-B font cartridge installed) 6 OCR-A (with OCR-A font cartridge installed) 122 Swiss Bold 124 Letter Gothic 126 Resident (Courier) 127 Cartridge (with any font cartridge installed) 1B 6B n Select extended character set n = 0: italics n = 1: graphics n = 2: DLL Set (only ESC t n) ESC t n or FS I n 27 116 n or 28 73 n 1B 73 n or 1C 49 n Select IBM character set 1 ESC 7 27 55 1B 37 Select IBM character set 2 ESC 6 27 54 1B 36 Set character spacing n = 0 to 127 ESC SP n 27 32 n 1B 20 n Select Italics Graphics/DLL characters n = 0: Italics n = 1 graphics n = 2: DLL ESC t n 27 116 n 1B 74 n Select italics/graphics characters n = 0: Italics n = 1: Graphics FS 1 n 28 73 n 1C 49 n Function ASCII Decimal Hexadec. Page Format Set left margin n = 0 to 255 ESC l n 27 108 n 1B 6C n Set right margin n = 0 to 254 ESC Q n 27 81 n 1B 51 n Auto skip over perforation n = 1 to 127: skip n lines ESC N n 27 78 n 1B 4E n Cancel skip over perforation ESC O 27 79 1B 4F Set form length in inches n =1 to 22 ESC C NUL n 27 67 0 n 1B 43 00 n Set form length in lines n=0 to 127 ESC C n 27 67 n 1B 43 n Auto justification n = 0: left n = 1: centre n = 2: right n = 3: full ESC a n 27 97 n 1B 61 n 8 lines per inch ESC 0 27 48 1B 30 6 lines per inch ESC 2 27 50 1B 32 Variable line spacing n/60 lines per inch n = 0 to 120 Fine line spacing n/180 lines per inch n = 0 to 255 ESC A n 27 65 n 1B 41 n ESC 3 n 27 51 n 1B 33 n Line Spacing A – 11 Function ASCII Decimal Hexadec. Fine line spacing n = (0 to 255)/360 ESC [ n or ESC + n or FS 3 n 27 91 n or 27 43 n or 28 51 n 1B 5B n or 1B 2B n or 1C 33 n Line feed LF 10 0A Reverse line feed (n/180") n = 0 to 255 ESC j n 27 106 n 1B 6A n Fine line feed (n/180") n = 0 to 255 ESC J n 27 74 n 1B 4A n Fine line feed (n/360") n = 0 to 255 ESC ] n 27 93 n 1B 5D n Line feed direction backwards FS R 28 82 1C 52 Line feed direction forwards FS F 28 70 1C 46 Start/stop underlining n = 0: stop n = 1: start ESC - n 27 45 n 1B 2D n Print mode select n = 0 to 255 ESC ! n 27 33 n 1B 21 n Set Scoring Style ESC C n1 n2 m d1 d2 1B 28 2D n1 n2 m d1 d2 27 40 45 n1 n2 m d1 d2 Printing Speed Reset ESC { K n1 n2 m1 m2 m3 27 91 95 n1 n2 m1 m2 m3 1B 5B 4B n1 n2 m1 m2 m3 Printing Features A – 12 Function Printing Speed Reset ASCII ESC } NUL Decimal Hexadec. 27 125 0 1B 70 00 27 40 n 1B 28 n 27 120 0 1B 78 n ESC r n 27 114 n 1B 72 n Backspace Horizontal tab BS HT 8 9 08 09 Vertical tab VT 11 0B Form feed FF 12 0C Carriage return CR 13 0D Set horizontal tabs k = 1 to 32 nl, n2, . . =TABS, 1 to 255 ESC D n1 n2 n3...nk NUL 27 68 n1 n2 n3...nk 0 1B 44 n1 n2 n3...nk 00 Set vertical tab stops k = 1 to 16 n1, n2 = 0 to 255 ESC B n1 n2...nk NUL 27 66 n1 n2...nk 0 1B 42 n1 n2...nk 00 Set vertical tab stops n = 0 to 7 ESC / n 27 47 n 1B 2F n Select NLQ mode/ ESC ( n high speed draft n = 0: HS draft n = 2: NLQSelect LQ mode/utility ESC x n n = 0: Utility n = 1: LQ mode Select colour n = 0: black n = 1: magenta n = 2: cyan n = 3: violet n = 4: yellow n = 5: orange n = 6: green Carriage Movement A – 13 Function ASCII Decimal Hexadec. Execute absolute horizontal tabs (Position in inches = n1+((n2*256)/60) n1 = 0 to 255 n2 = 0 to 3 ESC $ n1 n2 27 36 n1 n2 1B 24 n1 n2 Select relative dot position n1+(n2*256) = number of dots ESC \ n1 n2 27 92 n1 n2 1B 5C n1 n2 Set vertical format unit n = 0 to 7 m = 0 to 255 ESC b n m1 m2...mk NUL 27 98 n m1 m2...mk 0 1B 62 n m1 m2 ...mk 00 Set relative tab stops ESC e n x 27 101 n x 1B 65 n x (horiz. /vert.) ESC f n m 27 102 n m 1B 66 n m Enter/exit bit image graphics mode ESC * m n1 n2 27 42 m n1 n2 1B 2A m n1 n2 Begin Hex density graphics FS Z n1 n2 < GRAPH. DATA> 28 90 n1 n2 < GRAPH. DATA> 1C 5A n1 n2 < GRAPH. DATA> n = 0: horizontal n = 1: vertical x = 0 to 127 Set relative print position (horiz./vert.) n = 0: horizontal n = 1: vertical m = 0 to 127 Graphics A – 14 Function ASCII Decimal Hexadec. Set low speed/single density graphics mode n1, n2=0 to 255 ESC K n1 n2 27 75 n1 n2 1B 4B n1 n2 Set low speed/double density graphics mode n1, n2 = 0 to 255 ESC L n1 n2 27 76 n1 n2 1B 4C n1 n2 Set high speed/double density graphics mode n2, n2 = 0 to 255 ESC Y n1 n2 27 89 n1 n2 1B 59 n1 n2 Set quadruple density graphics mode n1, n2 = 0 to 255 ESC Z n1 n2 27 90 n1 n2 1B 5A n1 n2 Set/cancel quasi-8-bit graphics mode n = 0: cancel n = 1: set Reassign alternate graphics codes n = K: single density n = L: double n = Y: high speed double n = Z: quad density ESC y n 27 121 n 1B 79 n ESC ? n m 27 63 n m 1B 3F n m ESC % n 27 37 n 1B 25 n Font and Custom Character Control DLL font select n = 1: select DLL character set n = 0: deselect DLL character set A – 15 Function ASCII Decimal Hexadec. Character definition ESC & NUL a1 a2 d0 d1 d2 27 38 0 a1 a2 d0 d1 d2 1B 26 00 a1 a2 d0 d1 d2 Copy ROM CG to RAM CG ESC : NUL f NUL 27 58 0 f 0 1B 3A 00 f 00 Select foreign character set and code page n = 0 to 20 or 64 ESC R n 27 82 n 1B 52 n Activate RAM area n = 1: DLL #1 n = 2: DLL #2 ESC v n 27 118 n 1B 76 n Reset ESC @ or FS @ 27 64 or 28 64 1B 40 or 1C 40 Cancel print suppress mode DC1 17 11 Print suppress mode DC3 19 13 Cancel function CAN 24 18 Set/cancel unidirectional mode n = 0: cancel n = 1: set ESC U n 27 85 n 1B 55 n Set/cancel half speed print mode n = 0: cancel n = 1: set ESC s n 27 115 n 1B 73 n Utility A – 16 Function ASCII Decimal Hexadec. Disable paperout detector ESC 8 27 56 1B 38 Enable paper out detector One line unidirectional print ESC 9 27 57 1B 39 ESC < 27 60 1B 3C Set bit 7 to 0 ESC = 27 61 1B 3D Select 7- or 8-bit commands ESC > 27 62 1B 3E Cancel 8-bit mode ESC # 27 35 1B 23 Bell/Buzzer BEL 7 07 One character data delete DEL 127 7F Insert cut-sheet feeder’s single paper feed ESC EM I 27 25 73 1B 19 49 Eject cut-sheet feeder’s single paper feed ESC EM R 27 25 82 1B 19 52 Multi-bin select n = 1: bin 1 n = 2: bin 2 ESC EM n 27 25 n 1B 19 n Cut-Sheet Feeder Control A – 17 OKI Advanced Control Code Table Function A – 18 ASCII Decimal Hexadec. Barcode control. code selection ESC DLE A n1 m1 m2 m3 m4 m5 m6 m7 m8 27 16 65 n1 m1 m2 m3 m4 m5 m6 m7 m8 1B 10 41 n1 m1 m2 m3 m4 m5 m6 m7 m8 Printing ESC DLE B n1 27 16 56 n1 1B 10 42 n1 Postnet ZIP printing ESC DLE C n1 27 16 67 n1 1B 10 68 n1 Horizontal dot position absolute/relative position ESC DLE @ n1 m1 m2 p1 p2 p3 p4 27 16 64 n1 m1 m2 p1 p2 p3 p4 1B 10 40 n1 m1 m2 p1 p2 p3 p4 Emulation mode ESC { n 27 123 n 1B 7B n Appendix B ASCII Character Codes IBM Character Tables IBM Character Set 1 (selected by ESC 7) Appendix B: ASCII Character Codes B – 1 IBM Character Set 2 (selected by ESC 6) B – 2 Appendix B: ASCII Character Codes IBM All Character Set (selected by ESC^ or ESC\ n1 2) (Code Page 437 – USA) Appendix B: ASCII Character Codes B – 3 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. B – 4 Appendix B: ASCII Character Codes Code Page 850 (Multilingual) Appendix B: ASCII Character Codes B – 5 Code Page 865 (Norway) B – 6 Appendix B: ASCII Character Codes Code Page 860 (Portugal) Appendix B: ASCII Character Codes B – 7 Code Page (Turkey) B – 8 Appendix B: ASCII Character Codes Code Page 928 (Greek) Appendix B: ASCII Character Codes B – 9 Code Page 851 (Greek) B – 10 Appendix B: ASCII Character Codes Code Page 437 (Greek) Appendix B: ASCII Character Codes B – 11 Epson Character Tables Epson Normal Character Set (selected by ESC t NUL ESC 7) B – 12 Appendix B: ASCII Character Codes Epson Line Graphics Character Set (selected by ESC t SOH ESC 7) Appendix B: ASCII Character Codes B – 13 Epson Line Graphics Expansion Character Set (selected by ESC t SOH ESC 6) B – 14 Appendix B: ASCII Character Codes 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. Appendix B: ASCII Character Codes B – 15 National Character Sets/Code Pages n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 Epson Italic ESC t NUL Epson Graphics ESC t SOH American French German British 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 Code Page Cyrillic Code Page Polska Mazovia Code Page Polska PC Latin 2 Code Page Serbo Croatic I Code Page Serbo Croatic II Code Page Multilingual 850 Code Page Norway 865 Code Page Portugal 860 Code Page Turkey Code Page Greek ABG Code Page Greek ABC Code Page Greek DEC Code Page Greek Quattro Code Page Greek SYS 25 Code Page Greek 927 mod. Code Page Greek 927 Code Page Greek 437 Code Page Greek 928 Code Page Greek 851 Code Page Greek 437 Cyprus Codc Pagc ECMA 94 American French German British Danish I Swedish I Italian Code Page Cyrillic Japanese Norwegian Danish II Spanish II Latin American French Canadian Dutch Swedish II Swedish III Swedish IV Turkish Swiss I Swiss II Code Page Cyrillic Code Page Polska Mazovia Code Page Polska PC Latin 2 Code Page Serbo Croatic I Code Page Serbo Croatic II Code Page Mulitlingual 850 Code Page Norway 865 Code Page Portugal 860 Codc Page Turkey Code Page Greek ABG Code Page Greek ABC Code Page Greek DEC Code Page Greek Quattro Code Page Greek SYS 25 Code Page Greek 927 mod. Code Page Greek 927 Code Page Greek 437 Code Page Greek 928 Code Page Greek 851 Code Page Greek 437 Cyprus Code Page ECMA 94 B – 16 Appendix B: ASCII Character Codes Code Page 437 (USA) Appendix B: ASCII Character Codes B – 17 Code Page 850 (Multilingual) B – 18 Appendix B: ASCII Character Codes Code Page 865 (Norway) Appendix B: ASCII Character Codes B – 19 Code Page 860 (Portugal) B – 20 Appendix B: ASCII Character Codes Code Page (Turkey) Appendix B: ASCII Character Codes B – 21 Appendix C Interfacing This appendix will help you design a SHIELDED interface cable that connects your printer to your computer. This requires some knowledge of electronics signals, wiring, soldering, and crimping to be designed properly. lf you are not technically minded, we recommend that you purchase a SHIELDED interface cable from your dealer. Parallel Interfacing The printer requires a Centronics-equivalent parallel cable with the following: ● ● ● Amphenol 57-30360 or AMP 552274-1 plug (or equivalent) with 36 pins AMP 552073-1 (or equivalent) cover Beldon (or equivalent) SHIELDED cable with twisted pair conductors. It cannot exceed 1.8 metres in length and must be UL and CSA approved. The cable MUST be shielded. Appendix C: Interfacing C – 1 Signals for Pin Assignments (Parallel): Pin # Signal Return Pin # Direction 1 2 3 4 5 6 7 8 9 10 11 12 13 14+ 15 16 17 18+ 19-30 31 32 33 34-35 36 Strobe Data 1 Data 2 Data 3 Data 4 Data 5 Data 6 Data 7 Data 8 Acknowledge Busy Paper end Select Autofeed Not used 0V Chassis Gnd +5V* 0V I–prime Fault 0V Not Used Select-in 19 20 21 22 23 24 25 26 27 28 29 30 No Return — — No Return No Return — — — — — — — To Printer To Printer To Printer To Printer To Printer To Printer To Printer To Printer To Printer From Printer From Printer From Printer From Printer To Printer — Signal Ground Ground From Printer Ground To Printer From Printer Signal Ground — To Printer *50 mA maximum + Pins 14 and 18 are controlled by a jumper plug in the printer. There is no signal on Pin 18 at the factory default setting of the jumper plug. C – 2 Appendix C: Interfacing RS-232C Serial Interfacing To construct a cable for an RS-232C serial configuration, you will need: ● ● ● DB25P equivalent 25-pin plug, shell equivalent to DB-C2-J9. Beldon (or equivalent) SHIELDED cable with twisted pair conductors. Must be UL and CSA approved. The cable MUST be shielded. The printer has 25-pin DB-255 receptacle. Signals for Pin Assignments (RS-232C serial): Pin # Signal Symbol Direction 1 2 3 4 5 6 7 8-10 11 Protective ground Transmitted data Received data Request to send Not used Data set ready Signal ground Not used Supervisory send data Not used Signal ground Not used Data terminal ready Not used PG TD RD RTS — DSR SG — SSD — From printer To printer From Printer — To Printer — SG — DTR — — 12 13 14-19 20 21-25 — From Printer — To Printer — Appendix C: Interfacing C – 3 Local Tests: Serial Interface After you have configured an interface cable for your computer and printer, you may want to spend a few extra minutes making a test connector. This test connector can be used to monitor the operation of the interface. Jumper the following pins: (DB 25P Plug) C – 4 Appendix C: Interfacing Place the printer in the circuit test mode by specifying Yes in response to the menu item DIAGNOSTIC TEST. Now you can run the local test: 1. Plug the test connector into the serial interface receptacle. 2. Turn the printer ON. The serial interface will check the memory function of the printer’s message buffer, the interface driver and the receiver circuit, and then print all the characters in a test pattern. 3. This test can be stopped either by turning the printer OFF or by pressing the SELECT button. 4. This is what happens during the test: ● ● ● ● The printer prints this message: RS-232C TEST The message buffer size is printed. The printer checks the memory function of the message buffer, then prints OK if the memory check is good, or BAD if the memory check is faulty. The signal logic is checked, and if this is faulty, BAD is also printed. Note: If BAD is printed, call your dealer for assistance. ● ● Hexadecimal characters from 20 to 7F are transmitted through the RD (Receive Data) line, then written to the message buffer. The above stored data is then printed. This process repeats until the printer is turned OFF or until you press the SELECT button. Appendix C: Interfacing C – 5 Menu Selections For Serial Interfacing The Setup Guide explains how to use your printer’s Menu Select mode. If you are using the serial interface, set the following Menu Select options according to your computer’s interface requirements. Printout PARlTY SERIAL DATA 7/8 BITS PROTOCOL DIAGNOSTIC TEST BUSY LINE BAUD RATE DSR SIGNAL Action Does your system use ODD or EVEN parity? ODD parity – select ODD EVEN parity – select EVEN NONE – select NONE Does your system use 7- or 8-bit format? 7-bit format – select 7 8-bit format – select 8 What protocol does your system use? Ready–Busy protocol – select READY/BUSY XON/XOFF protocol – select XON/XOFF Do you want to perform a diagnostic test? Yes – select YES Normal operation – select NO Which line will your system use to recognize a busy signal? SSD -9V select SSDSSD +9V select SSD+ DTR -9V select DTR RTS -9V select RTS What baud rate does your system use? 19,200 baud – select 19,200 BPS 9,600 baud – select 9,600 BPS 4,800 baud – select 4,800 BPS 2,400 baud – select 2,400 BPS 1,200 baud – select 1,200 BPS 600 baud – select 600 BPS 300 baud – select 300 BPS How does your system handle the Data Signal Ready signal? Valid – Select VALID C – 6 Appendix C: Interfacing Printout Action DTR SIGNAL When is the DTR signal required? When printer is selected – choose READY ON SELECT When printer is turned ON – choose READY ON POWER UP BUSY TIME What is the length of a busy signal? 200ms – select 0.2 1 second – select 1 Once you have set the menu, make a printout of it for future reference. Appendix C: Interfacing C – 7 Appendix D Specifications Print method Printhead Print Speed (for text printing only) Impact dot matrix 24 pin HEADGAP SETTING 1 and 2 3 HSD 15 CPI HSD 18 CPI 517 517 450 450 UTILITY 10 CPI UTILITY 12 CPI UTILITY 15 CPI UTILITY 17.1 CPI UTILITY 20 CPI 345 414 258 295 345 300 360 225 257 300 NLQ 10 CPI NLQ 12 CPI 172 207 150 180 LQ 10 CPI LQ 12 CPI LQ 15 CPI LQ 17.1 CPI LQ 20 CPI 115 138 172 196 230 100 120 150 171 200 Characters Per Line at 10 CPI at 12 CPI at 15 CPI at 17.1 CPI at 18 CPI at 20 CPI 136 163 204 233 244 272 Emulation IBM XL24 EPSON LQ 2550 Appendix D: Specifications D – 1 Character Sets Resident Fonts Standard ASCII Epson IBM Set 1 and 2 IBM All Character Set (Code Page 437) Line Graphics International Character Sets Code Pages 437 (USA) 850 (Multilingual) 865 (Norway) 860 (Portugal) Turkey Greek 928 Greek 851 Greek 437 Courier Times Roman Prestige Elite Letter Gothic Swiss Swiss Bold Optional Font Cartridges OCR-A OCR-B Graphics 360 x 360 maximum resolution Paper Feed Top, rear, bottom Built in push tractor Friction feed Optional pull tractor Optional cut sheet feeder Operator Features Direct access operator pane Menu select mode Auto loading Forms tear-off Hex-dump mode D – 2 Appendix D: Specifications Memory Electrical Characteristics Voltage 512 bytes 8K bytes 23K bytes 40K bytes (With optional 32K RAM cartridge) Frequency 120V AC +10% -15% 220/240V AC +10% -15% (Special order) 50/60 Hz +2% Reliability Mean Time Between Failure (MTBF) 4000 hours at 25% duty cycle, 35% page density Mean Time To Repair (MTTR) Printhead life 15 minutes 200 million characters Physical Dimensions Size Weight Ribbon Life Black Colour Paper Specifications Continuous Forms Single sheets (no multipart forms) Weight Thickness Width . 22.44" long 16.42" wide 7.09" high 37 lb. Fabric: 5.0 million characters Black band: 2.3 million characters Cyan band: 1.8 million characters Magenta band: 1.8 million characters Yellow band: 1.3 million characters 12 to 24 lb 0.0020" to 0.0049" 3" to 16" Appendix D: Specifications D – 3 Multipart (carbon lined or pressure sensitive) Weight Number of copies Thickness Width Multipart (interleaf) Weight Number of copies Thickness Width Cut-Sheets Single sheets Weight Thickness Dimensions Multipart Weight Number of copies Thickness Dimensions 9 to 11 lb. Original plus 3 copies 0.014" max. 3" to 16" Paper: 10 to 12 lb. Carbon: 9 lb. Original plus 3 copies 0.014" max. 3" to 16" 16 to 24 lb. 0.0027" to 0.0049" Minimum size: 7.2" W x 10.1" L Maximum size: 14.3" W x 14" L Paper: 10 to 12 lb. Carbon: 9 lb. Original plus 4 Copies 0.014" max. Minimum size: 7.2" W x 10.1" L Maximum size: 14.3" W x 14" L Note All parts must be glued at top. Envelopes (individual) Weight Thickness Dimensions D – 4 Appendix D: Specifications 24 lb. max. 0.016" max. 6 1/2" x 3 5/8" 8 7/8" x 3 7/8" 9 1/2" x 4 1/8" Paper Specificatlons Card Stock Weight Thickness Dimensions 100 lb. max. 0.008" max. 5" x 8" max. Note: Use with bottom feed only. Labels Carrier Thickness 8.5" W max. 0.011 “ max. Notes: 1. Do not use fabric labels. 2. Label must not separate from the carrier when rolled 180 degrees around a 27 mm. cylinder. 3. Do not print on the edge or perforation of the label. 4. Use bottom feed only. Transparencies Thickness 0.010" max . Dimensions 8.5" W x 11" L Note: Roller marks may appear on transparencies when used in high humidity/ temperature. Appendix D: Specifications D – 5