Page 2
(see the automatic carriage return function in the printer setup). When the printer is in parallel connection and in EPSON mode, a line feed is inserted automatically after a carriage return if AUTO LF HOST selection (see “Printer Setup”...
Page 3
ESC ] Sets a reverse line feed. (IBM) ASCII Code ESC ] Hexadecimal Value 1B 5D Decimal Value 27 93 This code is a terminator code; when received, it causes the current contents of the print buffer to be printed out, before reversing the paper by one line at the current vertical spacing.
Page 4
ESC J Advances paper n/180 inch. (IBM XL24 AGM, EPSON) ASCII Code ESC J n Hexadecimal Value 1B 4A n Decimal Value 27 74 n Range 1 < n < 255 This is a terminator code; it therefore causes the current contents of the print buffer to be printed out before performing a single line feed of n/180 inch.
Page 5
ESC $ Sets the absolute printing position. (EPSON) ASCII Code ESC & n Hexadecimal Value 1B 24 n Decimal Value 27 36 n Range 0 < n < 255 0 < n < 127 This command specifies the distance from the left margin where you want to print subsequent characters.
Page 6
ESC [ \ Sets vertical units. (IBM) ASCII Code ESC [ \ m Hexadecimal Value 1B 5B 5C m Decimal Value 27 91 92 m Range 0 < t < 255 0 < t < 255 = 180 or 216 This command changes the base units for the graphics line spacing commands (ESC J, ESC 3).
Page 7
[(current position) – (horizontal position)] 32768-MOD The default unit is 1/120 inch in Draft mode and 1/180 inch in LQ mode. If it would move the print position outside the printing area, the printer ignores this command. ESC + Sets n/360-inch line spacing. (EPSON)
Page 8
ESC / m Selects the Vertical Format Unit (VFU) channel. (EPSON) ASCII Code ESC + n Hexadecimal Value 1B 2F n Decimal Value 27 47 n Range 0 < n < 7 This command selects the vertical tab set m. The values for m specifies the number of the tab set being changed.
Page 9
ESC 2 Enables the line spacing set by ESC A command. (IBM XL24) ASCII Code ESC 2 Hexadecimal Value 1B 32 Decimal Value 27 50 This command starts line spacing at a value that was set by ESC A.. ESC 3 Sets n/180-inch line spacing.
Page 10
ESC 4 Sets top of form (first printable line). (IBM) ASCII Code ESC 4 Hexadecimal Value 1B 34 Decimal Value 27 52 This sequence sets the first line of the fanfold paper as the current paper position of the form. ESC A Sets text line spacing at n/60 inch.
Page 11
ESC B Sets vertical tabs. (IBM, EPSON) ASCII Code ESC B n … n Hexadecimal Value 1B 42 n ... n Decimal Value 27 66 n ... n Range 1 < n < 255 In EPSON mode, sets vertical tab stops in the 0 Vertical Format Unit (VFU) channel. This code sets up to 16 vertical tab stops at the line specified by n 0 VFU channel.
Page 12
ESC C Sets form length to n lines. (IBM, EPSON) ASCII Code ESC C n Hexadecimal Value 1B 43 n Decimal Value 27 67 n Range 1 < n < 127 This command sets the form length to the number of lines specified by n at the current vertical spacing.
Page 13
ESC d Spaces forwards relative dot position. (IBM) ASCII Code ESC d n Hexadecimal Value 1B 64 n 1 n2 Decimal Value 27 100 n Range 0 < n < 255 This command moves the print carriage of a (n the right of its current dot position.
Page 14
ESC l Sets left margin (10 cpi). (EPSON) ASCII Code ESC l n Hexadecimal Value 1B 6C n Decimal Value 27 108 n Range 0 < n < 255 This code sets the left margin at the current horizontal spacing. It must be sent at the beginning of the line.
Page 15
ESC N Sets the skipover perforation to n lines. (IBM, EPSON) ASCII Code ESC N n Hexadecimal Value 1B 4E n Decimal Value 27 78 n Range 1 < n < 127 (EPSON mode) 1 < n < 225 (IBM mode) The skipover perforation is the sum of top and bottom margins values at the selected vertical spacing.
Page 16
Changing the vertical spacing does not affect the skipover distance. This can be changed by a further ESC N command or can be reset by the ESC O command, which resets the skipover value to 0. The skipover perforation will be executed when the end of the page is reached with a LF, VT or FF code and not with the ESC J or ESC C command, the skipover perforation is cancelled and must therefore be set again.
Page 17
Character Width Horizontal Spacing Double Width Normal Any value outside the accepted range is ignored and the previous setting remains in effect. The right margin must be greater than the left margin. The physical position set for the right margin does not change if the horizontal spacing is modified. ESC R Sets all tabs to power-on settings.
Page 18
ESC SP Sets intercharacter space. (EPSON) ASCII Code ESC SP n Hexadecimal Value 1B 20 n Decimal Value 27 32 n Range 0 < n < 255 This command sets the intercharacter space to n/120 inch in Draft printing and n/180 inch in Quality printing.
Advances paper to the top of the next page. (IBM, EPSON) ASCII Code Hexadecimal Value Decimal Value This code is a terminator code, when received, causes all data in the print buffer to be printed out. Then it advances the paper to the first printable line of the next form. The line counter is set to the first line value and the column counter is set to the left margin value.
Page 20
VHF channel selected by the ESC / m. If no VFU channels have been selected, the printer assumes as default channel 0. This command resets the double width printing set by SO or ESC SO command.
Sets 10 cpi printing. (IBM) ASCII Code Hexadecimal Value 12 Decimal Value This is a terminator code. It causes all data present in the print buffer to be printed. This command is accepted at any position within the line. The character that follows this command will be printed at 10 cpi.
Cancels double width printing. (IBM, EPSON) ASCII Code DC 4 Hexadecimal Value Decimal Value This code cancels the double width printing set by SO or ESC SO code. It has no effect if the ESC W or ESC has set double width commands. ESC - Sets or cancels underlined printing.
Page 23
Style 10 cpi 12 cpi Proportional Compressed Emphasized Double Strike Double Width Italic Underlined To print the desiderated combination of printing attributes, calculate the n parameter by adding up the values of each attribute. ESC ( - Sets score line. (EPSON) ASCII Code ESC ( - n Hexadecimal Value 1B 28 2D n...
Page 24
Line Cancel score line Single continuous line Double continuous line Single broken line Double broken line Any combination of scoring may be set simultaneously. Each type is independent of other types. Graphics characters are not scored. ESC : Sets 12 CPI. (IBM) ASCII Code ESC : Hexadecimal Value 1B 3A...
Page 25
ESC [ @ Sets double high printing and double line feed. (IBM) ASCII Code ESC [ @ l h m Hexadecimal Value 1B 5B 40 l h m Decimal Value 27 91 64 l h m l =normally 4 h = normally 0 This command sets height, width and vertical spacing.
Page 26
specifies the character width. Only the low-order half-byte is significant in this mode byte. The high-order half-byte is ignored. Character Width No change Standard width character Double width character ESC _ Sets or cancels overscore printing. (IBM mode) ASCII Code ESC _ n Hexadecimal Value 1B 5F n Decimal Value...
Page 27
ESC 5 Cancels italics printing. (EPSON) ASCII Code ESC 5 Hexadecimal Value 1B 35 Decimal Value 27 53 Sets the style attribute of the font to normal (cancels the italic style attribute previously selected with the ESC 4 command). ESC q Selects character style.
Page 28
Justification Left Centered Right allows an uniform printing between the margins when the buffer is full ESC E Sets emphasized printing. (IBM, EPSON) ASCII Code ESC E Hexadecimal Value 1B 45 Decimal Value 27 69 This command starts emphasized printing. The print head strikes each dot twice to produce a darker, bolder character.
Page 29
Subsequent data will be printed at 15 cpi. This command is accepted at any position within the line. If you change the pitch during proportional mode (selected with the ESC p command) the change takes effect when the printer exits proportional mode. ESC H Cancels double strike printing.
Page 30
This command selects 12-cpi or 20-cpi character printing. If you change the pitch during proportional mode (selected with the ESC p command) the change takes effect when the printer exits proportional mode. The spacing is set to 20 cpi if the compressed printing has been previously selected by SI or ESC SI command.
If n parameter is equal to 0, proportional mode is reset. If the any horizontal spacing command is sent to the printer when the proportional printing is set, the command will be stored and will be activated as soon as the proportional printing will be reset.
Page 32
ESC S Sets subscript or superscript printing. (IBM, EPSON) ASCII Code ESC S n Hexadecimal Value 1B 53 n Decimal Value 27 83 n Selects the subscript or the superscript printing. See the following table: Selection Subscript Print enabled Superscript Print enabled The proportional printing of the subscript or superscript characters is performed at 2/3 of the proportional character width.
ESC SO Sets double width printing (one line). (IBM, EPSON) ASCII Code ESC S0 Hexadecimal Value 1B 0E Decimal Value 27 14 This code causes subsequent data in the same line to be printed as double width characters. It is canceled by the LF, VT, FF, DC4 and ESC W 0 commands or when the buffer is full.
ESC W Sets or cancels double width printing. (IBM, EPSON) ASCII Code ESC W n Hexadecimal Value 1B 57 n Decimal Value 27 87 n Range 0 < n < 1 Enables or disables the double width printing. See the following table: Selection Double Width Printing enabled Double Width Printing disabled...
Page 35
Letter Quality printing If you select proportional spacing with the ESC p command during Draft printing, the printer prints an LQ font instead. When you cancel proportional spacing with the ESC p command, the printer returns to Draft printing. ESC y Selects yellow ribbon band.
Page 36
Sets double width printing (one line). (IBM, EPSON) ASCII Code Hexadecimal Value 0E Decimal Value This code causes subsequent data in the same line to be printed as double width characters. It is canceled by the LF, FF, VT, DC4, ESC W codes o when the buffer is full.
Page 38
ESC \ Prints characters from all characters table. (IBM) ASCII Code ESC \ n Hexadecimal Value 1B 5C n Decimal Value 27 92 n Range 0 < n < 255 0 < n < 255 This command prints the next n characters.
Page 39
Selects one of the available fonts in Letter Quality mode. See the following table: Types Courier Gothic Courier Prestige Script OCR-B OCR-A Presentor Boldface If the Draft mode is selected when this command is sent, the new LQ font will be selected when the printer returns to LQ printing. A-38...
Page 40
ESC R Selects an international character set. (EPSON) ASCII Code ESC R n Hexadecimal Value 1B 52 n Decimal Value 27 82 n Range 0 < n < 12 This code causes the national character set to be selected according to the parameter n. Character Sets France Germany...
Page 41
ESC % Selects user-defined character set. (EPSON) ASCII Code ESC % n Hexadecimal Value 1B 25 n Decimal Value 27 37 n This command switches between the normal (resident) and user-defined (downloaded) characters: Selection Selects the use of down-loaded character set in RAM Selects the use of resident character set in ROM ESC &...
Page 42
The data within brackets above is repeated for each character you define. The parameters in the command have the following meaning: n and m The n and m parameters are two decimal numbers that define the first and the last characters to be replaced in the character set in use. It sets space to the left of each proportional user-defined character.
Page 43
Draft (Draft) Courier (Quality) Gothic Prestige OCR-B Presentor Before copying ROM characters to RAM, cancel italics with the ESC 5 command. After copying you can italicize characters by sending the ESC 4 command. ESC = Defines downloaded characters. (IBM) ASCII Code ESC = n m id p t Hexadecimal Value 1B 3D n m id p t...
Page 44
All graphics characters are 30 dot high. An underscored character is defined as a blank graphic (all zeros) and it is automatically generated by the printer. A shading character repeats dots 1-6 of each column as dots 25 through 30 respectively. A line drawing character repeats dots 23 and 24 as the pairs 25 and 26, 27 and 28, 29 and 30.
Page 45
Indicate the byte number of the sequence n is the low part and m is the high part. Indicate the printer model. The id related to your printer is 23H. p and t Indicate the memory address of the character that you wish to replace.
Page 46
ESC * Sets dot graphics printing. (IBM XL24 AGM, EPSON) ASCII Code ESC * m n Hexadecimal Value 1B 2A m n Decimal Value 27 42 m n m = 0,1,2,3,4,6,32,33,38,39,40 0 < n < 255 0 < n < 12 This command prints dot-graphics in 8-dot columns or 24-dot columns, depending on the following parameters: Specifies the dot density...
Page 47
8 bit graphics mode Parameter Horizontal m in ESC * density (dpi) command 24 bit graphics mode Parameter Horizontal m in ESC * density (dpi) command Vertical density (dpi) Adjacent dot printing Vertical density Adjacent (dpi) printing A-46 Dots per Bytes per column column...
Page 48
1B 5B 67 n m data Decimal Value 27 91 103 n m data This command sends data for dot matrix graphics to the printer and allows the selection of eight modes for both 8-wire graphics and 24-wire graphics. n (count) Count is a two-byte value in the format of low byte, high byte that gives the number of bytes of graphic data plus one.
Page 49
m (mode) Mode is a one-byte value to select the graphics mode. Modes have a vertical wire count (8 or 24) and a horizontal density in dots per inch. See the following table: Mode Horizontal Density data The graphic data is organized by byte. For 8-wire modes, it is arranged and mapped to the wires identically to ESC K.
ESC K Normal density dot graphics printing (60 dpi). (IBM, EPSON) ASCII Code ESC K n Hexadecimal Value 1B 4B n Decimal Value 27 75 n Range 0 < n < 255 0 < n < 31 0 < p < 255 Terminator code.
Page 51
Remainder of the number of column divided by 256. Integer result of the previous division. Sum of the values corresponding to the dots that should be printed in the first column of the graphics pattern. Sum of the values corresponding to the dots that should be printed in the second column of the graphics pattern.
Page 52
ESC Z Quadruple density dot graphics printing (240 virtual dpi). (IBM, EPSON) ASCII Code ESC Z n Hexadecimal Value 1B 5A n Decimal Value 27 90 n Range 0 < n < 255 0 < n < 31 0 < p < 255 Terminator code.
This code clears all data stored in the preceding print buffer but does not change the current print position. Selects printer. (IBM) ASCII Code Hexadecimal Value Decimal Value This command causes the printer to be enabled after it has been disabled by the ESC Q 35 command. A-52...
Selects printer. (EPSON) ASCII Code Hexadecimal Value Decimal Value This command causes the printer to be enabled after it has been disabled by the DC3 command. Deselects printer. (EPSON) ASCII Code Hexadecimal Value Decimal Value This code deselects the printer. The printer remains deselected until it receives a DC1 command or power is turned off then on again.
Page 55
Decimal Value 27 81 n This sequence tells the printer not to accept data from the host. The host must reset the printer or select the printer by using DC1 (Select Printer) to accept data. To deselect the printer, use ESC Q35.
ESC @ Initializes the printer. (EPSON) ASCII Code ESC @ Hexadecimal Value 1B 40 Decimal Value 27 64 This sequence causes the printer to be initialized and resets the printer to its default settings. A-55...
Page 57
1B 6A n Decimal Value 27 106 n This command stops the printer. The printer goes offline and a BUSY signal is sent to the computer. To place the printer online, press the Online/Offline key. ESC U Sets printing direction. (IBM, EPSON)
This printer according to the Native COMPUPRINT Mode supports the following printer commands. DC4 DC4 ESC 3 1 Sets vertical spacing 12 lines/30 mm. (Compuprint) ASCII Code DC4 DC4 ESC 3 1 Hexadecimal Value 14 14 1B 33 31 Decimal Value 20 20 27 51 49 This command sets vertical spacing to 12 lines per 30 mm.
20 20 27 51 56 This command sets vertical spacing to 8 lines per 30 mm. DC4 DC4 ESC A Sets the horizontal spacing to 15, 17, 20, 24 CPI. (Compuprint) ASCII Code DC4 DC4 ESC A n Hexadecimal Value 14 14 1B 41 n...
Page 60
27 25 n This command controls cut sheet feeding (ASF) according to the parameters below: Description Disables ASF and the printer (off line) after ejecting cut sheet Enables the ASF and selects Bin 1 Enables the ASF and selects Bin 2...
Page 61
DC4 DC4 ESC g Selects LQ fonts (Compuprint). ASCII Code DC4 DC4 ESC g n Hexadecimal Value 14 14 1B 67 n Decimal Value 20 20 27 103 n Setting Courier Gothic Courier Prestige Script OCR-B OCR-A Presentor Boldface If the down-line loading is selected, the command is stored and will be activated as soon as the down-line loading will be canceled.
Page 62
DC4 DC4 ESC S Selects character set ISO Character Sets or Code Pages. (Compuprint) ASCII Code DC4 DC4 ESC S n Hexadecimal Value 14 14 1B 53 n Decimal Value 20 20 27 83 n Character Set ISO 8859/1 Latin 1...
Page 63
Character Set CP 852 Eastern Europe CP 876 OCR-A CP 877 OCR-B CP 855 Cyrillic CP 866 Russian GOST Cyrillic CP 437G Greek CP 853 Turkish CP 857 Turkish CP 867 Turkish CP 858 Euro PC Multilingual 96 Greek A-62...
DC4 DC4 ESC ! Bar Code Selection. ASCII Code DC4 DC4 ESC ! h t f F r o q b s B S i EM Hexadecimal Value 14 14 1B 21 h t f F r o q b s B S i EM Decimal Value 20 20 27 33 h t f F r o q b s B S i EM h = Bar Code Height at n/6”, 1 <...
Page 65
F = Font selection for the printable characters Selection Selected font by r value Default font for text Special font for OCR-A o OCR-B bar codes according to the t value Special font for OCR-A bar codes Special font for OCR-B bar codes r = Bar code rotation Selection No rotation...
Page 66
EAN-8 DC4 DC4 ESC! n 1 p EM The EAN-8 bar code data field must only contain numeric data, and must be eight bytes long, check digit included. The EAN-8 character repertoire provides 0 to 9 ASCII numeric figures. n indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12.
Page 67
DC4 DC4 ESC! n 17 p EM 2 of 5 Interleaved The 2/5-INTERLEAVED bar code does not have a defined format length. However, the total sum of the characters must be even. n indicates the bar code height and must be in the range 1 to 12. p must be NUL (hex.
Page 68
A B C D E N T * a b c d e n t (only as START/STOP characters) The printer allows any combination of START/STOP characters. If the first and last characters of the received string do not belong to the START/STOP characters subset, question marks will be printed in place of HRC string, if possible.
Page 69
ASCII character set, including control codes. Since GS and EM control codes used within the Compuprint DC4 DC4 ESC (...EM ”Print Bar Code” control sequence are part of the supported character set, the host application must SET THE HIGHER-ORDER BIT of the above control codes to allow the printer distinguish between encodable data and string terminators.
Page 70
DC4 DC4 ESC @ Hexadecimal Value 14 14 1B 40 Decimal Value 20 20 27 64 This command resets the printer mode and clears the buffer of printable data. DC4 DC4 ESC Y Selects emulation. (Compuprint) ASCII Code DC4 DC4 ESC Y n...
Page 71
This appendix contains the selected character sets and the hexadecimal to decimal conversion table.
Page 73
“ § & ‘ ’ Ç É á ü æ í é Æ ó â ô ú ä ö ñ à ò Ñ å û ª º ç ù ¿ ê ÿ • ë ö ¬ è Ü ½ ï ¢...
Page 74
FRANCE GERMANY U.K. £ DENMARK 1 ½ SWEDEN ITALY • SPAIN 1 JAPAN ½ NORWAY DENMARK 2 SPAIN 2 LATIN AMERICA < > < > à ° ç § < > § Ä Ö Ü < > < > Æ Ø...
Page 75
Ø ↕ “ ± & ↕ ‘ ° • • ’ Ç É á ü æ í é Æ ó â ô ú ä ö ñ à ò Ñ å û ª º ç ù ¿ ê ÿ • ë ö...
Page 111
This appendix provides technical information for the parallel interface serial interface.
Page 112
The parallel interface of this printer fully supports the specific features requested by the EPSON and IBM printer connection in monodirectional mode and the Compatibility and Nibbles modes in bidirectional mode, plus the negotiation phases and the device identifier (as The parallel interface is available on a specific 36 contact connector type AMPHENOL 57-40360-12-D56 or equivalent connector for 1284 Type B.
Page 113
According to the IEEE - P1284 Standard, the pins assume different meanings and are identified by different names depending on the actual handshaking mode as follows: • Compatibility mode (Centronics) This is the lower level mode provides an asynchronous, byte-wide forward (host-to-peripheral) channel with data and status lines used according to their original definitions.
Page 114
The link protocol is mainly based on the following three phases: • Negotiation Phase This phase is activated always by the host, only when in compatibility mode, and defines: − whether a bidirectional link protocol can be established. − the handshaking mode as well as the communications mode to be used. −...
Page 115
Clock signal which controls data transmission with its falling edge Negative pulsed signal indicating that the printer has received data and is ready to accept the next set of data. Also sent when the printer is switched from off-line to on-line and at the end of the initialization time.
Page 116
The pins 1 to 14 of the printer are connected to the pins with the same number of the The pins 19 to 30 of the printer are connected to the pins 18 to 25 of the parallel port of The pins 31, 32 and 36 of the printer are connected respectively to the pins 16, 15 and 17 of the parallel port of the host.
Page 117
Common Logic Ground Chassis Ground Pin N° for Return Wire 16 and Return Wires Source HOST HOST in Compatibility mode and negotiation phase. NOT USED in Nibble mode. BIDIRECTIONAL in Byte mode. PRINTER PRINTER PRINTER PRINTER HOST PRINTER HOST PRINTER...
Page 118
Compatibility Mode: Negotiation Phase: Reverse Data Transfer Phase: Set Active low to transfer data into printer input latch. Data is valid while nStrobe is low. Set active low to transfer extendibility request value into printer input latch. Data is valid on the falling edge of HostClk.
Page 119
Set high to indicate that the printer in on-line. Negotiation Phase: The Xflag refers to extendibility flag. Used by the printer to reply to the requested extendibility byte sent by the host during the negotiation phase. The signal level is low for Nibble Mode, high for Byte Mode.
Page 120
1284 idle phase is being aborted and the interface returns to Compatibility Mode. Peripheral Logic High (+ 5V) Set high to indicate that all other signals sourced by the printer are in valid state. Set low to indicate the printer is off. n.a. (nInit)
Page 121
Set high in conjunction with Host Busy being set low to request a 1284 mode. Reverse Data Transfer Phase: Set high to indicate that bus direction is printer to host. Set low to terminate 1284 mode and set bus direction host to printer.
Page 122
Timing and Handshaking depend upon the connection mode. Our Centronics mode supports the BUSY-WHILE-STROBE busy signal timing and ACK-IN-BUSY as BUSY-ACK relationship. Legend Time interval Data Setup Time Strobe Pulse Width Data Hold Time Busy While Strobe Ack in Busy Min.
Page 124
This printer provides the RS-232/C The interface mode is selected via printer setup (see “Printer Setup” in the User Manual). • Transmission Type Data is sent and received in start/stop (asynchronous) transmission. • Character Format Each character is transmitted in the following format: 1 START BIT + 8 DATA BITS + 1 PARITY BIT + 1 STOP BIT The least significant bit of the data bits is sent first after the start bit.
Page 125
Circuit Source Circuit Printer Data Set Printer C-15 Description This printer is shipped with pin 1 connected to the frame ground (protective ground). Transmitted Data Signal (an output from printer). A MARK condition is held during IDLE communication state. An...
Page 126
Active HIGH level signal. Indicates that the host or data set is ready to be connected to the printer and is ready for data transfer. Active HIGH level signal. Indicates that the host is transmitting or the data set is receiving the Data Carrier signal.
A MARK level is expected when sender is in idle state. Receive Return. Signal Ground. Always connected to the 0 Volt of the power supply. Cable Shield. Optionally connected to the frame ground of the printer via a suitable jumper. C-17...