TallyGenicom Matrix Printer Programmer's Manual

TallyGenicom Matrix Printer Programmer's Manual

Tallygenicom matrix printer programmer's manual
Table of Contents

Advertisement

Quick Links

7265
Programmer's Manual
Matrix printer

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Matrix Printer and is the answer not in the manual?

Questions and answers

Summary of Contents for TallyGenicom Matrix Printer

  • Page 1 7265 Programmer's Manual Matrix printer...
  • Page 2: Table Of Contents

    Chapter 1. Introduction...1 Chapter 2. ANSI ...2 Control Code Summary ...3 Control Code Comparison, 7 Bit/8 Bit ...4 8-bit Control Codes...4 Escape Sequence Summary ...6 Printer Handshaking ...8 Printer Control ...9 Graphics Rendition (Fonts and Modes) ...15 NATIONAL CHARACTER SET ...16 Forms Setup ...20 Superscript/Subscript...21 Vertical Movement ...22...
  • Page 3 Chapter 3. ANSI Bar Codes ...33 Before You Begin - Set the Form Length...34 Setting Bar Code Parameters...35 General Rules for Assigning Parameters ...36 Bar Code Command Sequences ...37 Element Widths ...39 Other Parameters...40 Delimiters...42 Horizontal Tab Delimiter...44 Horizontal Position - Relative Delimiter ...45 Calculating Characters per Inch ...47 Bar Code Style Characteristics ...48 Interleaved 2 of 5 (Style 0) ...48...
  • Page 4 Table of Figures ...5 Figure 2-1 Default Character Set for ANSI Emulation, 00 to 7F Figure 2-2 Default Character Set for ANSI Emulation, 80 to FF...6 Figure 2-3 National Character Substitutions 0 - 18 ...17 Figure 2-4 Effects of Character Spacing Parameters ...22 Figure 2-5 Dot Column Coding...29 Figure 2-6 Dot Graphics Example ...30 Figure 3-1 Parts of a Bar Code ...35...
  • Page 5: Chapter 1. Introduction

    Introduction Chapter 1. The TallyGenicom 7265 provides rugged, versatile impact printers useful in a variety of applications. Flexibility of use is guaranteed by the wide range of software emulations and programming options. The current printer characteristics are the result of years of application experience.
  • Page 6: Chapter 2. Ansi

    ANSI The TallyGenicom im printer, as it is for a variety of other TallyGenicom impact matrix printer families. The control functions presented here are a superset of ANSI control sets familiar to our customers. For the most part, ANSI drivers written for other TallyGenicom printers should only need to be modified as features introduced on the 7265 Series printers are exercised.
  • Page 7: Control Code Summary

    Control Code Summary Code Description ETX/ACK Communication Protocol ETX/ACK Communication Protocol Sound Beeper Backspace Horizontal Tab Line Feed Vertical Tab Form Feed Carriage Return Barcode / Oversized On Barcode / Oversized Off DC1(XON) Printer Ready DC3(XOFF) Printer Busy Escape Delete If 8-bit control code interpretation is enabled ...
  • Page 8: 8-Bit Control Codes

    ompar ison, 7 Bi t/ 8 Bi t 8 B i t Hex Description 8-bit Control Codes ANSI assigns control functions to characters 80 hex through 9F hex and calls these characters C1 codes. You can set the printer to either interpret 80 hex - 9F hex as control codes or not. The ISU default status of this option is disabled.
  • Page 9: Figure 2-1 Default Character Set For Ansi Emulation, 00 To 7F

    xade c imal, Orde red Column|Row Figure 2-1 Default Character Set for ANSI Emulation, 00 to 7F 7265 Programmer’s Manual Copyright © 2004 TallyGenicom “ & ‘ < >...
  • Page 10: Escape Sequence Summary

    Code is Hexadecimal, Ordered Column|Row Figure 2-2 Default Character Set for ANSI Emulation, 80 to FF Escape Sequence Summary In this chart, the 7-bit representation is given. Use the Comparison Chart on page 7 bit to 8 bit sequences. Code ESC H ESC J ESC K...
  • Page 11 Code ESC [(p1);(p2)<SP>~ ESC [(p)` ESC [(p)a ESC [(p)d ESC [(p)e ESC [(p1);(p2)f ESC [(Ps)g ESC [(p1);...(pn)h ESC [>(p1);...(pn)h ESC [(p)j ESC [(p)k ESC [(p1);...(pn)l ESC [>(p1);...(pn)l ESC [(P1);...(Pn)m ESC [(p1)p ESC [(p1)q ESC [(p1);(p2);(p3)r ESC [(p1);(p2)s ESC [(p1)t ESC [(p1);(p2);...(p22)u ESC [(p1);(p2);...(p12)v ESC [(p1);(p2);…} ESC [(p)x...
  • Page 12: Printer Handshaking

    inter Handshaking Commands Description PRINTER READY In serial interface, if the printer is strapped for XON/XOFF handshaking, then the printer sends DC1 to the host to signal that the printer is ready to accept data. In parallel interface, if the printer is strapped for select/ deselect by received DC1/DC3 codes, then the host sends DC1 to the printer to set the printer online.
  • Page 13: Printer Control

    Printer Control Commands Description SHIFT OUT You can strap the printer to start either barcode (page 37) or oversized (page 64) mode, whichever is enabled, on receipt of SO. The ISU status of SO/SI control is disabled. You can enable SO/SI control from Software Options on the printed menu, or from the host via the Straps and Options control sequence.
  • Page 14 Commands Descript i on DELETE DEL is a printable character, or is a valid graphics data byte if received in dot g r aphics mode. Dec 127 ESC [(p1); SELECT EMULATION (p2)<SP>~ If p2 is 0, which is the default, then the current settings in the printer remain in effect through the emulation change to the extent that selected features are supported in the target emulation.
  • Page 15 Commands Descript i on ESC c RESET TO INITIAL STATE Recalls the user format presently assigned to the current paper path. Dec 27 99 ESC [(p1)t ENABLE/DISABLE OVERSIZED/EXPANDED/BAR CODE MODES Effect reset special modes select oversized printing select expanded printing select bar code Oversized printing and bar codes are explained in separate chapters.
  • Page 16 Commands Descript i on ESC [(p1); RESET MODE (ANSI) ...(pn)l Resets mode(s) set by ESC [(p1);..(pn)h. Effect reset auto CR on LF Example: reset auto CR on LF Dec 27 91 50 48 108 ESC [> SET MODE (GENICOM) (p1);..(pn)h This is an ANSI private use sequence.
  • Page 17 Commands Description ESC [(p1); PAPER SHEAR (p2);<SP>{ If the paper shear option is installed, then note that the appropriate strap must be set in the hardware options menu in order for the paper shear to work. Parameter p1 = 1 selects the paper shear. Parameter p2 = 1 executes a cutting sequence: If the vertical position is not at top-of- form, then a form feed is executed.
  • Page 18 Commands Descript i on ESC ]6;4; STRAPS AND OPTIONS (p3);(p4) This command enables downline control of options found at various places in the ESC \ printer menus. This includes the Emulation and Software Options menus, as well as the User-defined Options menu. For details and descriptions, see the User’s Manual.
  • Page 19: Graphics Rendition (Fonts And Modes)

    Graphics Rendition (Fonts and Modes) Command Description ESC [(p1); SELECT GRAPHICS RENDITION ...(pn)m Selects print modes and fonts. 10 and 11 7265 Programmer’s Manual Copyright © 2004 TallyGenicom Printing Mode normal printing - resets all modes (but does not affect font selection) set bold print set underline set doublewide...
  • Page 20: National Character Set

    NATIONAL CHARACTER SET Command Description ESC [(p)x SELECT NATIONAL CHARACTER SET If a parameter value (p) is not recognized, then the default character set (0 - USA) is selected. To use substitutions that have characters in the 80 hex to 95 hex range, first disable 8-bit control code processing, either by escape sequence or from the Emulation Options Menu.
  • Page 21: Figure 2-3 National Character Substitutions 0 - 18

    D/N = Danish/Norwegian S/F = Swedish/Finnish Code Locati o n H Character & & Germany £ & French A & £ Italian & £ & Spanis h & & ¤ Swedish Figure 2-3 National Character Substitutions 0 - 18 7265 Programmer’s Manual Copyright ©...
  • Page 22 Line/Character Spacing Command Description ESC [(p1); (p2) LINE/CHARACTER SPACING <SP> G Sets the vertical and horizontal pitch in decipoints. Parameter (p1) is the spacing between lines and (p2) is the spacing between characters. Unspecified parameters remain at their current values. This command does not affect oversized printing selected by ESC [1t.
  • Page 23: Figure 2-4 Effects Of Character Spacing Parameters

    Commands Description ESC [(p1); LINE/CHARACTER SPACING (p2) <SP> G p1 = line spacing parameter p2 = character spacing parameter If you select doublewide printing (ESC [5m), then the printer doubles character spacing set by this command. If the designed pitch of the current font is 10 cpi and doublewide is set, then a character spacing argument of 72 results in a pitch of 5 cpi, at which horizontal segments of line-draw characters are contiguous.
  • Page 24: Forms Setup

    Forms Setup Command Description ESC [(p1); FORMS SETUP (p2);(p3);(p4) Sets top of form and sets form length, as well as top and bottom margins, in decipoints. ;(p5)r Parameter line and the end of form. Any parameter not specified is assigned its default value. Maximum form length is 15840 decipoints (22 inches).
  • Page 25: Superscript/Subscript

    Superscript/Subscript Command Description ESC K SUBSCRIPT PRINTING (PLD) Moves paper 1/2 line below the current line for subscript printing. ESC K is used to return to the original line following ESC L (superscript). If 8-bit control code processing is enabled then Dec 139 otherwise Dec 27 75...
  • Page 26: Vertical Movement

    Vertical Movement Absolute positions are calculated from the top and left print references without respect to margin settings. The top of a character cell located at vertical position-absolute 0 is at top print reference. The left edge of a character cell located at horizontal position-absolute 0 is at the left print reference.
  • Page 27 Vertical Movement Commands Description LINE FEED Advances the paper one line according to the spacing currently in effect. Dec 10 VERTICAL TAB Advances paper to the next vertical tab setting. If the current print position is at or beyond the last tab setting, the paper advances to the top of form. If no tabs are set, then VT is processed according to the status of emulation option strap 14.
  • Page 28 Commands Description ESC [(p)e VERTICAL POSITION RELATIVE Advances paper p decipoints. This command enables printing below the bottom margin of the current form and above the top margin of the following form. The example below advances the paper 4 1/4 inches. Example: ESC [3060e Dec 27 91 51 48 54 48 101 ESC [(p)k...
  • Page 29: Margins

    Margins Use the Forms Setup command, page 2-39, to set vertical margins. Commands Description ESC [(p1);6 (p2)s SET LEFT AND RIGHT MARGIN Sets the left and right margin in decipoints; p1 is the left margin and p2 is the right. Distances are measured from the left print reference. This command takes effect following the next line terminator (you cannot set margins for the current line).
  • Page 30: Horizontal Movement

    Horizontal Movement Commands Descript i on HORIZONTAL TAB Causes the current print position to move to the next tab stop. If no tabs are set, then the current position moves one space. If tab(s) are set but no tab(s) are set between the active print position and the right margin, then following characters on the line are either discarded or printed on the next line, depending on the status of auto wrap.
  • Page 31 Commands Description ESC [(p)` HORIZONTAL POSITION ABSOLUTE Causes the print position to move (in decipoints) a specified distance from the left print reference. Example: ESC [360` Move print head ½” from left print reference. Dec 27 91 51 54 48 96 BACKSPACE Prints the data in the print buffer, then moves the print position one character position to the left.
  • Page 32: Tabs

    Tabs This printer stores tab stops in NVRAM while power is off. Therefore, all tab stops should be cleared before new stops are set. Commands Description ESC H SET HORIZONTAL TAB AT CURRENT POSITION (HTS) If 8-bit control code processing is enabled then both Dec 136 otherwise only Dec 27 72...
  • Page 33: Dot Graphics

    Dot Graphics Dot graphics allows you to print individual dots at any position on the page and thus to print pictures as well as text. When you enter dot graphics, the printer defaults to a dot density of 72 dpi horizontally and vertically, and a line spacing of 12 lpi. Exiting from dot graphics returns the printer to its prior lpi setting.
  • Page 34: Sample Basic Program For Dot Coding

    Sample Basic Program for Dot Coding Figure 2-6 Dot Graphics Example 7265 Programmer’s Manual Copyright © 2004 TallyGenicom Chapter 2 ANSI...
  • Page 35: Graphics Control Functions

    Graphics Control Functions The set of control codes that are interpreted while in graphics mode are shown in the following charts. Bytes less than 32 decimal that are not interpreted as control codes are ignored. The printer processes valid escape sequences within a graphics data sequence. This is potentially useful, for instance, in the cases of the absolute and relative position commands.
  • Page 36 Commands Description ESC [(p1)q GRAPHICS DENSITY Sets the graphics density. The printer powers up with a graphics density of 72 x 72 dpi; changes are not stored in NVRAM. horizontal density Dec 27 91 48 113 Hex 1B 5B 30 71 7265 Programmer’s Manual Copyright ©...
  • Page 37: Chapter 3. Ansi Bar Codes

    ANSI Bar Codes Chapter 3. This chapter describes the characteristics and lists ANSI control sequences for 23 resident bar code styles. You have to be in ANSI emulation to print the resident bar codes. You can adjust various bar code attributes including rotation, height, print density, status of the human-readable line, and element widths.
  • Page 38: Before You Begin - Set The Form Length

    Before You Begin - Set the Form Length Programmers tend not to trust form feeds and sometimes use line feeds instead to move from one form to another. If there is any advantage to that approach, it is that the vertical move will not depend on the current form length.
  • Page 39: Setting Bar Code Parameters

    Setting Bar Code Parameters The ANSI control sequence that sets bar code parameters has the format: Command Description Set Up Bar Code Parameters [p1;p2;p3;p4;p Determines bar code parameters to be used when bar code mode is enabled. 5;p6;p7;p8;p9; See following sections. p10;p11;p12;p Dec 27 91 (p1) 59 (p2) 59…(p13)125 Hex 1B 5B (p1) 3B (p2) 3B…(p13) 7D...
  • Page 40: General Rules For Assigning Parameters

    Values of all the adjustable bar code parameters are stored in NVRAM while power is off. You can restore the bar code attributes to the factory settings by performing an ISU on the printer. Attribute style height human readable line enable narrow bar width wide bar width narrow space width...
  • Page 41: Bar Code Command Sequences

    Bar Code Command Sequences Command Description ESC [3t ENABLE BAR CODES Enables Bar Codes with the characteristics set by ESC [(p1);(p2)…}. ESC [3t selects Bar Code mode and activates Bar Code printing. Dec 27 91 51 116 ESC [0t CANCEL OVERSIZED/EXPANDED/BAR CODE MODES Dec 27 91 48 116 SHIFT OUT Turns off bar code printing, then enters bar code mode again.
  • Page 42 p1 - Bar Code Style This printer supports the following styles: 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 a/t (see note) Codabar b/n (see note) Codabar c/* (see note) Codabar d/e (see note)
  • Page 43: Element Widths

    p3 - Human Readable Enable An argument of 1 turns on the human-readable line, while 0 turns it off. The default is on. When the human readable line is enabled, it is printed in the font specified by parameter p12. There is 0.1"...
  • Page 44: Other Parameters

    Other Parameters p9 – Rotation Sets the absolute rotation in 90 degree increments. If parameter p12 = 0, then the human- readable font is shown in the following table: Rotation 0 *1234* 1234 Figure 3-2 Effects of Rotation Parameters 7265 Programmer’s Manual Copyright ©...
  • Page 45 p10 - Horizontal Resolution A value of 0 is 60 dots per inch, while a value of 1 is 1/120 dots per inch. The default depends on the style in force. EAN and UPC styles default to 1. All other styles default to 0. Note: This parameter affects bar codes printed at 0 resolution, then bar codes are darker and are printed at a somewhat slower speed.
  • Page 46: Delimiters

    Delimiters A bar code delimiter is a character or control function that tells the printer where one bar code symbol ends and an adjacent symbol begins. Different bar code styles accept different delimiters, which might be spaces, commas, asterisks, horizontal tabs, or horizontal position-relative commands. Valid delimiters for the various styles are listed in the Bar Code Style Characteristics section.
  • Page 47: Figure 3-3 Comma, Space, And Asterisk Delimiters

    ! # /E" ! # /E" ! # /E" ! # /E" *1234* *1234* *1234* Asterisk delimiters are used in pairs, 3 of 9 Figure 3-3 Comma, Space, and Asterisk Delimiters 7265 Programmer’s Manual Copyright © 2004 TallyGenicom Interleaved 2 of 5, comma delimiter Interleaved 2 of 5, space delimiter *1234* Chapter 3 ANSI Bar Codes...
  • Page 48: Horizontal Tab Delimiter

    Horizontal Tab Delimiter The HT control code (09) is a valid delimiter in all bar code styles. The leading quiet zone of a subsequent symbol begins at the first tab stop right of the trailing quiet zone of the current symbol. This is evident in the sample, where the quiet zone of the second symbol begins at the third tab stop.
  • Page 49: Horizontal Position - Relative Delimiter

    Horizontal Position - Relative Delimiter The horizontal position-relative command is a valid delimiter in all bar code styles except POSTNET. ESC [(Pn)a The argument units for this command are decipoints (1/720 inch), which the printer rounds off to the nearest 1/120 inch.
  • Page 50: Figure 3-6 Vertical Bar Code Sumbols

    Delimiters and Vertical Bar Codes If you rotate a bar code 90 or 270 the sample shows. The symbol dimensions that used to be horizontal are shortened to 120/144 of what they used to be; this includes the quiet zones. 100 LPRINT CHR$(27);"[4;9;1}";...
  • Page 51: Calculating Characters Per Inch

    Calculating Characters per Inch We show characters per inch at the default element widths and 0 the following chapter. All of our numbers ignore the quiet zones; you need to allow 1/2 inch per symbol for the horizontal rotations. Defining characters per inch for fixed-length codes is straightforward in that the start-stop and center characters always take up the same portion of length of the symbol.
  • Page 52: Bar Code Style Characteristics

    Bar Code Style Characteristics The following pages show specific information about the various styles. A NULL character is a combination of bars and spaces unique to a particular style that is printed when a nonvalid character is encountered in received bar code symbol data. A null character in the symbol shows up as a diamond in the human-readable line if the HRL is enabled.
  • Page 53: Matrix 2 Of 5 (Style 2)

    Matrix 2 of 5 (Style 2) Bars per character: 3 dark bars and 2 light bars Character set: 0 through 9 Start/Stop characters: 3 dark bars and 2 light bars Center character code: None NULL character: Yes Intercharacter gap: None Characters per symbol: Variable Check digit: None Delimiters: Space, comma, horizontal tab, hp_relative...
  • Page 54: Style 5)

    EAN-8 (Style 5) Bars per character: 2 dark bars and 2 light bars Character set: 0 through 9 Start/Stop characters: 2 dark bars and 1 light bar Center character code: Yes NULL character: Yes Intercharacter gap: None Characters per symbol: 8 Check digit: The check digit can be supplied by the data source.
  • Page 55: Code 11 (Style 7)

    Code 11 (Style 7) Bars per character: 3 dark bars and 2 light bars Character set: 0 through 9 and the dash character Start/Stop characters: Yes Center character code: None NULL character: Yes Intercharacter gap: None Characters per symbol: Variable Check digit: If needed, it must be generated by the data source Delimiters: Space, comma, horizontal tab, hp_relative HR characters: Currently selected font, special HR font, special OCR-A/OCR-B...
  • Page 56: Codabar A/T, B/N, C/*, D/E (9, 10, 11, 12)

    Codabar A/t, B/n, C/*, D/e (9, 10, 11, 12) Bars per character: 4 dark bars and 3 light bars Character set: 0 through 9 and the four additional characters :/ . + Start/Stop characters: Yes (A,B,C,D/A,B,C,D,T,N,*,E) Center character code: None NULL character: Yes Intercharacter gap: None Characters per symbol: Variable...
  • Page 57: Upc-E (Style 14)

    UPC-E (Style 14) Ten digits must be entered as input. The first five represent a vendor number and the last five represent a product number. Only 6 of the 10 input digits are encoded in the bar code symbol. The six characters to be encoded in the symbol are determined as follows: If the vendor number (first five digits) ends in 000, 100, or 200, then the product number (second five digits) must be between 00000 and 00999.
  • Page 58: Code 93 (Style 15)

    Code 93 (Style 15) Bars per character: 3 dark bars and 3 light bars Character set: All 128 ASCII characters Start/Stop characters: Yes. (Stop character has 4 dark bars and 3 light bars) Center character code: None NULL character: Yes Intercharacter gap: No Characters per symbol: Variable Check digit: Always required.
  • Page 59: Msi (Style19)

    MSI (Style19) Bars per character: 4 dark bars and 4 light bars Character set: 0 through 9 Start characters: 1 dark bar and 1 light bar Stop characters: 2 dark bars and 1 light bar Center character code: None NULL character: Yes Intercharacter gap: None Characters per symbol: Variable Check digit: The check digit...
  • Page 60: Postnet (Style 50)

    POSTNET (Style 50) You cannot adjust POSTNET bar code attributes with ESC[(p1);..(p12)}. All attribute parameters except the style parameter (p1) are ignored by POSTNET, although they are processed, saved, and would apply to a subsequent bar code of another style if not overwritten. To select POSTNET, you need to send only ESC [50}.
  • Page 61 Bars per character: 2 tall bars and 3 short bars Character set: 0 through 9 Start characters: 1 tall bar Stop characters: 1 tall bar Center character code: None NULL character: diamond symbol Intercharacter gap: Yes Characters per symbol: ZIP - 5 + 1 check character ZIP+4 - 9 + 1 check character ABC - 11 + 1 check character Check digit: yes.
  • Page 62: Calculating The Checksum For Code 3 Of 9

    Calculating the Checksum for Code 3 of 9 A 3 of 9 symbol is a variable-length string which can include the digits 0 - 9, uppercase A - Z, and six additional punctuation characters. The values used to compute the checksum for a 3 of 9 symbol are the locations of individual characters in the unique 3 of 9 character table.
  • Page 63 The following example illustrates the calculation of the check digits for the symbol CODE 93. Data Data Values C Weights K Weights 1) For "C", sum the products of the (C WEIGHTS * DATA VALUES). (1 * 3) + (2 * 9) + (3 * 38) + (4 * 14) + (5 * 13) + (6 * 24) + (7 * 12) = 484 2) Divide 484 by 47.
  • Page 64: Code 93 Checksums For Full Ascii

    Code 93 Checksums for Full ASCII You can send any of the 128 ASCII characters verbatim in a Code 93 symbol. You would not need to worry about Code 93 control codes if you did not need to compute checksums. The four control characters in the Code 93 character table do not correspond to any byte values sent to the printer, but instead refer to “precedence codes”...
  • Page 65 Checksum calculation for the symbol Cat Data <CTRL> + Data Values C Weights K Weights 1) For "C", sum the products of the (C WEIGHTS * DATA VALUES). (1 * 29) + (2 * 46) + (3 * 10) + (4 * 46) + (5 * 12) = 395 2) Divide 395 by 47.
  • Page 66 Code 93 Full ASCII Table Code ASCII ASCII " & < > 7265 Programmer’s Manual Copyright © 2004 TallyGenicom Code Code ASCII space Code ASCII Chapter 3 ANSI Bar Codes...
  • Page 67: Chapter 4. Ansi Oversized Font

    ANSI Oversized Font Chapter 4. This chapter describes the characteristics and lists the ANSI control sequences for the rotatable oversized font, a unique sans-serif font with character shapes designed to accommodate very large expansions. This is an industrial-strength feature. Horizontal resolution is held to 120 dpi to enable oversized printing at carriage speeds of up to 50 inches per second.
  • Page 68: Control Function Summary

    Control Function Summary Control Function ESC [0t ESC [1t ESC [2t ESC [Pv;Ph<sp>B ESC[0| ESC[p1| Oversized Control Functions Commands Description ACTIVATE OVERSIZED / EXPANDED / BAR CODE Dec 14 EXIT OVERSIZED / EXPANDED / BAR CODE Dec 15 ESC [0t CANCEL OVERSIZED / EXPANDED / BAR CODE Cancels oversized, whether set with ESC [1t or ESC [(Ps)|, and also expanded and bar code modes.
  • Page 69: Commands Description

    Commands Description SET CHARACTER SIZE [Pv;Ph<sp>B Sets the expansion of oversized characters in percentage points. Pv is the vertical expansion and Ph is the horizontal expansion. The parent font is a 10-point font. Dimensions established by this sequence are stored in nonvolatile RAM while power is off.
  • Page 70: Oversized Versus Expanded

    Oversized Versus Expanded There are two ANSI functions that print characters scaled according to the Graphics Size Modification parameters. Both expanded and oversized are standard features with this printer. You can get into expanded mode accidentally when you send the Graphic Size Modification sequence. 100 LPRINT CHR$(27);"[720e";...
  • Page 71: Device Timeout With Very Large Characters

    ESC [(pv);(ph)<SP>B where (pv) is the vertical expansion, (ph) is the horizontal expansion, and <SP> is the space character (20 hex). For 0 rotation, you can think of parameter (pv) as 10 times the point size of the oversized character. If you set a 600 x 600 expansion and print an uppercase “E” at zero rotation, then the resulting character will nearly match the 60-point Helvetica “E”...
  • Page 72: What Is A Character Cell

    “E”. In an impact-matrix printer font, the printed portion of a character is often centered horizontally in the character cell. There might be a fixed number of dot columns on either end of the character cell that are never printed.
  • Page 73: Oversized Character Dimensions - 0

    Oversized Character Dimensions – 0 The width of an oversized character cell is 0.72 decipoints times the horizontal expansion factor. In thousandths of an inch, it is the same as the horizontal expansion factor. If you set a horizontal expansion of 1000, then characters will be 1 inch, or 720 decipoints, apart.
  • Page 74: Oversized Character Dimensions - 270

    Oversized Character Dimensions - 270 The width of a character cell is 0.6 decipoints times the horizontal expansion factor. Width means the dimension that is left-to-right as you read the character. The height of a character cell is 1.08 decipoints times the vertical expansion factor.
  • Page 75: Implementing The Line Feed Function

    Implementing the Line Feed Function - 0 A good technique is to exit oversized with ESC [0t and send a vertical and horizontal position absolute command: ESC [(Pv);(Ph)f where (Pv) is decipoints from the top print reference and (Ph) is decipoints from the left print reference.
  • Page 76: Line Spacing And Intercharacter Spacing - 270 O

    Line Spacing and Intercharacter Spacing - 270 o If you print sideways text, then the vertical move that otherwise corresponded to a line feed now sets the distance from the leading edge of one character cell to the leading edge of the next character cell (as you read the characters).
  • Page 77: Appendix A. Commands And Exceptions

    Appendix A. Commands and Exceptions Supported Control Codes and Escape Sequences Acknowledge Bell Back Space Carriage Return Control String Introducer, ESC [ Select printer (Data Control 1) Deselect printer (Data Control 3) Delete Enquiry Escape ESC \ or ST String Terminator ESC c Reset to Initial State (RIS) ESC D or IND...
  • Page 78 Commands not implemented in the 7265 ANSI Emulation ESC ] p1;pn<ST> User Defined Character Substitution (GENUDS) ESC ] p1;p2;p3;data<ST> ESC [ p1;p2 SP ~ Selects emulation (GENEMU) ESC [ p1;pn { Unidirectional Printing (GENUPD) ESC [ p1;p2;p3 SP | Customer Setup Save/Unsave (GENCSX) ESC [ p1;pn p Assign Source for Forms (GENASF) ESC [ p1 x...
  • Page 79: Programmer's Reference

    Programmer's Reference EPSON Emulation...
  • Page 80 Table of Contents Description of Escape Sequences Introduction ....... . . Paper and Text Formatting .
  • Page 81 Character Styling ......Super-/Subscript Mode ON ..... . Double Strike .
  • Page 82 Download Character Generator ..... . General ....... . Copy ROM into RAM .
  • Page 83 Appendix A Summary of Possible Codes Sorted by Sequences ......Sorted by Functions ......Appendix B Character Sets Standard Character Set .
  • Page 84: Description Of Escape Sequences

    Description of Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Download Character Generator Miscellaneous Control Codes...
  • Page 85 Introduction This User’s Manual describes the sum of all EPSON Escape sequences, regardless of the specific EPSON emulation used by your printer. The only differentiation is made be- tween 9 and 24 needle printers as well as the maximum possible paper width of 8 inches (80 column printer) or 13.6 inches (136 column printer).
  • Page 86: Introduction

    This is followed by the Data Structure in ASCII, hexadecimal and decimal syntax with the necessary parameters, e.g.: ASCII ESC "C" <n> hex. <n> dec. <n> For the parameter (here n) it is necessary to differentiate between two types of syntax. if the parameter is in pointed parentheses, the decimal value is transferred if the parameter is not in pointed parentheses, the ASCII value is transferred Example:...
  • Page 87 Setting the form length to 72 lines Escape Sequence Transfer 100 REM Sample for the ESC C <n> sequence in ASCII, 110 REM using form with 72 lines. 120 REM Please note, in ASCII-Syntax you can use ASCII values 130 REM equal or bigger codetable no. 32 only. 140 REM LPRINT CHR$(27);"C";"H": REM mixed syntax;...
  • Page 88: Paper And Text Formatting

    Paper and Text Formatting Form Length in Lines Form Length in Inches Data Structure ASCII ESC "C" hex. dec. ASCII ESC "C" hex. dec. – Description This code sequence sets the form length to n times the current line feed pitch (in in- ches).
  • Page 89 Example REM form length FF$=CHR$(12) LPRINT CHR$(27);"C";CHR$(4); FOR F=1 TO 3 FOR L=1 TO K LPRINT "length 4: form";F;"line";L NEXT L K=K+1 100 LPRINT FF$; 110 NEXT F 120 K=1 130 LPRINT CHR$(27);"C";CHR$(3); 140 FOR F=1 TO 3 150 FOR L=1 TO K 160 LPRINT "length 3: form";F;"line";L 170 NEXT L 180 K=K+1...
  • Page 90 Set Page Length in Units Data Structure ASCII ESC "(" hex. dec. Description Valid values: = 2, n 0 < ((m x 256) + m Defines page length in untis previously defined with the sequence ESC ( U (see page 62). (page length) = ((m ...
  • Page 91 Set Page Format Data Structure ASCII ESC "(" hex. dec. Description Valid values: = 4, n x 256) + t x 256) + b Defines top and bottom margins previously defined with the sequence ESC ( U (see page 62). (top margin) = ((t ...
  • Page 92: Paper And Text Formatting

    This sequence sets new top and bottom. it does not affect the current page length setting. Set top and bottom margin first, then load paper. Using this sequence within the form sets top margin at the current position. Paper and Text Formatting...
  • Page 93: Perforation Skip

    Perforation Skip Reset Perforation Skip Data Structure ASCII ESC "N" hex. dec. ASCII ESC "O" hex. dec. – Description This code sequence enables the perforation skip function and sets the bottom margin (distance between the last print line of one page and the first print line of the following page) to n lines.
  • Page 94 Example 10 REM skip 20 LPRINT CHR$(27);"C";CHR$(6);:REM form length 30 LPRINT CHR$(27);"N";CHR$(1);:REM set skip 40 FOR F=1 TO 2 50 FOR L=1 TO 5 60 LPRINT "form";F;" line";L 70 NEXT L:NEXT F 80 END Paper and Text Formatting...
  • Page 95: Right Margin

    Right Margin Left Margin Data Structure ASCII ESC "Q" hex. dec. ASCII ESC " hex. dec. Description Character density 10 cpi 12 cpi 15 cpi 17.1 cpi 20 cpi Values for n are valid for a line length of 8 inch (80 columns printer) or 13.6 inch (136 columns printer) set in the menu.
  • Page 96 Example LPRINT " LPRINT "12345678901234567890123456789012345678901234567890123" LPRINT CHR$(27);"l";CHR$(10);CHR$(27);"Q";CHR$(53); LPRINT "Now the left margin is set to column 10 and"; LPRINT "the right margin is set to column 53." LPRINT CHR$(27);"l";CHR$(5);CHR$(27);"Q";CHR$(41); LPRINT "Now the left margin has been reduced"; LPRINT "to column 5 and the right margin has"; 100 LPRINT "been set to column 41."...
  • Page 97: Justification And Centering

    Justification and Centering Data Structure ASCII ESC "a" hex. dec. Description In some cases it is necessary to center headlines or to have the text printed in a way that left or right margin or both margins are justified. By means of this code sequence the prin- ter automatically justifies the text.
  • Page 98 Example WIDTH LPRINT CHR$(27);"Q";CHR$(48);:REM set right margin LPRINT CHR$(27);"a";CHR$(1);"CENTERED" LPRINT "HEADLINE" LPRINT CHR$(27);"a";CHR$(3) LPRINT "Now the right and the left justification "; LPRINT "is on. The lines are filled with blanks "; LPRINT "until they are long enough to reach the "; LPRINT "right margin."...
  • Page 99: Character Spacing

    Character Spacing Set HMI (Horizontal Motion Index) Data Structure ASCII ESC "c" hex. dec. Description Valid values: 0 ≤ n ≤ 4 0 ≤ n ≤ 255 0 < ((n x 256) + n The normal print density is enlarged according this formula: x 256) + n HMI = HMI x 360...
  • Page 100: Enlarged Print Mode

    This sequence terminates previously set additional character space defined with ESC SP. Following sequences will cancel the HMI mode: ESC ! print mode selection ESC @ printer initialization reset condensed print reset enlarged print mode (set by <SO> or ESC <SO>) ESC g character density 15 cpi ESC M...
  • Page 101: Continuous Enlarged Print Mode

    Set enlarged Print Mode Reset enlarged Print Mode Continuous enlarged Print Mode Syntax ASCII hex. dec. ASCII hex. dec. ASCII ESC "W" <n> or n hex. dec. – Description Either one of these codes switches the printer to the enlarged print mode. In enlarged print mode, the width of printed characters are twice that in the normal mode.
  • Page 102 Example REM enlarged character densities LPRINT CHR$(27);"P";: REM 10 cpi LPRINT "normal 10 cpi character density" LPRINT CHR$(27);"W";CHR$(1);: REM continuous enlarged density LPRINT "10 cpi continuous enlarged" LPRINT CHR$(27);"M";: REM 12 cpi LPRINT "12 cpi continuous enlarged" LPRINT CHR$(27);"W0";: REM normal character density LPRINT CHR$(14);: REM enlarged character density for one line 100 LPRINT "this is enlarged only"...
  • Page 103: Condensed Character Density

    Condensed Character Density Reset Condensed Character Density Data Structure ASCII hex. dec. ASCII hex. dec. – Description When the printer receives this code, the data will be printed approx. 40% smaller than in normal mode. Condensed print mode can be used in all print qualities. It can be used during printing in the double strike or bold modes.
  • Page 104: Character Density 10 Cpi

    Character Density 10 cpi Character Density 12 cpi Character Density 15 cpi Data Structure ASCII ESC "P" hex. dec. ASCII ESC "M" hex. dec. ASCII ESC "g" hex. dec. – Description This code sequence sets the character density to 10 cpi (Pica). This is also the default character density.
  • Page 105 Example 10 REM 20 LPRINT CHR$(27);"P";"this is pica sized" 30 LPRINT CHR$(27);"M";"and this is elite sized" 40 LPRINT CHR$(27);"g";"and this is 15 cpi" 50 END Character Spacing single character densities...
  • Page 106: Proportional Spacing

    Proportional Spacing Data Structure ASCII ESC "p" hex. dec. Description If 1 is specified for n, proportional spacing is ON, if 0 is specified for n, proportional spacing is OFF. When in default font type, all characters are assigned a fixed, equally wide space. When in proportional spacing, the spaces between each character are set to the actual width of the characters;...
  • Page 107 Character Spacing Data Structure ASCII ESC SP hex. dec. The size of the spaces between the characters is increased by n ∗ Description LQ and in Draft by n ∗ finition. The value specified for n must be in the range of 0 to 127. Example 10 REM 20 LPRINT CHR$(27);"@"...
  • Page 108: Line Spacing

    Line Spacing Fixed Line Spacing 1/8 Inch Fixed Line Spacing 7/72 Inch Fixed Line Spacing 1/6 Inch Data Structure ASCII ESC "0" hex. dec. ASCII ESC "1" hex. dec. ASCII ESC "2" hex. dec. – Description This code sequence sets line spacing to Once the line spacing has been changed by this sequence, made until line spacing is changed by code sequences ESC 1, ESC 2, ESC 3 n, ESC A n or ESC + n.
  • Page 109 Note that changing the line spacing also changes the number of lines per page. Changing the line spacing does not affect the current tab stops or form length. Example 10 REM 20 LPRINT CHR$(27);"0" 30 LPRINT "these two lines are printed with" 40 LPRINT "a spacing of 1/8 inch"...
  • Page 110: Variable Line Spacing N/180 Or N/216 Inch

    Variable Line Spacing n/180 Inch or n/216 Inch Variable Line Spacing n/60 Inch or n/72 Inch Variable Line Spacing n/360 Inch Data Structure ASCII ESC "3" hex. dec. ASCII ESC "A" hex. dec. ASCII ESC "+" hex. dec. – Description When the printer receives this code sequence it sets the line feed pitch to (24 needle version) or to must be in the range of 0 to 255.
  • Page 111 Example 10 REM 20 FOR N= 20 TO 40 STEP 10 30 LPRINT CHR$(27);"3";CHR$(N) 40 LPRINT "these two lines are printed with" 50 LPRINT "a spacing of";N;"/180 inches" 60 NEXT 70 END 10 REM 20 FOR N= 20 TO 40 STEP 10 30 LPRINT CHR$(27);"3";CHR$(N) 40 LPRINT "these two lines are printed with"...
  • Page 112: Character Styling

    Character Styling Super-/Subscript Mode ON Super-/Subscript Mode OFF Data Structure ASCII ESC "S" hex. dec. ASCII ESC "T" hex. dec. – Description This code sequence switches the printer to superscript or subscript mode. The printer is switched to superscript mode when 0 (hex.00 or hex.30) is set for n, and to subscript mode when 1 (hex.01 or hex.31) is set.
  • Page 113 Example 10 REM LPRINT "E=M*C"; LPRINT CHR$(27);"S";CHR$(0); LPRINT "2"; LPRINT CHR$(27);"T"; LPRINT " is Einsteins most famous formula." LPRINT "H"; LPRINT CHR$(27);"S";CHR$(1);"2";CHR$(27);"T"; LPRINT "O is simply water." 100 END Character Styling superscript and subscript...
  • Page 114: Double Strike

    Double Strike ON Double Strike OFF Data Structure ASCII ESC "G" hex. dec. ASCII ESC "H" hex. dec. – Description This code sequence switches the printer to double strike mode. In double strike mode characters are printed in two printing passes at the same horizontal position; thus print appears thicker and fuller.
  • Page 115: Select Font And Pitch By Point

    Select Font and Pitch by Point Data Structure ASCII ESC "X" hex. dec. Description Valid values: 5 ≤ m ≤ 127 0 ≤ n ≤ 255 0 ≤ n ≤ 127 Selects the pitch and point attributes for scalable fonts. Pitch: m = 0 m = 1...
  • Page 116 Not all printer fonts are scaleable. Please refer to the printer’s reference manual which STOP fonts are supported. Scaleable fonts can only be printed in one quality (LQ). Points: Following point sizes (1/72 inch) are available: 8, 10 (10.5), 12, 14, 16, 18, 20 (21), 22, 24, 26, 28, 30, 32 Pitch: Previously set pitch settings will be cancelled.
  • Page 117: Print Quality

    Print Quality Data Structure ASCII ESC "x" hex. dec. Description Valid values for n are either ASCII Code 0 and 1 (hex00 and hex.01) or ASCII characters "0" and "1" (hex.30 and hex.31). Example 10 REM print quality 20 LPRINT CHR$(27);"x1";"This is high print quality " 30 LPRINT CHR$(27);"x0";"and this is draft print quality."...
  • Page 118: Font Type Selection

    Font Type Selection Data Structure ASCII ESC "k" hex. dec. Description Corresponding to the value specified for n, one of the printer’s internal fonts or a font of an optional font card is selected. Please refer to the printer’s reference manual which fonts are supported by your printer type.
  • Page 119 Example REM font selection LPRINT CHR$(27);"x1"; : REM high print quality FOR i=0 TO 9 LPRINT CHR$(27);"k";CHR$(i); LPRINT "This is the font selected with ";i" NEXT i Character Styling...
  • Page 120 Typestyle Selection Data Structure ASCII ESC "q" hex. dec. Description This sequence selects normal typestyle, outline typestyle, shaded typestyle or shaded out- line typestyle. All the characters of the extended EPSON character set with the exception of the characters hex.B0 to hex.DF (dec.176...dec.233), hex.F4 (dec.244) and hex.F5 (dec.245) can be printed in the selected typestyle.
  • Page 121: Emphasized Mode

    Emphasized Mode ON Emphasized Mode OFF Data Structure ASCII ESC "E" hex. dec. ASCII ESC "F" hex. dec. – Description This code sequence switches the printer to emphasized mode. During printing in emphasized mode, each character is printed twice, slightly shifted in horizontal direction.
  • Page 122: Underline Mode

    Underline Mode Data Structure ASCII ESC "-" hex. dec. Description This code sequence switches the automatic underline function ON or OFF. When the automatic underline function is ON, all printed characters including spaces are automat- ically underlined. The automatic underline function is ON when 1 is specified for n, and is OFF when 0 is specified.
  • Page 123: Score Selection

    Score Selection Data Structure ASCII ESC "(" hex. dec. Description This Escape sequence switches on and off the underscore, overscore and strike-through modes. The lines can be single or double, broken or continuous. = loc = type loc (n The parameter n The following values are avaiable: (hex.01) (hex.02)
  • Page 124 Example REM Score Selection LPRINT CHR$(27);"(-";CHR$(3);CHR$(0);CHR$(1);CHR$(1);CHR$(2); LPRINT "1. Underline - Double continous line" LPRINT CHR$(27);"(-";CHR$(3);CHR$(0); CHR$(1);CHR$(2);CHR$(2); LPRINT "2. Strike through and Underline - Double continous line" REM cancel strike through - double continous line LPRINT CHR$(27);"(-";CHR$(3);CHR$(0);CHR$(1);CHR$(2);CHR$(0); LPRINT CHR$(27);"(-";CHR$(3);CHR$(0);CHR$(1);CHR$(2);CHR$(1); LPRINT "3. Strike through - Single continous line and" 100 LPRINT "...
  • Page 125: Italic Mode

    Italic print mode set by ESC 4 or ESC ! (Master Select) is reset. Italic mode can be used in all print qualities (DPQ, NLQ, LQ). Example LPRINT CHR$(27);"4"; GOSUB 70 LPRINT CHR$(27);"5"; GOSUB 70 LPRINT "Matrix Printer" RETURN Character Styling italic mode ON italic mode OFF italic mode ESC 4 ESC 5 –...
  • Page 126: Print Mode Selection

    Print Mode Selection Data Structure ASCII ESC "!" hex. dec. Description This code sequence allows simultaneous control of print features like the character size and attributes characters. By this code sequence several print features can be simulta- neously set via the value of n. This command can also be used to reset all character sty- ling features or to reset the printer to standard Pica font type by specifying n=0.
  • Page 127 Pica Pica italic Pica underlined Pica italic underlined Elite Elite italic Elite underlined Elite italic underlined Character Styling Stan- Con- dard densed larged - normal - emphas. – - double - em./double – - normal - emphas. – - double - em./double –...
  • Page 128 Example 10 REM print mode selection 20 LPRINT CHR$(27);"D";CHR$(40);CHR$(0); 30 FOR N = 0 TO 255 STEP 7 40 LPRINT CHR$(27);"!";CHR$(N); 50 LPRINT "Matrix Printer";CHR$(9);CHR$(27);"!";CHR$(0);N 60 NEXT N 70 END Character Styling...
  • Page 129: Double Height

    Double Height Data Structure ASCII ESC "w" hex. dec. Description By means of this code sequence the characters of the subsequent text are specified with double height. ESC w followed by n=1 (hex.01 or hex.31) sets double height printing. To reset the double height to the normal height, specify n=0 (hex.00 oder hex.30).
  • Page 130: Print Positioning

    Print Positioning Horizontal Tab Stops Data Structure ASCII ESC "D" hex. dec. ASCII ESC "D" hex. dec. – Description This code sequence is used for setting or clearing horizontal tab stops. It replaces all previous tab stops and can be used to set a maximum of 32 tab stops. For example, CHR$(27);"D";CHR$(1);CHR$(11);CHR$(21);CHR$(0);...
  • Page 131 When the printer is switched on or ESC @ is sent, horizontal tab stops are set at every eight position (9, 17, 25, etc.). Example LPRINT CHR$(27);"D";CHR$(0) :REM clear old tabs LPRINT CHR$(27);"D";CHR$(10);CHR$(20);CHR$(30);CHR$(0); LPRINT CHR$(18);:REM 10 cpi LPRINT "123456789012345678901234567890123456789" GOSUB 120 LPRINT CHR$(14);:REM double width GOSUB 120 LPRINT CHR$(15);:REM condensed...
  • Page 132 Set Horizontal and Vertical Step Width Data Structure ASCII ESC "e" hex. dec. ASCII ESC "e" hex. dec. – Description This sequence sets the horizontal step width n according to the current character den- sity. When an HT command is received, a horizontal tab stop is carried out. The following maximum values apply for n: 21 (Pica) 25 (Elite)
  • Page 133: Horizontal And Vertical Step Forward

    Horizontal and Vertical Step Forward Data Structure ASCII ESC "f" hex. dec. ASCII ESC "f" hex. dec. – Description At the next print position n spaces without carriage return (CR) are inserted. As soon as this command is received, all data in the buffer are printed. This command is igno- red when justification is activated.
  • Page 134: Absolute Horizontal Step

    Absolute Horizontal Step Data Structure ASCII ESC "$" hex. dec. Description This code sequence moves the print head to an absolute print position independent of the current character density. The positioning is in increments of on from the left hand margin is then calculated as: (n The value specified for n must be in the range of 0 to 3.
  • Page 135 Example absolute horizontal position LPRINT CHR$(27);"x1";:REM select LQ LPRINT CHR$(27);"$";CHR$(10);CHR$(0);"10"; LPRINT CHR$(27);"$";CHR$(100);CHR$(0);"100"; LPRINT CHR$(27);"$";CHR$(170);CHR$(0);"170"; LPRINT LPRINT CHR$(27);"W1"; LPRINT CHR$(27);"$";CHR$(10);CHR$(0);"10"; LPRINT CHR$(27);"$";CHR$(100);CHR$(0);"100"; 100 LPRINT CHR$(27);"$";CHR$(170);CHR$(0);"170"; 110 LPRINT 120 END Print Positioning...
  • Page 136: Relative Horizontal Step

    Relative Horizontal Step Data Structure ASCII ESC "\" hex. dec. Description This code sequence moves the print head to a relative print position without regard to the current character density. This print position is calculated according to the formula + 256 ∗ n ⁄...
  • Page 137 = 480 MOD 256 = dec.224 = hex.E0 Movement of = 65536 - 1.67 = 65336 = INT ( = dec.255 = hex.FF = 65336 MOD 256 = dec.56 = hex.38 Note that you obtain the same result by using the formula given for calculating n for absolute horizontal step (see sequence ESC $).
  • Page 138: Vertical Tab Stops

    Vertical Tab Stops Data Structure ASCII ESC "B" hex. dec. ASCII ESC "B" hex. dec. – Description By means of this code sequence a maximum of 16 vertical tab stops can be set. For example, CHR$(27);"B";CHR$(1);CHR$(11);CHR$(21);CHR$(0); sets vertical tab stops at lines 1, 11 and 21, line 1 being the first line of the page. Tab stops are set in those positions which are specified by character codes following ESC B.
  • Page 139 When the printer is switched on no vertical tab stops are set. Example LPRINT CHR$(27);"C";CHR$(10);:REM set form length LPRINT CHR$(27);"B";CHR$(0);:REM clear all vtabs LPRINT CHR$(27);"B";CHR$(3);CHR$(5);CHR$(9);CHR$(0); LPRINT CHR$(11);"this is the first LPRINT CHR$(11);"this is the second vertical tab, line 5" LPRINT CHR$(11);"this is the third Print Positioning vertical tabs vertical tab, line 3"...
  • Page 140: Set/Reset Vertical Tabs In Channels

    Set/Reset Vertical Tabs in Channels Select Vertical Tab Channel Data Structure ASCII ESC "b" hex. dec. ASCII ESC "b" hex. dec. ASCII ESC "/" hex. dec. – Description Up to 16 vertical tabs for one channel <m> can be set. the number of tab channels m ranges from 0 to 7.
  • Page 141 Example REM vertical tabs in tab channels LPRINT CHR$(27);"C";CHR$(24); LPRINT CHR$(27);"b";CHR$(0);CHR$(2);CHR$(4);CHR$(6);CHR$(0) REM Channels 0 tabs set at lines 2, 4, and 6 LPRINT CHR$(27);"b";CHR$(1);CHR$(9);CHR$(11);CHR$(14);CHR$(0); REM Channel 1 tabs set at lines 9, 11, and 14 LPRINT CHR$(27);"/";CHR$(0); REM Selects channel 0 LPRINT "Channel 0"...
  • Page 142: Set Absolute Vertical Print Position

    Set Absolute Vertical Print Position Data Structure ASCII ESC "(" hex. dec. Description Valid values: = 2, n 0 ≤ m ≤ 255; 0 ≤ m Defines the vertical print position in units previously defined with the sequence ESC ( U (see page 62).
  • Page 143: Set Relative Vertical Print Position

    Set Relative Vertical Print Position Data Structure ASCII ESC "(" hex. dec. Description Valid values: = 2, n 0 ≤ m ≤ 255; 0 ≤ m Defines the vertical print position relatively up and down in units previously defined with the sequence ESC ( U (see page 62).
  • Page 144 ⁄ The default unit for this sequence is ". Only positions within a valid form can be achieved. The current position is base for the newly defined relative positions. Positions exceeding the defined top margin will be ignored. Positions below bottom margin will a) eject paper (single sheet) and b) set new position to top of form at next page.
  • Page 145: Set Unit

    Set Unit Data Structure ASCII ESC "(" hex. dec. Description Valid values: = 1, n m = 10, 20, 30, 40, 50, 60 Sets the units to Following commands are using this unit: ESC ( V The default values of these sequences is defined at Print Positioning "U"...
  • Page 146: Graphics

    Graphics Graphics 60 dpi Graphics 120 dpi High Speed Graphics 120 dpi Graphics 240 dpi Graphic Modes Data Structure ASCII ESC "K" hex. dec. ASCII ESC "L" hex. dec. ASCII ESC "Y" hex. dec. ASCII ESC "Z" hex. dec. ASCII ESC "...
  • Page 147 Special ESC * <m> ... 8 Point -Sequences Sequences ESC K... ESC * <0>... ESC L... ESC * <1>... ESC Y... ESC * <2>... ESC Z... ESC * <3>... – ESC * <4>... – ESC * <5>... – ESC * <6>... –...
  • Page 148 Relationship between bits of graphics data and needles (9 needle version) Each needle in a column is assigned a bit of the data byte. Needle Data Byte 1 • Bit 7 • Bit 6 • Bit 5 • Bit 4 •...
  • Page 149 Graphics and text can be mixed within one line. If image data, lying outside the printable area, are input these data are ignored. Example REM bit image print WIDTH "LPT1:",255 FOR i=0 TO 4: LPRINT "Mode: ";STR$(i) LPRINT CHR$(27);"*";CHR$(i);CHR$(254);CHR$(0); FOR j=1 TO 127 LPRINT STRING$(1,64+16+4+1);STRING$(1,128+32+8+2);...
  • Page 150: Select Graphics Mode

    Select Graphics Mode Data Structure ASCII ESC "(" hex. dec. Description Valid values: m = 1, 49 Enters graphics mode. Prepares printer for the sequence ESC . (see page 76). Following sequences are valid after entering graphics mode: ESC ( c ESC ( C ESC ( V ESC ( v...
  • Page 151 The graphics mode can be exited with sequence ESC @ (see page 114). In this mode text and graphics cannot be mixed on the same page. This sequence does not allow text and user defined character printing. Vertical and horizontal tab settings are cleared. Graphics...
  • Page 152: Graphics Mode Reassignment

    Graphics Mode Reassignment Data Structure ASCII ESC "?" hex. dec. Description This code sequence redefines one of the four alternate bit image codes ESC K, ESC L, ESC Y or ESC Z as one of the bit density numbers used with the ESC * <m>... code sequence.
  • Page 153 Example REM Reassigns graphics sequence LPRINT CHR$(27);"K";CHR$(60);CHR$(0); REM Standard ESC K graphics sequence FOR X=1 TO 60:REM LPRINT CHR$(255);:REM NEXT X:LPRINT LPRINT CHR$(27)"?K";CHR$(3) REM Reassigns ESC K to quadruple density LPRINT CHR$(27)"K";CHR$(60);CHR$(0); 100 FOR Z=1 TO 60:REM 110 LPRINT CHR$(255);CHR$(255);CHR$(255); 130 NEXT Z 140 END Graphics...
  • Page 154: Graphics Printing With 9 Print Dots

    Graphics Printing with 9 Print Dots Data Structure ASCII ESC "^" hex. dec. Description With this Escape sequence, graphics printing with 9 print dots per dot row is selected. For each row of dots two graphics bytes are required. The first byte controls the upper eight print dots and the second controls only the lowest print dot.
  • Page 155 Example for the calculation of n1 and n2: The number of graphics bytes is 80. = number of bytes divided by 256 ⁄ = dec.0 = hex.00 = remainder from division of n = dec.80 = hex.50 Graphics and text data can be used in combination in a line. For 9-print-dots-graphics-printing, two graphics bytes must be transferred per column.
  • Page 156: Download Character Generator

    Download Character Generator General Your printer offers you the possibility to design your own characters in normal print mode (DPQ), in NLQ, NLQ proportional, LQ and LQ proportional. These characters can either represent modified characters of the printer’s internal character sets or can replace other characters.
  • Page 157 To define download characters it is helpful to do this in a defined way: Draft print quality or letter quality or letter quality proportional characters? Superscript or subscript character, 12 cpi or 15 cpi character (DPQ + LQ)? The desired print mode (DPQ or LQ or LQ proportional) must be selected in the printer. Load characters from ROM to RAM using ESC : if necessary.
  • Page 158: Copy Rom Into Ram

    Copy ROM into RAM Data Structure ASCII ESC ":" hex. dec. Description This Escape sequence copies the specified character set (see ESC k <n>) from ROM or from the font module to RAM. There the individual characters can be altered by the user. Example 10 REM 20 LPRINT CHR$(27);":";CHR$(0);CHR$(0);CHR$(0);...
  • Page 159: Print Raster Graphics

    Print Raster Graphics Data Structure ASCII ESC "." hex. dec. Description Valid values: c = 0 c = 1 v = 10, 20 h = 10, 20 m = 1, 8, 24 0 ≤ n ≤ 255 0 ≤ n ≤...
  • Page 160 Description of parameters: c = 0 Normal mode (not compressed) c = 1 Data Length Encoding (DLE, compressed) Vertical resolution in dpi: 360, 180 dpi Horizontal resolution in dpi: 360, 180 dpi Vertical dot count (rows of dot graphics) Horizontal dot count (columns of dot graphics) Calculating algorithm: (horizontal dot count) = INT...
  • Page 161 “a” Counter specifies the number of data bytes following: (counter byte) + 1 = (number of data bytes to follow) or (counter byte) = (number of data bytes to follow) – 1 128 ≤ (counter byte) ≤ 255 “b” Counter specifies the number of times to repeat the next byte of data: 256 –...
  • Page 162: Activate User Defined Character Set

    Activate User Defined Character Set Data Structure ASCII ESC "%" SOH hex. dec. ASCII ESC "%" NUL hex. dec. Example Example 40 REM Copy ROM CG into Download CG 50 LPRINT CHR$(27);":";CHR$(0);CHR$(0);CHR$(0); 60 REM Select Download CG 70 LPRINT CHR$(27);"%";CHR$(1); 80 LPRINT "[ \ ] ‘...
  • Page 163: Download Characters

    Download Characters The sequence for the definition of download characters receives different parameters for 9 needle and 24 needle printers. Use the data structure available for your printer. Definition of Draft Characters (9 Needle Printer) Data Structure ASCII ESC & hex.
  • Page 164 Defining Character (9 Needle Printer) Each downloaded character is defined in a matrix field of 9 rows high and 12 columns wide. It is only possible to use column 1 up to column 11. Column 12 is the space between one character and the next.
  • Page 165 Example (9 needle printer): The following example illustrates the definition of a character, the copyright symbol (a small “c” in a circle), instead of the character “@”. The evaluation of the bytes in each column is as follows: Download Character Generator =128 = 64 = 32...
  • Page 166: Attribute"A" (9 Needle Printer)

    Example 10 REM 20 LPRINT CHR$(27);"x";CHR$(0);:REM select draft print quality 30 LPRINT CHR$(27);"&";CHR$(0);"@@";CHR$(139); 40 LPRINT CHR$(56);CHR$(68);CHR$(146);CHR$(40); 50 LPRINT CHR$(130);CHR$(40);CHR$(130);CHR$(68); 60 LPRINT CHR$(56);CHR$(0);CHR$(0); 70 LPRINT CHR$(27);"%";CHR$(1);CHR$(0); 80 LPRINT "@ @ @ @ @ @ @ @ @ @" 90 END Attribute “A” (9 needle printer) Attribute “A”...
  • Page 167 Proportional Data (9 needle printer) Not all characters are the same size. “W” is considerably wider than “i”. In the proportional print mode, it is necessary to specify how much space a character takes by specifying the first and last printable columns in that character’s matrix. Seven bits of the attribute are used for specifying the print position of a character within its matrix.
  • Page 168 Just add up the values of the three parts of the byte to get the value of A. Normal = 128 Descender First column is 1 First column is 2 First column is 3 First column is 4 First column is 5 First column is 6 First column is 7 First column is 8...
  • Page 169 Normal matrix field First column is 1 Last column is 12 Total value of <A> Normal matrix field First column is 4 Last column is 9 Total value of <A> Download Character Generator = 128 = 139 = 128...
  • Page 170 Example LPRINT CHR$(27);"R";CHR$(0); LPRINT CHR$(27);":";CHR$(0);CHR$(0);CHR$(0); REM Define character into # code and 4 code LPRINT CHR$(27);"&";CHR$(0);"#$"; REM First character without descenter LPRINT CHR$(137); LPRINT CHR$(56);CHR$(68);CHR$(146);CHR$(40); LPRINT CHR$(130);CHR$(40);CHR$(130);CHR$(68); 100 LPRINT CHR$(56);CHR$(0);CHR$(0); 110 REM Second character with descender 120 LPRINT CHR$(9); 130 LPRINT CHR$(56);CHR$(68);CHR$(146);CHR$(40); 140 LPRINT CHR$(130);CHR$(40);CHR$(130);CHR$(68);...
  • Page 171: Definition Of Nlq Characters (9 Needle Printer)

    Definition of NLQ Characters (9 needle printer) The definition of NLQ characters is more comprehensive than the definition of draft char- acters, since a larger number of dots is required. User-defined NLQ characters can only be generated in the NLQ mode of the printer. Data structure ASCII ESC "&"...
  • Page 172 Definition of the Character Grid NLQ characters consist of 18 vertical dots and 12 hori- zontal dots. Within this grid every num- bered line or gap can be oc- cupied, including the lowest and the furthest right line. You should, however, leave one or two columns empty, so that neighboring charac- ters do not touch.
  • Page 173 The following example shows a user-defined arrow with the list of the individual column values (each 3 byte) which must be transferred to the printer. 1 2 3 4 5 6 7 8 9 10 11 12 Data byte 1 Data byte 2 Data byte 3 See next page for the corresponding programming example.
  • Page 174 Example 100 LPRINT CHR$(27);"x";CHR$(1); 110 LPRINT CHR$(27);"&";CHR$(0);";;"; 120 LPRINT CHR$(0);CHR$(12);CHR$(0); 130 FOR I=1 TO 36 140 READ D 150 LPRINT CHR$(0); 160 NEXT I 170 LPRINT "; ; ; ; ; ;" 180 LPRINT CHR$(27);"%";CHR$(1); 190 LPRINT "; ; ; ; ; ;" 200 LPRINT CHR$(27);"%";CHR$(0);...
  • Page 175: 24 Needle Printer

    24 needle printer Data Structure ASCII ESC "&" hex. dec. Description ...n If the download character is only being assigned one character code, specify x = y. Limitations for d print quality DPQ 10 cpi DPQ 12 cpi DPQ 15 cpi LQ 10 cpi LQ 12 cpi LQ 15 cpi...
  • Page 176 For LQ proportional only, it is necessary to define all 41 columns; column 42 should be free. All other print modes use the number of columns as defined by d Superscript and subscript characters and 15 cpi characters can be assigned needles 1 to 16.
  • Page 177 Example 10 REM LPRINT CHR$(27);"x1" LPRINT CHR$(27);"&";CHR$(0);"AA"; LPRINT CHR$(5);CHR$(30);CHR$(0); LPRINT CHR$(15);CHR$(255);CHR$(0); LPRINT CHR$(16);CHR$(0);CHR$(128); LPRINT CHR$(32);CHR$(0);CHR$(64); LPRINT CHR$(64);CHR$(0);CHR$(32); LPRINT CHR$(128);CHR$(0);CHR$(16); 100 LPRINT CHR$(0);CHR$(0);CHR$(8); 110 LPRINT CHR$(128);CHR$(0);CHR$(4); 120 LPRINT CHR$(0);CHR$(0);CHR$(2); 130 LPRINT CHR$(128);CHR$(0);CHR$(1); 140 LPRINT CHR$(0);CHR$(0);CHR$(0); 150 LPRINT CHR$(128);CHR$(0);CHR$(1); 160 LPRINT CHR$(0);CHR$(0);CHR$(0); 170 LPRINT CHR$(128);CHR$(0);CHR$(1);...
  • Page 178: Miscellaneous

    Miscellaneous Print Data as Characters Data Structure ASCII ESC "(" hex. dec. Description Valid values: 0 ≤ n ≤ 255 0 ≤ n ≤ 127 Data bytes d k = ((n x 256) + n = INT = MOD Data is ignored if no character is assigned to that character in the active character table. "^"...
  • Page 179: Printing Direction Unidirectional For One Line

    Printing Direction unidirectional for one line Set/Reset Unidirectional Printing Data Structure ASCII ESC "<" hex. dec. ASCII ESC "U" hex. dec. – Description This code sequence sets unidirectional printing mode only for one line. The printing is carried out from left to right. —...
  • Page 180: Half-Speed Printing

    Half-Speed Printing Data Structure ASCII ESC "s" hex. dec. Description With n=1 the print speed is reduced by half. The result is a lower printer noise level. With n=0 the normal print speed is set. Example LPRINT "This is full speed print in LQ mode" LPRINT CHR$(27);"s";CHR$(1);:REM LPRINT "This is half speed print in LQ mode"...
  • Page 181: Single N/180 Inch Or N/216 Inch Line Feed

    Single n/180 Inch or n/216 Inch Line Feed Single n/180 Inch or n/216 Inch Back Feed Data Structure ASCII ESC "J" hex. dec. ASCII ESC "j" hex. dec. – Description When the printer receives this code sequence it advances the paper by (24 needle printer) or by a CR (reset line pointer).
  • Page 182: Colour Selection

    Colour Selection Data Structure ASCII ESC "r" hex. dec. Description According to the value specified for n one of the subsequent colours is selected: 0 black 1 magenta 2 cyan 3 blue 4 yellow 5 red 6 green The available colours depend on the ribbon used. The ribbon used must be matched in the user menu ( tracks is used, then it is automatically switched every 60 lines between the black tracks.
  • Page 183 The relationship between colour selection sequences and the resulting colours for several ribbon cassettes is shown in the following table: selected colour black green yellow blue magenta cyan the red is made from yellow + magenta the green is made from yellow + cyan the blue is made from magenta + cyan **** Sequence is ignored...
  • Page 184: International Character Sets

    International Character Sets Data Structure ASCII ESC "R" hex. dec. Description According to the value specified for n the corresponding international character set can be selected: France Germany United Kingdom (UK) Denmark I Sweden Italy Spain I Japan Norway Denmark II Spain II Latin America Corea...
  • Page 185 Example LPRINT CHR$(27);"R";CHR$(0) ;"ASCII LPRINT CHR$(27);"R";CHR$(1) ;"FRANCE LPRINT CHR$(27);"R";CHR$(2) ;"GERMANY LPRINT CHR$(27);"R";CHR$(3) ;"UK LPRINT CHR$(27);"R";CHR$(4) ;"DENMARK I LPRINT CHR$(27);"R";CHR$(5) ;"SWEDEN LPRINT CHR$(27);"R";CHR$(6) ;"ITALY LPRINT CHR$(27);"R";CHR$(7) ;"SPAIN I 100 LPRINT CHR$(27);"R";CHR$(8) ;"JAPAN 110 LPRINT CHR$(27);"R";CHR$(9) ;"NORWAY 120 LPRINT CHR$(27);"R";CHR$(10);"DENMARK II 130 LPRINT CHR$(27);"R";CHR$(11);"SPAIN II 140 LPRINT CHR$(27);"R";CHR$(12);"LATIN AMERICA: 150 END 160 LPRINT CHR$(35);CHR$(36);CHR$(64);CHR$(91);...
  • Page 186: Character Sets

    Character Sets Data Structure ASCII ESC "t" hex. dec. Description Valid values: 0 ≤ d ≤ 3, 48 ≤ d By means of this code sequence the upper half of character code table (dec. 128 to dec. 255) can be selected. = 0 or 48 = 1 or 49 = 2 or 50...
  • Page 187 You can either register 0 - 3. Register 3 is only available in ESC/P2 mode. The command ESC ( t can be used to assign character sets to character table (d If d = 2 you cannot use user-defined characters defined previously with ESC ( t (see page 105).
  • Page 188: Assign Character Table

    Assign Character Table Data Structure ASCII ESC "(" hex. dec. Description Valid values: = 3, n 0 ≤ d ≤ 3, 48 ≤ d 0 ≤ d ≤ 255 0 ≤ d ≤ 255 Assignes the choosen character table to the register d (see page 103) can be used to activate the defined character set.
  • Page 189 Please refer to the printer’s reference manual which character sets are supported. Miscellaneous Table name Abicomp ISO 8859-1 (Latin 1) Roman 8 ISO 8859-2 (Latin 2)
  • Page 190: Input Data Control

    Input Data Control Bit 8 = 1 Input Data Control Bit 8 = 0 Input Data Control Bit 8 unchanged Data Structure ASCII ESC ">" hex. dec. ASCII ESC "=" hex. dec. ASCII ESC "#" hex. dec. Example LPRINT CHR$(27);"#"; GOSUB 90 LPRINT CHR$(27);">";...
  • Page 191: Sheet Feeder

    Sheet Feeder Data Structure ASCII ESC EM hex. dec. ASCII ESC EM hex. dec. ASCII ESC EM hex. dec. ASCII ESC EM hex. dec. ASCII ESC EM hex. dec. Description This code sequence should only be used when the sheet feeder is mounted and se- lected.
  • Page 192 Example 10 REM sheet feeder 20 LPRINT CHR$(27);CHR$(25);"1"; 30 LPRINT "This text is on a form" 40 LPRINT "from magazine one." 50 LPRINT CHR$(12);:REM form feed 60 LPRINT CHR$(27);CHR$(25);"2"; 70 LPRINT "This text is on a form" 80 LPRINT "from magazine two." 90 END Miscellaneous...
  • Page 193: Print Code Area Expansion

    Print Code Area Expansion ON Print Code Area Expansion OFF Data Structure ASCII ESC "6" hex. dec. ASCII ESC "7" hex. dec. – Description This code sequence causes the printout of the higher control codes (ASCII 128 to 159 and 255) in the form of characters and symbols instead of the repetition of the functi- ons of ASCII codes 0 to 31 and 127.
  • Page 194 Example LPRINT CHR$(27);"t1"; LPRINT CHR$(27);"6"; GOSUB 70 LPRINT CHR$(27);"7"; GOSUB 70 RESTORE FOR I = 1 TO 12 READ D 100 LPRINT CHR$(D); 110 NEXT I 120 LPRINT 130 RETURN 140 DATA 65,66,67,68,69,128,129,130,131,132,133,134 code aera expansion Miscellaneous...
  • Page 195: Activate/Deactivate Graphics Characters

    Activate/Deactivate Graphics Characters Data Structure ASCII ESC "m" <n> hex. dec. Description On receipt of this command, the ASCII codes hex.90 to hex.9F can be output as special graphics characters. Valid values for n are: n = 0 (hex.00) n = 4 (hex.04) Activate/Deactivate Direct Print Mode Data Structure ASCII...
  • Page 196: International Code Table

    International Code Table Data Structure ASCII ESC "I" hex. dec. Description The ASCII codes hex.00 to hex.1F (dec.0 to dec.31) and hex.80 to hex.9F (dec.128 to dec.159) are as a rule assigned with non-printable characters. These codes can, how- ever, be converted to printable characters using ESC I. Valid values for n are either ASCII code hex.00 and hex.01 or ASCII characters "0"...
  • Page 197: Printer Initialization

    (CR, LF) and then the ESC @ sequence. Example LPRINT CHR$(27);"l";CHR$(10):REM set left margin LPRINT CHR$(27);CHR$(15):REM set condensed LPRINT CHR$(27);"G":REM set NLQ LPRINT CHR$(27);"S1";:REM set subscript GOSUB 90 LPRINT CHR$(27);"@"; GOSUB 90 100 LPRINT "Matrix Printer" 110 LPRINT:LPRINT 120 END Miscellaneous printer initialization initialization ESC @...
  • Page 198: Activate Paper End Sensor

    Activate Paper End Sensor Deactivate Paper End Sensor Data Structure ASCII ESC "8" hex. dec. ASCII ESC "9" hex. dec. – Description This sequence deactivates the paper end sensor, so that a cut sheet can be printed all the way to the bottom. With the sheet feeder activated this command is ignored. —...
  • Page 199: Control Codes

    Control Codes BEL (hex.07) Sounds acoustic signal. (dec.7) (hex.08) Print contents of line buffer, then move the print head one position back. When auto right (dec.8) justification is selected by code sequence ESC a<3>, <BS> will be ignored. CAN (hex.18) When the printer receives this code, the print buffer is deleted.
  • Page 200 DEL (hex.7F) Clear previous characters in the print buffer. (dec.127) ESC (hex.1B) Start character for a subsequent program sequence. (dec.27) (hex.0C) When the printer receives this code, it prints the data in the print buffer, then advances (dec.12) the paper from the current print position to the top-of-form position on the next page. The next line is beginning at the left margin.
  • Page 201 SOH (hex.01) Start Of Heading. (dec.01) (hex.20) Space (dec.32) (hex.0B) When the printer receives this code, it prints the data in the print buffer and then advances (dec.11) the paper to the next vertical tab stop position. The next character is printed in the column following the last print position, if no CR is transmitted.
  • Page 202: Appendix A Summary Of Possible Codes

    Appendix A Summary of Possible Codes...
  • Page 203: Sorted By Sequences

    Sorted by sequences Sequence ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔...
  • Page 204 Sequence ✔ ✔ ✔ ESC * <5><n1><n2> ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC * <6><n1><n2> ✔ ✔ ✔ ESC * <7><n1><n2> ESC * <32> <n1> <n2> ESC * <33> <n1> <n2> ESC * <38> <n1> <n2> ESC * <39> <n1> <n2> ESC * <40>...
  • Page 205 Sequence ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC 0 ✔ ✔ ✔ ESC 1 ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC 2 ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC 3 <n> ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC 4 ✔...
  • Page 206 Sequence ESC g ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC H ✔ ✔ ✔ ESC I <n> ✔ ESC i ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC J <n> ✔ ESC j <n> ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC K <n1>...
  • Page 207 Sequence ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC SP <n> ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC T ESC t <0> ESC t <1> ESC t <2> ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ESC U <n> ✔...
  • Page 208: Sorted By Functions

    Sorted by Functions Function absolute horizontal step ASCII character 0 assign character table back feed n/216 inch bell character density 10 cpi (Pica) character density 12 cpi (Elite) character density 15 cpi character set selection character spacing clear all horizontal tab stops clear all tab settings color selection condensed print...
  • Page 209 Function form feed form length in inches form length in lines graphics 120 dpi graphics 120 dpi graphics 120 dpi graphics 120 dpi graphics 144 dpi graphics 180 dpi graphics 240 dpi graphics 240 dpi graphics 360 dpi graphics 60 dpi graphics 60 dpi graphics 60 dpi graphics 72 dpi...
  • Page 210 Function national character set selection paper end sensor, activation paper end sensor, deactivation perforation skip print ASCII codes 128 to 159 print data as characters print mode selection print raster graphics print quality printer initialization printout of control codes proportional spacing ON/OFF reassign graphics mode relative horizontal step reset all vertical tab stops...
  • Page 211 Function set unit sheet feeder Space super/subscript mode OFF super/subscript mode ON suppress ASCII codes 128 to 159 typestyle selection underline mode ON/OFF unidirectional printing for one line unidirectional printing ON/OFF variable line spacing n/360 inch vertical tab vertical tab channel selection vertical tab stops vertical tab stops in channels A-10...
  • Page 212: Appendix B Character Sets

    Appendix B Character Sets...
  • Page 213 The following character sets can be selected via control panel or by Escape sequences, which correspond to the selected emulation mode. The following example shows you how to find the hexadecimal value for a character from the character set table. Character Sets ASCII "B"...
  • Page 214: Standard Character Set

    Standard Character Set Character Sets...
  • Page 215: International Substitution Table - Normal Font

    International Substitution Table - normal font US ASCII French German Danish I Swedish Italian Spanish I Japanese Norwegian Danish II Spanish II L.American Character Sets...
  • Page 216: International Substitution Table - Italic Font

    International Substitution Table - italic font US ASCII French German Danish I Swedish Italian Spanish I Japanese Norwegian Danish II Spanish II L.American Character Sets...
  • Page 217: Graphics Character Set

    Graphics Character Set Character Sets...
  • Page 218: Standard Character Set, Extended

    Standard Character Set, extended Character Sets...
  • Page 219: Graphics Character Set, Extended

    Graphics Character Set, extended Character Sets...
  • Page 220 International Code Table Character Sets...
  • Page 221 International Code Table, extended B-10 Character Sets...
  • Page 222: Table Of Character Width For Proportional Printing

    Table of Character Width for Proportional Printing On the following pages you will find tables of character widths for proportional printing. The characters are represented by the printout, the decimal and the hexadecimal value. Characters without decimal and hexadecimal codes are international characters or graphics.
  • Page 223 Proportional width during scaleable font mode The values of the character widths are depending on the selected point size at your printer. The width of the scaleable fonts are based on the width of a proportional 10.5 point character. Calculate the width as follows: Example for a 24 point "0"...
  • Page 224 24 Needle Printer Code Width Char. ⁄ " hex. dec. 30/20 18/12 30/20 30/20 30/20 36/24 36/24 18/12 24/16 24/16 30/20 30/20 18/12 30/20 18/12 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 18/12 Code Width Char. ⁄...
  • Page 225 Code Width Char. ⁄ hex. dec. 36/24 30/20 30/20 24/16 36/24 36/24 42/28 30/20 36/24 30/20 24/26 18/12 24/16 30/20 36/24 36/24 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 18/12 18/12 B-14 Character Sets Code Width Char. " hex.
  • Page 226 Code Width Char. ⁄ " hex. dec. Code Width Char. ⁄ " hex. dec. 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 30/20 Code Width Char. ⁄ " hex. dec. 24/16 30/20 36/24 36/24 30/20 30/20...
  • Page 227 9 Needle Printer Code Width Character ⁄ hex. dec. B-16 Character Sets Code Character " hex. dec. Code Width Character ⁄ " hex. dec. Width ⁄ "...
  • Page 228 Code Width Character ⁄ " hex. dec. – Code Character Width ⁄ " hex. dec. italic graph. Code Character Width ⁄ " hex. dec. italic graph. 12/12 10/8 10/10 12/11 11/11 12/12 12/12 5/12 8/12 8/12 12/12 12/12 8/12 12/5 7/12 10/12 12/12...
  • Page 229 Code Character Width ⁄ hex. dec. italic graph. 11/12 12/12 12/12 11/12 8/12 9/12 10/12 11/12 9/12 11/12 12/12 12/12 12/12 12/12 12/12 12/12 12/12 12/12 12/12 10/12 12/12 12/12 10/12 12/12 12/12 12/12 12/12 B-18 Character Sets Code Character "...
  • Page 230 “All rights reserved. Translations, reprinting or copying by any means of this manual complete or in part or in any different form requires our explicit approval. We reserve the right to make changes to this manual without notice. All care has been taken to ensure accuracy of information contained in this manual. However, we cannot accept responsibility for any errors or damages resulting from errors or inaccuracies of information herein.”...
  • Page 231 Programmer’s Reference Tally ANSI (MTPL) Emulation...
  • Page 232 Table of Contents Description of MTPL-Sequences Introduction ........2 Paper and Text Formatting Form Length .
  • Page 233 Line Spacing ........24 Vertical Spacing (SVS) ......24 Line Density 6 lpi .
  • Page 234 Horizontal Tab Stop ......45 Set Horizontal Tab Stop at Current Position ....45 Horizontal Tab Stops ON .
  • Page 235 Color Selection (Option) ......72 Input Data Control ......74 Sheet Feeder/Paperway .
  • Page 236: Index

    Appendix A Summary of Possible Codes Sorted by Sequences ......A-2 Sorted by Functions ......A-8 Appendix B Character Sets Standard Character Set .
  • Page 237: Description Of Mtpl-Sequences

    Description of MTPL-Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Miscellaneous...
  • Page 238 Introduction Regardless of the specific MTPL sequences of your printer, this User’s Manual describes the sum of all MTPL sequences and control codes. The only differentiation is made be- tween 9 and 24 needle printers as well as the maximum possible paper width of 8 inches (80 column printer) or 13.6 inches (132 column printer).
  • Page 239: Introduction

    CSI means “Control Sequence Introducer” and is described by the code 9B (hex.) or ESC [ : 7-Bit-environment 8-Bit-environment It is sensible to use only ESC [ as “Control Sequence Introducer” if MTPL is used STOP associated with any other printer emulation. The last character (in the following example t) specifies the function of the sequence.
  • Page 240 Character explanation and symbol description Lower case “ ” Informations Sequence only applies for 9 needle printer Sequence only applies for 24 needle printer In the following you will find an example for a MTPL sequence with a Basic programming example: Set to a form length of 72 lines: MTPL-Sequence...
  • Page 241: Paper And Text Formatting

    Paper and Text Formatting Form Length Data Sructure ASCII CSI n hex. dec. 155 n Description PUM turned OFF: n = 1...132 lines at a line spacing of = 1...176 lines at a line spacing of This MTPL-sequence sets the form length to n times the current line feed pitch (in in- ches).
  • Page 242 Example LPRINT CHR$(27);"[4t"; FOR F=1 TO 2 FOR L=1 TO 3 LPRINT "length 4:form";F;" NEXT L:LPRINT CHR$(12);:NEXT F LPRINT LPRINT CHR$(27);"[3t"; FOR F=1 TO 3 100 FOR L=1 TO 2 110 LPRINT "length 3:form";F;" 120 NEXT L:LPRINT CHR$(12);:NEXT F 130 END Paper and Text Formatting form length line";L...
  • Page 243: Turn On Positioning Unit Mode (Sm)

    Turn ON Positioning Unit Mode (SM) Turn OFF Positioning Unit Mode (RM) Data Structure ASCII CSI "1" hex. dec. 155 49 ASCII CSI "1" hex. dec. 155 49 Description PUM = Positioning Unit Mode This mode decides, wether positioning commands or functions that deal with horizontal or vertical position parameters, have characters and line positions as parameters or some fixed units defined by the SSU control function (Select Size Unit, see the following sequence).
  • Page 244: Select Size Unit (Ssu)

    Select Size Unit (SSU) Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are available: hex. dec. This unit is machine dependent and may be of different size horizontally and vertically. Page printers support typically 200, 300 or 600 dpi, matrix printers e.g. 180 or 360 dpi. Example: 1B 55 results in one inch...
  • Page 245: Set Top And Bottom Margin

    Set Top and Bottom Margin Clear Top and Bottom Margin Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI "r" hex. dec. 155 114 Description specifies the value of the top margin specifies the value of the bottom margin = 1...132 lines at a line spacing of = 1...176 lines at a line spacing of Examples:...
  • Page 246 Example LPRINT CHR$(27);"[6t";:REM form length LPRINT CHR$(27);"[2;5r":REM set margins FOR F=1 TO 2 FOR L=2 TO 5 LPRINT "form";F;" NEXT L:NEXT F LPRINT LPRINT CHR$(27);"[0;0r";:REM clear margins 100 FOR F=1 TO 2 110 FOR L=1 TO 6 120 LPRINT "form";F;" 130 NEXT L:NEXT F 140 END Paper and Text Formatting...
  • Page 247: Set Left And Right Margin

    Set Left and Right Margin Clear Left and Right Margin Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI "s" hex. dec. 155 115 Description specifies the value of the left margin specifies the value of the right margin Values for n (136 column printer) set in the printer menu.
  • Page 248 If only one margin is changed, the other margin will be reset to default value. If there are any logical problems (for example, left margin > right margin), the sequence is ignored. Example 10 REM 20 WIDTH "LPT1:",255 30 LPRINT CHR$(27);"[10;53s"; 40 LPRINT "Now the left margin is set to column 10 and the ";...
  • Page 249: Set Line Limit (Sll)

    Set Line Home (SLH) Set Line Limit (SLL) Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI n hex. dec. 155 n Description n = 1...maximal print area Default setting: Physical left margin of medium or device. n specifies the left margin. The first position is 1. The unit depends on PUM (Positioning Unit Mode) and is either characters or defined by SSU (Select Size Unit, see page 8).
  • Page 250: Right Justification On

    Right Justification ON Centering ON Right Justification and Centering OFF Right Justification and Centering OFF Data Structure ASCII CSI n hex. dec. 155 n Description For n the following characters are available: hex. 31 30 Leading blanks will not be corrected. Blanks at line end will be ignored. The text is centered between the active margins.
  • Page 251: Character Spacing

    Character Spacing Spacing Increment (SPI) Data Structure ASCII CSI n hex. dec. 155I n Description specifies the line spacing specifies the character spacing The unit is expressed in decipoints or other units defined by SSU (Select Size Unit, see page 8). For this note also the sequence “Set Line Spacing (SLS)”...
  • Page 252: Horizontal Spacing

    Horizontal Spacing Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are available: hex. 31 31 31 32 10* cpi in this sequence means higher horizontal resolution of the printed characters (emphasized printing), but lower print speed. Various character densities can also be used within one line.
  • Page 253 Example LPRINT CHR$(27);"[4wthis is 10 cpi, "; LPRINT CHR$(27);"[12wthis is 10 cpi (high resolution), " LPRINT CHR$(27);"[5wthis is 12 cpi, "; LPRINT CHR$(27);"[6wthis is 15 cpi, "; LPRINT CHR$(27);"[7wthis is 17.1 cpi, "; LPRINT CHR$(27);"[11wthis is 20 cpi, " LPRINT CHR$(27);"[0wthis is 5 cpi, "; LPRINT CHR$(27);"[1wthis is 6 cpi, "...
  • Page 254: Horizontal Character Spacing (Shs)

    Horizontal Character Spacing (SHS) Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are available: hex. dec. With this sequence the horizontal character spacing is defined. The change of the character dimensions is implementation dependent. Character Spacing "K"...
  • Page 255: Character Spacing (Scs)

    Character Spacing (SCS) Data Structure ASCII CSI n hex. dec. 155 n Description specifies the character spacing The unit is either decipoints or depends on the SSU selection (Select Size Unit, see page 8). The character size will not be changed. "g"...
  • Page 256: Additional Character Spacing (Sacs)

    Additional Character Spacing (SACS) Data Structure ASCII CSI n hex. dec. 155 n Description specifies the additional character spacing The units are either decipoints or defined by SSU (Select Size Unit, see page 8). This function enlarges the inter character spacing. The function will typically be used with proportional spacing to get effects like “spaced out”...
  • Page 257: Reduced Character Spacing (Srcs)

    Reduced Character Spacing (SRCS) Data Structure ASCII CSI n hex. dec. 155 n Description specifies the reduced character spacing The units are either decipoints or defined by SSU (Select Size Unit, see page 8). This function reduces the inter character spacing. The function will typically be used with proportional spacing to get special effects like e.g.
  • Page 258: Horizontal Motion Index (Hmi)

    Horizontal Motion Index (HMI) Data Sructure ASCII hex. dec. Description n = 0...20 The normal character density is enlarged by n HMI is disabled. Example 10 REM 20 LPRINT "this is normal width" 30 LPRINT CHR$(27);"[3p"; 40 LPRINT "now 3/120 inch is added to normal width" 50 LPRINT CHR$(27);"[6p";...
  • Page 259: Horizontal Step (Microspace)

    Horizontal Step (Microspace) Data Structure ASCII CSI n hex. dec. 155 n Description n = 1...255 The space between characters is enlarged by n Examples: CSI q CSI 10 q Example 10 REM 20 LPRINT "in the word ‘hori"; 30 LPRINT CHR$(27);"[20q"; 40 LPRINT "zontal‘...
  • Page 260: Line Spacing

    Line Spacing Vertical Spacing (SVS) Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are available: hex. dec. Note that changing the line spacing also changes the number of lines per page. Changing of line spacing does not affect the form length set before hand. Line Spacing "L"...
  • Page 261: Line Density 6 Lpi

    Line Density 6 lpi Line Density 8 lpi Data Structure ASCII CSI "3" hex. dec. 155 51 ASCII CSI "4" hex. dec. 155 52 Description These sequences set the line spacing to density). Note that changing the line spacing also changes the number of lines per page. Changing of line spacing does not affect the current vertical tab stops or form length.
  • Page 262: Set Line Spacing (Sls)

    Set Line Spacing (SLS) Data Structure ASCII CSI n hex. dec. 155 n Description specifies the line spacing The unit is either decipoints or depends on the SSU selection (Select Size Unit, see page 8). Note also the sequence SPI (Spacing Increment, see page 15). Line Spacing "h"...
  • Page 263: Character Styling

    Character Styling Superscript ON Subscript ON Microscript ON Super-/Sub-/Microscript OFF Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are availble: hex. 31 30 These sequences switch the printer to superscript, subscript or microscript mode. The subsequent characters are printed with about or subscript characters are underlined, the underline character is printed at its normal position.
  • Page 264 Example LPRINT "E=M*C"; LPRINT CHR$(27);"[0z"; LPRINT "2"; LPRINT CHR$(27);"[2z"; LPRINT " is Einsteins most famous formula." LPRINT "H"; LPRINT CHR$(27);"[1z";"2";CHR$(27);"[2z"; LPRINT "O is simply water." 100 LPRINT "Micro";CHR$(27);"[10zscript";CHR$(27);"[2z"; 110 LPRINT "is printed in the base line" 120 END Character Styling super/sub/microscript...
  • Page 265: Double Height On (Upper Half)

    Double Height ON (Upper Half) Double Height ON (Lower Half) Double Height OFF Data Structure ASCII CSI "1" hex. dec. 155 49 ASCII CSI "1" hex. dec. 155 49 ASCII CSI "2" hex. dec. 155 50 Description The same character must be sent to both lines to form a full character. Afterwards double height must be reset.
  • Page 266 Example LPRINT "For ";CHR$(27);"[12zHeadlines ";CHR$(27);"[2z"; LPRINT "printing in double" LPRINT CHR$(27);"[13z LPRINT "height is recommended" Character Styling double height Headlines";CHR$(27);"[2z"...
  • Page 267: Print Quality

    Print Quality Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI n hex. dec. 155 n Description This sequence defines the print quality. Print throughput changes with the print quality. For n the following parameters are available: (printer menu setting is valid) hex.
  • Page 268 Example 10 REM 20 LPRINT CHR$(27);"[0yThis is draft quality "; 30 LPRINT CHR$(27);"[1yand this is NLQ printing." 40 LPRINT CHR$(27);"[5yThis is NLQ with 12 cpi." 50 END Character Styling print quality...
  • Page 269: Select Typestyle

    Select Typestyle Data Structure ASCII CSI n hex. dec. 155 n Description This sequence defines the typestyle. For n the following parameters are available: hex. 31 30 31 31 31 32 31 33 31 34 31 35 31 36 31 37 31 38 31 39 Depending on the value specified for n, one of the internal printer fonts or a font of an...
  • Page 270 Example Valid for most MTPL printers. Fontregister Character Styling Font Draft NLQ Courier LQ Courier NLQ Sans Serif LQ Sans Serif LQ Roman LQ Script LQ Prestige LQ OCR-B LQ OCR-A...
  • Page 271: Emphasized Mode On

    Emphasized Mode ON Emphasized Mode OFF Data Structure ASCII CSI "=" hex. dec. 155 61 ASCII CSI ">" hex. dec. 155 62 Description During printing in emphasized mode, each dot is printed twice, slightly shifted in horizon- tal direction. Emphasized mode can be used in all print qualities and character densities. Example 10 REM 20 LPRINT CHR$(27);"[z";"this is printed in the normal mode"...
  • Page 272: Italic Mode On

    CSI n Example 10 REM 20 LPRINT CHR$(27);"[3m" 30 GOSUB 70 40 LPRINT CHR$(27);"[23m" 50 GOSUB 70 60 END 70 LPRINT "Matrix Printer" 80 RETURN Character Styling "m" [A] italic mode ON "3" "m" [A] italic mode OFF italic mode...
  • Page 273: Proportional Mode On (Sgr)

    Proportional Mode ON (SGR) Proportional Mode OFF Data Structure ASCII CSI "2" hex. dec. 155 50 ASCII CSI "2" hex. dec. 155 50 ASCII CSI "5" hex. dec. 155 53 ASCII CSI "7" hex. dec. 155 55 Description When in default font type, all characters are assigned a fixed, equally wide space. When in proportional mode, the spaces between each character are set to the actual width of the characters;...
  • Page 274 Example 10 REM 20 LPRINT CHR$(27);"[2y"; 30 LPRINT "this is an example with proportional spacing" 40 LPRINT CHR$(27);"[7y"; 50 LPRINT "this is an example with normal spacing" 60 END Character Styling proportional spacing...
  • Page 275: Underline Mode On (Sgr)

    Underline Mode ON (SGR) Underline Double Mode Underline Mode OFF Data Structure ASCII CSI "4" hex. dec. 155 52 ASCII CSI "2" hex. dec. 155 50 ASCII CSI "2" hex. dec. 155 50 Description All printed characters including spaces are automatically unerlined. Spaces between tab codes (HT) are underlined.
  • Page 276: Overline Mode On (Sgr)

    Overline Mode ON (SGR) Overline Mode OFF Data Structure ASCII CSI "5" hex. dec. 155 53 ASCII CSI "5" hex. dec. 155 53 Description This sequence switches the automatic overline function on or off. When the automatic overline function is on, all printed characters including spaces are automatically under- lined (also see SGR, Underline Mode ON, previous page 39).
  • Page 277: Double Strike On

    Double Strike ON Double Strike OFF Data Structure ASCII CSI "9" hex. dec. 155 57 ASCII CSI "8" hex. dec. 155 56 Description In double strike mode characters are printed twice in two printing passes. Double strike mode can be used in all print qualities and character densities. Double strike mode can also be used in combination with emphasized mode.
  • Page 278: Graphic Size Selection (Gss)

    Graphic Size Selection (GSS) Graphic Size Modification (GSM) Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI n hex. dec. 155 n Description specifies the hight of the used font The units are either decipoints or defined by the SSU function (Select Size Unit, see page 8).
  • Page 279: Font Designation (Fnt)

    Font Designation (FNT) Data Structure ASCII CSI n hex. dec. 155 n Description = font number 0...9 = identification (ID) of the desired font For n the following parameters are available: hex. 31 30 31 31 36 36 The first parameter (n designates one font of the whole repertory in the device.
  • Page 280 Font attributes, e.g. “bold” can be specified after designation through corresponding ESC sequences. Technical Details The use of the font designation code CSIn Font Designation CSI is 9B; you can use ESC[, 1B 5BH, instead if you wish.) Codes The parameter n This paramer can take values of 0 to 9.
  • Page 281: Print Positioning

    Print Positioning Horizontal Tab Stop Data Structure ASCII hex. dec. Description The HT-Code moves the active print position to the next horizontal tabulation stop on the same line. If there is no tab stop reachable - no more tab stops are set or the next tab stop is beyond the defined right margin - spaces are inserted.
  • Page 282: Horizontal Tab Stops Off (Tbc)

    Horizontal Tab Stops ON Horizontal Tab Stops OFF (TBC) Data Structure ASCII CSI n hex. dec. 155 n ASCII ESC "H" hex. dec. ASCII CSI n hex. dec. 155 n Description Values for n (136-column printer) set in the menu. Up to 16 tab stops can be joined in one sequence as follows: CSI n The parameters do not have to be sorted.
  • Page 283 With the sequence CSI n g for n the following parameters are available: hex. dec. function clear horizontal tab stop at current position clear all horizontal tab stops in current line clear all horizontal tab stops in all lines Examples: CSI g clear horizontal tab stop at current position CSI 3;4 g...
  • Page 284 Example 1 LPRINT CHR$(27);"[4w";:REM 10 cpi LPRINT CHR$(27);"[10;20;30u"; LPRINT "123456789012345678901234567890123456789" GOSUB 110 LPRINT CHR$(27);"[0w";:REM 5 cpi GOSUB 110 LPRINT CHR$(27);"[11w";:REM 20 cpi GOSUB 110 100 END 110 LPRINT CHR$(9);"tab1"; 120 LPRINT CHR$(9);"tab2"; 130 LPRINT CHR$(9);"tab3" 140 RETURN Example 2 10 FOR I=1 TO 3 20 LPRINT "1234567890";CHR$(27);"H";...
  • Page 285: Line Feed

    Line Feed Data Structure ASCII hex. dec. Description When the printer receives this code, it prints all the data in the print buffer, then advances the paper one line. The LF code can also give a carriage return if automatic carriage return is selected. If no CR is given, the next printing starts in the column following the end of printing.
  • Page 286: Vertical Tab Stop

    Vertical Tab Stop Data Structure ASCII hex. dec. Description When the printer receives this code, it prints all the data in the print buffer, then advances the paper to the next vertical tab stop position. The VT code can also give a carriage return if automatic carriage return is selected (refer to Operator’s Manual).
  • Page 287: Set Vertical Tab Stop At Current Position

    Set Vertical Tab Stop at Current Position Data Structure ASCII hex. dec. Description This code sets an horizontal tab stop at the current vertical position. Vertical Index Data Structure ASCII hex. dec. Description The code IND moves the active print position to the following line. The difference to Line Feed (LF) is that IND does not permit an CR option.
  • Page 288: Vertical Tab Stops On

    Vertical Tab Stops ON Vertical Tab Stops OFF (TBC) Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI "1" hex. dec. 155 49 ASCII CSI "4" hex. dec. 155 52 Description n = 1...132 lines at a line spacing of = 1...176 lines at a line spacing of Up to 16 tab stops can be joined in one sequence as follows: CSI n...
  • Page 289 A vertical tabulation is executed by the VT control code (hex.0B, dec.11); also see page 50, Vertical Tab Stop. Example 10 REM 20 LPRINT CHR$(27);"[10t";:REM set form length 30 LPRINT CHR$(27);"[4g";:REM clear all vtabs 40 LPRINT CHR$(27);"[3;5;9v"; 50 LPRINT CHR$(11);"this is the first 60 LPRINT CHR$(11);"this is the second vertical tab, line 5"...
  • Page 290: Horizontal Posititon Absolute (Hpa)

    Horizontal Posititon Absolute (HPA) Data Structure ASCII CSI n hex. dec. 155 n Description n = 1 (default setting) This sequence moves the print head to a horizontal print position absolute. The unit depends on PUM (Positioning Unit Mode) and is either character positions or defined by the SSU-function (Select Size Unit, see page 8).
  • Page 291: Horizontal Position Relative (Hpr)

    Horizontal Position Relative (HPR) Data Structure ASCII CSI n hex. CSI n dec. CSI n Description n = 1 (default setting) This sequence moves the print head to the right. The unit depends on PUM (Positioning Unit Mode) and is either character positions or defined by the SSU-function (Select Size Unit, see page 8).
  • Page 292: Horizontal Position Backward (Hpb)

    Horizontal Position Backward (HPB) Data Structure ASCII CSI n hex. dec. 155 n Description n = 1 (default setting) This sequence moves the print head to the left. The unit depends on PUM (Positioning Unit Mode) and is either character positions or defined by the SSU-function (Select Size Unit, see page 8).
  • Page 293: Vertical Position Absolute (Vpa)

    Vertical Position Absolute (VPA) Data Structure ASCII CSI n hex. dec. 155 n Description n = 1 (default setting) This sequence moves the print head to a vertical print position absolute. The unit depends on PUM (Positioning Unit Mode) and is either lines or defined by the SSU-function (Select Size Unit, see page 8).
  • Page 294: Vertical Position Relative (Vpr)

    Vertical Position Relative (VPR) Data Structure ASCII CSI n hex. dec. 155 n Description n = 1 (default setting) This sequence moves the print head lines or vertical positions down. The unit depends on PUM (Positioning Unit Mode) and is either lines or defined by the SSU-function (Select Size Unit, see page 8).
  • Page 295: Vertical Position Backward (Vpb)

    Vertical Position Backward (VPB) Data Structure ASCII CSI n hex. dec. 155 n Description n = 1 (default setting) This sequence moves the print head lines or vertical positions upward. The unit depends on PUM (Positioning Unit Mode) and is either lines or defined by the SSU-function (Select Size Unit, see page 8).
  • Page 296: Horizontal And Vertical Position Absolute (Hvp)

    Horizontal and Vertical Position Absolute (HVP) Data Structure ASCII CSI n hex. dec. 155 n Description = vertical position = horizontal position This sequence moves the print head to a horizontal and vertical print position absolute. The unit depends on PUM (Positioning Unit Mode) and is either lines or defined by the SSU-function (Select Size Unit, see page 8).
  • Page 297: Backspace

    Backspace Data Structure ASCII hex. dec. Description After receiving this code the content of line buffer is printed out. Then, the print head is moved one position to the left (depending on the current values of cpi). Carriage Return Data Structure ASCII hex.
  • Page 298: Form Feed Ff

    Form Feed Data Structure ASCII hex. dec. Description When the printer receives this code, it prints the data in the print buffer, then advances the paper from the current pritn position to the top-of-form position on the next page. Cut sheet: Forms are ejected.
  • Page 299: Partial Line Down

    Partial Line Down Data Structure ASCII hex. dec. Description If the preceding character is in normal position, PLD moves the active position down to a sufficient distance to give the following characters the appearence of being subscripted. If the preceding character is in a superscript position, PLD moves to normal position. Partial Line Up Data Structure ASCII...
  • Page 300: Reverse Index Ri

    Reverse Index Data Structure ASCII hex. dec. Description The code RI moves the active position to the preceding line. An CR option is not permitted. Next Line Data Structure ASCII hex. dec. Description The code NEL moves the active position to the left margin of the next line. This gives the same result as the combination of CR (Carrigage Return) and LF (Line Feed).
  • Page 301: Graphics

    Graphics Graphic Modes Data Structure ASCII ESC "%" n hex. dec. ASCII CSI "6" hex. dec. 155 54 ASCII CSI "5" hex. dec. 155 53 Description For n the following parameters are available: Data following the graphic-CSI-sequence are printed out as dot pattern. n the length of the data sequence.
  • Page 302 The vertical resolution is 72 dpi. The graphics image is printed vertically closed at a line feed of sequences Spacing Increment (SPI), page 15, and Set Line Spacing (SLS), page 26. Example: CSI 80 ; SP G). Example for calculation of n The length of graphics is 80 bytes.
  • Page 303 Relationship between graphics data and needles: Example 1 WIDTH "LPT1:",255 LPRINT CHR$(27);"%3";CHR$(80);CHR$(0); GOSUB 100:LPRINT " 60 dpi" LPRINT CHR$(27);"%4";CHR$(80);CHR$(0); GOSUB 100:LPRINT " 120 dpi" LPRINT CHR$(27);"%7";CHR$(80);CHR$(0); GOSUB 100:LPRINT " 240 dpi" 100 FOR N=1 TO 80 110 LPRINT CHR$(255); 120 NEXT N 130 RETURN Needle Data byte...
  • Page 304 Example 2 WIDTH "LPT1:",255 LPRINT CHR$(27);"%3";CHR$(10);CHR$(0); GOSUB 130:REM 60 dpi LPRINT CHR$(27);"%4";CHR$(10);CHR$(0); GOSUB 130:REM 120 dpi LPRINT CHR$(27);"[6z"; LPRINT CHR$(27);"%3";CHR$(10);CHR$(0); GOSUB 130:REM reverse 60 dpi 100 LPRINT CHR$(27);"[5z"; 110 LPRINT 120 END 130 RESTORE 140 FOR I=1 TO 10 150 READ D 160 LPRINT CHR$(D);...
  • Page 305: Miscellaneous

    Miscellaneous Load Menu Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are available: hex. dec. Up to 3 (4) various configurations can be saved with the printer. Setting the configuration is made by the control panel of the printer (refer to Operator’s Manual, chapter 2, “Menu”).
  • Page 306: Automatic Gap Adjustment (Aga)

    Automatic Gap Adjustment (AGA) Direct Setting of the Print Head Distance Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI n hex. dec. 155 n Description For the sequence CSI n + z the following parameters are available for n: hex.
  • Page 307: Paper Handling

    Paper Handling Data Structure ASCII CSI Ps1 Ps2 Ps3 Pn4 Pn5 "+" "v" hex. dec. 155 Ps1 Ps2 Ps3 Pn4 Pn5 43 Description Ps1 missing or 0: Ps2 missing or 0: Ps3 missing or 0: Pn4 missing or <20 or >136: No limitation of print width Pn5 missing or 0 or >30: Shared Interface Data Structure...
  • Page 308: Color Selection (Option)

    Color Selection (Option) Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are available: hex. 32 32 33 30 33 31 33 32 33 33 33 34 33 35 33 36 33 39 red or magenta, depending on the ribbon used only available with multi color ribbon The available colors depend on the ribbon used and must be matched in the menu.
  • Page 309 The relationship between color selection sequences and the resulting colors for several ribbon cassettes is shown in the following table: selected color black green yellow blue magenta cyan red = yellow + magenta green = yellow + cyan blue = magenta + cyan **** sequence is ignorered The sequence CSI 0 m resets all CSI...m -sequences! A maximum of 16 CSI...m...
  • Page 310: Input Data Control

    Input Data Control Data Structure ASCII CSI "9" hex. dec. 155 57 ASCII CSI "8" hex. dec. 155 56 ASCII CSI "7" hex. dec. 155 55 Description By means of this MTPL-sequence the eighth data bit is set to “1”. This results in accordance with the selected character set characters from the national character set or italic characters to be printed.
  • Page 311 Example LPRINT CHR$(27);"[7z"; GOSUB 90 LPRINT CHR$(27);"[9z"; GOSUB 90 LPRINT CHR$(27);"[8z"; GOSUB 90 FOR I=97 TO 103:LPRINT CHR$(I);:NEXT I 100 FOR I=161 TO 167:LPRINT CHR$(I);:NEXT I 110 LPRINT:LPRINT 120 RETURN input data control Miscellaneous...
  • Page 312: Sheet Feeder/Paperway

    Sheet Feeder/Paperway Eject Form Data Structure ASCII CSI n hex. dec. 155 n ASCII CSI "2" hex. dec. 155 50 Description With the sequence CSI n ; n hex. 32 31 32 32 32 33 33 31 35 30 35 31 35 32 35 31 35 34...
  • Page 313 Paper is ejected also by FF or the limit, fixed by the form length or the bottom margin. This sequence selects manual cut sheet paper process. This sequence selects fanfold paper process for tractor 1. This sequence selects fanfold paper process for optional tractor 2. If an optional tractor 2 is installed, sequences for selecting the automatic single sheet feeder (ASF) are ignored.
  • Page 314 For compatibility to former printers a sequence like CSI 21 ; x ; n { will also be accepted. In this case, the parameter x will be ignored. Paper is inserted on receipt of: CR (hex.0D; dec.13) if CR = LF is selected LF (hex.0A;...
  • Page 315: Reset To Initial State (Ris)

    LPRINT CHR$(27);"[7w";:REM set 17.1 cpi LPRINT CHR$(27);"[1y";:REM set NLQ LPRINT CHR$(27);"[1z";:REM set subscript GOSUB 100 LPRINT CHR$(27);"[6 ~ "; GOSUB 100 100 LPRINT "Matrix Printer" 110 LPRINT:LPRINT 120 RETURN [A] reset to initial state " ~ " [C] reset to initial state...
  • Page 316: Command Set

    Command Set Data Structure ASCII CSI "?" hex. dec. 155 63 Description For n the following parameters are available: hex. 31 30 31 31 *) (“Tally Printer Language”) For more information see the Barcode Programmer’s Manual. Miscellaneous " ~ " [B] command set dec.
  • Page 317: Activation Of Character Sets

    Activation of Character Sets Data Structure ASCII hex. dec. ASCII hex. dec. ASCII ESC n hex. dec. Description Activation of G0 for codes 21 - 7E Activation of G1 for codes 21 - 7E For n the following parameters are available: hex.
  • Page 318 A set of up to 94 characters is made ready for use. Example open "lpt1:" as #1 width #1,32000 t1$=" French Characters Are Printed" t2$=" German Characters Are Printed" print #1,chr$(27),"+R" print #1,chr$(27),"o" print #1,§Öä",t1$ print #1,chr$(27),"+K" print #1,chr$(27),"o" print #1,§Öä",t2$ Miscellaneous ’Example "Locking Shift"...
  • Page 319: Designation Of Character Set G0

    Designation of Character Set G0 Designation of Character Set G1 Designation of Character Set G2 Designation of Character Set G3 Data Structure ASCII ESC n hex. dec. Description Designation of character sets is a process by which a set of graphic symbols is con- nected to the usable character set registers G0, G1, G2 and G3.
  • Page 320 hex. dec. character set à 133 Table 863 (DOS French-Canadian) å 134 Table 865 (DOS Norway) Ä 142 Table 866 Standard (DOS Cyrillic) Å 143 Table 866 Ukraine É 144 Table 866 Kazakhstan æ 145 Kamenicky (combination of table 437 and 852) Æ...
  • Page 321 Example LPRINT CHR$(27);"(B"; LPRINT "US-ASCII: LPRINT CHR$(27);"(A"; LPRINT "UK-ASCII: LPRINT CHR$(27);"(K"; LPRINT "GERMAN LPRINT CHR$(27);"(R"; LPRINT "FRENCH 100 LPRINT CHR$(27);"(Y"; 110 LPRINT "ITALIAN : 120 END 130 LPRINT CHR$(35);CHR$(36);CHR$(64); 140 LPRINT CHR$(91);CHR$(92);CHR$(93); 150 LPRINT CHR$(94);CHR$(96);CHR$(123); 160 LPRINT CHR$(124);CHR$(125);CHR$(126) 170 RETURN character sets ";:GOSUB 130 ";:GOSUB 130...
  • Page 322: Activation Of Characters

    Activation of Characters Data Structure ASCII hex. dec. ASCII hex. dec. Description Activation of one single character from G2 (“single shift 2”). Activation of one single character from G3 (“single shift 3”). The functions SO and SI each activate one single character of the graphic character set into the codes 21 - 7E.
  • Page 323 Graphic description of locking shift/single shift (pages 81 - 86): Repertoire of graphic sets Active character set Invocation of one graphic character Invocation of graphic sets Designation of graphic sets C = control code set G = graphic sets Miscellaneous...
  • Page 324: Size Of Character Set (1 Character Set)

    Size of Character Set (1 Character Set) Size of Character Set (2 Character Sets) Data Structure ASCII CSI "?" hex. dec. 155 63 ASCII CSI "?" hex. dec. 155 63 Description In an 8 bit environment, the MTPL standard allows the use of 2 character sets at the same time.
  • Page 325: Proportional Spacing (Draft) Off

    Proportional Spacing (Draft) OFF Proportional Spacing (Draft) ON Data Structure ASCII CSI "?" hex. dec. 155 63 ASCII CSI "?" hex. dec. 155 63 Description This sequence disables proportional spacing for the print quality DRAFT. The printer switches automatically to NLQ, if DRAFT and proportional spacing are selected. This sequence enables proportional spacing for the print quality DRAFT.
  • Page 326: Print Code Area Expansion On

    Print Code Area Expansion ON Print Code Area Expansion OFF Data Structure ASCII CSI "?" hex. dec. 155 63 ASCII CSI "?" hex. dec. 155 63 Description This code sequence causes the printout of the higher control codes (ASCII 128 to 159) in the form of characters and symbols instead of the repetition of the functions of ASCII codes 0 to 31.
  • Page 327: Printer Identification (Da)

    Printer Identification (DA) Data Structure ASCII CSI "0" hex. dec. 155 48 ASCII CSI "?" hex. dec. 155 63 Description By this functions it is possible to get for example informations of device type and firmware revision or some capabilities like paper supply bins of the connected printer. This sequence can only be used if the printer is connected to a computer with a serial interface or another bi-directional interface.
  • Page 328: Device Status Report (Dsr)

    Device Status Report (DSR) Data Structure ASCII CSI n hex. dec. 155 n Description For n the following parameters are available: hex. dec. By these sequences it is possible to request the current printer status. This sequence can only be used if the printer is connected to the computer with a serial interface or a other bi-directional interface.
  • Page 329: Enquiry For Status

    Enquiry for Status Data Structure ASCII hex. dec. Description With this code it is possible to get a status byte from the printer: Status byte: This code concerns only serial data transfer with ENQ/STX protocol. enquiry for status Bit 0 = BUSY Bit 1 = offline...
  • Page 330: Fill Character

    Fill Character Data Structure ASCII hex. dec. Start of Text Block Data Structure ASCII hex. dec. Description Start of a text block. With this code any error message (parity error, memory overflow) is cleared. This code concerns only serial data transfer with ENQ/STX protocol. Miscellaneous fill character without further meaning start of text block...
  • Page 331: End Of Text Block

    End of Text Block Data Structure ASCII hex. dec. Description End of a text block. This code concerns only serial data transfer with ACK/NAK protocol. For a detailed description see the documentation which comes with your printer. Positive Acknowledge Data Structure ASCII hex.
  • Page 332: Negative Acknowledge

    Negative Acknowledge Data Structure ASCII hex. dec. Description By sending the negative acknowledge code NAK a parity error (character with the wrong parity) is indicated in the data block to be transmitted and then the data block is deleted. This code concerns only serial data transfer with ACK/NAK protocol. For a detailed description see the documentation which comes with your printer.
  • Page 333: Delete

    Delete Data Structure ASCII hex. dec. Description With this code the line buffer is cleared. Acoustic Alarm Data Structure ASCII hex. dec. Description This code causes an acoustic alarm. [A] delete [A] acoustic alarm Miscellaneous...
  • Page 334: Start Character "Escape

    Start Character “Escape” Data Structure ASCII hex. dec. Description ESC is the start character for a subsequent program sequence (the string $$ can be used instead of ESC if option is selected in the printer setup). MTPL-Start Character “Control Sequence Introducer” Data Structure ASCII hex.
  • Page 335: Appendix A Summary Of Possible Codes

    Appendix A Summary of Possible Codes...
  • Page 336: Sorted By Sequences

    Sorted by Sequences Function CSI % 3 n ; DATA CSI % 4 n ; DATA CSI % 5 n ; DATA CSI % 6 n ; DATA CSI % 7 n ; DATA CSI % 8 n ; DATA CSI % 9 n ;...
  • Page 337 Sequence CSI 0 c CSI 0 g CSI 0 m CSI 0 m CSI 0 n CSI 0 n CSI 0 SP I CSI 0 SP K CSI 0 SP L CSI 0 SP q CSI 0 SP X CSI 0 w CSI 0 y CSI 0 z CSI 1 + z...
  • Page 338 Sequence CSI 12 z CSI 13 m CSI 13 y CSI 13 z CSI 14 m CSI 15 m CSI 16 m CSI 17 m CSI 18 m CSI 19 m CSI 2 g CSI 2 J CSI 2 m CSI 2 SP I CSI 2 SP K CSI 2 SP L...
  • Page 339 Sequence CSI 3 w CSI 3 z CSI 30 m CSI 31 m CSI 31 n CSI 32 m CSI 33 m CSI 34 m CSI 35 m CSI 36 m CSI 37 m CSI 39 m CSI 4 g CSI 4 m CSI 4 SP I CSI 4 SP L...
  • Page 340 Sequence CSI 7 w CSI 7 y CSI 7 z CSI 8 w CSI 8 y CSI 8 z CSI 9 SP L CSI 9 w CSI 9 y CSI 9 z CSI n ’ CSI n + y CSI n a CSI n d CSI n e CSI n j...
  • Page 341 Sequence ESC ( F ESC ) F ESC * F ESC + F ESC | ESC } ESC ~ ESC c ESC H ESC n ESC o Function control code DEL (Delete) ......97 control code ENQ (Enquiry for Status) .
  • Page 342: Sorted By Functions

    Sorted by Functions Function acoustic alarm additional character spacing automatic gap adjustment OFF automatic gap adjustment ON Basic Measuring Unit BMU bin 1 (front) bin 2 (rear) bin 3 (option) bold or increased intensity centering ON change color character spacing clear all horizontal tab stops clear all horizontal tab stops at current line clear all selected fonts...
  • Page 343 Function control code HTS control code IND (Vertical Index) control code LF (Line Feed) control code NAK (Negative Acknowledge) control code NEL (Next Line) control code NUL (fill character) control code PLD (Partial Line Down) control code PLU (Partial Line Up) control code RI (Reverse Index) control code STX (Start of Text Block) control code VT (Vertical Tab Stop)
  • Page 344 Function font 1 font 2 font 3 font 4 font 5 font 6 font 7 font 8 font 9 font selection for NLQ/LQ font selection form lenght in lines graphic size modification graphic size selection graphics 120 dpi graphics 240 dpi graphics 240 dpi graphics 60 dpi graphics 72 dpi...
  • Page 345 Function horizontal spacing 17,1 cpi horizontal spacing 20 cpi horizontal spacing 5 cpi horizontal spacing 6 cpi horizontal spacing 7,5 cpi horizontal spacing 8,6 cpi horizontal step horizontal- and vertical position absolute italic mode OFF italic mode ON left and right margin letter print quality (LQ) line density 6 lpi line density 8 lpi...
  • Page 346 Function MTPL + IBM-Proprinter XL command set MTPL + NEC P60/70 command set MTPL command set MTPL-start character for program sequence MTPL-start character for program sequence near letter quality (NLQ) NLQ at 10 cpi NLQ at 12 cpi normal color or normal intensity output paper to stacker 1 (sorter) overline mode OFF overline mode ON...
  • Page 347 Function shared interface single shift 2 (SS2) single shift 3 (SS3) size of character set (1 character set) size of character set (2 character sets) size unit Decididots size unit Decipoints size unit Decipoints size unit Micrometers size unit Millimeters size unit Mils size unit Pixels spacing increment...
  • Page 348: Appendix B Character Sets

    Appendix B Character Sets...
  • Page 349: Standard Character Set

    Standard Character Set For the contents of the shaded areas, see table at page B-3. Character Sets...
  • Page 350: International Substitution Table - Normal Font

    International Substitution Table - normal font Great Britain Sweden Germany Portugal France Italy Spain Norway The contents of the columns 8 and 9 depend on the settings in the printer’s menue. Character Sets...
  • Page 351 Programmer’s Reference Tally ANSI Barcode and LCP...
  • Page 352 Table of Contents Barcode and LCP Printing Introduction Secured/Unsecured Mode Data Structure ......Description ......Barcode Printing Barcode Header .
  • Page 353 Code EAN 13 with HRI ..... . Code EAN 13 without HRI ..... Code MSI / modified Plessey Code UPCA with HRI .
  • Page 354 Appendix Character Sets LCP Character Set, German LCP Character Set, US-ASCII ....OCR-A Character Set ..... . . OCR-B Character Set .
  • Page 356: Barcode And Lcp Printing

    Barcode and LCP Printing Introduction Secured/Unsecured Mode Barcode Printing US Postnet Barcode Large Character Printing (LCP)
  • Page 357 Introduction This User’s Manual describes all barcode and LCP sequences and control codes, regard- less of your printer’s special barcode and LCP implementation (LCP = Large Character Printing). Be sure to observe the notes in the operator’s manual regarding the special barcode/LCP Types implemented in your printer and which of the sequences described here are not available as a result.
  • Page 358 This may cause conflict with other emulations, since the above commands may have dif- ferent functions in these emulations, for example: Condensed print Reset expanded print ESC P <n> Proportional spacing ON/OFF ESC P Pica In barcode mode the barcode sequences have priority. The barcode interpreter can be switched on or off with the MTPL sequences ESC [ ? 11 ~ (Barcode ON) and ESC [ ? 10 ~ (Barcode OFF).
  • Page 359 The syntax for the parameters, the start, separate and stop code is represented as follows: ASCII hex. dec. For the parameter (here n), a distinction must be made between two types of repre- sentation: if the parameter is in pointed parentheses, the decimal value must be transmitted if the parameter is not in pointed parentheses, the ASCII value must be transmitted Example: Parameter representation:...
  • Page 360 Special Feature If you not get the required control codes for Barcode of ASCII code table columns 0 and 1 out of your computer you can use in addition to these Barcode control codes a set of MTPL sequences to generate these control codes by printable ASCII characters. By this measure the Barcode programs will remain fully compatible in spite of the additional MTPL sequences.
  • Page 361: Secured/Unsecured Mode

    Secured/Unsecured Mode Unsecured mode Secured mode Data Structure ASCII ESC "P" hex. dec. ASCII ESC "P" hex. dec. Description In secured mode, the amount of space the barcode or LCP character requires is "secu- red". In each line, additional barcode and normal characters can be printed. These additional characters are printed in the current line and in the following lines wi- thout influencing the barcode or LCP character.
  • Page 362 Example 1 REM LCP unsecured mode LPRINT CHR$(27); "[?11~"; REM select unsecured mode LPRINT CHR$(27); "PSC0"; CHR$(27); "\"; REM set character size to 5 LPRINT CHR$(16); "5"; CHR$(25); LPRINT "Example for " LPRINT CHR$(15); "LCP"; CHR$(15); " unsecured mode" Example 2 REM LCP secured mode LPRINT CHR$(27);...
  • Page 363: Barcode Printing

    Barcode Printing Barcode Before the data, which contains the barcode information, are transmitted to the printer, the barcode header must be sent. Otherwise the standard parameter values are used Header (see section "Header Format"). In the header, the printing parameters, the barcode size and the barcode type are defined.
  • Page 364: Transparent Barcode/Lcp Commands

    The default parameter values are the following: Unsecured mode (see section "Secured/Unsecured mode") HRI OFF, Normal Print, Double Pass (F = SP) Barcode Type 2/5 matrix (a = "A") Barcode height 1/6 inch (n = "1") Narrow bar (x = "0") Narrow space (y = "0") Ratio of wide to narrow 2 to 1 (z = "0") When only parts of the header are to be changed, copy the header up to the parameter...
  • Page 365: Barcode Print Feature F For Selection Of F-Code

    Barcode Print HRI or normal/compressed as well as single or double pass is switched via character F Feature F for according to the following table. Selection of F-Code ASCII Hex- Char. Value " & ‘ ) It is recommended, to avoid using of ASCII Characters 0 and 1 when possible, since they are reserved for future functions.
  • Page 366: Barcode Types

    Barcode Types A = 2/5 matrix (default) B = 2/5 industrial C = 2/5 interleaved D = Code 11 E = Code BCD matrix F = Code 39 G = Codabar H = EAN 8 with HRI = EAN 8 without HRI J = 2/5 matrix (default) K = EAN 13 with HRI L = EAN 13 without HRI...
  • Page 367: Barcode Width

    Barcode Width By specifying an ASCII value from 0 to 3, the barcode width can be defined. This allows ideal adaption to the scanner specifications, particularly for long-range scanners. Table 1 Header Para- meter x = 0 Width of x = 1 x = 2 narrow bar x = 3...
  • Page 368: Error Code

    All values are only valid when a new colour ribbon is used. They change depending on the degree of wear: narrow bar: narrow space: The Code EAN 128, as the EAN/UPC, is based on module widths. Therefore only the X parameter is valid for this type.
  • Page 369: Data Formats Of Barcode Types

    Data Formats of Barcode Types Code 2/5 Matrix Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code 2/5 matrix barcode 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" A3;111";CHR$(25); 40 LPRINT CHR$(20);":123:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Figures (n) Start code...
  • Page 370: Code 2/5 Industrial

    Code 2/5 Industrial Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code 2/5 industrial barcode 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" B3;111";CHR$(25); 40 LPRINT CHR$(20);":123;";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Figures (n) Start code "0" to "9" ":", "<"...
  • Page 371: Code 2/5 Interleaved

    Code 2/5 Interleaved Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code 2/5 interleaved barcode 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" C3;111";CHR$(25); 40 LPRINT CHR$(20);":123;";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Due to the "interleaved mechanism", data stream (n ... n) should only be transferred as even number e.g.: not: 398 If odd count of numbers are transferred the printer adds a leading zero to the printed...
  • Page 372: Code 11

    Code 11 Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code 11 barcode 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" D3;111";CHR$(25); 40 LPRINT CHR$(20);":123:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Figures/Characters (n) Start code "0" to "9" and "-" 30 to 39 and 2D 48 to 57 and 45 n ...
  • Page 373: Code Bcd-Matrix

    Code BCD Matrix Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM BCD-matrix-code barcode 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" E3;111";CHR$(25); 40 LPRINT CHR$(20);":123:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Figures (n) Start code "0" to "9" 30 to 39 48 to 57 n ...
  • Page 374: Code 39

    Code 39 Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code 39 barcode 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" F3;111";CHR$(25); 40 LPRINT CHR$(20);"*123*";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Numbers/Character (n) "0" to "9", "A" to "Z" and "$", "%", "*", "+", "-", ".", "/"...
  • Page 375: Codabar

    CODABAR Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM codabar barcode 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" G3;111";CHR$(25); 40 LPRINT CHR$(20);"*123*";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Numbers/Character (n) "0" to "9", "A" to "D" and "$", "+", "-", ".", "/", ":"...
  • Page 376: Code Ean 8 With Hri

    Code EAN 8 with HRI Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code EAN 8 with HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" H3;111";CHR$(25); 40 LPRINT CHR$(20);":0123:4567:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Figures (n) Check Start code Number (c)
  • Page 377: Code Ean 8 Without Hri

    Code EAN 8 without HRI Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code EAN 8 without HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" I3;111";CHR$(25); 40 LPRINT CHR$(20);":0123:4567:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Figures (n) Check Start code...
  • Page 378: Code Ean 13 With Hri

    Code EAN 13 with HRI Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code EAN 13 with HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" K3;111";CHR$(25); 40 LPRINT CHR$(20);":0123456:789012:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Figures (n) Check Start code Number (c)
  • Page 379: Code Ean 13 Without Hri

    Code EAN 13 without HRI Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code EAN 13 without HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" L3;111";CHR$(25); 40 LPRINT CHR$(20);":0123456:789012:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Figures (n) Check Start code...
  • Page 380: Code Msi / Modified Plessey

    Code MSI / modified Plessey Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code MSI/plessey modified 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" M3;111";CHR$(25); 40 LPRINT CHR$(20);":0123;";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Figures (n) Start code "0"...
  • Page 381: Code Upca With Hri

    Code UPC A with HRI Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code UPC A with HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" N3;111";CHR$(25); 40 LPRINT CHR$(20);":012345:678901:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Figures (n) Check Start code...
  • Page 382: Code Upca Without Hri

    Code UPC A without HRI Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code UPC A without HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" O3;111";CHR$(25); 40 LPRINT CHR$(20);":012345:678901:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Figures (n) Check Start code Number (c)
  • Page 383: Code Upce With Hri

    Code UPC E with HRI Syntax ASCII hex. dec. Data Structure ASCII hex. dec. Example 10 REM code UPC E with HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" P3;111";CHR$(25); 40 LPRINT CHR$(20);":01234567:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Figures (n) Check Number (c) Calculation "0"...
  • Page 384: Code Upce Without Hri

    Code UPC E without HRI Syntax ASCII hex. dec. Data Structure ASCII hex. dec. Example 10 REM code UPC E without HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" Q3;111";CHR$(25); 40 LPRINT CHR$(20);":01234567:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Figures (n) Check Number (c) Calculation "0"...
  • Page 385: Delta Distance (Ibm)

    Code Delta distance (IBM) Syntax ASCII hex. dec. Data Structure ASCII DC4 Start code hex. dec. Example 10 REM code delta distance (IBM) without HRI 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" R3;111";CHR$(25); 40 LPRINT CHR$(20);"F0123D";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing Figures/Characters (n) "0"...
  • Page 386: Code 128

    Code 128 Syntax ASCII hex. dec. Data Structure ASCII DC4 n ... n DC4 hex. dec. Description While many barcode styles are limited to numbers, Code 128 can encode numbers, let- ters, and other symbols commonly found on keyboards, such as @, # and %. The Code 128 barcode is like three barcodes in one.
  • Page 387 Example If you need to print a Carriage Return (hex.0D, dec.13), as part of a barcode, you need to send ">M" (13 + 64 = 77, see character set table to verify that decimal 77 equals the capi- tal letter "M"). This substitution process can be carried out throughout the range of deci- mal values, i.e., ">d"...
  • Page 388 Code 128 translation table Wert Code A Code B Code C Space Space " " & & ‘ ‘ ‘ ‘ hyphen hyphen period period < < > > Code A Code B Code C Wert ‘ Wert Code A Code B Code C FNC3 FNC3 FNC2...
  • Page 389 Example 10 REM code 128 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" S3;111";CHR$(25); 40 LPRINT CHR$(20);"ABCD0123";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing...
  • Page 390: Ean 128

    EAN 128 Syntax ASCII hex. dec. Data Structure ASCII DC4 n ... n DC4 hex. dec. Description The only difference between both types of barcodes is the initial sequence. Code 128 starts with Code A, Code B or Code C followed by character information. Barcode EAN 128 requires the code FNC1 between Startcode and character information.
  • Page 391: Add-On Barcodes

    Add-On UPC and EAN barcodes (commercial barcodes) can be extended with Add-On barcodes. Barcodes The following barcodes can be extended with Add-On barcodes: In the data formats the numbers are generally given in the sequence they are printed from left to right in the barcode, i.e. in the case of the EAN13 code, the 13. figure is trans- ferred first and the 1.
  • Page 392 Example 2 EAN13 barcode with HRI and Add On 5 extention Format: DC4:nnnnnnn:nnnnnn:cnnnnn:DC4 10 REM code EAN 13 with add-on-5 extention 20 LPRINT CHR$(27);"[?11~"; 30 LPRINT CHR$(26);" K3;111";CHR$(25); 40 LPRINT CHR$(20);":0123456:789012:012345:";CHR$(20); 50 LPRINT CHR$(27);"[?10~" Barcode Printing...
  • Page 393: Check Number Calculation

    Check The following barcode types must be given a check number for transfer to the printer: Number Type H and I (EAN 8) Calculation Type K and L (EAN 13) Type N and O (UPC A) Type P and Q (UPC E) The check number (c) is transferred after the barcode information (n).
  • Page 394: Upca

    EAN 8 7 numbers are transferred for the EAN 8 code. The 8. digit represents the check number. The even figures of the information have a factor of "3", the uneven figures a factor of "1". Counting begins from the left. The resulting cross sum is divided by 10. The remaining fig- ure is subtracted from the modul (10).
  • Page 395: Upce

    UPCE For the UPCE barcode type, 7 numbers are transmitted. The 8. digit is the check number. The uneven figures of the information have a factor of "3", the even figures a factor of "1". Counting begins from the left. The resulting cross sum is divided by 10. The remaining in- teger value is subtracted from the modul (10).
  • Page 396: Add-On 2

    Add-On 2 3 numbers are transmitted: check number (c) and 2 informations (n). The check number results from the remaining integer value of modul (4). Example 1 Information Remainder (0) Example 2 Information Remainder (2) Example 3 Information Remainder (3) Example 4 Information Remainder (1)
  • Page 397: Us Postnet Barcode

    US Postnet Barcode US Postnet Barcode Data Structure ASCII ESC "[" hex. dec. Description After receiving this sequence numeric characters from 0 (hex. 30) to 9 (hex. 39) are inter- preted as barcode figures. Other Alpha characters are ignored. Control characters from hex.00 (dec.9) to hex.1F (dec.31) terminates this barcode mode.
  • Page 398: Large Character Printing (Lcp)

    Large Character Printing (LCP) Before you can transfer the LCP data (Large Character Printing) data to the printer, the LCP header must be sent. The LCP header is made up of a series of max. 5 characters. In the header, the printing parameters and the LCP character size are defined. This hea- der only needs to be transferred once, unless settings are to be changed or the printer has been turned off.
  • Page 399 Refer to the section "Secured/Unsecured Mode" at the front of the Manual for detailed description of the secured/unsecured mode. Data Structure ASCII hex. dec. n = all printable characters (> hex.1F, dec.31) Example REM Example Character Densities OPEN "lpt1:" FOR RANDOM AS #1 WIDTH #1, PRINT #1, CHR$(27);...
  • Page 400: Lcp Character Set Us-Ascii

    LCP Character Set US-ASCII LCP Character Set German Data Structure ASCII ESC "P" hex. dec. ASCII ESC "P" hex. dec. "L" "S" "0" "1" ESC "\" "L" "S" "0" "2" ESC "\" ESC P L S 0 1 ESC \ ESC P L S 0 2 ESC \ character set US-ASCII character set german...
  • Page 401 Various Examples Example 1 LPRINT "Example for different LCP character sizes" LPRINT CHR$(27); "[?11~"; LPRINT CHR$(27); "PSC0"; CHR$(27); "\"; REM set character size to 3 LPRINT CHR$(16); "3"; CHR$(25); LPRINT CHR$(15); "3"; CHR$(15); REM set character size to 4 LPRINT CHR$(16); "4"; CHR$(25); LPRINT CHR$(15);...
  • Page 402 Example 2 REM Example 2 for unsecured printing OPEN "lpt1:" FOR RANDOM AS #1 WIDTH #1, 255 PRINT #1, CHR$(27); "[?11~"; PRINT #1, CHR$(27); "PSCO"; CHR$(27); "\"; PRINT #1, CHR$(16); "5"; CHR$(25); PRINT #1, "Example for "; PRINT #1, CHR$(15); "LCP"; CHR$(15);" unsecured mode"; PRINT #1, CHR$(10);...
  • Page 403 Example 4 Unsecured Mode, vertical spacing with various enlargement factors Legend A – a single line Feed (1/6") B – Factor 6 character; heigth C – Factor 7 character; height D – Factor 4 character; height E – Factor 5 character; height –...
  • Page 404: Appendix

    Appendix Character Sets...
  • Page 405: Character Sets

    The following symbol sets are available in the barcode mode. The LCP symbol sets can only be selected via Escape sequences. The OCR-A and OCR-B fonts can be selected via control panel or by Escape sequences, which corre- spond to the selected emulation mode. The codes hex.A0 up to hex.FE correspond to the selected character set.
  • Page 406: Lcp Character Set, German

    LCP Character Set, german Character Sets...
  • Page 407: Lcp Character Set, Us-Ascii

    LCP Character Set, US-ASCII Character Sets...
  • Page 408: Ocr-A Character Set

    OCR-A Character Set (Code Page 437) Character Sets...
  • Page 409: Ocr-B Character Set

    OCR-B Character Set (Code Page 437) Character Sets...

Table of Contents