Compuprint 9300 Programmer's Manual

Compuprint 9300 Programmer's Manual

Compuprint 9300: user guide
Hide thumbs Also See for 9300:

Advertisement

Quick Links

P
r
o
g
r
a
m
m
e
r
M
a
n
u
a
l
P
r
o
g
r
a
m
m
e
r
M
a
n
u
a
l
Rev. 01
78413024-001
Sett. 08

Advertisement

Table of Contents
loading

Summary of Contents for Compuprint 9300

  • Page 1 Rev. 01 78413024-001 Sett. 08...
  • Page 2: Table Of Contents

    Character Set ... 49 Download Character ... 54 Bit-Image ... 60 Data Input Control ... 65 Miscellaneous ... 68 COMPUPRINT Mode ... 76 Format Control ... 76 Native Character Set ... 79 Bar Codes ... 82 Miscellaneous ... 97 ANSI Emulation Commands ... 104 Tables ...
  • Page 3 ISO 8859/6 (Latin/Arabic) ... 181 ISO 8859/7 (Latin/Greek) ... 182 ISO 8859/8 (Latin/Hebrew) ... 183 ISO 8859/9 (Latin 5) ... 184 ISO 8859/15 (Latin 9) ... 185 96 GREEK ... 186 Hexadecimal to Decimal Table ... 187 Interfaces ... 188 The Parallel Interface ...
  • Page 5: Commands

    This section provides information about the commands supported by your printer. The commands are organized by function groups. Each command has both a brief and a detailed description. This appendix provides information about the commands supported by your printer. The commands are organized by function groups.
  • Page 6: Command Summary In Alphabetical Order

    Sets vertical spacing 4 lines/30 mm. (Compuprint) DC4 DC4 ESC 3 6 Sets vertical spacing 6 lines/30 mm. (Compuprint) DC4 DC4 ESC 3 8 Sets vertical spacing 8 lines/30 mm. (Compuprint) DC4 DC4 ESC A Sets the horizontal spacing to 15, 17, 20 CPI. (Compuprint) Commands...
  • Page 7 Selects fonts (Compuprint). DC4 DC4 ESC J Sets amplification factor. (Compuprint) DC4 DC4 ESC N Selects/loads or parks the fanfold from the Front2 push paper path. (Compuprint) DC4 DC4 ESC p Selects printing type style. (Compuprint) DC4 DC4 ESC R String rotation.
  • Page 8 Copies characters from ROM to RAM. (EPSON) ESC ? Reassigns dot graphics mode. (EPSON) ESC @ Initializes the printer. (EPSON) ESC [ - Selects the score line. (IBM 2381 + only) ESC [ I Sets font and pitch of a character. (IBM 2381 + only) ESC [ p ‘...
  • Page 9 ESC \ Prints characters from all characters table. (IBM) ESC \ or ST String terminator. (ANSI) ESC ] Sets a reverse line feed. (IBM) ESC ^ Prints a single character from the all characters table. (IBM) ESC _ Sets or cancels overscore printing. (IBM mode) ESC <...
  • Page 10 ESC D Sets horizontal tab stops. (IBM, EPSON) ESC d Spaces forwards relative dot position. (IBM) ESC D or IND Index. (ANSI) ESC e Spaces backward relative dot position. (IBM) ESC E Sets emphasized printing. (IBM, EPSON) ESC E or NEL Next line.
  • Page 11 ESC Q Sets the right margin (10 cpi). (EPSON) ESC Q Deselects Printer. (IBM) ESC Q or PU1 Executes Selftest. (ANSI) ESC R Sets horizontal and vertical tab stops to default values. (IBM) ESC R Selects Nation character set. (EPSON) ESC S Sets subscript or superscript printing.
  • Page 12 Sets 17/20 cpi. (IBM) Sets compressed printing. (EPSON) Shift In. (ANSI) Sets double width printing (one line). (IBM, EPSON) Shift out. (ANSI) Space. (ANSI) Advances paper to the next vertical tab stop of the selected VFU channel. (IBM, EPSON) Vertical tab. (ANSI) Commands...
  • Page 13: Epson/Ibm Mode

    The following printer commands are supported by this printer according to the IBM Proprinter XLIII, IBM 2381 + and EPSON FX Series. Prints all received data and the column counter is set to the left margin. (IBM, EPSON) ASCII Code...
  • Page 14 ESC 5 Sets an automatic line feed after a carriage return. (IBM) ASCII Code ESC 5 n Hexadecimal Value 1B 35 n Decimal Value 27 53 n If n is equal to 1, this command sets an automatic line feed on receiving of a CR code. If n is equal to 0, this command cancels the automatic line feed.
  • Page 15 ESC j Feeds paper n/216 inches in reverse direction. (EPSON) ASCII Code ESC j n Hexadecimal Value 1B 6A n Decimal Value 27 106 n This is a terminator code; it therefore causes the current contents of the print buffer to be printed out.
  • Page 16: Format Control

    ESC $ Sets the absolute printing position. (EPSON) ASCII Code ESC & n Hexadecimal Value 1B 24 n Decimal Value 27 36 n Range 0 < n This command specifies the distance from the left margin where you want to print subsequent characters.
  • Page 17 ESC \ Sets the relative dot position. (EPSON) ASCII Code ESC \ n Hexadecimal Value 1B 5C n Decimal Value 27 92 n Range 0 < n This command specifies the distance between the current print head position and the position where you want to print subsequent characters (relative position).
  • Page 18 ESC 1 Sets vertical spacing to 7/72 inch. (IBM) ASCII Code ESC 1 Hexadecimal Value 1B 31 Decimal Value 27 49 This command causes vertical spacing to be set to 7/72 inch. ESC 2 Sets the vertical spacing to 1/6 inch. (EPSON) ASCII Code ESC 2 Hexadecimal Value...
  • Page 19 ESC 3 Sets vertical spacing to n/216 inch. (IBM/EPSON) ASCII Code ESC 3 n Hexadecimal Value 1B 33 n Decimal Value 27 51 n Range 0 < n < 255 This sequence sets the vertical spacing to n/216 inch. ESC 4 Sets the current position as top of form (first printable line).
  • Page 20 ESC A Sets variable vertical spacing to n/72 inch. (IBM) ASCII Code ESC A n Hexadecimal Value 1B 41 n Decimal Value 27 65 n Range 1 < n < 255 This command changes the default vertical spacing to n/72 inch. The vertical spacing value is stored and activated only after the ESC 2 code is received.
  • Page 21 ESC b Sets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON) ASCII Code ESC b m n Hexadecimal Value 1B 62 m n Decimal Value 27 98 m n Range 0 < m < 7 1 <...
  • Page 22 ESC C 0 Sets form length to n inches. (IBM, EPSON) ASCII Code ESC C 0 n Hexadecimal Value 1B 43 00 n Decimal Value 27 67 0 n Range 1 < n < 24 This command sets the form length to the number of inches specified by n. The current position of the paper is assumed as top of form.
  • Page 23 ESC D Sets horizontal tab stops. (IBM, EPSON) ASCII Code ESC D n Hexadecimal Value 1B 44 n Decimal Value 27 68 n Range 1 < n < 255 This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops after canceling the current setting.
  • Page 24 ESC e Spaces backward relative dot position. (IBM) ASCII Code ESC e n Hexadecimal Value 1B 65 n Decimal Value Range 0 < n This command moves the print carriage of a (n current dot position. If the selected position is outside the current left margin, it is forced to the first column.
  • Page 25 Character Width Horizontal Spacing Double Width Normal Any value outside the accepted range is ignored and the previous setting remains in effect. The left margin must be smaller than the right margin. The physical position set for the left margin does not change if the horizontal spacing is modified.
  • Page 26 The skipover value, when accepted, will set the top and bottom margins according to the operator panel setting (see User Manual): If the top margin set via operator panel is greater than the skipover value, then the following value of the margins will be set: Top margin = skipover value Bottom margin = 0 If the top margin set via operator panel is less or equal to the skipover value, then the following...
  • Page 27 ESC O Disables the skipover perforation. (IBM, EPSON) ASCII Code ESC 0 Hexadecimal Value 1B 4F Decimal Value 27 79 This sequence sets the number of lines of the skipover perforation to the value 0 and so any skip perforation set by ESC N is cancelled. ESC Q Sets the right margin (10 cpi).
  • Page 28 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.
  • Page 29: Esc Sp

    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.
  • Page 30 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 31 In EPSON mode, the vertical tabulations are referred to the 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.
  • Page 32: Print Mode

    Sets 10 cpi printing. (IBM) ASCII Code Hexadecimal Value 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.
  • Page 33 Cancels double width printing. (IBM, EPSON) ASCII Code 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 ! command has set double width. ESC - Sets or cancels underlined printing.
  • Page 34 ESC ! Sets printing style. (EPSON) ASCII Code ESC ! n Hexadecimal Value 1B 21 n Decimal Value 27 33 n This command is used to select any valid combination of the printing attributes. Each printing attribute is selected by the n parameter, as specified in the following page: Attribute 10 cpi 12 cpi...
  • Page 35 ESC [ - Selects the score line. (IBM 2381 + only) ASCII Code ESC [ - n Hexadecimal Value 1B 5B 2D n Decimal Value 27 91 45 n Range This command selects several forms of overscore, underscore and strikethrough. To select loc: Selection Underscore...
  • Page 36 ESC < Prints characters for one line from left to right. (IBM XL III, EPSON) ASCII Code ESC < Hexadecimal Value 1B 3C Decimal Value 27 60 This command causes the printing of one line from left to right. ESC [ @ Selects the printing type style.
  • Page 37 See the following tables for m Selection No Change Start Italic Printing Stop Italic Printing Selection No Change Single-High Character Double-High Character Single Line Feed Double Line Feed Selection No Change Single-Wide Character Double-Wide Character Single Line Feed Double Line Feed and m selections: Commands...
  • Page 38 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, m This command sets height, width and vertical spacing.
  • Page 39 The m parameter 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 [ d Set the print quality. (IBM 2381 + only) ASCII Code ESC [ d 1 0 n Hexadecimal Value...
  • Page 40 2. For the hexadecimal values for m n, look across the row to the second column (Hex m n) 3. For the decimal values for m n, look across the row to the third column (Decimal m n). 4. Substitute these values for m n in the printer command syntax. Pitch...
  • Page 41 ESC _ Sets or cancels overscore printing. (IBM mode) ASCII Code ESC _ n Hexadecimal Value 1B 5F n Decimal Value 27 95 n Enables or disables the overscore printing. See the following table: Overscore Printing Enabled (all spaces and characters that follow are overscored) Disabled ESC 4 Sets italics printing mode.
  • Page 42 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 a Sets Letter Quality justification printing.
  • Page 43 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. The second strike is offset horizontally. ESC F Cancels emphasized printing.
  • Page 44 ESC H Cancels double strike printing. (IBM, EPSON) ASCII Code ESC H Hexadecimal Value 1B 48 Decimal Value 27 72 This command cancels double-strike printing with the ESC G command. ESC I Selects printing type for resident and DLL characters. (IBM) ASCII Code ESC I n Hexadecimal Value...
  • Page 45 1B 50 n Decimal Value 27 80 n This command selects 10.5-point, 10-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. Commands...
  • Page 46 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 47 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.
  • Page 48: Esc So

    ESC SI Sets compressed printing. (EPSON) ASCII Code ESC SI Hexadecimal Value 1B 0F Decimal Value 27 15 This command is accepted at any position within the line. The setting of this command depends on the horizontal spacing previously set: 10 CPI →...
  • Page 49 ESC s Sets and resets Quiet printing. (EPSON) ASCII Code ESC s n Hexadecimal Value 1B 73 n Decimal Value 27 115 n This command controls printing speed as follows: Selection Normal speed printing Quiet speed printing ESC T Cancels subscript or superscript printing. (IBM, EPSON) ASCII Code ESC T Hexadecimal Value...
  • Page 50 See the following table: Selection Double Width Printing enabled Double Width Printing disabled ESC w Sets or cancels double height printing. (EPSON) ASCII Code ESC w n Hexadecimal Value 1B 77 n Decimal Value 27 119 n Enables or disables the double-height printing of all characters. The first line of a page is not doubled if the ESC w command is sent on the first line;...
  • Page 51 Draft printing 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.
  • Page 52 Sets compressed printing. (EPSON) ASCII Code Hexadecimal Value Decimal Value This command is accepted at any position within the line. DC2 code cancels the compressed printing: The setting of this command depends on the horizontal spacing previously set. 10 CPI →...
  • Page 53: Character Set

    ESC [ T Selects a Code page. ASCII Code ESC [ T 4 0 0 0 Hc Lc Hexadecimal Value 1B 5B 54 04 00 00 00 Hc Lc Decimal Value 27 91 84 4 0 0 0 Hc Lc This sequence allows changing the current code page.
  • Page 54 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 0 < n This command prints the next n The total number of characters that will be printed from the table of all printable characters is equal to n + (n x 256).
  • Page 55 Decimal Value 27 107 n Selects one of the available fonts in Letter Quality. If the Draft mode is selected when this command is sent, the new font will be selected when the printer returns to LQ printing. Types Courier...
  • Page 56 ESC R Selects Nation character set. (EPSON) ASCII Code ESC R n Hexadecimal Value 1B 52 n Decimal Value 27 82 n Range 0 < n < 13 This code causes the national character set to be selected according to the parameter n. See the following table: National Character Sets n France...
  • Page 57 ESC t Selects characters table. (EPSON) ASCII Code ESC t n Hexadecimal Value 1B 74 n Decimal Value 27 116 n Range 0 < n < 3 Selects the upper half (from 128 to 255) from the character table. Character Tables Standard Italic Character Set ASCII Character Set Remaps DLL Character Set from position 0-127 to 128-255...
  • Page 58: Download Character

    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 59 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 parameters for characters to be user-defined..d They are the character data that is printed.
  • Page 60 ESC : Copies characters from ROM to RAM. (EPSON) ASCII Code ESC : NUL n 0 Hexadecimal Value 1B 3A 00 n 00 Decimal Value 27 58 n 0 This sequence copies the draft character generator in ROM into RAM area dedicated to the user- defined characters.
  • Page 61 If {total} is greater than {256} {n} = {remainder of {t} divided by 256} {m} = {integer result of {t} divided by 256} Indicates the printer model. In this case it is fixed to {20}. … d … d … d...
  • Page 62 Each DLL character is described using the following parameters: This is the decimal code of the first character of the character set in use that should be replaced by the DLL character. This is the first attribute byte and it has the following meaning: Bit 7: Bit 6 to 2 Bit 1, 0...
  • Page 63 This is the second attribute byte. It specifies the proportional printing information. If you do not wish to define a proportional character, set the bit 6 – 0 to {0}. When you use the proportional printing for a DLL character with bit 6 –...
  • Page 64: Bit-Image

    ESC * Sets dot graphics printing. (EPSON) ASCII Code ESC * m n Hexadecimal Value 1B 2A m n Decimal Value 27 42 m n m = 0,1,2,3,4,5,6,7; 0 < n < 255; 0 < n This command prints dot-graphics in 8-dot columns, depending on the following parameters: number of dot columns = (n Specifies the dot density.
  • Page 65 ESC ? Reassigns dot graphics mode. (EPSON) ASCII Code ESC ? n m Hexadecimal Value 1B 3F n m Decimal Value 27 63 n m Reassigns one of the dots graphics mode (described in the command ESC *) to one of the following commands: ESC K, ESC L, ESC Y and ESC Z.
  • Page 66 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 67: Esc Y

    ESC Y Double density dot graphics printing at double-speed graphics (120 virtual dpi). (IBM, EPSON) ASCII Code ESC Y n Hexadecimal Value 1B 59 n Decimal Value 27 89 n Range 0 < n Terminator code. This command prints dot graphics at 120 horizontal dot per inch by 72 vertical dpi.
  • Page 68: Esc Z

    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 Terminator code. This command prints dot graphics at 240 horizontal dot per inch by 72 vertical dpi.
  • Page 69: Data Input Control

    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 command. Commands...
  • Page 70 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 71 Decimal Value 27 35 This command cancels any controls on the MSB (bit number 7) set by ESC = or ESC > commands; printer then accepts all MSB data as is. ESC = Sets MSB to 0. (EPSON) ASCII Code...
  • Page 72: Miscellaneous

    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 Q22.
  • Page 73 = 2 and n = always 0. init The init parameter specifies to which condition the printer should initialize, normally init = 0,1,4,5,254,255. init id init id init id...
  • Page 74 RAM and in the selected macro. 255 Initializes printer to default settings. The download font is initialized. If parameters are specified, they overwrite the default settings. This command will change data stored in the macro’s non-volatile RAM.
  • Page 75 The id parameter specifies the printer for which the following parameter bytes are intended. If the ID does not address your printer, the mode bytes that follow are ignored. The ID values are Hex = B6, Dec = 182. parm...
  • Page 76 parm Specifies the following functions: Discard byte Pass over from CP437-CP850 Reserved Reserved Reserved Reserved Line length Reserved ESC U Sets printing direction. (IBM, EPSON) ASCII Code ESC U n Hexadecimal Value 1B 55 n Decimal Value Selects bidirectional or unidirectional printing, according to the parameters below: Direction Bidirectional printing unidirectional (left to right) printing...
  • Page 77 ESC [ u n Bar Codes selection. (IBM/EPSON) ASCII Code ESC [ u n Hexadecimal Value 1B 5B 75 n Decimal Value 27 91 117 n Activates or Cancel ANSI Bar Code mode. This command is recognized only if the menu option “Bar Code” is set to “Alternative” mode. Exit Bar Code mode Enter Bar Code mode.
  • Page 78 Parameter Description Barcode style Barcode height Human readable line Narrow bar width Wide bar width Narrow space width Wide space width Intercharacter space width Rotation and HRC font Horizontal print density 10 Check digit 11 HRC font for rotated barcode 12 Barcode height m values see below table...
  • Page 79 Barcode Style supported: Style Interleaved 2 of 5 Bidirectional 2 of 5 Matrix 2 of 5 Industrial 2 of 5 Code 3 of 9 (default) EAN-8 EAN-13 Code 11 Codabar (default start/stop = a/t) Codabar (default start/stop = b/n) Codabar (default start/stop = c/*) Codabar (default start/stop = d/e) UPC-A UPC-E...
  • Page 80: Compuprint Mode

    This printer according to the Native COMPUPRINT Mode supports the following printer commands. DC4 DC4 ESC 1 Sets vertical spacing n/144 inch. (Compuprint) ASCII Code DC4 DC4 ESC 1 n Hexadecimal Value 14 14 1B 31 n Decimal Value 20 20 27 49 n This command sets vertical spacing to n/144 inch for subsequent line feeds.
  • Page 81 DC4 DC4 ESC 3 3 Sets vertical spacing to 3 lines/30 mm. (Compuprint) ASCII Code DC4 DC4 ESC 3 3 Hexadecimal Value 14 14 1B 33 33 Decimal Value 20 20 27 51 51 This command sets vertical spacing to 3 lines per 30 mm.
  • Page 82 14 14 1B 33 38 Decimal Value This command sets vertical spacing to 8 lines per 30 mm. DC4 DC4 ESC A Sets the horizontal spacing to 15, 17, 20 CPI. (Compuprint) ASCII Code DC4 DC4 ESC A n Hexadecimal Value...
  • Page 83: Native Character Set

    DC4 DC4 ESC g Selects fonts (Compuprint). ASCII Code DC4 DC4 ESC g n Hexadecimal Value 14 14 1B 67 n Decimal Value 20 20 27 103 n Range 0 < n < 255 This command selects the resident fonts. 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 84 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 85 DC4 DC4 ESC p Selects printing type style (Compuprint). ASCII Code DC4 DC4 ESC p n Hexadecimal Value 14 14 1B 70 n Decimal Value 20 20 27 112 n This command selects fonts. Setting HS Draft Normal Draft DP Text...
  • Page 86: Bar Codes

    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 Decimal Value 20 20 27 33 This command is recognized only if the menu option “BAR CODE” is set to “NATIVE” mode. h = Bar Code Height at n/6”, 1 <...
  • Page 87 Name Code 2 of 5 Bidirectional Code 2 of 5 Interleaved Code 2 of 5 Industrial Code 2 of 5 Matrix Code 3 of 9 8-digits European Article Numbering Codabar (all types) Code 128 USPS-PostNet f = Readable character printing f = 1 printing enabled f = 0 printing disabled F = Font selection for the printable characters...
  • Page 88 r = Bar code rotation Selection No rotation Rotation at 0° Rotation at 90° Rotation at 180° Rotation at 270° o = Check digit inserted as last character of the received string according to the bar code q = Horizontal graphic density of the bar code Selection 1/72”...
  • Page 89 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 90 0 or 2, question marks will be printed in place of HRC string, when possible; if o field takes value 1, the 12 th digit is inserted by the printer as result of the internally available algorithm applied to the received string.
  • Page 91 Commands DC4 DC4 ESC! n 5 p EM UPC-EAN 2 ADD ON-2 bar code data fields contain numeric data only: question marks will be printed in place of HRC string otherwise, if possible. If 3-digit strings will be received within a DC4 DC4 ESC (... EM control sequence and o check-digit option field is missing or takes NULL value, the symbol will encode the first 2 digits and the 3 rd received digit will be used as check digit, even though this may affect its readability;...
  • Page 92 Commands DC4 DC4 ESC ! n 6 p EM UPC-EAN 5 ADD ON-5 bar code data fields contain numeric data only: question marks will be printed in place of HRC string otherwise, if possible. If 6-digit strings will be received within a DC4 DC4 ESC (... EM control sequence and o check-digit option field is missing or takes NULL value, the symbol will encode the first 5 digits and the 6 th received digit will be used as check digit, even though this may affect its readability;...
  • Page 93 DC4 DC4 ESC ! n 10 p EM CODE GP CODE-GP bar code allows bar codes to be constructed from the two basic elements (BAR and SPACE) by sending 0,1 digits: digit 0 produces a BAR and digit 1 produces a SPACE. These two elements may be combined in any sequence, thus giving the possibility of producing bars and spaces of any width that is a multiple of the basic element width.
  • Page 94 1 is IBM Modulus-10 also. Print the bar code symbol with both check digits generated by the printer and put at the end of the data. The 2 is IBM Modulus-10, the 1 check digit is NCR Modulus-11:...
  • Page 95 HRC string, if possible. The printer-generated second check digit does not show on required HRC string. Print the bar code symbol with both check digits generated by the printer and put at the end of the data. The...
  • Page 96 Each digit encodation is separated from the next by a 1/90”-1/60 “, wide default InterCharacter Gap. CODE-11 has unique START/STOP character; the printer generates the couple related to each symbol. It is visually interpreted by an OPEN TRIANGLE and...
  • Page 97 CODE-93 bar code fields do not have a defined format length and contain data belonging to the standard ASCII character set including control codes. Since GS and EM control codes used within 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 98 2 of 5 DC4 DC4 ESC! n 16 p EM Bidirectional BID-25 bar code data fields do not have a defined format length and contain numeric data only: question marks will be printed in place of HRC string otherwise, if possible. If o check digit option field takes 1 value an internally generated check digit will be added to the encoded string, that however will not show on the required HRC string.
  • Page 99 2 of 5 Matrix DC4 DC4 ESC ! n 19 p EM The 2/5 MATRIX bar code. Data format length is variable and the supported character set only provides ASCII numeric figures 0 to 9. N indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12. P must be NUL (hex.
  • Page 100 The CODE-128 bar code data fields do not have a defined format length and contain data belonging to the standard 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...
  • Page 101 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. data GS n data ... EM data ... 19 data... 25...
  • Page 102 DC4 DC4 ESC J Sets amplification factor. (Compuprint) ASCII Code DC4 DC4 ESC J h v Hexadecimal Value 14 14 1B 4A h v Decimal Value 20 20 27 74 h v This command sets the required amplification factor to be applied to the current font. The string's length must be determined proportionally to the selected page format.
  • Page 103 DC4 DC4 ESC N Selects/loads or parks the fanfold from the Front2 push paper path. (Compuprint) ASCII Code DC4 DC4 ESC N n Hexadecimal Value 14 14 1B 4E n Decimal Value 20 20 27 78 n Range 0 < n < 1 Selection Selects and loads the fanfold from the Front2 push paper path.
  • Page 104 DC4 DC4 ESC R String rotation. (Compuprint) ASCII Code DC4 DC4 ESC R n string EM Hexadecimal Value 14 14 1B 52 n string EM Decimal Value 20 20 27 82 n string EM This command sets the string rotation according to the following table.
  • Page 105 DC4 DC4 ESC T Selects/loads or parks the fanfold from the Front1 push paper path. (Compuprint) ASCII Code DC4 DC4 ESC T n Hexadecimal Value 14 14 1B 54 n Decimal Value 20 20 27 84 n Range 0 < n < 1 Selection Selects and loads the fanfold from the Front1 push paper path.
  • Page 106 DC4 DC4 ESC Y n Hexadecimal Value 14 14 1B 59 n Decimal Value 20 20 27 89 n Selects the printer emulation type according to the n parameter value: Emulation Default printer emulation EPSON FX Series (ESC/P) IBM Proprinter XL III...
  • Page 107 Selects User Macro 2 Selects User Macro 3 Selects User Macro 4 DC4 DC4 ESC D Sends the operator panel messages to the serial I/F. (Compuprint) ASCII Code DC4 DC4 ESC D n Hexadecimal Value 14 14 1B 44 n...
  • Page 108: Ansi Emulation Commands

    The following printer commands are supported by this printer according to the ANSI X3.64 emulation. Most dimensional parameters in ANSI protocol are expressed in "decipoints". For example: All parameter values must be expressed as ASCII numeric rather than binary values.
  • Page 109: Ansi National Variations

    ESC [ p Selects national character set (Select National Characters - SNC). ASCII Code Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command selects the national character set table according to the p See the following tables: 7-bit Substitution NATION Germany...
  • Page 110: Greek (Cp 437-G)

    8-bit Substitution CHARACTER SETS Code Page 437 Code Page 850 Code Page 851 Code Page 852 Code Page 853 Code Page 855 Code Page 858 (Euro symbol included) Code Page 860 Code Page 863 Code Page 864 Code Page 865 Code Page 866 Code Page 867 1250...
  • Page 111 ESC [ p ;...p Select graphics rendition (SGR). ASCII Code ESC [ p Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command selects fonts, pitch, print modes, character styles and colors according to the parameter settings: DEFINITION Normal Print Mode Bold Print Mode Subscript Mode...
  • Page 112 DEFINITION LQ Courier Draft Italic LQ Gothic Italic Draft Italic LQ Courier Italic Draft Reserved Double Underline Mode Cancel Bold Mode Reserved Cancel Underline Mode (Single & Double) Cancel Expanded Mode Cancel Proportional Mode ANSI Emulation Commands...
  • Page 113 ESC [ p SP B Graphic size modification (GSM). ASCII Code ESC [ p Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command sets the height and/or width of expanded and oversized characters. The p and p parameters are the percentages by which the height and width, respectively, will be multiplied.
  • Page 114 Shift out. ASCII Code Hexadecimal Value Decimal Value This code enables Expanded/Oversize mode as determined by the last received ESC [pl t command. Shift in. ASCII Code Hexadecimal Value Decimal Value This code disables the Expanded/Oversize modes determined by the last received ESC [pl t command. ESC [ p Unidirectional printing (UDP).
  • Page 115 Back space. ASCII Code Hexadecimal Value Decimal Value The BS code moves the print head one character to the left at the current cpi. Carriage return. ASCII Code Hexadecimal Value Decimal Value This code causes the print head to be moved to the left margin on the current line. Space.
  • Page 116 This command sets the left and right margin values. The p value of the left margin. The p value. The default value for the left margin is 0 while for the right margin it is the maximum width supported by the printer configuration (that is 13.6*720=9792). 3B p 59 p...
  • Page 117: Horizontal Tab

    ESC [ p Horizontal position backward (HPB). ASCII Code ESC [ p Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command causes the current horizontal position to be moved backwards as specified by the parameter (decipoints). Horizontal tab. ASCII Code Hexadecimal Value Decimal Value...
  • Page 118 ESC[ p Sets horizontal tab stops at specified positions multiple horizontal tab set (HTS). ASCII Code ESC[ p Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command sets up to 22 horizontal tab stops at each decipoint position specified by p parameters.
  • Page 119 ESC E or NEL Next line. ASCII Code Hexadecimal Value 1B 45 (7-bit) or 85 (8-bit) Decimal Value 27 69 (7-bit) or 133 (8-bit) This command causes the paper to be positioned down one line space as indicated by the current line spacing value.
  • Page 120 ESC M or RI Reverse index. ASCII Code ESC M or RI Hexadecimal Value 1B 4D (7-bit) or 8D (8-bit) Decimal Value 27 77 (7-bit) or 141 (8-bit) This command causes the paper to be positioned up one line space at the current line spacing value.
  • Page 121 ESC [ p Horizontal and vertical position absolute (HVP). ASCII Code Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command causes the current print position to be moved to the vertical (p ) decipoint locations specified relative to the top left corner of the page. This sequence can be used to print within the right, left, top and bottom margins.
  • Page 122 ESC [ p Tab clear (TBC). ASCII Code ESC [ p Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command clears horizontal & vertical tab stops. If no parameter is present, the horizontal tab stop at the current position is cleared (default). DESCRIPTION 0 (default) Clear horizontal tab at current position...
  • Page 123 ESC J or VTS Vertical tab setting. ASCII Code ESC J or VTS Hexadecimal Value 1B 4A (7-bit) or 8A (8-bit) Decimal Value 27 74 (7-bit) or 138 (8-bit) This command causes a vertical tab stop to be set to the decipoint value of the current vertical position.
  • Page 124 ESC [ p Form definition (FD). ASCII Code ESC [ p Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command sets the page length, top and bottom margins. The p and p parameters specify the decipoint values. FUNCTION Page Length Top Margin Position From the Beginning of the Page...
  • Page 125 In parallel interface, this code causes the printer to enter the standby condition until a DC1 code is received. In serial interface, this code is sent from the printer to the host to indicate that it is not ready to receive data.
  • Page 126 Bell. ASCII Code Hexadecimal Value Decimal Value This code causes the buzzer to sound for about 0.5 second. Delete. ASCII Code Hexadecimal Value Decimal Value In parallel interface, this code causes the last received character to be deleted. Escape. ASCII Code Hexadecimal Value Decimal Value This code is used as an escape sequence introducer.
  • Page 127 1B 51 (7-bit) or 91 (8-bit) Decimal Value 27 81 (7-bit) or 145 (8-bit) In serial interface, upon receipt of this command the printer will transmit 1B 50 30 1B 5C. ESC c Resets to initial state (RIS). ASCII Code...
  • Page 128 ESC k Prints test character (PTC). ASCII Code ESC k Hexadecimal Value 1B 6B Decimal Value 27 107 This sequence causes one line of the print head test character to be printed. ESC [ p ;...p Sets mode (SM). ASCII Code ESC [ p Hexadecimal Value 1B 5B p...
  • Page 129 1 - 20 Reserved IBM Proprinter XL 24/24E EPSON LQ Hold values (default). The current settings remain valid after changing the printer emulation. Full reset. The status of such parameters reverts to defaults dependent on the selected emulation. To select ANSI mode from the Proprinter XL 24 mode and maintaining the parameters, the sequence would be: <ESC>[0;...
  • Page 130 ESC [ p Assign source for forms. ASCII Code ESC [ p Hexadecimal Value 1B 5B p Decimal Value 27 91 p This command controls the modes of paths for parking, loading paper. The p parameter is an ASCII value. See the following table: PAPER PATH CONTROL Reserved...
  • Page 131 This section contains the character sets and the hexadecimal to decimal conversion table. ’ “ & ‘ < > á ░ └ ╨ α ≡ í ▒ ┴ ╤ ß ± ó ▓ ┬ ╥ Γ ≥ ú │ ├ ╙...
  • Page 132 ♥ ♦ ♣ ♠ BS CAN VT ESC ’ Ç ü “ é â ä § à & å ‘ ç ê ë è ï < î ì > Ä Å É á ░ └ ╨ α ≡ æ í ▒...
  • Page 133 Tables...
  • Page 134 Tables...
  • Page 135 Tables...
  • Page 136 Tables...
  • Page 137 Tables...
  • Page 138 Ø ☺ ♥ ♦ ♣ ♠ • ° ■ ’ Ç ü “ é × â ¶ ä § à & å – ‘ ç × ↑ ê ↓ ë → è ← ï < î └ ↔ ì > Ä...
  • Page 139 Ø ☺ ♥ ♦ ♣ ♠ • ° ■ ’ Α Β “ Γ × Δ ¶ Ε Ζ § – & Η ‘ Θ × ↑ Ι ↓ Κ → Λ ← Μ └ < Ν ↔ Ξ > Ο...
  • Page 140 Tables...
  • Page 141 Ø ☺ ♥ ♦ ♣ ♠ • ° ■ ’ Ç ü × “ é â ä ¶ § à – & å × ‘ ç ↑ ê ↓ ë → è ← ï └ < î ↔ ì > Ä...
  • Page 142 Ø ☺ ♥ ♦ ♣ ♠ • ° ■ ’ Ç ü “ Γ × Δ ¶ Ε Ζ § – & Η ‘ Θ × ↑ Ι ↓ Κ → Λ ← Μ └ < Ν ↔ Ξ > Ο...
  • Page 143 Tables...
  • Page 144 Tables...
  • Page 145 Tables...
  • Page 146 Tables...
  • Page 147 Tables...
  • Page 148 Tables...
  • Page 149 Tables...
  • Page 150 Tables...
  • Page 151 Tables...
  • Page 152 Tables...
  • Page 153 Tables...
  • Page 154 Tables...
  • Page 155 Tables...
  • Page 156 Tables...
  • Page 157 Tables...
  • Page 158 Tables...
  • Page 159 Tables...
  • Page 160 Tables...
  • Page 161 Tables...
  • Page 162 Tables...
  • Page 163 Tables...
  • Page 164 Tables...
  • Page 165 Tables...
  • Page 166 Tables...
  • Page 167 Tables...
  • Page 168 Tables...
  • Page 169 Tables...
  • Page 170 Tables...
  • Page 171 Tables...
  • Page 172 Tables...
  • Page 173 Tables...
  • Page 174 Tables...
  • Page 175 Tables...
  • Page 176 Tables...
  • Page 177 Tables...
  • Page 178 Tables...
  • Page 179 Tables...
  • Page 180 Tables...
  • Page 181 Tables...
  • Page 182 Tables...
  • Page 183 Tables...
  • Page 184 Tables...
  • Page 185 Tables...
  • Page 186 Tables...
  • Page 187 Tables...
  • Page 188 Tables...
  • Page 189 Tables...
  • Page 190 Tables...
  • Page 191 112 128 144 160 176 192 208 224 240 113 129 145 161 177 193 209 225 241 114 130 146 162 178 194 210 226 242 115 131 147 163 179 195 211 227 243 100 116 132 148 164 180 196 212 228 244 101 117 133 149 165 181 197 213 229 245 102 118 134 150 166 182 198 214 230 246 103 119 135 151 167 183 199 215 231 247...
  • Page 192: Interfaces

    This appendix provides technical information for the parallel, serial, USB and LAN interfaces. The parallel interface of this printer fully supports the Centronics protocol plus 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 IEEE P1284).
  • Page 193: Signals Description

    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 194: Operating Phases

    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. - the device identification, if supported.
  • Page 195: Parallel Interface Signals

    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 196 SELECTIN HOST Description When high, this signal indicates that the printer is on-line. It is put to low state in case of initialization or test and program mode. In IBM Proprinter emulation in low condition this signal signals a off-line request from the operator panel, paper jam, paper end or paper size errors.
  • Page 197 The pins 1 to 14 of the printer are connected to the pins with the same number of the parallel port The pins 19 to 30 of the printer are connected to the pins 18 to 25 of the parallel port of the host.
  • Page 198: Parallel Interface Signals Behaviour

    Pin N° Pin N° for Return Wire 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 199 NOT USED. Byte Mode: Reverse channel data. Pulsed low by the printer to acknowledge the transfer of a data from the host. Set low to acknowledge 1284 support, then set high to indicate that the Xflag (Select) and data available flags may be read.
  • Page 200 Forward channel busy status. AckDataReq (PError) Compatibility Mode: Driven high to indicate that the printer has encountered an error in the paper path. The printer shall set nFault low whenever it sets PError high. Negotiation Phase: Set high to indicate 1284 support, then follows nDataAvail (nFault).
  • Page 201 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 202 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 203 HostBusy (nAutoFd) high. Nibble Mode: Set low to indicate that printer is ready to send to host. Then used to send data bits 0 then 4. Byte Mode: Used to indicate that data is available.
  • Page 204 Set high in conjunction with Host Busy being set low to request a 1284 mode. Set high to indicate that bus direction is printer to host. Set low to terminate 1284 mode and set bus direction host to printer. Same as Reverse Data Transfer phase.
  • Page 205: Interface Timing

    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 206 Interfaces...
  • Page 207: The Serial Interface

    This printer provides the RS-232/C serial interface. The interface mode is selected via menu. • 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 208 A MARK condition is held during IDLE communication state. An indeterminate state is present when printer is powered off. Data Set Received data signal (an input to printer). Printer Request to Send Signal (an output from printer). Active HIGH level signal. It is HIGH until the printer is powered off, then an indeterminate state is present.
  • Page 209 Characteristics • Data Rate: 2.0 Full Speed (12Mbit/s) • Type: B Signals Signal Description Name Number +5 DC DATA - DATA + Interfaces...
  • Page 210 LAN Interface Port: 1. Ethernet 10/100Base-T Connector 2. Green 10/100Mbit/sec. Transmission Speed Led 3. Yellow Traffic Led The led indicator modes are described in the following table: Status Transmission speed at 10Mbit/sec. Green Led Unlit Transmission speed at 100Mbit/sec. Blinks Transmitting or receiving packets from Yellow Led the network.
  • Page 211 Interfaces 78413024-001 SferalWWT proprietary. All trademarks herein recalled are registered by their respective companies.

Table of Contents