Compuprint MDP 30FB Programmer's Manual

Hide thumbs Also See for MDP 30FB:
Table of Contents

Advertisement

Quick Links

M
D
P
3
0
F
B
M
D
P
3
0
F
B
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. 003

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MDP 30FB and is the answer not in the manual?

Questions and answers

Summary of Contents for Compuprint MDP 30FB

  • Page 1 Rev. 003...
  • Page 3: Table Of Contents

    Table of Contents Introduction ................2 Data Input Control.......... 83 Command Summary in Miscellaneous........... 87 Alphabetical Order ..............3 COMPUPRINT Mode ............92 EPSON/IBM Mode..............9 Format Control ..........92 Print and Line Feed Execution ......9 Native Character Set ........95 Format Control..........12 Bar Codes ............
  • Page 4: Introduction

    This appendix 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. Each command has the following structure: • Name and function description. Information about protocol (IBM Proprinter XL24E, IBM Personal 2391, EPSON ESC/P2) •...
  • Page 5: Command Summary In Alphabetical Order

    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, 24 CPI. (Compuprint) DC4 DC4 ESC DC4 Printer functions. DC4 DC4 ESC g Selects LQ fonts (Compuprint).
  • Page 6 String rotation. (Compuprint) DC4 DC4 ESC r Digit rotation. (Compuprint) DC4 DC4 ESC S Selects character set ISO Character Sets or Code Pages. (Compuprint) DC4 DC4 ESC u Selects the program setups. (Compuprint) DC4 DC4 ESC VT Search for a blank line (without any marker). (Compuprint) DC4 DC4 ESC X Reads the id of the cut sheets.
  • Page 7 ESC . Print Raster Graphics. (EPSON) ESC : Sets 12 CPI. (IBM) ESC : Copies characters from ROM to RAM. (EPSON) ESC ? Reassigns dot graphics mode. (EPSON) ESC @ Initializes the printer. (EPSON) ESC [ @ Sets double high printing and double line feed. (IBM) ESC [ \ Sets vertical units.
  • Page 8 ESC 3 Sets n/180-inch line spacing. (EPSON) ESC 3 Sets graphics line spacing at n/216 inch. (IBM) ESC 4 Sets top of form (first printable line). (IBM) ESC 4 Sets italics printing mode. (EPSON) ESC 5 Sets an automatic line feed after a carriage return. (IBM) ESC 5 Cancels italics printing.
  • Page 9 ESC J Graphics variable line spacing (n/216 inch). (IBM) ESC k Selects LQ fonts. (EPSON) ESC K Normal density dot graphics printing (60 dpi). (IBM, EPSON) ESC l Sets left margin (10 cpi). (EPSON) ESC L Double density dot graphics printing (120 dpi). (IBM, EPSON) ESC M Selects 10.5 point, 12 cpi.
  • Page 10 ESC X Sets left and right margins. (IBM) ESC X Selects font by pitch and point. (EPSON) ESC x Selects Letter Quality or Draft printing. (EPSON) ESC Y Double density dot graphics printing at double-speed graphics (120 virtual dpi). (IBM, EPSON) ESC Z Quadruple density dot graphics printing (240 virtual dpi).
  • Page 11: Epson/Ibm Mode

    This printer according to the IBM Proprinter XL24E, IBM 2391 and EPSON ESC/P2 emulations supports the following printer commands. Prints all received data and the column counter is set to the left margin. (IBM,EPSON) ASCII Code Hexadecimal Value Decimal Value This code is a terminator code;...
  • Page 12: Esc ] Sets A Reverse Line Feed. (Ibm)

    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 13: Esc J Advances Paper N/180 Inch. (Epson)

    ESC J Advances paper n/180 inch. (EPSON) ESC J n ASCII Code Hexadecimal Value 1B 4A n Decimal Value 27 74 n 0 < n < 255 Range This is a terminator code; it therefore causes the current contents of the print buffer to be printed out before performing a single line LF of n/180 inch.
  • Page 14: Format Control

    ESC $ Sets the absolute printing position. (EPSON) ASCII Code ESC & n 1B 24 n Hexadecimal Value 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 15: Esc (C Sets Page Length In Defined Unit. (Epson)

    ESC (C Sets page length in defined unit. (EPSON) ASCII Code ESC ( C n Hexadecimal Value 1B 28 43 n 27 40 67 n Decimal Value Range x 256) + d 0 < ((d ) x (defined unit) < 22 This command sets the page length in the specified number of units (the default unit is 1/360 inch), previously defined with the ESC ( U command according to the following formula:...
  • Page 16: Esc ( C Sets Page Format. (Epson)

    ESC ( c Sets Page Format. (EPSON) ESC ( c n ASCII Code Hexadecimal Value 1B 28 63 n Decimal Value 27 40 99 n Range x 256) + t ) < ((b x 256) + b x 256) + b (defined unit) x ((b ) <...
  • Page 17 Bottom margin = ((b x 256) + b ) x (defined unit) Where b is equal to: (bottom margin) defined unit INIT Where b is equal to: (bottom margin) defined unit Send this command before paper is loaded or when paper is at the top-of-form position. Otherwise the current print position becomes the top-margin position.
  • Page 18: Esc ( U Sets Units. (Epson)

    ESC ( U Sets units. (EPSON) ASCII Code ESC ( U n Hexadecimal Value 1B 28 55 n 27 40 85 n Decimal Value Range d = 10, 20, 30, 40, 50,60 This command sets the unit to m/3600 inch. The printer uses this unit when moving the print position, setting the page length and setting the top and bottom margins with the following commands (the default units varies depending on the command and print quality):...
  • Page 19: Esc ( V Sets Absolute Vertical Print Position. (Epson)

    ESC ( V Sets absolute vertical print position. (EPSON) ESC ( V n ASCII Code Hexadecimal Value 1B 28 56 n Decimal Value 27 40 86 n Range 0 < d < 255 0 < d < 127 This command moves the vertical print position to the position specified by the following formula: Vertical position = (d x 256)+d...
  • Page 20: Esc ( V Sets Relative Vertical Print Position. (Epson)

    The default unit is 1/360 inch. The new position is measured in defined units from the current top-margin position. Moving the print position below the bottom-margin position moves the vertical print position to the top-margin position on the next page ejects a cut sheet, if loaded.
  • Page 21 Where d is equal to: [(vertical position) – (current position)] defined unit For negative (left) movement: Where d is equal to: [(current position) – (vertical position)] 32768-INIT defined unit Where d is equal to: [(current position) – (vertical position)] 32768-MOD defined unit The default unit is 1/360 inch.
  • Page 22: Esc [ \ Sets Vertical Units. (Ibm)

    ESC [ \ Sets vertical units. (IBM) ASCII Code ESC [ \ m … t Hexadecimal Value 1B 5B 5C m … t Decimal Value 27 91 92 m … t Range 0 < t < 255 0 < t <...
  • Page 23 For positive (right) movement: Where n is equal to: [(horizontal position) – (current position)] INIT defined unit Where n is equal to: [(horizontal position) – (current position)] defined unit For negative (left) movement: Where n is equal to: [(current position) – (horizontal position)] 32768-INIT defined unit Where n...
  • Page 24: Esc + Sets N/360-Inch Line Spacing. (Epson)

    ESC + Sets n/360-inch line spacing. (EPSON) ESC + n ASCII Code Hexadecimal Value 1B 2B n Decimal Value 27 43 n 0 < n < 255 Range This command sets the line spacing to n/360 inch. If the line spacing is changed, it does not affect previous settings for vertical tabs or page length.
  • Page 25: Esc 2 Selects 1/6-Inch Line Spacing. (Epson)

    ESC 2 Selects 1/6-inch line spacing. (EPSON) ASCII Code ESC 2 Hexadecimal Value 1B 32 Decimal Value 27 50 This command causes the line spacing to be set to 1/6 inch. If the line spacing is changed, it does not affect previous settings for vertical tabs or page length. ESC 2 Enables the line spacing set by ESC A command.
  • Page 26: Esc 3 Sets Graphics Line Spacing At N/216 Inch. (Ibm)

    ESC 3 Sets graphics line spacing at n/216 inch. (IBM) ASCII Code ESC 3 n 1B 33 n Hexadecimal Value 27 51 n Decimal Value Range 0 < n < 255 This command sets graphics line spacing at n default unit defined by the ESC [ \ command.
  • Page 27: Esc A Sets Text Line Spacing At N/60 Inch. (Epson)

    ESC A Sets text line spacing at n/60 inch. (EPSON) ASCII Code ESC A n Hexadecimal Value 1B 41 n 27 65 n Decimal Value Range 0 < n < 85 This command changes the default line spacing to n/60 inch. The new line spacing value is immediately activated.
  • Page 28: Esc B Sets Vertical Tabs. (Ibm, Epson)

    ESC B Sets vertical tabs. (IBM, EPSON) ASCII Code ESC B n … n Hexadecimal Value 1B 42 n ... n 27 66 n ... n Decimal Value 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 and so on in the 0 VFU channel.
  • Page 29: Esc C Sets Form Length To N Lines. (Ibm, Epson)

    ESC C Sets form length to n lines. (IBM, EPSON) ESC C n ASCII Code Hexadecimal Value 1B 43 n Decimal Value 27 67 n 1 < n < 127 Range This command sets the form length to the number of lines specified by n at the current vertical spacing.
  • Page 30: Esc D Spaces Forwards Relative Dot Position. (Ibm)

    ESC d Spaces forwards relative dot position. (IBM) ASCII Code ESC d n 1B 64 n Hexadecimal Value 1 n2 Decimal Value 27 100 n Range 0 < n < 255 This command moves the print carriage of a (n + (n *256))/120 inch displacement on the right of its current dot position.
  • Page 31: Esc J Graphics Variable Line Spacing (N/216 Inch). (Ibm)

    ESC J Graphics variable line spacing (n/216 inch). (IBM) ASCII Code ESC J n 1B 4A n Hexadecimal Value 27 74 n Decimal Value This command advances the paper in units of n/216 inch. The printer does not store graphics line spacing. You must send this command to the printer each time. ESC l Sets left margin (10 cpi).
  • Page 32: Esc N Sets The Skipover Perforation To N Lines. (Ibm, Epson)

    ESC N Sets the skipover perforation to n lines. (IBM, EPSON) ASCII Code ESC N n Hexadecimal Value 1B 4E n 27 78 n Decimal Value 1 < n < 127 (EPSON mode) Range 1 < n < 225 (IBM mode) The skipover perforation is the sum of top and bottom margins values at the selected vertical spacing.
  • Page 33: Esc O Disables The Skipover Perforation. (Ibm, Epson)

    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 34: Esc R Sets All Tabs To Power-On Settings. (Ibm)

    Character Width Horizontal Spacing Range of columns Double Width 5 cpi 1 < n < 68 6 cpi 2 < n < 81 7.5 cpi 2 < n < 102 8.5 cpi 2 < n < 116 10 cpi 2 < n < 136 Normal 10 cpi 2 <...
  • Page 35: Esc Sp Sets Intercharacter Space. (Epson)

    ESC SP Sets intercharacter space. (EPSON) ASCII Code ESC SP n Hexadecimal Value 1B 20 n 27 32 n Decimal Value Range 0 < n < 127 This command sets the intercharacter space to n/120 inch in Draft printing and n/180 inch in Quality printing.
  • Page 36: Ff Advances Paper To The Top Of The Next Page. (Ibm, Epson)

    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 37: Vt Vertical Tab. (Ibm, Epson)

    spacing. When the double width printing is selected, the tab stop setting must take account that each character occupies two columns. Character scoring (underline, overscore and strikethrough) is not printed between the current print position and the next tab when this command is sent. Vertical Tab.
  • Page 38: Print Mode

    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.
  • Page 39: Cancels Double Width Printing. (Ibm, Epson)

    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 40: Esc ! Master Select. (Epson)

    ESC ! Master Select. (EPSON) ASCII Code ESC ! n Hexadecimal Value 1B 21 n 27 33 n Decimal Value Range 0 < n < 255 This command selects any combination of several attributes. The parameter n is the sum up of the printing style values to be used. See the following table: Style 10 cpi 12 cpi...
  • Page 41: Esc ( - Sets Score Line. (Epson)

    ESC ( - Sets score line. (EPSON) ASCII Code ESC ( - n Hexadecimal Value 1B 28 2D n 27 40 45 n Decimal Value Range m = 1 1 < d < 3 This command enables/disables scoring of all characters and spaces following this command according to the following parameters: Line Underline...
  • Page 42: Esc : Sets 12 Cpi. (Ibm)

    ESC : Sets 12 CPI. (IBM) ASCII Code ESC : Hexadecimal Value 1B 3A Decimal Value 27 58 This is a terminator code. It causes all data present in the print buffer to be printed. Subsequent data will be printed at 12 cpi. This command is accepted at any position within the line.
  • Page 43 Character Height Line Spacing No change No change Standard character height Line feeds unchanged Double character height Line feeds unchanged Character height unchanged Normal line feeds Standard character height Normal line feeds Double character height Normal line feeds Character height unchanged Double line feeds Standard character height Double line feeds Double character height...
  • Page 44: Esc [D Set The Print Quality. (Ibm 2391 Only)

    ESC [d Set the print quality. (IBM 2391 only) ESC [ d 1 0 n ASCII Code Hexadecimal Value 1B 5B 64 01 00 n Decimal Value 27 91 100 1 0 n This command sets the print quality to draft or LQ print. See the following table: Types No change From 1 to 127...
  • Page 45 1. Identify the type style (pitch and font) to use in the left column (pitch). 2. For the hexadecimal values for m n, look across the row to the second column (Hex m 3. For the decimal values for m n, look across the row to the third column (Decimal m n). Substitute these values for m n in the printer command syntax.
  • Page 46 Gothic Presentor Script...
  • Page 47: Esc _ Sets Or Cancels Overscore Printing. (Ibm Mode)

    ESC _ Sets or cancels overscore printing. (IBM mode) ASCII Code ESC _ n 1B 5F n Hexadecimal Value 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 48: Esc 5 Cancels Italics Printing. (Epson)

    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 c Sets horizontal motion index (HMI).
  • Page 49: Esc E Sets Emphasized Printing. (Ibm, Epson)

    Where n is equal to: 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 50: Esc G Sets Double Strike Printing. (Ibm, Epson)

    ESC G Sets double strike printing. (IBM, EPSON) ASCII Code ESC G Hexadecimal Value 1B 47 Decimal Value 27 71 This command starts double-strike printing. ESC G must be canceled by ESC H. ESC g Sets 15 CPI. (EPSON) ASCII Code ESC g Hexadecimal Value 1B 67...
  • Page 51: Esc I Selects Printing Type For Resident And Dll Characters. (Ibm)

    ESC I Selects printing type for resident and DLL characters. (IBM) ESC I n ASCII Code Hexadecimal Value 1B 49 n Decimal Value 27 73 n This command selects the resident or the download font in Draft o LQ printing mode. It is ignored if you select a font that has not been downloaded or has been overwritten.
  • Page 52: Esc M Selects 10.5 Point, 12 Cpi. (Epson)

    ESC M Selects 10.5 point, 12 cpi. (EPSON) ASCII Code ESC M Hexadecimal Value 1B 4D Decimal Value 27 77 This command selects 10.5-point, 12-cpi character printing. It resets the horizontal motion index (HMI) set with the ESC c command. If you change the pitch during proportional mode (selected with the ESC p command) the change takes effect when the printer exits proportional mode.
  • Page 53: Esc P Sets Or Cancels Proportional Printing. (Epson)

    ESC P Sets or cancels proportional printing. (IBM) ASCII Code ESC P n Hexadecimal Value 1B 50 n 27 80 n Decimal Value This code is a terminator code; when received it causes all data in the print buffer to be printed out.
  • Page 54: Esc Q Selects Character Style. (Epson)

    It resets the horizontal motion index (HMI) set with the ESC c command. The changes made to the fixed-pitch setting with ESC P, ESC M or ESC g commands during proportional mode take effect when the printer exits proportional mode. The printer automatically switches to LQ mode when the printer exits proportional mode.
  • Page 55: Esc S Sets Subscript Or Superscript Printing. (Ibm, Epson)

    ESC S Sets subscript or superscript printing. (IBM, EPSON) ASCII Code ESC S n Hexadecimal Value 1B 53 n 27 83 n Decimal Value 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 56: Esc Si Selects Condensed Mode. (Ibm, Epson)

    ESC SI Selects condensed mode. (IBM, EPSON) ASCII Code ESC SI Hexadecimal Value 1B 0F Decimal Value 27 15 This command selects the condensed mode in which character width is reduced as follows: → 10 CPI 17.14 CPI → 12 CPI 20 CPI →...
  • Page 57: Esc T Cancels Subscript Or Superscript Printing. (Ibm, Epson)

    ESC T Cancels subscript or superscript printing. (IBM, EPSON) ASCII Code ESC T Hexadecimal Value 1B 54 Decimal Value 27 84 This command cancels subscript or superscript printing selected by ESC S command. ESC W Sets or cancels double width printing. (IBM, EPSON) ESC W n ASCII Code Hexadecimal Value...
  • Page 58: Esc W Sets Or Cancels Double Height Printing. (Epson)

    ESC w Sets or cancels double height printing. (EPSON) ASCII Code ESC w n Hexadecimal Value 1B 77 n 27 119 n Decimal Value Range 0 < n < 255 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 59: Esc X Selects Letter Quality Or Draft Printing. (Epson)

    Where m defines the pitch: m = 0 maintains current density m = 1 sets proportional spacing m > 5 selects fixed pitch equal to 360/m cpi This command overrides the current pitch setting. This command selects the point (default value 10.5) attributes of the font according to the following formula: x 256) + n Point size =...
  • Page 60: Si Sets Condensed Printing. (Ibm, Epson)

    Selection 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. Sets condensed printing.
  • Page 61: Character Set

    Sets double width printing (one line). (IBM, EPSON) ASCII Code Hexadecimal Value 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 62: Esc ( T Assigns Character Table. (Epson)

    Where n is equal to: INIT Where n is equal to: The printer ignores data if no character is assigned to that character code in the currently selected character table. ESC ( t Assigns character table. (EPSON) ASCII Code ESC ( t n Hexadecimal Value 1B 28 74 n 27 40 116 n...
  • Page 63: Esc [ T Selects A Code Page. (Ibm 2391 Only)

    PC 437 PC867 PC 437 G PC877 PC850 GOST PC851 TASS PC853 8859/1 PC855 8859/2 PC860 8859/3 PC863 8859/4 PC865 8859/5 PC852 8859/6 PC857 8859/7 PC858 8859/8 PC864 8859/9 PC866 8859/15 PC862 ESC [ T Selects a Code page. (IBM 2391 only) ESC [ T 4 0 0 0 HC L.c ASCII Code Hexadecimal Value...
  • Page 64 To calculate Hc Lc for a code page that is not shown. Divide the code page number, such as 437, by 256. • The whole number result is the Hc value • The remainder is the Lc value. If your code page has an alphabetic character, such as 437G, add 10,000 to the code page number, then divide by 256.
  • Page 65: Esc \ Prints Characters From All Characters Table. (Ibm)

    ESC \ Prints characters from all characters table. (IBM) ASCII Code ESC \ n 1B 5C n Hexadecimal Value Decimal Value 27 92 n Range 0 < n < 255 0 < n < 255 This command prints the next n x 256 characters from the table of all printable characters.
  • Page 66: Esc 6 Enables Upper Control Codes. (Epson)

    ESC 6 Enables Upper Control Codes. (EPSON) ASCII Code ESC 6 Hexadecimal Value 1B 36 Decimal Value 27 54 This command enables the printing of upper control codes (from 128 to 159). These codes are treated as printable characters instead of control codes. This command has no effect when the italic character table is selected and remains in effect even if you change the character table.
  • Page 67: Esc K Selects Lq Fonts. (Epson)

    ESC k Selects LQ fonts. (EPSON) ASCII Code ESC k n 1B 6B n Hexadecimal Value Decimal Value 27 107 n Selects one of the available fonts in Letter Quality mode. See the following table: Types Courier Gothic Courier Prestige Script OCR-B OCR-A...
  • Page 68: Esc R Selects An International Character Set. (Epson)

    ESC R Selects an international character set. (EPSON) ASCII Code ESC R n Hexadecimal Value 1B 52 n 27 82 n Decimal Value Range 0 < n < 12 This code causes the national character set to be selected according to the parameter n.
  • Page 69: Download Character

    Selects the character table to be used for printing from among the four character tables described below: Character Tables Standard Italic Character Set PC437 User-defined characters PC437 ESC % Selects user-defined character set. (EPSON) ESC % n ASCII Code Hexadecimal Value 1B 25 n Decimal Value 27 37 n...
  • Page 70: Esc & Defines User-Defined Characters. (Epson)

    ESC & Defines user-defined characters. (EPSON) The format for this command depends on whether you are defining draft characters or LQ characters. Draft mode ASCII Code ESC & NUL n m [ a … d 1B 26 00 n m [ a …...
  • Page 71: Esc : Copies Characters From Rom To Ram. (Epson)

    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. Actual width of user-defined characters.
  • Page 72: Esc = Defines Downloaded Characters. (Ibm)

    The following attributes are reflected in the copied font: Typeface, international character set, size (super/subscript or normal), quality (draft/quality). 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.
  • Page 73 Byte 1, 2 The absolute address of the character definition. Byte 3 : - Bit 7 1: indicates that the character is a graphic character (connects at 6 lpi) 0: indicates that the character is an alphanumerical character - Bit 6 0: indicates a DLL character 1: indicates a resident character - Bit 5 to 0 These 6 bits indicate the effective number of dot columns of the character...
  • Page 74 - Bit 5 to 9 Compression mask description. It is used to optimize the memory occupation and it is based on the concept that a dot column on its left is not stored. You can calculate the compression mask of a character only after designing the entire character.
  • Page 75: Bit-Image

    ESC ( G Selects Graphics Mode. (EPSON) ESC ( G m n ASCII Code Hexadecimal Value 1B 28 47 m n Decimal Value 27 40 71 m n m = 1, 49 Range This command selects graphics mode and allows you to print raster graphics. This command clears all user-defined characters and tab settings.
  • Page 76 Specifies the dot density Specify the total number of columns of graphics data according to the formula: number of dot columns = (n + (n x 256)) (number of dot columns) = INT (number of dot columns) = MOD … Bytes of graphics data;...
  • Page 77: Esc . Print Raster Graphics. (Epson)

    ESC . Print Raster Graphics. (EPSON) ASCII Code ESC . c v h m n … d 1B 2E c v h m n … d Hexadecimal Value Decimal Value 27 46 c v h m n … d Range c = 0,1 v = 10, 20 h = 10, 20...
  • Page 78: Esc ? Reassigns Dot Graphics Mode. (Epson)

    total number of data bytes, according to the following formula: x 256) + n k = m x INT … d During full graphics mode: graphics data. During compressed mode: the first data byte is treated as a counter. Graphics data bytes then alternate with a data counter byte as follows: 0 <...
  • Page 79: Esc [ G High Resolution Graphics. (Ibm)

    (K): ESC K graphic command (L): ESC L graphic command (Y): ESC Y graphic command (Z): ESC Z graphic command ESC [ g High Resolution Graphics. (IBM) ASCII Code ESC [ g n m data 1B 5B 67 n m data Hexadecimal Value 27 91 103 n m data Decimal Value...
  • Page 80 Mode Horizontal Wires Description Density Same as ESC K graphic command Same as ESC L graphic command Same as ESC Y graphic command Same as ESC Z graphic command High resolution for ESC K High resolution for ESC L data The graphic data is organized by byte.
  • Page 81: Esc K Normal Density Dot Graphics Printing (60 Dpi). (Ibm, Epson)

    ESC K Normal density dot graphics printing (60 dpi). (IBM, EPSON) ASCII Code ESC K n ... p Hexadecimal Value 1B 4B n ... p 27 75 n ... p Decimal Value Range 0 < n < 255 0 < n <...
  • Page 82: Esc L Double Density Dot Graphics Printing (120 Dpi). (Ibm, Epson)

    ESC L Double density dot graphics printing (120 dpi). (IBM, EPSON) ASCII Code ESC L n ... p Hexadecimal Value 1B 4C n ... p 27 76 n ... p Decimal Value Range 0 < n < 255 0 < n <...
  • Page 83: Esc Y Double Density Dot Graphics Printing At Double-Speed Graphics (120

    ESC Y Double density dot graphics printing at double-speed graphics (120 virtual dpi). (IBM, EPSON) ESC Y n ... p ASCII Code Hexadecimal Value 1B 59 n ... p 27 89 n ... p Decimal Value 0 < n Range <...
  • Page 84 ESC Z Quadruple density dot graphics printing (240 virtual dpi). (IBM, EPSON) ASCII Code ESC Z n ... p Hexadecimal Value 1B 5A n ... p 27 90 n ... p Decimal Value Range 0 < n < 255 0 < n <...
  • Page 85: Data Input Control

    Cancels line. (EPSON) ASCII Code Hexadecimal Value Decimal Value This code clears all printable characters and bit-image graphics on the current line. This code moves the print position to the left-margin position. Cancels data. (IBM) ASCII Code Hexadecimal Value Decimal Value This code clears all data stored in the preceding print buffer but does not change the current print position.
  • Page 86: Selects Printer. (Epson)

    Selects printer. (IBM) ASCII Code Hexadecimal Value 11 Decimal Value This command causes the printer to be enabled after it has been disabled by the ESC Q command. Selects printer. (EPSON) ASCII Code Hexadecimal Value 11 Decimal Value This command causes the printer to be enabled after it has been disabled by the DC3 command.
  • Page 87: Del Deletes The Last Character. (Epson)

    Deletes the last character. (EPSON) ASCII Code Hexadecimal Value Decimal Value This command causes the printer to delete the last printable character sent to the printer. Printer control codes are not affected. The printer ignores this command if it follows a command that moves the horizontal print position (ESC $, ESC \ or HT). ESC # Cancels MSB control.
  • Page 88: Esc > Sets Msb To 1. (Epson)

    ESC > Sets MSB to 1. (EPSON) ASCII Code ESC > Hexadecimal Value 1B 3E Decimal Value 27 62 This command sets the Most Significant bit (bit number 7) of all incoming data to 1. All data is affected including graphics data. ESC Q Deselects Printer.
  • Page 89: Miscellaneous

    Buzzer. (EPSON) ASCII Code Hexadecimal Value 07 Decimal Value This code sounds the printer’s buzzer. Print and space back one position. (IBM, EPSON) ASCII Code Hexadecimal Value Decimal Value This code causes the printing to be continued from one column to the left of the current carriage position.
  • Page 90: Esc @ Initializes The Printer. (Epson)

    ESC @ Initializes the printer. (EPSON) ASCII Code ESC @ Hexadecimal Value 1B 40 Decimal Value 27 64 This sequence causes the printer to be initialized. This command, inserted in the input buffer, will be executed during data processing, so that data preceding this command will be printed according to the previous setting.
  • Page 91: Esc [ K Sets Initial Conditions. (Ibm 2391 Only)

    ESC [ K Sets initial conditions. (IBM 2391 only) ASCII Code ESC [ K n init id Hexadecimal Value 1B 5B 4B n init id 27 91 75 n init id Decimal Value This command causes the printer to reset to its initial status: and n The n and n...
  • Page 92 Initializes printer to factory settings. The download font is initialized. If parameters are specified, they will overwrite the default settings. This command will only copy the default settings from ROM, add parameter changes, if any, and store in working RAM; the data stored in the macro’s non- volatile RAM will not be affected.
  • Page 93: Esc U Sets Printing Direction. (Ibm, Epson)

    parm Specifies the following functions: Not set 7 Discard byte Process this byte Ignore this byte 6 Pass over from CP437 CP850 CP437-CP850 5 Reserved 4 Reserved 3 Reserved 2 Reserved 1 Line length 13.6 inch 8 inch 0 Reserved ESC U Sets printing direction.
  • Page 94: Compuprint Mode

    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.
  • Page 95: Sets Vertical Spacing 4 Lines/30 Mm. (Compuprint)

    DC4 DC4 ESC 3 4 Sets vertical spacing 4 lines/30 mm. (Compuprint) ASCII Code DC4 DC4 ESC 3 4 Hexadecimal Value 14 14 1B 33 34 Decimal Value 20 20 27 51 52 This command sets vertical spacing to 4 lines per 30 mm.
  • Page 96: Sets The Horizontal Spacing To 15, 17, 20, 24 Cpi. (Compuprint)

    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 20 20 27 65 n Decimal Value This is terminator code and therefore causes the current contents of the print buffer to be printed out.
  • Page 97: Native Character Set

    DC4 DC4 ESC g Selects LQ fonts (Compuprint). ASCII Code DC4 DC4 ESC g n 14 14 1B 67 n Hexadecimal Value Decimal Value 20 20 27 103 n Setting Gothic Courier Prestige Script OCR-B OCR-A Presentor If the down-line loading is selected, the command is stored and will be activated as...
  • Page 98: Dc4 Dc4 Esc S Selects Character Set Iso Character Sets Or Code Pages. (Compuprint)

    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 20 20 27 83 n Decimal Value Character Set ISO 8859/1 Latin 1...
  • Page 99 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...
  • Page 100: 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 14 14 1B 21 h t f F r o q b s B S i EM Hexadecimal Value Decimal Value 20 20 27 33 h t f F r o q b s B S i EM...
  • Page 101 Name Code 2 of 5 Interleaved C25-INT Code 2 of 5 Industrial C25-IND Code 2 of 5 Matrix C25-MTX Code 3 of 9 Code-39 8-digits European Article Numbering EAN-8 Codabar (all types) CODABAR Code 128 CODE-128 USPS-PostNet POSTNET f = Readable character printing f = 1 printing enabled f = 0 printing disabled F = Font selection for the printable characters...
  • Page 102 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/60”...
  • Page 103: Bar Code Description

    DC4 DC4 ESC! n 1 p EM EAN-8 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 104 UPC-E DC4 DC4 ESC! n 4 p EM UPC-E bar code data fields contain numeric data only: question marks will be printed in place of HRC string otherwise, if possible. If 12-digit strings will be received within a DC4 DC4 ESC (... EM control sequence and o check-digit option field is missing or takes values 0 or 2, the symbol is compressed as received to an 8-digit string and encoded, even though this may affect its readability;...
  • Page 105 LEFT and RIGHT delimiters, the System-Digit and the Check-Digit will be printed as descending bars to make a field to host a 6-digits HRC string and the System-Digit HRC to the left of LEFT delimiter (at about the middle of the symbol) when f field is missing or set to 1;...
  • Page 106 UPC-EAN 5 DC4 DC4 ESC ! n 6 p EM 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 received digit will be used as...
  • Page 107 CODE GP DC4 DC4 ESC ! n 10 p EM 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 108 Code BCD DC4 DC4 ESC ! n 12 p EM CODE-BCD 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. No internal check digit algorithm is available for this standard: o field is meaningless.
  • Page 109 2 Print the bar code symbol with both 6 Print the bar code symbol with both check digits generated by the printer check digits generated by the printer and put at the end of the data. The and put at the end of the data. The check digit is IBM Modulus-10;...
  • Page 110 Code 11 DC4 DC4 ESC ! n 14 p EM CODE-11 bar code fields do not have a defined format length and contain data belonging to the following character set: 0 1 2 3 4 5 6 7 8 9 - Question marks will be printed in place of HRC string otherwise, if possible.
  • Page 111 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...
  • Page 112 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 113 DC4 DC4 ESC ! n 20 p EM Code 39 The CODE 39 bar code. Data format length is variable and must always start and end with an asterisk. It can contain the alphanumeric character listed below: 0 1 2 3 4 5 6 7 8 9 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 -.
  • Page 114 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 115: Miscellaneous

    DC4 DC4 ESC (GS Prints bar code symbols (Compuprint) ASCII Code DC4 DC4 ESC (GS n data GS n data ... EM Hexadecimal Value 14 14 1B 28 1D n data ... 19 20 20 27 40 29 n data... 25...
  • Page 116: Sets Amplification Factor. (Compuprint)

    DC4 DC4 ESC J Sets amplification factor. (Compuprint) DC4 DC4 ESC J h v ASCII Code 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.
  • Page 117: Dc4 Dc4 Esc R String Rotation. (Compuprint)

    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 20 20 27 82 n string EM Decimal Value This command is used to set the string rotation.
  • Page 118: Dc4 Dc4 Esc Y Selects Emulation. (Compuprint)

    No rotation Rotation at 0° Rotation at 90° Rotation at 180° Rotation at 270° DC4 DC4 ESC Y Selects emulation. (Compuprint) DC4 DC4 ESC Y n ASCII Code Hexadecimal Value 14 14 1B 59 n 20 20 27 89 n...
  • Page 119: Dc4 Dc4 Esc U Selects The Program Setups. (Compuprint)

    DC4 DC4 ESC Z Makes AGA in column. (Compuprint) DC4 DC4 ESC Z n ASCII Code Hexadecimal Value 14 14 1B 5A n Decimal Value 20 20 27 90 n The parameter n is the column number at 10 cpi where the AGA (Automatic Gap Adjustment) is made.
  • Page 120: Dc4 Dc4 Esc Vt Search For A Blank Line (Without Any Marker). (Compuprint)

    Vertical position from the center of the markers in mm from the upper page margin. Distance between the markers in mm. DC4 DC4 ESC VT Search for a blank line (without any marker). (Compuprint) DC4 DC4 ESC VT o w ASCII Code...
  • Page 121: Printer Functions

    DC4 DC4 ESC DC4 Printer functions. ASCII Code DC4 DC4 ESC DC4 n function arguments Hexadecimal Value 14 14 1B 14 n function arguments 20 20 27 20 n function arguments Decimal Value n = (n ) +256* (n the character number that composes the command (function character included).
  • Page 122 Function Description 0x05 DC4 DC4 ESC DC4 n 0x05 arguments Sends the message to the printer display. This function is only available with the printer models with the LCD display. the n and n parameters specify the number of characters that composes the command.
  • Page 123 0x07 DC4 DC4 ESC DC4 n 0x07 arguments Selects the Cut Sheet Ejection Side. The n and n parameters specify the number of characters that composes the command. n = 2 function: 0x07 arguments: side: 0 : cut sheet ejection towards the front 1 : cut sheet ejection towards the rear 0x08 DC4 DC4 ESC DC4 n...
  • Page 124 0x09 DC4 DC4 ESC DC4 n 0x09 arguments Set Passbook Parameters. The n and n parameters specify the number of characters that composes the command. n = 2,4 function: 0x09 arguments: type: 0 x 00 : fixed thickness 0 x 01 : passbook with vertical fold 0 x 02 : passbook with horizontal fold 0 x 81 : special type width: passbook width in mm (0 →...
  • Page 125 PC Standard Character Sets.......... 124 Turkish (CP867) ............142 CS1................. 124 OCR-A (CP876)............. 143 CS2................. 125 OCR-B (CP877)............. 144 EPSON National Variations..........126 TASS (Cyrillic) .............. 145 IBM National Variations..........127 96Greek ................. 146 USA (CP 437)..............127 ISO 8859/1 (Latin 1)............. 147 Greek (CP437-G) ............

Table of Contents