User-defined Characters. Epson LQ-510
advertisement
Assistant Bot
Need help? Our chatbot has already read the manual and is ready to assist you. Feel free to ask any questions about the device, but providing details will make the conversation more productive.
User-defined Characters
With this printer, it is possible to define and print characters of your own design. You can design an entirely new alphabet or typeface, create special characters for use as mathematical or scientific symbols, or create graphic patterns with user-defined characters to serve as building blocks for larger designs.
Below, you can see samples of typefaces created with the userdefined character function.
Note:
To use user-defined characters, you must turn DIP switch
2-5
off.
You can make the task of defining characters easier by using a commercial software program that assists you in creating characters or simply supplies you with sets of characters already created. Also, some popular software programs make use of the printer’s userdefined character function to enhance printouts. (These characters are called download characters in some programs.)
The standard ASCII characters are stored in the printer’s Read Only
Memory (ROM) or optional Multi-Font Module, and the userdefined characters are stored in the printer’s Random Access
Memory (RAM).
Designing Your Characters
User-defined characters are like dot graphics because you send the printer precise instructions on where you want each dot printed. In fact, planning a user-defined character is like planning a small dot graphics pattern.
4-20 Software and Graphics
User-defined Characters
Design grids
To design a character you use a grid that is 24 dots high-one dot for each pin on the printer’s print head. The width of the character matrix depends on the character set in use. For draft characters, the grid is nine dots wide, for Letter Quality it is 29 dots wide, and for proportional characters it is 37 dots wide. The dots for both Letter
Quality and proportional characters are spaced more closely together than those for draft characters.
The illustrations below show the two design grids. The line at the side, labeled cap, indicates the top of a standard capital letter. The line labeled base indicates the baseline for all letters except those with descenders (the bottom parts of such letters as j and y). The bottom row is usually left blank because it is needed for underlining.
Draft pica
Letter quality / Proportional
The grid on the right side can be used for either Letter Quality or proportional characters. For Letter Quality you do not use all the columns.
Software and Graphics 4-21
U s e r - d e f i n e d C h a r a c t e r s
There is one restriction in designing characters. Dots in the same row may not print in adjacent columns. This means that there must be an empty dot position both to the left and right of each dot that prints. This is true in draft, Letter Quality, and proportional mode.
Defining Your Characters
The first step in defining characters is to place the dots on a grid just as you want them to print. The examples shown here, like the ones in the graphics section, use an x to represent each dot.
In the illustration below, you see a draft grid with a simple userdefined character planned on it.
Now you translate the dot pattern you’ve created on paper to a numeric format so you can send the data to your printer. Every dot has an assigned value. Each vertical column (which has a maximum of 24 dots) is first divided into three groups of eight dots. Each group of eight dots is represented by one byte, which consists of eight bits. Hence, one bit represents one dot.
4-22 Software and Graphics
User-defined Characters
Data numbers
The bits within each byte have values of 1, 2, 4, 8, 16, 32, 64, and 128.
In the vertical column of dots, the bits are arranged so that the most significant bit (with a value of 128) is at the top of the column and the least significant bit (with a value of 1) is at the bottom.
The next illustration shows how to use this method to calculate the data numbers for the character in this example. On the left side of the figure, the data numbers are calculated for the middle column.
The value of each byte is calculated by adding the values of the rows in which dots appear. The right side of the figure shows the whole character with the three data numbers for each column indicated at the bottom.
This manual uses decimal numbers because the program examples are written in BASIC and everyone is familiar with decimals. The data you send to your printer, however, must be in the form (binary, decimal, hexadecimal) that you can use with your programming language.
Software and Graphics 4-23
User-defined Characters
You have seen how to design a character by placing dots on a grid and translating the dots to decimal equivalents. The last step in defining a character is sending this information to your printer.
Sending Information to Your Printer
The printer loads characters in the print style (Letter Quality, draft, or proportional) that the printer is currently using. It also records whether italic, superscript, or subscript is turned on. This means that if you want to print a character in italics, for example, you must have the italic mode turned on when you define the character.
The command your printer uses to define characters is one of the most complex in its repertoire. The format of the command is this:
ESC & 0 n1 n2 d0 d1 d2 data
The ESC & is simple enough. The 0 (which is ASCII code 0, not the numerical zero in quotation marks) allows for future enhancements.
At this time, it is always ASCII 0.
You can define many characters with a single command. The values n1 and n2 are the ASCII codes of the first and last characters you are defining. If you are defining only one character, n1 and n2 are the same. You can use any codes between decimal 32 and 127 for n1 and n2, but it is best not to define decimal 32, which is the code for a space. Also, you can use letters in quotation marks instead of ASCII codes for n1 and n2.
Note:
Because user-defined characters require additional memory, you must set DIP switch 2-5 to 1 KB (off) before downloading these characters.
4-24 Software and Graphics
User-defined Characters
An example will show how to specify n1 and n2. For instance, if you wanted to redefine the characters A through Z, n1 would be A (or
ASCII code 65) and n2 would be Z (or ASCII code 90). So the command ESC & 0 AZ (followed by the appropriate data) would replace the entire alphabet of capital letters.
Following the specification of the range of characters to be defined in this command are three data bytes, d0, d1, and d2, that specify the width of the character and the space around it. The left space (in dot columns) is specified by d0, and the right space is specified by d2.
The second byte, d1, specifies the number of columns of dots that are printed to make up the character. By varying the width of the character and the spaces around it, you can create proportionalwidth characters that print at draft speed. The table below shows the maximum values for these bytes.
Mode
Draft
Letter Quality 10 cpi
Letter Quality 12 cpi
Proportional d 1
9
29
23
37 d 0 + d 1 + d 2
12
3 6
30
42
The last part of the command to define your characters is the actual data that defines the dot patterns for each character. Since it takes three bytes to specify all the dots in one vertical column, your printer expects d1 x 3 bytes of data to follow d2.
Software and Graphics 4-25
U s e r - d e f i n e d C h a r a c t e r s
This example of a character definition program should make this clear:
10 LPRINT CHR$(27)"x0"
20 LPRINT CHR$(27)"&"CHR$(0);
30
LPRINT "@@";
40 LPRINT CHR$(l)CHR$(9)CHRS(l);
50 FOR I=1 TO 27
60 READ A: LPRINT CHR$(A);
70 NEXT I
80 LPRINT "@@@@@"
90 LPRINT CHR$(27)"%"CHR$(l);
100 LPRINT "@@@@@"
110 LPRINT CHE1$(27)"%"CHR$(0);
120 LPRINT "@@@@@"
130
END
140 DATA 1,0,0,2,0,0,4,0,0
150 DATA 8,0,0,23,255,240,8,0,0
160 DATA
4,0,0,2,0,0,1,0,0
In line 10, the ESC x0 command selects draft printing.
The actual character definition starts in line 20. The two @ signs in line 30 represent n1 and n2, the range of characters being defined (in this case, a range of 1). Line 40 contains d0, d1, and d2.
The information about the actual character design (which is contained in the DATA statements at the end of the program) is sent to the printer in the loop between lines 50 and 70.
Note: When defining Letter Quality or proportional characters, put a WIDTH statement in your program to prevent carriage return and line feed codes from interfering with your definitions.
4-26 Software and Graphics
User-defined Characters
Printing User-defined Characters
If you entered the previous program example, you defined an arrow and placed it in the RAM location for ASCII code 64 (replacing the @ sign). You can now print out a three-line sample of your work. The first and third lines (printed by lines 80 and 120) print the normal @ sign. The second line (printed by line 100) prints out the arrow that you defined.
Run the program to see the printout below:
As you can see, both sets of characters (the @ from the original characters in ROM that the printer normally uses and the alternative character you defined) remain in the printer available for your use.
The command to switch between the two sets is used in line 90 and
110. It is:
ESC % n
If n is equal to 0, the normal ROM character set is selected (this is the default). If n is equal to 1, the user-defined character set is selected.
If you select the user-defined character set before you have defined any characters, the command is ignored and the ROM characters remain in use.
You may switch between character sets at any time--even in the middle of a line. To try this, place semicolons at the end of lines 80 and 100 in the program example.
Software and Graphics 4-27
User-defined Characters
Copying ROM Characters to RAM
After running the program, if you select the user-defined character set and try to print other characters, the only one that will print is your arrow. Since no other characters are in the printer’s userdefined RAM, there is nothing else to print. Other characters sent to the printer do not even print as spaces; it’s as if they were not sent at all.
In many cases, you will want to redefine only a few of the characters to suit your needs--the rest of the alphabet will work fine as it is. As you have seen, it is possible to switch back and forth, at will, between the normal character set and your user-defined character set. It is, however, rather inconvenient.
Therefore, your printer has a command that allows you to copy all of the standard characters from ROM to the user-defined character set.
The command format is as follows, where the value of n represents the font family:
ESC: 0 n 0
Note: This command cancels any user-defined characters you have already created. You must send this command to the printer before you define characters.
If you use this command at the beginning of a program, then define your special characters and select the user-defined set, you can print with the user-defined set as your normal character set. You never need to switch back and forth between sets.
4-28 Software and Graphics
User-defined Characters
Letter Quality Characters
If you select Letter Quality printing with the ESC xl command, you can design user-defined characters using up to 29 columns of the
Letter Quality/Proportional grid. The dot columns are spaced closer together horizontally than draft dot columns (the horizontal dot spacing is 1/360th of an inch as opposed to 1/120th of an inch for draft characters).
Proportional mode characters
Selecting the proportional character mode yields user-defined characters of the highest resolution. Characters can be designed using all 37 columns of the Letter Quality/Proportional grid.
Remember that in Letter Quality and proportional modes, as in draft mode, you cannot place dots in adjacent columns. There must be an empty dot position both to the left and right of each dot that prints.
Superscripts and subscripts
You can also create superscript and subscript user-defined characters. Just as Letter Quality characters are defined when the
Letter Quality mode is selected, superscript and subscript characters are created when either superscript or subscript is selected.
These characters can be used as either superscripts or subscripts.
The characters are exactly the same; only their placement is different. The difference between these characters and regular characters is that superscript and subscript characters are smaller.
They are a maximum of 16 dots high. Their maximum width in dot columns is shown in the table below:
Mode
Draft
Letter Quality
Proportional
I d 1 d 0 + d 1 + d 2
7 12
23 36
23 42
Software and Graphics 4-29
User-defined Characters
Since superscript and subscript characters are smaller, when you define them you only need two bytes of data for each vertical row of dots. Design grids for these characters are shown in the figure below:
Draft pica
Letter Quality and Proportional
Mixing Print Styles
Each of the three user-defined character modes (draft, Letter
Quality, and proportional) can be used in combination with most of your printer’s various print styles. For instance, emphasized mode works with user-defined characters. The characters you design are enhanced to give this printing effect.
Mixing the three types of user-defined character sets is not possible.
For example, if you select draft and define some characters, then select proportional and define some more, the first draft character definitions are deleted. Only one type of character definition may be stored in RAM at any time.
4-30 Software and Graphics
User-defined Characters
If you define characters in one mode, then switch to another mode and select the user-defined character set, the command is ignored and nothing is printed. The user-defined character definitions, however, remain unaffected. If you switch back to the mode in which they were defined, you can then select and print them.
Keep in mind that user-defined characters are stored in RAM, which is not permanent memory. When the printer power is turned off or the printer is initialized with the INIT signal, the user-defined characters are lost. (Some computers do this each time BASIC is loaded.)
Software and Graphics 4-31
4-32 Software and Graphics
Chapter 5
Using the Printer Options
The Cut Sheet Feeder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Paper Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Testing the Printer in the Cut Sheet Feeder Mode . . . . . 5-9
Operating the Cut Sheet Feeder . . . . . . . . . . . . . . . . . . . . 5-11
Single-sheet Insertion . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Removing the Cut Sheet Feeder . . . . . . . . . . . . . . . . . . . . 5-15
The Pull Tractor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Paper Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Removing the Pull Tractor. . . . . . . . . . . . . . . . . . . . . . . . . 5-24
The Multi-Font Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Selecting a Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The Interface Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Choosing an Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Compatible Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
#8143 New Serial Interface. . . . . . . . . . . . . . . . . . . . . . . . . 5-41
Using the Printer Options 5-1
advertisement
Related manuals
advertisement
Table of contents
- 1 FRONT MATTER
- 4 TABLE OF CONTENTS
- 8 INTRODUCTION
- 8 Features
- 9 Options
- 11 About This Manual
- 12 Application Notes
- 13 Where to Get Help
- 14 CHAP 1-SETTING UP THE PRINTER
- 15 Unpacking the Printer
- 15 Checking the Parts
- 17 Choosing a Place for the Printer
- 19 Assembling the Printer
- 19 Installing the Platen Knob
- 20 Installing the Ribbon Cartridge
- 23 Attaching the Paper Guide
- 26 Testing the Printer
- 26 Plugging in the Printer
- 27 Running the Self Test
- 34 Checking the Operation
- 35 Connecting the Printer to Your Computer
- 35 The Parallel Interface
- 38 Setting Up Your Application Software
- 38 Choosing From a Menu
- 40 CHAP 2-PAPER HANDLING
- 41 Using Single Sheets
- 41 Loading Paper
- 44 Reloading During Printing
- 45 Using Continuous Paper
- 45 Positioning Your Continuous Paper Supply
- 46 Loading Continuous Paper
- 52 Switching Between Continuous and Single Sheets
- 52 Switching to Single Sheets
- 56 Switching Back to Continuous Paper
- 59 Printing on Special Paper
- 59 The Paper Thickness Lever
- 62 Multi-part Forms
- 63 Labels
- 65 Envelopes
- 67 CHAP 3-USING THE PRINTER
- 68 Operating the Control Panel
- 72 Setting the DIP Switches
- 72 Changing a DIP Switch Setting
- 73 The DIP Switch Tables
- 75 The DIP Switch Functions
- 76 Page Length
- 77 Skip Over Perforation
- 78 Adjusting the Loading Position
- 78 The Loading Position
- 79 Using Micro-adjustment
- 80 Using Short Tear-Off
- 81 Adjusting the Tear-off Position
- 83 Selecting Typestyles
- 84 Character Fonts
- 85 Condensed Mode
- 86 Selecting an International Character Set
- 88 Choosing a Character Table
- 90 Using the Data Dump Mode
- 93 CHAP 4-SOFTWARE AND GRAPHICS
- 94 Enhancing Your Printing
- 94 Character Spacing
- 95 Character Size
- 96 Special Effects and Emphasis
- 98 Selecting Typestyles With Master Select
- 101 Graphics
- 102 The Print Head
- 105 The Graphics Command
- 106 Column Reservation Numbers
- 106 A Simple Graphics Program
- 107 Designing Your Own Graphics
- 112 User-defined Characters
- 112 Designing Your Characters
- 114 Defining Your Characters
- 116 Sending Information to Your Printer
- 119 Printing User-defined Characters
- 120 Copying ROM Characters to RAM
- 121 Letter Quality Characters
- 122 Mixing Print Styles
- 125 CHAP 5-USING THE PRINTER OPTIONS
- 126 The Cut Sheet Feeder
- 126 Installation
- 129 Paper Handling
- 133 Testing the Printer in the Cut Sheet Feeder Mode
- 135 Operating the Cut Sheet Feeder
- 135 Single-sheet Insertion
- 139 Removing the Cut Sheet Feeder
- 141 The Pull Tractor
- 141 Installation
- 143 Paper Handling
- 148 Removing the Pull Tractor
- 152 The Multi-Font Module
- 154 Installation
- 157 Selecting a Font
- 158 The Interface Boards
- 158 Choosing an Interface
- 159 Compatible Interfaces
- 159 Installation
- 165 #8143 New Serial Interface
- 167 CHAP 6-MAINTENANCE
- 168 Cleaning the Printer
- 170 Replacing the Ribbon
- 176 Transporting the Printer
- 177 CHAP 7-TROUBLESHOOTING
- 178 Problems and Solutions
- 180 Power Supply
- 181 Printing
- 190 Paper Handling
- 200 Options
- 211 CHAP 8-TECHNICAL SPECIFICATIONS
- 212 Printer Specifications
- 212 Printing
- 214 Paper
- 217 Mechanical
- 218 Electrical
- 218 Environment
- 219 Interface Specifications
- 219 Pin Assignments for the Parallel Interface
- 221 Interface Timing
- 222 Printing Enabled/Disabled Signals and Control Conditions
- 223 Option Specifications
- 223 Single-bin Cut Sheet Feeder
- 225 Initialization
- 225 Default Settings
- 227 CHAP 9-COMMAND SUMMARY
- 228 Using the Command Summary
- 230 Control Key Chart
- 231 Commands in Numerical Order
- 234 Commands Arranged by Topic
- 234 Printer Operation
- 237 MSB Control
- 238 Data Control
- 239 Vertical Motion
- 245 Horizontal Motion
- 248 Overall Printing Style
- 250 Print Size and Character Width
- 254 Print Enhancement
- 259 Word Processing
- 260 Character Tables
- 262 User-defined Characters
- 264 Graphics
- 267 APPENDIX
- 268 Proportional Width Table
- 272 Character Tables
- 275 GLOSSARY
- 283 INDEX