User-defined Characters. Epson P-4500, 4500, ActionPrinter 4500


Add to my manuals
317 Pages

advertisement

User-defined Characters. Epson P-4500, 4500, ActionPrinter 4500 | Manualzz

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 user-defined character function.

Note: To use user-defined characters, you must turn DIP switch 2-5

O f f .

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 user-defined 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 user-defined 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.

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.

Draft pica Letter quality / Proportional

Software and Graphics 4-21

User-defined Characters

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, or 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 character 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 proportional-width characters that print at draft speed. The table below shows the maximum values for these bytes.

Mode

Draft

Letter Quality 1 0 cpi

Letter Quality 1 2 cpi

Proportional d1

9

29

23

37 d0 + d1 + d2

12

36

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

User-defined Characters

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$(1)CHR$(9)CHR$(1);

50 FOR I=1 TO 27

60 READ A: LPRINT CHR$(A);

70 NEXT I

80 LPRINT "@@@@@"

90 LPRINT CHR$(27)"%"CHR$(1);

100 LPHINT "@@@@@"

110 LPRINT CHR$(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 user-defined 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:

E S C : 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 d1

7

23

23 d0 + d1 + d2

1 2

36

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

Chapter 5

Using the Printer Options

The Cut Sheet Feeder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2

Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-2

Paper Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6

Testing the Printer in the Cut Sheet Feeder Mode . . . . . . . . 5-10

Single-sheet Insertion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13

Operating the Cut Sheet Feeder

. . . . . . . . . . . . . . . . . . . . . . 5-15

Removing the Cut Sheet Feeder

. . . . . . . . . . . . . . . . . . . . . .5-17

The Pull Tractor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-21

Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-21

Paper Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23

Removing the Pull Tractor . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30

The Multi-Font Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-34

Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-37

Selecting a Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-38

The Interface Boards

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-40

Choosing an Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-40

Compatible Interfaces

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-41

Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5-41

#8143 New Serial Interface

. . . . . . . . . . . . . . . . . . . . . . . . . . 5-49

Using the Printer Options

5-1

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Key Features

  • Fast print speeds of up to 192 characters per second
  • High-quality output with a resolution of up to 64 characters per inch
  • Automatic loading of single sheets of paper
  • Built-in fonts: draft, Epson Roman, Epson Sans Serif, Epson Courier, Epson Prestige, Epson Script, OCR-A, OCR-B, Epson Orator, and Epson Orator-S

Related manuals

Frequently Answers and Questions

How do I load single sheets of paper into the printer?
Turn on the printer. Insert a sheet of paper in the paper guide until it meets resistance. After about two seconds, the printer loads the paper automatically and is set on line so that it can accept data from your computer.
How do I select a different font?
Press the FONT button on the front panel. The printer will scroll through the eight built-in fonts. The indicator lights will show the selected font.
How do I change the page length?
Use the DIP switches on the back of the printer to set the page length. See the DIP Switch Tables in the Product Update Notice for more information.
Download PDF

advertisement

Table of contents