Vous êtes sur la page 1sur 18

Proportional Width Information

Proportional width during multipoint mode (ESC/P 2 only)


ESC/P 2

The width of proportional characters during multipoint mode varies depending on your selected point size. The width is calculated based on the width of proportional 10-point (10.5-point) characters, using the following formula:
INT

(character width) =

(p o int size ) (b a s e w idth) + 0. 5 1 0. 5


360

inch

The base width in the above equation is the width listed for each character in the 24/48-pin proportional width tables in the next section. For example, the width of a 26-point e would be determined as follows:
INT

(character width) = (character width) = (character width) =

(2 6 ) ( 3 0 ) + 0. 5 1 0. 5
360

inch

IN T (7 4 .7 8 6 ) 360 74 360

inch

inch

24/48-pin proportional width tables


The tables in this section list the widths for all proportional 10.5-point characters on 24/48pin printers. The widths listed are in 1/360-inch units. For example, the width of the letter w during proportional spacing is 42/360 inch.

Upright and italic characters, 24-pin Character Code Width SP 32 30 ! 33 18 " # $ % & ' ( 34 35 36 37 38 39 40 30 30 30 36 36 18 24

Upright and italic characters, 24-pin Character Code Width ) 41 24 * 42 30 + , . / 0 1 43 44 45 46 47 48 49 30 18 30 18 30 30 30

Upright and italic characters, 24-pin Character Code Width 2 50 30 3 51 30 4 5 6 7 8 9 : 52 53 54 55 56 57 58 30 30 30 30 30 30 18


A-21

Proportional Width Information

Upright and italic characters, 24-pin Character Code Width ; 59 18 < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c
A-22

Upright and italic characters, 24-pin Character Code Width d 100 36 e f g h i j k l m n o p q r s t u v w x y z { | } ~ none 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 30 24 36 36 18 24 36 18 42 36 30 36 36 30 30 24 36 36 42 30 36 30 24 18 24 30 none 36 36 30 30 30 30 30 30 30 30 30 18 18

Upright and italic characters, 24-pin Character Code Width 141 18 Pt 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 36 36 36 42 42 30 30 30 36 36 36 36 42 30 30 36 42 30 30 18 30 36 36 36 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99

30 30 30 30 36 36 36 36 36 36 36 36 36 24 30 36 36 42 36 36 36 36 36 36 36 42 36 42 36 36 30 24 30 24 30 30 18 30 36 30

Proportional Width Information

Upright and italic characters, 24-pin Character Code Width 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30

Upright and italic characters, 24-pin Character Code Width 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 SP 253 254 255 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30

Upright and italic international characters, 24-pin Character Code Width none 24 W Pt none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none 30 36 36 30 30 30 36 30 30 30 30 30 30 18 36 42 36 36 42 42 30 30 36 36 42 30 36 42 36 36 30 30

Proportional Width Information

A-23

Upright and italic superscript/subscript characters, 24-pin Character Code Width SP 32 20 ! " # $ % & ' ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G
A-24

Upright and italic superscript/subscript characters, 24-pin Character Code Width H 72 24 I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 16 20 24 24 28 24 24 24 24 24 24 24 28 24 28 24 24 20 16 20 16 20 20 12 20 24 20 24 20 16 24 24 12 16 24 12 28 24 20

Upright and italic superscript/subscript characters, 24-pin Character Code Width p 112 24 q r s t u v w x y z { | } ~ none 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 24 20 20 16 24 24 28 20 24 20 16 12 16 20 none 24 24 20 20 20 20 20 20 20 20 20 12 12 12 24 24 24 28 28 20 20 20 24 24

33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71

12 20 20 20 24 24 12 16 16 20 20 12 20 12 20 20 20 20 20 20 20 20 20 20 20 12 12 20 20 20 20 24 24 24 24 24 24 24 24

Proportional Width Information

Upright and italic superscript/subscript characters, 24-pin Character Code Width 152 24 Pt 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 24 28 20 20 24 28 20 20 12 20 24 24 24 20 20 20 20 20 20 20 12 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20

Upright and italic superscript/subscript international characters, 24-pin Character Code Width none 20 W Pt none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none 24 24 20 20 20 24 20 20 20 20 20 20 20 12 24 42 24 24 28 28 20 20 24 24 28 20 24 28 24 24 20 12

Upright and Italic legal characters, 24-pin Character Code Width none 30 , none none none none none none none none 30 18 36 36 18 30 36 30

Upright and italic superscript/subscript legal characters, 24-pin Character , Code none none none none none none none none none Width 30 30 18 36 36 18 30 36 30

Proportional Width Information

A-25

9-pin proportional width tables


The tables in this section list the widths for all proportional characters on 9-pin printers. The widths listed are in 1/120-inch units. For example, the width of an italic letter w during proportional spacing is 12/120 inch.

Upright characters, 9-pin Character SP ! " # $ % & ' ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B


A-26

Code 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

Width 12 5 8 12 12 12 12 5 6 6 12 12 7 12 6 10 12 8 12 12 12 12 12 12 12 12 6 6 10 12 10 12 12 12 12

Upright characters, 9-pin Character Code Width C 67 12 D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 12 12 12 12 12 8 11 12 12 12 12 12 12 12 12 12 12 12 12 12 10 12 10 8 10 8 12 12 5 12 11 11 11 12

Upright characters, 9-pin Character Code Width f 102 10 g h i j k l m n o p q r s t u v w x y z { | } ~ none 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 11 11 8 9 10 8 12 11 12 11 11 11 12 11 12 12 12 10 12 10 9 5 9 12 none 12 11 12 12 12 12 12 11 12

Proportional Width Information

Upright characters, 9-pin Character Code Width 137 12 Pt 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 12 8 10 8 12 12 12 12 12 10 10 10 11 11 12 12 12 11 12 12 12 11 12 8 10 11 11 12 12 12 12 12 12 12 12 5 12 12 12 12 12

Upright characters, 9-pin Character Code Width 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12

Upright characters, 9-pin Character Code Width 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 SP 253 254 255 12 12 12 12 11 10 12 10 11 11 12 10 12 12 12 12 12 10 10 12 12 10 10 12 12 12 12 8 6 6 12 8 8 8 12

Proportional Width Information

A-27

Upright international characters, 9-pin Character Code Width none 8 Pt none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none none 12 11 8 12 12 10 11 12 12 12 12 11 12 8 12 12 12 12 12 10 10 11 12 12 12 12 12 11 12 12 5

Italic characters, 9-pin Character Code Width % 37 12 & ' ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 12 5 8 8 12 12 8 12 7 10 12 9 12 12 12 12 11 12 12 11 8 9 10 11 9 11 12 12 12 12 12 12 12 12 12 10 12 12 10

Italic characters, 9-pin Character Code Width M 77 12 N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 12 12 12 12 12 12 12 12 11 12 12 12 12 11 7 11 10 12 5 11 11 11 12 11 12 11 11 9 10 11 9 11 10 11 11 11 10 11 10

Italic characters, 9-pin Character Code Width SP 32 12 ! " # $


A-28

F G H I J K L

33 34 35 36

10 10 12 11

Proportional Width Information

Italic characters, 9-pin Character Code Width u 117 11 v w x y z { | } ~ none 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 10 12 12 11 12 10 9 10 12 none 12 12 11 12 11 11 11 11 12 11 11 10 11 8 12 12 12 12 12 12 11 11 11 11 11 12 12 11 11

Italic characters, 9-pin Character Code Width 157 12 Pt 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 12 12 11 10 12 11 12 12 11 12 11 12 12 12 12 10 12 12

Italic international characters, 9-pin Character Code Width none 12 Pt none none none none none none none none none none none none none none 12 12 11 11 11 12 12 12 12 12 12 12 11 10

Italic international characters, 9-pin Character Code Width none 8 none none none none none none none none none none none none none none none none 12 11 9 12 12 12 12 11 11 11 11 11 11 8 12 12
Proportional Width Information A-29

ASCII Code Table

*Codes in shaded boxes are printer control codes.

A-30

ASCII Code Table

Parallel Interface
EPSON printers feature an industry standard Centronics Parallel type interface. The printer side of this interface utilizes a 36 Pin connector. The pin assignments for this connector are as follows: Pins and signals Signal Pin Return Pin
1 19

Signal STROBE

Direction IN

Description STROBE pulse to read data. Pulse width must be more than 0.5 microseconds at the receiving terminal. These signals represent information of bits 1 to 8 of parallel data, respectively. Each signal is at HIGH level when data is logical 1 and LOW when it is logical 0.

2 3 4 5 6 7 8 9 10

20 21 22 23 24 25 26 27 28

DATA 1 DATA 2 DATA 3 DATA 4 DATA 5 DATA 6 DATA 7 DATA 8 ACKNLG

IN IN IN IN IN IN IN IN OUT

About an 11-microsecond pulse. LOW indicates that data has been received and that the printer is ready to accept more data. A HIGH signal indicates that the printer cannot receive data. The signal goes HIGH in the following cases: 1) During data entry (ea. char. time) 2) During a printer-error A HIGH signal indicates that the printer is out of paper. Always at high level when the printer is on. When this signal is LOW, the paper is automatically fed 1 line after printing. (The signal level can be fixed to LOW by setting the DIP switch or SelecType. See the users guide of each printer.)

11

29

BUSY

OUT

12 13 14

30

PE SLCT AUTO FEED XT

OUT OUT IN

Parallel Interface

A-31

Pins and signals (continued) Signal Pin Return Pin Signal


15 16 17 18 1930 31 16 NC GND CHASSIS GND NC GND INIT

Direction IN

Description Not used. Logic ground level. Printers chassis ground, which is isolated from the logic ground. Not used. Twisted-pair return signal ground level. When this level becomes LOW, the printer controller is reset to its power-up state and the print buffer is cleared. This level is normally HIGH; its pulse width must be more than 50 microseconds at the receiving terminal. This level becomes LOW when the printer is: 1) In paper out state. 2) In error state. Same as for Pins 19-30. Not used. Pulled up to 5V through 3.3 k resistance. The DC1/DC3 code is valid only when this SLCT IN signal is HIGH. (Internal fixing can be carried out with the jumper switch. The level of this signal is factory-set to LOW.) Some printers do not use this function. For specific information, see the users guide of each printer.

32

ERROR

OUT

33 34 35 36

GND NC SLCT IN or NC

OUT IN or

Note: The values may vary from printer to printer. See the users guide of your printer. The column heading Direction refers to the direction of signal flow as viewed from the printer. Return denotes the twisted-pair return, to be connected at signal ground level. For the interface wiring, be sure to use a twisted-pair cable for each signal and to complete the connection on the return side. To prevent noise, these cables should be shielded and connected to either the chassis of the host computer or the printer (but not at both ends). All interface conditions are based on TTL level. Both the rise and the fall times of each signal must be less then 0.2 microseconds. Data tranfer must be carried out by observing the ACKNLG or BUSY signal. (Data transfer to this printer can be carried out only after receipt of the ACKNLG signal or when the level of the BUSY signal is LOW.)

A-32

Parallel Interface

Parallel interface timing 9-pin printers (excluding MX-series, and LX-300 and later printers)
BUSY ACKNLG DATA STROBE 0.5 s (min.) 0.5 s (min.) 0.5 s (min.) Approx. 5 s Approx. 7 s

24/48-pin printers (excluding LQ-1500, SQ-2000, and LQ-300 and later printers)
BUSY ACKNLG DATA STROBE 0.5 s (min.) 0.5 s (min.) 0.5 s (min.) Approx. 5 s Approx. 5 s

MX-series printers
BUSY ACKNLG DATA STROBE 0.5 s (min.) 0.5 s (min.) 1.0 s (min.) Approx. 5 s Approx. 5 s

LQ-1500, SQ-2000
BUSY ACKNLG DATA STROBE 0.5 s (min.) 0.5 s (min.) 0.5 s (min.) Approx. 4.5 s Approx. 4.5 s

Parallel Interface

A-33

LX-300 and later 9-pin printers, and LQ-300 and later 24/48-pin printers
BUSY ACKNLG DATA STROBE 0.5 s (min.) 0.5 s (min.) 0.5 s (min.)

0 s (min.) 0.5~10 s 0 s (min.)

The flow chart shown below illustrates the recommended procedure for checking the status of a parallel interface. Parallel interface flow chart
Start

ERROR signal

Error

Not Error

Not Paper End PE signal

Busy

BUSY signal

Paper End Paper end Error

Not Busy Send 1 byte data to printer

Yes

Data remains No End

A-34

Parallel Interface

Internal Serial Interface


Six-pin DIN connector type
Connector pin assignment Pin Number Signal Signal Dir. 1 TXD Out 2 REV Out 3 RXD In 4 NC 5 SG 6 FG Synchronization Asynchronous Data format 1 start bit Data word length: 8 bits Odd, even, or no parity 1 stop bit 300-19,200 bps, depending on printer Mark (1) 3V to 27V Space (0) +3V to +27V Handshaking by DTR signal or X-on/X-off. When the number of free bytes in the input buffer drops below 256, the DTR signal changes to mark, signifying the printer is not ready to receive data. When the number of free bytes rises above 528, the DTR signal changes to space, specifying that the printer is now ready to receive data.
Description Transmits data for Xon/Xoff Whether or not the printer is ready to receive data Receive data Not Used Signal Ground Frame Ground

Baud rate Signal level Handshaking

Internal Serial Interface

A-35

25-pin subminiature D-shell connector (female) type


Connector pin assignment Pin Number Signal Signal Dir. Description 2 TXD Out Transmits data for Xon/Xoff 20 DTR Out Indicates that the printer is ready to receive data or not. 11 REV Out Connected directly to the DTR signal 4 RTS Out Request to send. Always SPACE level when the printer is powered on. Pulled up to +12V via 4.7Kohm resistor. 3 RXD In Receive data 7 SG Signal Ground 1 FG Frame Ground Other NC Not Used Synchronization Asynchronous Data format 1 start bit Data word length: 7 or 8 bits Odd, even, or no parity 1 stop bit 300-19,200 bps, depending on printer EIA-232D Mark (1) 3V to 25V Space (0) +3V to +25V

Baud rate Signal level Handshaking

DTR signal and XON/XOFF The DTR signal is MARK and an XOFF code (DC3, 13H) is transmitted when the available input buffer space drops to 256 bytes. The DTR signal is SPACE and an XON (DC1, 11H) is transmitted when the available input buffer space returns to 256 bytes. ETX, ACK/NAK d At the time the printer receives an ETX (03H) command, if the available buffer space is more than 256 bytes, the printer sends an ACK (06H) code in reply, or if the available buffer space is less than 256 bytes, the printer sends NAK (15H) and d (64H) codes continuously. The ETXACK handshaking protocol can be enabled or disabled altering the default settings.

Error handling

When a parity error is detected, the received byte is changed to the * character code. Overrun errors and framing errors are ignored.

A-36

Internal Serial Interface

Optional Serial Interfaces


Several optional serial interfaces are offered for the EPSON printer line. The pin assignments and signal direction from the printer side of the Female DB-25 are described in the table below: Optional serial interface pin assignments Pin Signal Name Dir. Description 1 Protective Ground n/a Chassis Ground 2 Transmitted Data (TXD) Out Transmitted Data 3 Received Data (RXD) In Received Data 6 Data Set Ready (DSR) In This signal must be at the positive EIA level for the printer to receive data. 7 Signal Ground In Return path for data and control signals 8 Data Carrier Detect In This is the same signal as DSR at pin #6, DCD and (DCD) DSR can be held at SPACE internally. The signal polarity is factory set to SPACE 11 Reverse Channel Out This signal is at the positive EIA level when the printer is ready to accept data entry, and at the negative EIA (= 2nd RTS) level when the printer is not ready. The user can invert the polarity of this signal via DIP switch. 17 TTY-TXD Out Low impedance (MARK) between pins 17 and 24 or X-ON signal sent across pins 17 and 24 indicates that the printer is ready to accept data. High impedance (SPACE) or X-OFF signal being sent indicates that the printer is busy. The operator can invert the polarity via DIP switch. 20 Data Terminal Ready Out See Pin 11 for description (DTR) 23 TTY-TXD Return n/a 24 TTY-TXD Return n/a See Pin 17 for description 25 TTY-RXD In Input data when using serial current loop.

Optional Serial Interfaces

A-37

Selecting PreESC/P 2 Fonts in ESC/P 2 Multipoint Mode


ESC/P 2

You can use the ESC X command to select fonts identical to those available in non-ESC/P 2 printers. Send the ESC X parameters on the right to obtain the point and pitch sizes selected by the commands on the left.
ESC X nL 21 21 21 42 21 21 42 42 21 12 21 42 21 21 42 42 1 21 21 42 21 21 42 42 21 42

SO ESC P 3

SI

ESC w 1

3 3 3 3 3 ESC M 3 3 3 3 3 3 ESC g 3 3 3 3 3 3 ESC p 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3

Point 10.5 10.5 10.5 21 10.5 10.5 21 21 10.5 10.5 10.5 21 10.5 10.5 21 21 10.5 10.5 10.5 21 10.5 10.5 21 21 10.5 21

Pitch 10 5 17.14 10 8.57 5 17.14 8.57 12 6 20 12 10 6 20 10 15 7.5 15 15 7.5 7.5 15 7.5 Prop. Prop.

m 36 72 21 36 42 72 21 42 30 60 18 30 36 60 18 36 24 48 24 24 48 48 24 48 1 1

nH 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

A-38

Selecting PreESC/P 2 Fonts in ESC/P 2 Multipoint Mode

Vous aimerez peut-être aussi