TallyGenicom Matrix Printer Programmer's Manual

Manual is about: TallyGenicom Matrix Printer Programmer's Manual

Summary of Matrix Printer

  • Page 1

    Programmer's manual matrix printer 7265.

  • Page 2

    Table of contents 7265 programmer’s manual i copyright © 2004 tallygenicom chapter 1. Introduction............................................................................................................1 chapter 2. Ansi................................................................................

  • Page 3

    Table of contents 7265 programmer’s manual ii copyright © 2004 tallygenicom setting bar code parameters..............................................................................................35 general rules for assigning parameters.................................................................

  • Page 4

    Table of figures 7265 programmer’s manual iii copyright © 2004 tallygenicom figure 2-1 default character set for ansi emulation, 00 to 7f ........................................5 figure 2-2 default character set for ansi emulation, 80 to ff..............................................6 figure 2-3 ...

  • Page 5: Introduction

    7265 programmer’s manual 1 copyright © 2004 tallygenicom chapter 1 introduction chapter 1. Introduction 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 opti...

  • Page 6: Ansi

    7265 programmer’s manual 2 copyright © 2004 tallygenicom chapter 2. Ansi the tallygenicom im ple m entation of ansi x3.64 is the native control protocol for the 7265 printer, as it is for a variety of other tallygenicom impact matrix printer families. The control functions presented here are a super...

  • Page 7

    7265 programmer’s manual 3 copyright © 2004 tallygenicom chapter 2 ansi control code summary code hex description etx 03 etx/ack communication protocol ack 06 etx/ack communication protocol bel 07 sound beeper bs 08 backspace ht 09 horizontal tab lf 0a line feed vt 0b vertical tab ff 0c form feed cr...

  • Page 8

    7265 programmer’s manual 4 copyright © 2004 tallygenicom ompar ison, 7 bi t/ 8 bi t 8 b i t hex description 7 bit hex ind 84 index esc d 1b 44 nel 85 next line esc e 1b 45 hts 88 set horizontal tab esc h 1b 48 vts 8a set vertical tab esc j 1b 4a pld 8b partial line down esc k 1b 4b plu 8c partial li...

  • Page 11

    7265 programmer’ manual 7 copyright © 2004 tallygenicom en i c o chapter 2 ansi code description esc [(p1);(p2)~ select emulation esc [(p)` horizontal position absolute esc [(p)a horizontal position relative esc [(p)d vertical position absolute esc [(p)e vertical position relative esc [(p1);(p2)f ve...

  • Page 12

    7265 programmer’s manual 8 copyright © 2004 tallygenicom chapter 2 ansi pr inter handshaking commands description dc1 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 ...

  • Page 13

    7265 programmer’s manual 9 copyright © 2004 tallygenicom chapter 2 ansi printer control commands description so 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 ...

  • Page 14

    7265 programmer’s manual 10 copyright © 2004 tallygenicom chapter 2 ansi commands description del delete del is a printable character, or is a valid graphics data byte if received in dot graphics mode. Dec 127 hex 7f esc [(p1); (p2)~ select emulation if p2 is 0, which is the default, then the curren...

  • Page 15

    7265 programmer’s manual 11 copyright © 2004 tallygenicom chapter 2 ansi commands description esc c reset to initial state recalls the user format presently assigned to the current paper path. Dec 27 99 hex 1b 63 esc [(p1)t enable/disable oversized/expanded/bar code modes p1 effect page 0 reset spec...

  • Page 16

    7265 programmer’s manual 12 copyright © 2004 tallygenicom chapter 2 ansi commands description esc [(p1); ...(pn)l reset mode (ansi) resets mode(s) set by esc [(p1);..(pn)h. P effect 20 reset auto cr on lf example: reset auto cr on lf dec 27 91 50 48 108 hex 1b 5b 32 30 6c esc [> (p1);..(pn)h set mod...

  • Page 17

    7265 programmer’s manual 13 copyright © 2004 tallygenicom chapter 2 ansi commands description esc [(p1); (p2);{ paper shear 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 sel...

  • Page 18

    7265 programmer’s manual 14 copyright © 2004 tallygenicom chapter 2 ansi commands description esc ]6;4; (p3);(p4) esc \ straps and options this command enables downline control of options found at various places in the printer menus. This includes the emulation and software options menus, as well as...

  • Page 19

    7265 programmer’s manual 15 copyright © 2004 tallygenicom chapter 2 ansi graphics rendition (fonts and modes) command description esc [(p1); ...(pn)m select graphics rendition selects print modes and fonts. P1 printing mode 0 normal printing - resets all modes (but does not affect font selection) 1 ...

  • Page 20

    7265 programmer’s manual 16 copyright © 2004 tallygenicom chapter 2 ansi national character set command description esc [(p)x select national character set p character set 0 usa 1 germany 2 french a 6 italian 7 united kingdom 8 spanish 9 danish/norwegian a 16 swedish/finnish d if a parameter value (...

  • Page 21

    7265 programmer’s manual 17 copyright © 2004 tallygenicom chapter 2 ansi d/n = danish/norwegian s/f = swedish/finnish code d location h 35 23 36 24 38 26 42 2a 64 40 91 5b 92 5c 93 5d 94 5e 96 60 123 7b 124 7c 125 7d 126 7e 155 9b 157 9c p character set 0 usa # $ & * @ [ \ ] ^ ` { ! } ~ ¢ ¥ 1 german...

  • Page 22

    7265 programmer’s manual 18 copyright © 2004 tallygenicom chapter 2 ansi line/character spacing command description esc [(p1); (p2) g line/character spacing sets the vertical and horizontal pitch in decipoints. Parameter (p1) is the spacing between lines and (p2) is the spacing between characters. U...

  • Page 23

    7265 programmer’s manual 19 copyright © 2004 tallygenicom chapter 2 ansi commands description esc [(p1); (p2) g line/character spacing p1 = line spacing parameter p2 = character spacing parameter if you select doublewide printing (esc [5m), then the printer doubles character spacing set by this comm...

  • Page 24

    7265 programmer’s manual 20 copyright © 2004 tallygenicom chapter 2 ansi forms setup command description esc [(p1); (p2);(p3);(p4) ;(p5)r forms setup sets top of form and sets form length, as well as top and bottom margins, in decipoints. Parameter p1 is form length 720ths , p2 is the top margin, p3...

  • Page 25

    7265 programmer’s manual 21 copyright © 2004 tallygenicom chapter 2 ansi superscript/subscript command description esc k (pld) subscript printing 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 c...

  • Page 26

    7265 programmer’s manual 22 copyright © 2004 tallygenicom chapter 2 ansi 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 l...

  • Page 27

    7265 programmer’s manual 23 copyright © 2004 tallygenicom chapter 2 ansi vertical movement commands description lf line feed advances the paper one line according to the spacing currently in effect. Dec 10 hex 0a vt vertical tab advances paper to the next vertical tab setting. If the current print p...

  • Page 28

    7265 programmer’s manual 24 copyright © 2004 tallygenicom chapter 2 ansi 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 ...

  • Page 29

    7265 programmer’s manual 25 copyright © 2004 tallygenicom chapter 2 ansi 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. ...

  • Page 30

    7265 programmer’s manual 26 copyright © 2004 tallygenicom chapter 2 ansi horizontal movement commands description ht 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 b...

  • Page 31

    7265 programmer’s manual 27 copyright © 2004 tallygenicom chapter 2 ansi 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. ...

  • Page 32

    7265 programmer’s manual 28 copyright © 2004 tallygenicom chapter 2 ansi 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 (hts) set horizontal tab at current position if 8-bit control code ...

  • Page 33

    7265 programmer’s manual 29 copyright © 2004 tallygenicom chapter 2 ansi 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...

  • Page 34

    7265 programmer’s manual 30 copyright © 2004 tallygenicom chapter 2 ansi sample basic program for dot coding figure 2-6 dot graphics example.

  • Page 35

    7265 programmer’s manual 31 copyright © 2004 tallygenicom chapter 2 ansi 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 pr...

  • Page 36

    7265 programmer’s manual 32 copyright © 2004 tallygenicom chapter 2 ansi 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. P1 horizontal density vertical density 0 72 dpi 72 dpi 1...

  • Page 37: Ansi Bar Codes

    7265 programmer’s manual 33 copyright © 2004 tallygenicom chapter 3 ansi bar codes chapter 3. Ansi bar codes 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 v...

  • Page 38

    7265 programmer’s manual 34 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 vertica...

  • Page 39

    7265 programmer’s manual 35 copyright © 2004 tallygenicom chapter 3 ansi bar codes setting bar code parameters the ansi control sequence that sets bar code parameters has the format: command description esc [p1;p2;p3;p4;p 5;p6;p7;p8;p9; p10;p11;p12;p 13} set up bar code parameters determines bar cod...

  • Page 40

    7265 programmer’s manual 36 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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. Pn attribute p1 style p2 he...

  • Page 41

    7265 programmer’s manual 37 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 1...

  • Page 42

    7265 programmer’s manual 38 copyright © 2004 tallygenicom chapter 3 ansi bar codes p1 - bar code style this printer supports the following styles: p1 style 0 interleaved 2 of 5 1 bidirectional 2 of 5 2 matrix 2 of 5 3 industrial 2 of 5 4 code 3 of 9 (default) 5 ean-8 6 ean-13 7 code 11 9 codabar a/t...

  • Page 43

    7265 programmer’s manual 39 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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. The...

  • Page 44

    7265 programmer’s manual 40 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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: p9 rotation hr font if p12 = 0 0 no rotation (def...

  • Page 45

    7265 programmer’s manual 41 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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:...

  • Page 46

    7265 programmer’s manual 42 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 migh...

  • Page 47

    7265 programmer’s manual 43 copyright © 2004 tallygenicom chapter 3 ansi bar codes figure 3-3 comma, space, and asterisk delimiters !#/e" !#/e" interleaved 2 of 5, comma delimiter !#/e" !#/e" interleaved 2 of 5, space delimiter *1234* *1234* *1234* *1234* asterisk delimiters are used in pairs, 3 of ...

  • Page 48

    7265 programmer’s manual 44 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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...

  • Page 49

    7265 programmer’s manual 45 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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),...

  • Page 50

    7265 programmer’s manual 46 copyright © 2004 tallygenicom chapter 3 ansi bar codes delimiters and vertical bar codes if you rotate a bar code 90 o or 270 o , then space imposed by delimiters is not rotated, but is applied horizontally, as the sample shows. The symbol dimensions that used to be horiz...

  • Page 51

    7265 programmer’s manual 47 copyright © 2004 tallygenicom chapter 3 ansi bar codes calculating characters per inch we show characters per inch at the default element widths and 0 o /180 o rotation for each style in the following chapter. All of our numbers ignore the quiet zones; you need to allow 1...

  • Page 52

    7265 programmer’s manual 48 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 ...

  • Page 53

    72655 programmer’s manual 49 copyright © 2004 tallygenicom chapter 3 ansi bar codes matrix 2 of 5 (style 2) 1 bars per character: 3 dark bars and 2 light bars 2 character set: 0 through 9 3 start/stop characters: 3 dark bars and 2 light bars 4 center character code: none 5 null character: yes 6 inte...

  • Page 54

    7265 programmer’s manual 50 copyright © 2004 tallygenicom chapter 3 ansi bar codes ean-8 (style 5) 1 bars per character: 2 dark bars and 2 light bars 2 character set: 0 through 9 3 start/stop characters: 2 dark bars and 1 light bar 4 center character code: yes 5 null character: yes 6 intercharacter ...

  • Page 55

    7265 programmer’s manual 51 copyright © 2004 tallygenicom chapter 3 ansi bar codes code 11 (style 7) 1 bars per character: 3 dark bars and 2 light bars 2 character set: 0 through 9 and the dash character 3 start/stop characters: yes 4 center character code: none 5 null character: yes 6 intercharacte...

  • Page 56

    7265 programmer’s manual 52 copyright © 2004 tallygenicom chapter 3 ansi bar codes codabar a/t, b/n, c/*, d/e (9, 10, 11, 12) 1 bars per character: 4 dark bars and 3 light bars 2 character set: 0 through 9 and the four additional characters :/ . + 3 start/stop characters: yes (a,b,c,d/a,b,c,d,t,n,*,...

  • Page 57

    7265 programmer’s manual 53 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 ch...

  • Page 58

    7265 programmer’s manual 54 copyright © 2004 tallygenicom chapter 3 ansi bar codes code 93 (style 15) 1 bars per character: 3 dark bars and 3 light bars 2 character set: all 128 ascii characters 3 start/stop characters: yes. (stop character has 4 dark bars and 3 light bars) 4 center character code: ...

  • Page 59

    7265 programmer’s manual 55 copyright © 2004 tallygenicom chapter 3 ansi bar codes msi (style19) 1 bars per character: 4 dark bars and 4 light bars 2 character set: 0 through 9 3 start characters: 1 dark bar and 1 light bar stop characters: 2 dark bars and 1 light bar 4 center character code: none 5...

  • Page 60

    7265 programmer’s manual 56 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 a...

  • Page 61

    7265 programmer’s manual 57 copyright © 2004 tallygenicom chapter 3 ansi bar codes 1 bars per character: 2 tall bars and 3 short bars 2 character set: 0 through 9 3 start characters: 1 tall bar stop characters: 1 tall bar 4 center character code: none 5 null character: diamond symbol 6 intercharacte...

  • Page 62

    7265 programmer’s manual 58 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 check...

  • Page 63

    7265 programmer’s manual 59 copyright © 2004 tallygenicom chapter 3 ansi bar codes the following example illustrates the calculation of the check digits for the symbol code 93. Data c o d e sp 9 3 "c" "k" data values 12 24 13 14 38 9 3 c weights 7 6 5 4 3 2 1 k weights 8 7 6 5 4 3 2 1 1) for "c", su...

  • Page 64

    7265 programmer’s manual 60 copyright © 2004 tallygenicom chapter 3 ansi bar codes 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 co...

  • Page 65

    7265 programmer’s manual 61 copyright © 2004 tallygenicom chapter 3 ansi bar codes checksum calculation for the symbol cat data c + a + t "c" "k" data values 12 46 10 46 29 c weights 5 4 3 2 1 k weights 6 5 4 3 2 1 1) for "c", sum the products of the (c weights * data values). (1 * 29) + (2 * 46) + ...

  • Page 66

    7265 programmer’s manual 62 copyright © 2004 tallygenicom chapter 3 ansi bar codes code 93 full ascii table code code code code ascii 93 ascii 93 ascii 93 ascii 93 nul %u sp space @ %v ` %w soh $a ! /a a a a +a stx $b " /b b b b +b etx $c # /c c c c +c eot $d $ $ d d d +d enq $e % % e e e +e ack $f ...

  • Page 67: Ansi Oversized Font

    7265 programmer’s manual 63 copyright © 2004 tallygenicom chapter 4 ansi oversized chapter 4. Ansi oversized font 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 v...

  • Page 68

    7265 programmer’s manual 64 copyright © 2004 tallygenicom chapter 4 ansi oversized control function summary control function description so activate oversized, expanded, barcode si exit oversized, expanded, barcode esc [0t cancel oversized, expanded, barcode esc [1t non-rotatable oversized esc [2t e...

  • Page 69

    7265 programmer’s manual 65 copyright © 2004 tallygenicom chapter 4 ansi oversized commands description esc [pv;phb set character size 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....

  • Page 70

    7265 programmer’s manual 66 copyright © 2004 tallygenicom chapter 4 ansi oversized 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 ...

  • Page 71

    7265 programmer’s manual 67 copyright © 2004 tallygenicom chapter 4 ansi oversized esc [(pv);(ph)b where (pv) is the vertical expansion, (ph) is the horizontal expansion, and is the space character (20 hex). For 0 o rotation, you can think of parameter (pv) as 10 times the point size of the oversize...

  • Page 72

    7265 programmer’s manual 68 copyright © 2004 tallygenicom chapter 4 ansi oversized what is a character cell? A character cell is the rectangular array of locations at which dots can be printed to form one character. All character cells for a given monospaced font at a given pitch are the same size. ...

  • Page 73

    7265 programmer’s manual 69 copyright © 2004 tallygenicom chapter 4 ansi oversized oversized character dimensions – 0 o 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 ...

  • Page 74

    7265 programmer’s manual 70 copyright © 2004 tallygenicom chapter 4 ansi oversized oversized character dimensions - 270 o 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 ...

  • Page 75

    7265 programmer’s manual 71 copyright © 2004 tallygenicom chapter 4 ansi oversized implementing the line feed function - 0 o 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 re...

  • Page 76

    7265 programmer’s manual 72 copyright © 2004 tallygenicom chapter 4 ansi oversized line spacing and intercharacter spacing - 270o 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 lea...

  • Page 77

    Appendix a. Commands and exceptions supported control codes and escape sequences ack acknowledge bel bell bs back space cr carriage return csi control string introducer, esc [ dc1 select printer (data control 1) dc3 deselect printer (data control 3) del delete enq enquiry esc escape esc \ or st stri...

  • Page 79: Programmer'S Reference

    Programmer's reference epson emulation.

  • Page 80: Table of Contents

    Table of contents description of escape sequences introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 paper and text formatting . . . . . . . . . . . . . . . . . . . . . . . . . 5 form length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 page length in un...

  • Page 81

    Character styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 super-/subscript mode on . . . . . . . . . . . . . . . . . . . . . . 29 double strike . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 select font and pitch by point . . . . . . . . . . . . . . . . . . . . 3...

  • Page 82

    Download character generator . . . . . . . . . . . . . . . . . . . . . . 73 general . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 copy rom into ram . . . . . . . . . . . . . . . . . . . . . . . . . 75 print raster graphics . . . . . . . . . . . . . . . . . . . . . . . . . 76 act...

  • Page 83: Index

    Appendix a summary of possible codes sorted by sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2 sorted by functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7 appendix b character sets standard character set . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

  • Page 84: Description of 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

    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 in...

  • Page 86

    This is followed by the data structure in ascii, hexadecimal and decimal syntax with the necessary parameters, e.G.: ascii esc "c" setting the form length in lines hex. 1b 43 dec. 27 67 for the parameter (here n) it is necessary to differentiate between two types of syntax. If the parameter is in po...

  • Page 87

    Setting the form length to 72 lines escape sequence esc c with n=72 transfer ascii esc "c" "h" hex. 1b 43 48 dec. 27 67 72 100 rem sample for the esc c 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...

  • Page 88: Paper and Text Formatting

    Paper and text formatting form length in lines esc c form length in inches esc c nul data structure ascii esc "c" set form length in lines ➊➌ hex. 1b 43 dec. 27 67 ascii esc "c" set form length in inches ➋➌ hex. 1b 43 0 dec. 27 67 00 description ➊ this code sequence sets the form length to n times t...

  • Page 89

    Example 10 rem form length 20 ff$=chr$(12) 30 k=1 40 lprint chr$(27);"c";chr$(4); 50 for f=1 to 3 60 for l=1 to k 70 lprint "length 4: form";f;"line";l 80 next l 90 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"...

  • Page 90: Esc ( C

    Set page length in units esc ( c data structure ascii esc "(" "c" l > h > l > h > set page length in units hex. 1b 28 43 l > h > l > h > dec. 27 40 67 l > h > l > h > description valid values: n l = 2, n h = 0 0 h x 256) + m l ) x (defined unit) ≤ 22 defines page length in untis previously defined w...

  • Page 91: Esc ( C

    Set page format esc ( c data structure ascii esc "(" "c" l > h > l > h > l > h > set page format hex. 1b 28 63 l > h > l > h > l > h > dec. 27 40 99 l > h > l > h > l > h > description valid values: n l = 4, n h = 0 ((t h x 256) + t l ) h x 256) + b l ) top margin ((b h x 256) + b l ) x (defined uni...

  • Page 92

    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 9.

  • Page 93: Esc N

    Perforation skip esc n reset perforation skip esc o data structure ascii esc "n" set space before perforation (perforation skip) ➊ hex. 1b 4e dec. 27 78 ascii esc "o" reset perforation skip ➋ hex. 1b 4f dec. 27 79 description ➊ this code sequence enables the perforation skip function and sets the bo...

  • 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 11.

  • Page 95: Esc Q

    Right margin esc q left margin esc l data structure ascii esc "q" set right margin ➊ hex. 1b 51 dec. 27 81 ascii esc " l " set left margin ➋ hex. 1b 6c dec. 27 108 description values for n character density 80 columns printer 136 columns printer 10 cpi 12 cpi 15 cpi 17.1 cpi 20 cpi 1... 80 1... 96 1...

  • Page 96

    Example 10 rem left and right margin 20 lprint " 1 2 3 4 5" 30 lprint "12345678901234567890123456789012345678901234567890123" 40 lprint chr$(27);"l";chr$(10);chr$(27);"q";chr$(53); 50 lprint "now the left margin is set to column 10 and"; 60 lprint "the right margin is set to column 53." 70 lprint ch...

  • Page 97: Esc A

    Justification and centering esc a data structure ascii esc "a" hex. 1b 61 or n dec. 27 97 or n 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 auto...

  • Page 98

    Example 10 rem justification and centering 20 width "lpt1:",255 30 lprint chr$(27);"q";chr$(48);:rem set right margin 40 lprint chr$(27);"a";chr$(1);"centered" 50 lprint "headline" 55 lprint chr$(27);"a";chr$(3) 60 lprint "now the right and the left justification "; 70 lprint "is on. The lines are f...

  • Page 99: Character Spacing

    Character spacing set hmi (horizontal motion index) esc c data structure ascii esc "c" l > h > set hmi (horizontal motion index) hex. 1b 63 l > h > dec. 27 99 l > h > description valid values: 0 ≤ n h ≤ 4 0 ≤ n l ≤ 255 0 h x 256) + n l )) ≤ 1080; hmi ≤ 3.00 inches the normal print density is enlarge...

  • Page 100

    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 dc2 reset condensed print dc4 reset enlarged print mode (set by or esc ) esc g character density 15 cpi esc m ...

  • Page 101: So/esc So

    Set enlarged print mode so/esc so reset enlarged print mode dc4 continuous enlarged print mode esc w syntax ascii so or esc so set enlarged print mode (for one line) ➊ hex. 0e or 1b 0e dec. 14 or 27 14 ascii dc4 reset enlarged print mode ➋ hex. 14 (set by so or esc so) dec. 20 ascii esc "w" or n set...

  • Page 102

    Example 10 rem enlarged character densities 20 lprint chr$(27);"p";: rem 10 cpi 30 lprint "normal 10 cpi character density" 40 lprint chr$(27);"w";chr$(1);: rem continuous enlarged density 50 lprint "10 cpi continuous enlarged" 60 lprint chr$(27);"m";: rem 12 cpi 70 lprint "12 cpi continuous enlarge...

  • Page 103: Si/esc Si

    Condensed character density si/esc si reset condensed character density dc2 data structure ascii si or esc si condensed print on ➊ hex. 0f or 1b 0f dec. 15 or 27 15 ascii dc2 reset condensed print ➋ hex. 12 dec. 18 description ➊ when the printer receives this code, the data will be printed approx. 4...

  • Page 104: Esc P

    Character density 10 cpi esc p character density 12 cpi esc m character density 15 cpi esc g data structure ascii esc "p" set character density to 10 cpi (pica) ➊ hex. 1b 50 dec. 27 80 ascii esc "m" set character density to 12 cpi (elite) ➋ hex. 1b 4d dec. 27 77 ascii esc "g" set character density t...

  • Page 105

    Example 10 rem single character densities 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 22 character spacing.

  • Page 106: Esc P

    Proportional spacing esc p data structure ascii esc "p" or n proportional spacing on/off hex. 1b 70 or n dec. 27 112 or n 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 fi...

  • Page 107: Esc Sp

    Character spacing esc sp data structure ascii esc sp hex. 1b 20 dec. 27 32 description the size of the spaces between the characters is increased by n ∗ 1 ⁄ 180 inch in nlq and lq and in draft by n ∗ 1 ⁄ 120 inch. This space is added to the spaces used for character de- finition. The value specified...

  • Page 108: Line Spacing

    Line spacing fixed line spacing 1/8 inch esc 0 fixed line spacing 7/72 inch esc 1 fixed line spacing 1/6 inch esc 2 data structure ascii esc "0" set line spacing to 1/8 inch ➊ hex. 1b 30 dec. 27 48 ascii esc "1" set line spacing to 7/72 inch ➋ hex. 1b 31 dec. 27 50 ascii esc "2" set line spacing to ...

  • 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 fix line spacing 20 lprint chr$(27);"0" 30 lprint "these two lines are printed with" 40 lprint "a spacing of 1/8 inch" 50 lpri...

  • Page 110: Esc 3

    Variable line spacing n/180 inch or n/216 inch esc 3 variable line spacing n/60 inch or n/72 inch esc a variable line spacing n/360 inch esc + data structure ascii esc "3" set n/180 inch line spacing ➊ hex. 1b 33 set n/216 inch line spacing dec. 27 51 ascii esc "a" set n/60 inch line spacing ➋ hex. ...

  • Page 111

    Example 10 rem variable line spacing 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 variable line spacing 20 for n= 20 to 40 step 10 30 lprint chr$(27);"3";chr$(n) 40 lprint "these ...

  • Page 112: Character Styling

    Character styling super-/subscript mode on esc s super-/subscript mode off esc t data structure ascii esc "s" or n super/subscript mode on ➊ hex. 1b 53 or n dec. 27 83 or n ascii esc "t" super/subscript mode off ➋ hex. 1b 54 dec. 27 84 description ➊ this code sequence switches the printer to supersc...

  • Page 113

    Example 10 rem superscript and subscript 20 lprint "e=m*c"; 30 lprint chr$(27);"s";chr$(0); 40 lprint "2"; 50 lprint chr$(27);"t"; 60 lprint " is einsteins most famous formula." 70 lprint "h"; 80 lprint chr$(27);"s";chr$(1);"2";chr$(27);"t"; 90 lprint "o is simply water." 100 end 30 character stylin...

  • Page 114: Esc G

    Double strike on esc g double strike off esc h data structure ascii esc "g" double strike on ➊ hex. 1b 47 dec. 27 71 ascii esc "h" double strike off ➋ hex. 1b 48 dec. 27 72 description ➊ this code sequence switches the printer to double strike mode. In double strike mode characters are printed in tw...

  • Page 115: Esc X

    Select font and pitch by point esc x data structure ascii esc "x" l > h > select font and pitch by point hex. 1b 58 l > h > dec. 27 88 l > h > description valid values: 5 ≤ m ≤ 127 m = 0.1 0 ≤ n l ≤ 255 0 ≤ n h ≤ 127 selects the pitch and point attributes for scalable fonts. Pitch: m = 0 no change i...

  • Page 116

    Not all printer fonts are scaleable. Please refer to the printer’s reference manual which 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: previo...

  • Page 117: Esc X

    Print quality esc x data structure ascii esc "x" or n set print quality (pq) hex. 1b 78 or n dec. 27 120 or n description n selected via control panel dpq nlq lq 0 dpq dpq dpq 1 lq nlq lq valid values for n are either ascii code 0 and 1 (hex00 and hex.01) or ascii characters "0" and "1" (hex.30 and ...

  • Page 118: Esc K

    Font type selection esc k data structure ascii esc "k" hex. 1b 6b dec. 27 107 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 p...

  • Page 119

    Example 10 rem font selection 20 lprint chr$(27);"x1"; : rem high print quality 30 for i=0 to 9 40 lprint chr$(27);"k";chr$(i); 50 lprint "this is the font selected with ";i" 60 next i 70 end 36 character styling.

  • Page 120: Esc Q

    Typestyle selection esc q data structure ascii esc "q" or n hex. 1b 71 or n dec. 27 113 or n 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 charact...

  • Page 121: Esc E

    Emphasized mode on esc e emphasized mode off esc f data structure ascii esc "e" emphasized mode on ➊ hex. 1b 45 dec. 27 69 ascii esc "f" emphasized mode off ➋ hex. 1b 46 dec. 27 70 description ➊ this code sequence switches the printer to emphasized mode. During printing in emphasized mode, each char...

  • Page 122: Esc -

    Underline mode esc - data structure ascii esc "-" or n underline mode on/off hex. 1b 2d or n dec. 27 45 or n 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 un...

  • Page 123: Esc ( -

    Score selection esc ( - data structure ascii esc "(" "-" nul 1 > 2 > hex. 1b 28 2d 03 00 01 1 > 2 > dec. 27 40 45 3 0 1 1 > 2 > 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. N 1 = loc ...

  • Page 124

    Example 10 rem score selection 20 lprint chr$(27);"(-";chr$(3);chr$(0);chr$(1);chr$(1);chr$(2); 30 lprint "1. Underline - double continous line" 40 lprint chr$(27);"(-";chr$(3);chr$(0); chr$(1);chr$(2);chr$(2); 50 lprint "2. Strike through and underline - double continous line" 60 rem cancel strike ...

  • Page 125: Esc 4

    Italic mode on esc 4 italic mode off esc 5 data structure ascii esc "4" italic mode on ➊ hex. 1b 34 dec. 27 52 ascii esc "5" italic mode off ➋ hex. 1b 35 dec. 27 53 description ➊ all characters following this code sequence are printed in italics. Italic characters are also printed, if codes with the...

  • Page 126: Esc !

    Print mode selection esc ! Data structure ascii esc "!" hex. 1b 21 dec. 27 33 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. T...

  • Page 127

    Stan- con- en- cond. Propor- prop.-/ lq lq dard densed larged enlarg. Tional enlarg. Enlarged pica - normal 0 4 32 36 2 34 0 32 - emphas. 8 – 40 – 18 50 8 40 - double 16 20 48 52 – – – – - em./double 24 – 56 – – – – – pica italic - normal 64 68 96 100 66 98 – – - emphas. 72 – 104 – 82 114 – – - doub...

  • 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 45.

  • Page 129: Esc W

    Double height esc w data structure ascii esc "w" double height on/off hex. 1b 77 or n dec. 27 119 or n 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...

  • Page 130: Print Positioning

    Print positioning horizontal tab stops esc d data structure ascii esc "d" 1 > ... 32 > nul set horizontal tab stops ➊ hex. 1b 44 1 > ... 32 > 00 dec. 27 68 1 > ... 32 > 0 ascii esc "d" nul clear all horizontal tab stops ➋ hex. 1b 44 00 dec. 27 68 0 description ➊ this code sequence is used for settin...

  • 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 10 rem horizontal tabs 20 lprint chr$(27);"d";chr$(0) :rem clear old tabs 30 lprint chr$(27);"d";chr$(10);chr$(20);chr$(30);chr$(0); 40 lprint chr$(18);:rem 10 cpi 50 lpr...

  • Page 132: Esc E

    Set horizontal and vertical step width esc e data structure ascii esc "e" nul set horizontal step width ➊ hex. 1b 65 00 dec. 27 101 0 ascii esc "e" soh set vertical step width ➋ hex. 1b 65 01 dec. 27 101 1 description ➊ this sequence sets the horizontal step width n according to the current characte...

  • Page 133: Esc

    Horizontal and vertical step forward esc f data structure ascii esc "f" nul set horizontal step forward ➊ hex. 1b 66 00 dec. 27 102 0 ascii esc "f" soh set vertical step forward ➋ hex. 1b 66 01 dec. 27 102 1 description ➊ at the next print position n spaces without carriage return (cr) are inserted....

  • Page 134: Esc $

    Absolute horizontal step esc $ data structure ascii esc "$" 1 > 2 > set absolute horizontal step hex. 1b 24 1 > 2 > dec. 27 36 1 > 2 > 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 1...

  • Page 135

    Example 10 rem absolute horizontal position 20 lprint chr$(27);"x1";:rem select lq 30 lprint chr$(27);"$";chr$(10);chr$(0);"10"; 40 lprint chr$(27);"$";chr$(100);chr$(0);"100"; 50 lprint chr$(27);"$";chr$(170);chr$(0);"170"; 60 lprint 70 lprint chr$(27);"w1"; 80 lprint chr$(27);"$";chr$(10);chr$(0);...

  • Page 136: Esc \

    Relative horizontal step esc \ data structure ascii esc "\" 1 > 2 > set relative horizontal step hex. 1b 5c 1 > 2 > dec. 27 92 1 > 2 > 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 a...

  • Page 137

    N 1 = 480 mod 256 = dec.224 = hex.E0 movement of 5 ⁄ 3 inches (1.67 inches) towards the left side: n = 65536 - 1.67 * 120 = 65336 n 2 = int ( 65336 ⁄ 256 ) = dec.255 = hex.Ff n 1 = 65336 mod 256 = dec.56 = hex.38 note that you obtain the same result by using the formula given for calculating n 1 and...

  • Page 138: Esc B

    Vertical tab stops esc b data structure ascii esc "b" 1 >... 16 > nul set vertical tab stops ➊ hex. 1b 42 1 >... 16 > 00 dec. 27 66 1 >... 16 > 0 ascii esc "b" nul reset all vertical tab stops ➋ hex. 1b 42 00 dec. 27 66 0 description ➊ by means of this code sequence a maximum of 16 vertical tab stop...

  • Page 139

    When the printer is switched on no vertical tab stops are set. Example 10 rem vertical tabs 20 lprint chr$(27);"c";chr$(10);:rem set form length 30 lprint chr$(27);"b";chr$(0);:rem clear all vtabs 40 lprint chr$(27);"b";chr$(3);chr$(5);chr$(9);chr$(0); 50 lprint chr$(11);"this is the first vertical ...

  • Page 140: Esc B

    Set/reset vertical tabs in channels esc b select vertical tab channel esc / data structure ascii esc "b" 1 >... 16 > nul set vertical tabs in channels ➊ hex. 1b 62 ... 00 dec. 27 98 ... 0 ascii esc "b" nul clear all tab settings hex. 1b 62 00 dec. 27 98 0 ascii esc "/" select vertical tab channel ➋ ...

  • Page 141

    Example 10 rem vertical tabs in tab channels 20 lprint chr$(27);"c";chr$(24); ’form length 24 lines 30 lprint chr$(27);"b";chr$(0);chr$(2);chr$(4);chr$(6);chr$(0) 40 rem channels 0 tabs set at lines 2, 4, and 6 50 lprint chr$(27);"b";chr$(1);chr$(9);chr$(11);chr$(14);chr$(0); 60 rem channel 1 tabs s...

  • Page 142: Esc ( V

    Set absolute vertical print position esc ( v data structure ascii esc "(" "v" l > h > l > h > set absolute vertical print pos. Hex. 1b 28 56 l > h > l > h > dec. 27 40 86 l > h > l > h > description valid values: n l = 2, n h = 0 0 ≤ m l ≤ 255; 0 ≤ m h ≤ 127 defines the vertical print position in un...

  • Page 143: Esc ( V

    Set relative vertical print position esc ( v data structure ascii esc "(" "v" l > h > l > h > set relative vertical print pos. Hex. 1b 28 76 l > h > l > h > dec. 27 40 118 l > h > l > h > description valid values: n l = 2, n h = 0 0 ≤ m l ≤ 255; 0 ≤ m h ≤ 127 defines the vertical print position rela...

  • Page 144

    The default unit for this sequence is 1 ⁄ 360 ". 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...

  • Page 145: Esc ( U

    Set unit esc ( u data structure ascii esc "(" "u" l > h > set unit hex. 1b 28 55 l > h > dec. 27 40 85 l > h > description valid values: n l = 1, n h = 0 m = 10, 20, 30, 40, 50, 60 sets the units to m ⁄ 3600 inch. Following commands are using this unit: esc ( v esc ( v esc ( c esc ( c the default va...

  • Page 146: Graphics

    Graphics graphics 60 dpi esc k graphics 120 dpi esc l high speed graphics 120 dpi esc y graphics 240 dpi esc z graphic modes esc * data structure ascii esc "k" 1 > 2 > graphics 60 dpi hex. 1b 4b 1 > 2 > dec. 27 75 1 > 2 > ascii esc "l" 1 > 2 > graphics 120 dpi hex. 1b 4c 1 > 2 > dec. 27 76 1 > 2 > a...

  • Page 147

    Special 8 point sequences esc * ... -sequences print mode density in dpi (dots per inch) needles in use adja- cent dots horizont. Vertic. Esc k... Esc * ... Single density 60 72 60 8 possible esc l... Esc * ... Double density 120 8 possible esc y... Esc * ... Double density/ high speed 120 8 not pos...

  • 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 1 • bit 7 2 • bit 6 3 • bit 5 4 • bit 4 5 • bit 3 6 • bit 2 7 • bit 1 8 • bit 0 relationship between bits of graphics data and needles (24 needle v...

  • 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 10 rem bit image print 20 width "lpt1:",255 30 for i=0 to 4: 40 lprint "mode: ";str$(i) 50 lprint chr$(27);"*";chr$(i);chr$(254);chr$(0); 60 for j=1 to 127 70 lp...

  • Page 150: Esc ( G

    Select graphics mode esc ( g data structure ascii esc "(" "g" l > h > select graphics mode hex. 1b 28 47 l > h > dec. 27 40 71 l > h > description valid values: n l = 1 n h = 0 m = 1, 49 enters graphics mode. Prepares printer for the sequence esc . (see page 76). Following sequences are valid after ...

  • 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. 68 graphics.

  • Page 152: Esc ?

    Graphics mode reassignment esc ? Data structure ascii esc "?" reassign graphics mode hex. 1b 3f dec. 27 63 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 * ... Code sequence. Availabl...

  • Page 153

    Example 10 rem reassigns graphics sequence 20 lprint chr$(27);"k";chr$(60);chr$(0); 30 rem standard esc k graphics sequence 40 for x=1 to 60:rem 60 columns 50 lprint chr$(255);:rem one byte per columns 60 next x:lprint 70 lprint chr$(27)"?K";chr$(3) 80 rem reassigns esc k to quadruple density 90 lpr...

  • Page 154: Esc ^

    Graphics printing with 9 print dots esc ^ data structure ascii esc "^" 1 > 2 > hex. 1b 5e 1 > 2 > dec. 27 94 1 > 2 > 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 u...

  • Page 155

    Example for the calculation of n1 and n2: the number of graphics bytes is 80. N 2 = number of bytes divided by 256 = 80 ⁄ 256 = dec.0 = hex.00 n 1 = remainder from division of n 2 = dec.80 = hex.50 graphics and text data can be used in combination in a line. For 9-print-dots-graphics-printing, two g...

  • 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 o...

  • 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 ...

  • Page 158: Esc :

    Copy rom into ram esc : data structure ascii esc ":" nul nul copy rom cg hex. 1b 3a 00 00 dec. 27 58 0 0 description this escape sequence copies the specified character set (see esc k ) from rom or from the font module to ram. There the individual characters can be altered by the user. Example 10 re...

  • Page 159: Esc .

    Print raster graphics esc . Data structure ascii esc "." l > h > 1 >... X > hex. 1b 2e l > h > 1 >... X > dec. 27 46 l > h > 1 >... X > description valid values: c = 0 c = 1 v = 10, 20 h = 10, 20 m = 1, 8, 24 0 ≤ n l ≤ 255 0 ≤ n h ≤ 127 0 ≤ d ≤ 255 this sequence supports following print densities: v...

  • Page 160

    Description of parameters: c = 0 normal mode (not compressed) c = 1 data length encoding (dle, compressed) v vertical resolution in dpi: 360, 180 dpi h horizontal resolution in dpi: 360, 180 dpi m vertical dot count (rows of dot graphics) n l , n h horizontal dot count (columns of dot graphics) calc...

  • 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 – (counter byte) + 1 = (n...

  • Page 163: Esc &

    Download characters esc & 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 & nul 1 > 2 > 3 >... 11 > ...

  • 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. Therefore it is always left blank by automatically setting ...

  • 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: r o w s 1 2 3 4 5 6 7 8 9 10 11 8 7 6 5 4 3 2 1 columns 128 64 32 16 8 ...

  • Page 166

    Example 10 rem download character definition 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 ch...

  • 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 ...

  • Page 168

    Just add up the values of the three parts of the byte to get the value of a. 1. Normal = 128 descender = 0 2. First column is 1 = 0 first column is 2 = 16 first column is 3 = 32 first column is 4 = 48 first column is 5 = 64 first column is 6 = 80 first column is 7 = 96 first column is 8 = 112 3. Las...

  • Page 169

    Normal matrix field = 128 first column is 1 = 0 last column is 12 = 11 total value of = 139 normal matrix field = 128 first column is 4 = 48 last column is 9 = 8 total value of = 184 e l e l 86 download character generator.

  • Page 170

    Example 10 rem copy us ascii caracter set 20 lprint chr$(27);"r";chr$(0); 30 lprint chr$(27);":";chr$(0);chr$(0);chr$(0); 40 rem define character into # code and 4 code 50 lprint chr$(27);"&";chr$(0);"#$"; 60 rem first character without descenter 70 lprint chr$(137); 80 lprint chr$(56);chr$(68);chr$...

  • Page 171

    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- te...

  • 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. Data byte 1 0 0 0 0 0 255 0 0 0 0 0 0 data byte 2 8 4 2 1 0 255 0 1 2 4 8 0 data byte 3 0 0 0 0 128 192 128 0 0 0 0 0 see next page for the correspon...

  • 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); 210 lpri...

  • Page 175: 24 Needle Printer

    24 needle printer data structure ascii esc "&" nul 0 > 1 > 2 > n 1 ...N 3 (data first character) 0 > 1 > 2 > n 1 ...N 3 (data second character) ... Hex. 1b 26 ... Dec. 27 38 ... Description x first character to be redefined y last character to be redefined d 0 leading space of the character d 1 numb...

  • 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 1 . Superscript and subscript characters and 15 cpi characters can be assigned needles 1 to 16. The super and sub shifting will be done by cor...

  • Page 177

    Example 10 rem download character definition 20 lprint chr$(27);"x1" 30 lprint chr$(27);"&";chr$(0);"aa"; 40 lprint chr$(5);chr$(30);chr$(0); 50 lprint chr$(15);chr$(255);chr$(0); 60 lprint chr$(16);chr$(0);chr$(128); 70 lprint chr$(32);chr$(0);chr$(64); 80 lprint chr$(64);chr$(0);chr$(32); 90 lprin...

  • Page 178: Miscellaneous

    Miscellaneous print data as characters esc ( ^ data structure ascii esc "(" "^" l > h > 1 >... N > print data as characters hex. 1b 28 54 l > h > 1 >... N > dec. 27 40 94 l > h > 1 >... N > description valid values: 0 ≤ n l ≤ 255 0 ≤ n h ≤ 127 data bytes d 1 to d n are printed as characters rather t...

  • Page 179: Esc

    Printing direction unidirectional for one line esc set/reset unidirectional printing esc u data structure ascii esc " unidirectional printing for one line ➊ hex. 1b 3c dec. 27 60 ascii esc "u" or n set/reset unidirectional printing ➋ hex. 1b 55 or n dec. 27 85 or n description ➊ this code sequence s...

  • Page 180: Esc S

    Half-speed printing esc s data structure ascii esc "s" hex. 1b 73 dec. 27 115 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 10 rem selects half-speed printing 20 lprint "this is full speed print in ...

  • Page 181: Esc J

    Single n/180 inch or n/216 inch line feed esc j single n/180 inch or n/216 inch back feed esc j data structure ascii esc "j" n/180 inch line feed ➊ hex. 1b 4a n/216 inch line feed dec. 27 74 ascii esc "j" n/180 inch back feed ➋ hex. 1b 6a n/216 inch back feed dec. 27 106 description ➊ when the print...

  • Page 182: Esc R

    Colour selection esc r data structure ascii esc "r" hex. 1b 72 dec. 27 114 description according to the value specified for n one of the subsequent colours is selected: 0 black 0 black 1 magenta 1 red 2 cyan 2 blue 3 blue 3 violet 4 yellow 4 yellow 5 red 5 orange 6 green 6 green the available colour...

  • Page 183

    The relationship between colour selection sequences and the resulting colours for several ribbon cassettes is shown in the following table: selected colour magenta, cyan, yellow, black ribbon red, green, blue, black ribbon 3 ∗ black, red ribbon black black black black red red *) red red green green ...

  • Page 184: Esc R

    International character sets esc r data structure ascii esc "r" select international character set hex. 1b 52 dec. 27 82 description according to the value specified for n the corresponding international character set can be selected: 0 usa 1 france 2 germany 3 united kingdom (uk) 4 denmark i 5 swed...

  • Page 185

    Example 10 rem international character sets 20 lprint chr$(27);"r";chr$(0) ;"ascii : ";:gosub 160 30 lprint chr$(27);"r";chr$(1) ;"france : ";:gosub 160 40 lprint chr$(27);"r";chr$(2) ;"germany : ";:gosub 160 50 lprint chr$(27);"r";chr$(3) ;"uk : ";:gosub 160 60 lprint chr$(27);"r";chr$(4) ;"denmark...

  • Page 186: Esc T

    Character sets esc t data structure ascii esc "t" 1 > select character table hex. 1b 74 1 > dec. 27 116 1 > description valid values: 0 ≤ d 1 ≤ 3, 48 ≤ d 1 ≤ 51 by means of this code sequence the upper half of character code table (dec. 128 to dec. 255) can be selected. Default description d 1 = 0 o...

  • 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 1 ). If d 1 = 2 you cannot use user-defined characters defined previously with esc ( t (see page 105). Example 10 rem upper half of code table 20...

  • Page 188: Esc ( T

    Assign character table esc ( t data structure ascii esc "(" "t" l > h > 1 > 2 > 3 > assign character table hex. 1b 28 74 l > h > 1 > 2 > 3 > dec. 27 40 116 l > h > 1 > 2 > 3 > description valid values: n l = 3, n h = 0 0 ≤ d 1 ≤ 3, 48 ≤ d 1 ≤ 51 0 ≤ d 2 ≤ 255 0 ≤ d 3 ≤ 255 assignes the choosen chara...

  • Page 189

    D 2 d 3 table name 26 0 abicomp 29 16 iso 8859-1 (latin 1) 35 0 roman 8 127 2 iso 8859-2 (latin 2) please refer to the printer’s reference manual which character sets are supported. 106 miscellaneous.

  • Page 190: Esc >

    Input data control bit 8 = 1 esc > input data control bit 8 = 0 esc = input data control bit 8 unchanged esc # data structure ascii esc ">" set bit 8 = 1 hex. 1b 3e dec. 27 62 ascii esc "=" set bit 8 = 0 hex. 1b 3d dec. 27 61 ascii esc "#" removing the settings set for bit 8 (msb, most significant b...

  • Page 191: Esc Em

    Sheet feeder esc em data structure ascii esc em "0" deactivate sheet feeder operation hex. 1b 19 30 dec. 27 25 48 ascii esc em "1" select magazine 1 (front) hex. 1b 19 31 dec. 27 25 49 ascii esc em "2" select magazine 2 (rear) hex. 1b 19 32 dec. 27 25 50 ascii esc em "4" activate sheet feeder operat...

  • 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 109.

  • Page 193: Esc 6

    Print code area expansion on esc 6 print code area expansion off esc 7 data structure ascii esc "6" print ascii codes 128 to 159 and 255 ➊ hex. 1b 36 dec. 27 54 ascii esc "7" suppress ascii codes 128 to 159 and 255 ➋ hex. 1b 37 dec. 27 55 description ➊ this code sequence causes the printout of the h...

  • Page 194

    Example 10 rem code aera expansion 15 lprint chr$(27);"t1"; 20 lprint chr$(27);"6"; 30 gosub 70 40 lprint chr$(27);"7"; 50 gosub 70 60 end 70 restore 80 for i = 1 to 12 90 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 miscellaneous 11...

  • Page 195: Esc M

    Activate/deactivate graphics characters esc m data structure ascii esc "m" hex. 1b 6d dec. 27 109 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) activates the control codes n = 4 (hex.04) a...

  • Page 196: Esc I

    International code table esc i data structure ascii esc "i" or n hex. 1b 49 or n dec. 27 73 or n 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 ...

  • Page 197: Esc @

    Printer initialization esc @ data structure ascii esc "@" printer initialization hex. 1b 40 dec. 27 64 description printer initialization means that the printer is in the same state as it is after switch-on. All parameters set by means of esc sequences are cleared. All print data transferred after t...

  • Page 198: Esc 8

    Activate paper end sensor esc 8 deactivate paper end sensor esc 9 data structure ascii esc "8" deactivate paper end sensor ➊ hex. 1b 38 dec. 27 56 ascii esc "9" activate paper end sensor ➋ hex. 1b 39 dec. 27 57 description ➊ this sequence deactivates the paper end sensor, so that a cut sheet can be ...

  • Page 199: Control Codes

    Control codes bel (hex.07) (dec.7) sounds acoustic signal. Bs (hex.08) (dec.8) print contents of line buffer, then move the print head one position back. When auto right justification is selected by code sequence esc a, will be ignored. Can (hex.18) (dec.24) when the printer receives this code, the ...

  • Page 200

    Del (hex.7f) (dec.127) clear previous characters in the print buffer. Esc (hex.1b) (dec.27) start character for a subsequent program sequence. Ff (hex.0c) (dec.12) when the printer receives this code, it prints the data in the print buffer, then advances the paper from the current print position to ...

  • Page 201

    Soh (hex.01) (dec.01) start of heading. Sp (hex.20) (dec.32) space vt (hex.0b) (dec.11) when the printer receives this code, it prints the data in the print buffer and then advances the paper to the next vertical tab stop position. The next character is printed in the column following the last print...

  • Page 202: Appendix A

    Appendix a summary of possible codes.

  • Page 203

    Bel bell . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 bs control code bs (backspace) . . . . . . . . . . . . . . 116 can control code can (cancel) . . . . . . . . . . . . . . . 116 cr control code cr (carriage return) . . . . . . . . . . . 116 del control code del (delete) . . . . . ....

  • Page 204

    Esc * graphics 72 dpi . . . . . . . . . . . . . . . . . . . . . . 63 esc * graphics 90 dpi . . . . . . . . . . . . . . . . . . . . . . 63 esc * graphics 144 dpi . . . . . . . . . . . . . . . . . . . . . 63 esc * graphics 60 dpi . . . . . . . . . . . . . . . . . . . . . . 63 esc * graphics 120 dpi . ...

  • Page 205

    Esc 0 set line feed to 1/8 inch . . . . . . . . . . . . . . . . . . 25 esc 1 set line feed to 7/72 inch . . . . . . . . . . . . . . . . . 25 esc 2 set line feed to 1/6 inch . . . . . . . . . . . . . . . . . . 25 esc 3 set line feed to n/216 inch . . . . . . . . . . . . . . . . 27 esc 4 italic mode o...

  • Page 206

    Esc g character density 15 cpi . . . . . . . . . . . . . . . . . 21 esc h double strike print mode off . . . . . . . . . . . . . . . 31 esc i printout of control codes . . . . . . . . . . . . . . . . . 113 esc i direct print mode, activate/deactivate . . . . . . . . . . . 112 esc j line feed n/216 i...

  • Page 207

    Esc sp character spacing . . . . . . . . . . . . . . . . . . . . . 24 esc t super/subscript mode off . . . . . . . . . . . . . . . . 29 esc t character set selection (italic) . . . . . . . . . . . . . . . 103 esc t character set selection (graphics) . . . . . . . . . . . . 103 esc t character set se...

  • Page 208

    Absolute horizontal step esc $ . . . . . . . . . . . . . . . . . . . . . 51 ascii character 0 nul . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 assign character table esc ( t . . . . . . . . . . . . . . . . . . . . . . . . . . 105 back feed n/216 inch esc j . . . . . . . . . . . . . . ...

  • Page 209

    Form feed ff . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 form length in inches esc c nul . . . . . . . . . . . . . . . . . . . . . 5 form length in lines esc c . . . . . . . . . . . . . . . . . . . . . . . . 5 graphics 120 dpi esc * . . . . . . . . . . . . . . . . . . . 63 graphics 1...

  • Page 210

    National character set selection esc r . . . . . . . . . . . . . . . . . . . . . . . . 101 paper end sensor, activation esc 9 . . . . . . . . . . . . . . . . . . . . . . . . . . 115 paper end sensor, deactivation esc 8 . . . . . . . . . . . . . . . . . . . . . . . . . . 115 perforation skip esc n . ...

  • Page 211

    Set unit esc ( u . . . . . . . . . . . . . . . . . . . . . . . . . . 62 sheet feeder esc em . . . . . . . . . . . . . . . . . . . . . . . 108 space sp . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 super/subscript mode off esc t . . . . . . . . . . . . . . . . . . . . . . . . . . 29 sup...

  • Page 212: Appendix B

    Appendix b character sets register nur für sni.

  • 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. Hex 0 1 2 3 4 5 dec 0 nul sp 0 16 32 48 64 80 1 1 17...

  • Page 214

    Standard character set hex 0 1 2 3 4 5 6 7 8 9 a b c d e f dec 0 nul nul 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 dc1 dc1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 dc2 dc2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 dc3 dc3 3 19 35 51 67 83 99 115 131 1...

  • Page 215

    International substitution table - normal font dec 35 36 64 91 92 93 94 96 123 124 125 126 hex 23 24 40 5b 5c 5d 5e 60 7b 7c 7d 7e us ascii french german uk danish i swedish italian spanish i japanese norwegian danish ii spanish ii l.American b-4 character sets.

  • Page 216

    International substitution table - italic font dec 163 164 192 219 220 221 222 224 251 252 253 254 hex a3 a4 c0 db dc dd de e0 fb fc fd fe us ascii french german uk danish i swedish italian spanish i japanese norwegian danish ii spanish ii l.American character sets b-5.

  • Page 217

    Graphics character set hex 0 1 2 3 4 5 6 7 8 9 a b c d e f dec 0 nul nul 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 dc1 dc1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 dc2 dc2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 dc3 dc3 3 19 35 51 67 83 99 115 131 1...

  • Page 218

    Standard character set, extended hex 0 1 2 3 4 5 6 7 8 9 a b c d e f dec 0 nul 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 dc1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 dc2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 dc3 3 19 35 51 67 83 99 115 131 147 163...

  • Page 219

    Graphics character set, extended hex 0 1 2 3 4 5 6 7 8 9 a b c d e f dec 0 nul 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 dc1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 dc2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 dc3 3 19 35 51 67 83 99 115 131 147 163...

  • Page 220

    International code table hex 0 1 2 3 4 5 6 7 8 9 a b c d e f dec 0 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 dc2 dc2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 dc3 dc3 3 19 35 51 67 83 99 115 131 147 163 179 195...

  • Page 221

    International code table, extended hex 0 1 2 3 4 5 6 7 8 9 a b c d e f dec 0 sp 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 dc2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 dc3 3 19 35 51 67 83 99 115 131 147 163 17...

  • Page 222

    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 char...

  • 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: (character width) = int  (point ...

  • Page 224

    24 needle printer code char. Width in 1 ⁄ 360 " code char. Width in 1 ⁄ 360 " code char. Width in 1 ⁄ 360 " hex. Dec. Hex. Dec. Hex. Dec. 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 ...

  • Page 225

    Code char. Width in 1 ⁄ 360 " code char. Width in 1 ⁄ 360 " code char. Width in 1 ⁄ 360 " hex. Dec. Hex. Dec. Hex. Dec. 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 113 114 115 116 117 118 119 120 121 122 123 124 125 126 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/2...

  • Page 226

    Code char. Width in 1 ⁄ 360 " code char. Width in 1 ⁄ 360 " code char. Width in 1 ⁄ 360 " hex. Dec. Hex. Dec. Hex. Dec. C3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219...

  • Page 227

    9 needle printer code character width in 1 ⁄ 120 " code character width in 1 ⁄ 120 " code character width in 1 ⁄ 120 " hex. Dec. Hex. Dec. Hex. Dec. 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 5...

  • Page 228

    Code character width in 1 ⁄ 120 " code character width in 1 ⁄ 120 " code character width in 1 ⁄ 120 " hex. Dec. Hex. Dec. Italic graph. Hex. Dec. Italic graph. 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 11 11 12 11 12 12 12 10 12 10 9 5 9...

  • Page 229

    Code character width in 1 ⁄ 120 " code character width in 1 ⁄ 120 " code character width in 1 ⁄ 120 " hex. Dec. Italic graph. Hex. Dec. Italic graph. Hex. Dec. Italic graph. B6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf c0 182 183 184 185 186 187 188 189 190 191 192 1...

  • 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 i...

  • Page 231: Programmer’S

    Programmer’s reference tally ansi ( mtpl ) emulation.

  • Page 232: Table of Contents

    Table of contents description of mtpl-sequences introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 paper and text formatting . . . . . . . . . . . . . . . . . . . . . . . . . . 5 form length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 turn on p...

  • Page 233

    Line spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 vertical spacing (svs) . . . . . . . . . . . . . . . . . . . . . . . . . . 24 line density 6 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 line density 8 lpi . . . . . . . . . . . . . . . . . . . ....

  • Page 234

    Horizontal tab stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 set horizontal tab stop at current position . . . . . . . . . . . . . . . . 45 horizontal tab stops on . . . . . . . . . . . . . . . . . . . . . . . . . 46 horizontal tab stops off (tbc) . . . . . . . . . . . . . . . . . ...

  • Page 235

    Color selection (option) . . . . . . . . . . . . . . . . . . . . . . . . . . 72 input data control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 sheet feeder/paperway . . . . . . . . . . . . . . . . . . . . . . . . . 76 eject form . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

  • 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: Introduction

    Description of mtpl-sequences introduction paper and text formatting character spacing line spacing character styling print positioning graphics miscellaneous.

  • Page 238: Introduction

    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....

  • Page 239

    Csi means “control sequence introducer” and is described by the code 9b (hex.) or esc [ : 7-bit-environment ➛ hex. 1b, hex. 5b (= esc [ ) 8-bit-environment ➛ hex. 9b it is sensible to use only esc [ as “control sequence introducer” if mtpl is used associated with any other printer emulation. The las...

  • 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-seque...

  • Page 241: Paper And Text Formatting

    Paper and text formatting form length csi ... T data sructure ascii csi n "t" [a] set form lenght in lines hex. 9b n 74 dec. 155 n 116 description pum turned off: n = 1...132 lines at a line spacing of 1 ⁄ 6 inch (6 lpi) = 1...176 lines at a line spacing of 1 ⁄ 8 inch (8 lpi) this mtpl-sequence sets...

  • Page 242

    Example 10 rem form length 20 lprint chr$(27);"[4t"; 30 for f=1 to 2 40 for l=1 to 3 50 lprint "length 4:form";f;" line";l 60 next l:lprint chr$(12);:next f 70 lprint 80 lprint chr$(27);"[3t"; 90 for f=1 to 3 100 for l=1 to 2 110 lprint "length 3:form";f;" line";l 120 next l:lprint chr$(12);:next f ...

  • Page 243: Csi 11 H

    Turn on positioning unit mode (sm) csi 11 h turn off positioning unit mode (rm) csi 11 data structure ascii csi "1" "1" "h" [a] turn pum on hex. 9b 31 31 68 dec. 155 49 49 104 ascii csi "1" "1" " " [a] turn pum off hex. 9b 31 31 69 dec. 155 49 49 105 description pum = positioning unit mode this mode...

  • Page 244: Csi ... Sp I

    Select size unit (ssu) csi ... Sp i data structure ascii csi n sp "i" [b] select size unit hex. 9b n sp 49 dec. 155 n sp 73 description for n the following parameters are available: n hex. Dec. Size unit 0 30 48 decipoints ( 1 ⁄ 720 inch = 0,0353 mm) 1 31 49 millimeters 2 32 50 decipoints (0,0353 mm...

  • Page 245: Csi ... R

    Set top and bottom margin csi ... R clear top and bottom margin csi r data structure ascii csi n 1 ";" n 2 "r" [a] set top and bottom margin hex. 9b n 1 3b n 2 72 dec. 155 n 1 59 n 2 114 ascii csi "r" [a] clear top and bottom margin hex. 9b 72 dec. 155 114 description n 1 specifies the value of the ...

  • Page 246

    Example 10 rem top and bottom margin 20 lprint chr$(27);"[6t";:rem form length 30 lprint chr$(27);"[2;5r":rem set margins 40 for f=1 to 2 50 for l=2 to 5 60 lprint "form";f;" line ";l 70 next l:next f 80 lprint 90 lprint chr$(27);"[0;0r";:rem clear margins 100 for f=1 to 2 110 for l=1 to 6 120 lprin...

  • Page 247: Csi ... S

    Set left and right margin csi ... S clear left and right margin csi s data structure ascii csi n 1 ";" n 2 "s" [a] set left and right margin hex. 9b n 1 3b n 2 73 dec. 155 n 1 59 n 2 115 ascii csi "s" [a] clear left and right margin hex. 9b 73 dec. 155 115 description n 1 specifies the value of the ...

  • 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 left and right margin 20 width "lpt1:",255 30 lprint chr$(27);"[10;53s"; 40 lprint "now the left margin...

  • Page 249: Csi ... Sp U

    Set line home (slh) csi ... Sp u set line limit (sll) csi ... Sp v data structure ascii csi n sp "u" [a] set line home ➊ hex. 9b n 20 55 dec. 155 n 32 85 ascii csi n sp "v" [a] set line limit ➋ hex. 9b n 20 55 dec. 155 n 32 85 description n = 1...Maximal print area ➊ default setting: physical left m...

  • Page 250: Csi 8 Y

    Right justification on csi 8 y centering on csi 9 y right justification and centering off csi 10 y right justification and centering off csi : y data structure ascii csi n "y" justification hex. 9b n 79 dec. 155 n 121 description for n the following characters are available: n hex. Dec. Justificatio...

  • Page 251: Character Spacing

    Character spacing spacing increment (spi) csi ... Sp g data structure ascii csi n 1 ";" n 2 sp "g" [b] [c] set spacing increment hex. 9b n 1 3b n 2 20 47 dec. 155i n 1 59 n 2 32 71 description n 1 specifies the line spacing n 2 specifies the character spacing the unit is expressed in decipoints or o...

  • Page 252: Csi ... W

    Horizontal spacing csi ... W data structure ascii csi n "w" [a] set cpi hex. 9b n 77 dec. 155 n 119 description for n the following parameters are available: n hex. Dec. Horizontal spacing 0 30 48 5 cpi 1 31 49 6 cpi 2 32 50 7,5 cpi 3 33 51 [b] [c] 8,6 cpi 4 34 52 10 cpi 5 35 53 12 cpi 6 36 54 15 cp...

  • Page 253

    Example 10 rem character densities 20 lprint chr$(27);"[4wthis is 10 cpi, "; 30 lprint chr$(27);"[12wthis is 10 cpi (high resolution), " 40 lprint chr$(27);"[5wthis is 12 cpi, "; 50 lprint chr$(27);"[6wthis is 15 cpi, "; 60 lprint chr$(27);"[7wthis is 17.1 cpi, "; 70 lprint chr$(27);"[11wthis is 20 ...

  • Page 254: Csi ... Sp K

    Horizontal character spacing (shs) csi ... Sp k data structure ascii csi n sp "k" [a] set cpi hex. 9b n 20 4b dec. 155 n 32 75 description for n the following parameters are available: n hex. Dec. Character spacing 0 30 48 10 cpi 1 31 49 6 cpi 2 32 50 12 cpi 3 33 51 15 cpi with this sequence the hor...

  • Page 255: Csi ... Sp G

    Character spacing (scs) csi ... Sp g data structure ascii csi n sp "g" [a] set character spacing hex. 9b n 20 67 dec. 155 n 32 103 description n 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 b...

  • Page 256: Csi ... Sp \

    Additional character spacing (sacs) csi ... Sp \ data structure ascii csi n sp " \" [a] set additional character spacing hex. 9b n 20 5c dec. 155 n 32 92 description n specifies the additional character spacing the units are either decipoints or defined by ssu (select size unit, see page 8). This fu...

  • Page 257: Csi ... Sp F

    Reduced character spacing (srcs) csi ... Sp f data structure ascii csi n sp "f" [b] set reduced character spacing hex. 9b n 20 66 dec. 155 n 32 102 description n specifies the reduced character spacing the units are either decipoints or defined by ssu (select size unit, see page 8). This function re...

  • Page 258: Csi ... P

    Horizontal motion index (hmi) csi ... P data sructure ascii csi n "p" [c] set hmi hex. 9b n 70 dec. 155 n 112 description n = 0...20 the normal character density is enlarged by n ∗ 1 ⁄ 120 inch. If n is set to zero (default setting), hmi is disabled. Example 10 rem horizontal motion index 20 lprint ...

  • Page 259: Csi ... Q

    Horizontal step (microspace) csi ... Q data structure ascii csi n "q" [c] set horizontal step hex. 9b n 71 dec. 155 n 113 description n = 1...255 the space between characters is enlarged by n ∗ 1 ⁄ 120 inch at the current print position. Examples: csi q enlarging character space by n ∗ 1 ⁄ 120 inch ...

  • Page 260: Line Spacing

    Line spacing vertical spacing (svs) csi ... Sp l data structure ascii csi n sp "l" [a] set vertical spacing (lpi) hex. 9b n 20 4c dec. 155 n 32 76 description for n the following parameters are available: n hex. Dec. Vertical spacing 0 30 48 6 lpi 1 31 49 4 lpi 2 32 50 3 lpi 3 33 51 12 lpi 4 34 52 8...

  • Page 261: Csi 3 Z

    Line density 6 lpi csi 3 z line density 8 lpi csi 4 z data structure ascii csi "3" "z" [c] line density 6 lpi (= line spacing 1/6 inch) hex. 9b 33 7a dec. 155 51 122 ascii csi "4" "z" [c] line density 8 lpi (= line spacing 1/8 inch) hex. 9b 34 7a dec. 155 52 122 description these sequences set the l...

  • Page 262: Csi ... Sp H

    Set line spacing (sls) csi ... Sp h data structure ascii csi n sp "h" [a] set line spacing hex. 9b n 20 68 dec. 155 n 32 104 description n 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 incr...

  • Page 263: Character Styling

    Character styling superscript on csi 0 z subscript on csi 1 z microscript on csi 10 z super-/sub-/microscript off csi 2 z data structure ascii csi n "z" [a] character styling hex. 9b n 7a dec. 155 n 122 description for n the following parameters are availble: n hex. Dec. Character styling 0 30 48 su...

  • Page 264

    Example 10 rem super/sub/microscript 20 lprint "e=m*c"; 30 lprint chr$(27);"[0z"; 40 lprint "2"; 50 lprint chr$(27);"[2z"; 60 lprint " is einsteins most famous formula." 70 lprint "h"; 80 lprint chr$(27);"[1z";"2";chr$(27);"[2z"; 90 lprint "o is simply water." 100 lprint "micro";chr$(27);"[10zscript...

  • Page 265: Csi 12 Z

    Double height on (upper half) csi 12 z double height on (lower half) csi 13 z double height off csi 2 z data structure ascii csi "1" "2" "z" [c] double height on (upper half) ➊ hex. 9b 31 32 7a dec. 155 49 50 122 ascii csi "1" "3" "z" [c] double height on (lower half) ➊ hex. 9b 31 33 7a dec. 155 49 ...

  • Page 266

    Example 10 rem double height 20 lprint "for ";chr$(27);"[12zheadlines ";chr$(27);"[2z"; 30 lprint "printing in double" 40 lprint chr$(27);"[13z headlines";chr$(27);"[2z" 50 lprint "height is recommended" 60 end 30 character styling.

  • Page 267: Csi ... Sp X

    Print quality csi ... Sp x csi ... Y data structure ascii csi n sp "x" [a] select print quality ➊ hex. 9b n 20 58 dec. 155 n 32 88 ascii csi n "y" select print quality ➋ hex. 9b n 79 dec. 155 n 121 description ➊ this sequence defines the print quality. Print throughput changes with the print quality...

  • Page 268

    Example 10 rem print quality 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 32 character styling.

  • Page 269: Csi ... M

    Select typestyle csi ... M data structure ascii csi n "m" [a] select typestyle hex. 9b n 6d dec. 155 n 109 description this sequence defines the typestyle. For n the following parameters are available: n hex. Dec. Typestyle (number is printer dependent) 10 31 30 49 48 font 0 11 31 31 49 49 font 1 12...

  • Page 270

    Example valid for most mtpl printers. Fontregister font 0 d r a ft 1 n l q c o u r i e r 2 lq co ur i e r 3 n l q s a n s s e r i f 4 lq s a n s s e r i f 5 lq ro m an 6 lq s c r i pt 7 lq p r e s t i g e 8 lq o c r - b 9 lq o c r - a 34 character styling.

  • Page 271: Csi = Z

    Emphasized mode on csi = z emphasized mode off csi > z data structure ascii csi "=" "z" [c] emphasized mode on hex. 9b 3d 7a dec. 155 61 122 ascii csi ">" "z" [c] emphasized mode off hex. 9b 3e 7a dec. 155 62 122 description during printing in emphasized mode, each dot is printed twice, slightly shi...

  • Page 272: Csi 3 M

    Italic mode on csi 3 m italic mode off csi 23 m data structure ascii csi "3" "m" [a] italic mode on hex. 9b 33 6d dec. 155 51 109 ascii csi "2" "3" "m" [a] italic mode off hex. 9b 32 33 6d dec. 155 50 51 109 the sequence csi 0 m resets all csi...M-sequences! A maximum of 16 csi...M -sequences can be...

  • Page 273: Csi  26 M

    Proportional mode on (sgr) csi 26 m csi 2 y proportional mode off csi 50 m csi 7 y data structure ascii csi "2" "6" "m" [a] proportional mode on hex. 9b 32 36 6d dec. 155 50 54 109 ascii csi "2" "y" [c] proportional mode on hex. 9b 32 79 dec. 155 50 121 ascii csi "5" "0" "m" [a] proportional mode of...

  • Page 274

    Example 10 rem proportional spacing 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 38 character styling.

  • Page 275: Csi 4 M

    Underline mode on (sgr) csi 4 m underline double mode csi 21 m underline mode off csi 24 m data structure ascii csi "4" "m" [a] underline mode on ➊ hex. 9b 34 6d dec. 155 52 109 ascii csi "2" "1" "m" [a] underline double mode hex. 9b 32 31 6d dec. 155 50 49 109 ascii csi "2" "4" "m" [a] underline mo...

  • Page 276: Csi 53 M

    Overline mode on (sgr) csi 53 m overline mode off csi 55 m data structure ascii csi "5" "3" "m" [a] overline mode on hex. 9b 35 33 6d dec. 155 53 51 109 ascii csi "5" "5" "m" [a] overline mode off hex. 9b 35 35 6d dec. 155 53 53 109 description this sequence switches the automatic overline function ...

  • Page 277: Csi 9 W

    Double strike on csi 9 w double strike off csi 8 w data structure ascii csi "9" "w" [b] [c] double strike print mode on hex. 9b 39 77 dec. 155 57 119 ascii csi "8" "w" [b] [c] double strike print mode off hex. 9b 38 77 dec. 155 56 119 description in double strike mode characters are printed twice in...

  • Page 278: Csi ... Sp C

    Graphic size selection (gss) csi ... Sp c graphic size modification (gsm) csi ... Sp b data structure ascii csi n sp "c" [b] graphic size selection ➊ hex. 9b n 20 43 dec. 155 n 32 67 ascii csi n 1 ; n 2 sp "b" [a] graphic size modification ➋ hex. 9b n 1 3b n 2 20 42 dec. 155 n 1 59 n 2 32 66 descrip...

  • Page 279: Csi ... Sp D

    Font designation (fnt) csi ... Sp d data structure ascii csi n 1 ; n 2 sp "d" [a] designate font hex. 9b n 1 3b n 2 20 44 dec. 155 n 1 59 n 2 32 68 description n 1 = font number 0...9 n 2 = identification (id) of the desired font for n 2 the following parameters are available: n 2 hex. Dec. Identifi...

  • Page 280

    Font attributes, e.G. “bold” can be specified after designation through corresponding esc sequences. Technical details font designation codes the use of the font designation code csin 1 ;n 2 space d needs further explanation. (note: csi is 9b; you can use esc[, 1b 5bh, instead if you wish.) the para...

  • Page 281: Print Positioning

    Print positioning horizontal tab stop ht data structure ascii ht [a] horizontal tab stop hex. 09 dec. 9 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 ...

  • Page 282: Csi ... U

    Horizontal tab stops on csi ... U esc h horizontal tab stops off (tbc) csi ... G data structure ascii csi n 1 "u" [a] set horizontal tab stop ➊ hex. 9b n 1 75 dec. 155 n 1 117 ascii esc "h" [c] set horizontal tab stop at current position ➋ hex. 1b 48 dec. 27 72 ascii csi n "g" [a] clear all horizont...

  • Page 283

    ➌ with the sequence csi n g for n the following parameters are available: n hex. Dec. Function 0 30 48 clear horizontal tab stop at current position 2 32 50 clear all horizontal tab stops in current line 3 33 51 clear all horizontal tab stops in all lines examples: csi g clear horizontal tab stop at...

  • Page 284

    Example 1 10 rem horizontal tabs 20 lprint chr$(27);"[4w";:rem 10 cpi 30 lprint chr$(27);"[10;20;30u"; 40 lprint "123456789012345678901234567890123456789" 50 gosub 110 60 lprint chr$(27);"[0w";:rem 5 cpi 70 gosub 110 80 lprint chr$(27);"[11w";:rem 20 cpi 90 gosub 110 100 end 110 lprint chr$(9);"tab1...

  • Page 285

    Line feed lf data structure ascii lf [a] line feed hex. 0a dec. 10 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, t...

  • Page 286

    Vertical tab stop vt data structure ascii vt vertical tab stop hex. 0b dec. 11 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 carriag...

  • Page 287: Vts

    Set vertical tab stop at current position vts data structure ascii vts [a] set vertical tab stop hex. 8a dec. 138 description this code sets an horizontal tab stop at the current vertical position. Vertical index ind data structure ascii ind [a] vertical index hex. 84 dec. 132 description the code i...

  • Page 288: Csi ... V

    Vertical tab stops on csi ... V vertical tab stops off (tbc) csi 1 g csi 4 g data structure ascii csi n "v" [a] set vertical tab stop ➊ hex. 9b n 76 dec. 155 n 118 ascii csi "1" "g" [a] clear all vertical tab stops at current position hex. 9b 31 67 dec. 155 49 103 ascii csi "4" "g" [a] clear all ver...

  • 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 vertical tabs 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 firs...

  • Page 290: Csi ... ’

    Horizontal posititon absolute (hpa) csi ... ’ data structure ascii csi n " ‘ " [a] set horizontal position absolute hex. 9b n 60 dec. 155 n 96 description n = 1 (default setting) =∧ current left margin this sequence moves the print head to a horizontal print position absolute. The unit depends on pu...

  • Page 291: Csi ... A

    Horizontal position relative (hpr) csi ... A data structure ascii csi n "a" [a] set horizontal position relative hex. Csi n 61 dec. Csi n 97 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 po...

  • Page 292: Csi ... J

    Horizontal position backward (hpb) csi ... J data structure ascii csi n "j" [a] set horizontal position backward hex. 9b n 6a dec. 155 n 106 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 pos...

  • Page 293: Csi ... D

    Vertical position absolute (vpa) csi ... D data structure ascii csi n d [a] set vertical position absolute hex. 9b n 64 dec. 155 n 100 description n = 1 (default setting) =∧ current top margin this sequence moves the print head to a vertical print position absolute. The unit depends on pum (position...

  • Page 294: Csi ... E

    Vertical position relative (vpr) csi ... E data structure ascii csi n "e" [a] set vertical position relative hex. 9b n 65 dec. 155 n 101 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 eit...

  • Page 295: Csi ... K

    Vertical position backward (vpb) csi ... K data structure ascii csi n "k" [a] set vertical position backward hex. 9b n 6b dec. 155 n 107 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 e...

  • Page 296: Csi ... F

    Horizontal and vertical position absolute (hvp) csi ... F data structure ascii csi n 1 ; n 2 "f" [b] [c] set horizontal and vertical position absolute hex. 9b n 1 3b n 2 66 dec. 155 n 1 59 n 2 102 description n 1 = vertical position n 2 = horizontal position this sequence moves the print head to a h...

  • Page 297

    Backspace bs data structure ascii bs [a] backspace hex. 08 dec. 8 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 cr data structure ascii cr [a] carriage ...

  • Page 298

    Form feed ff data structure ascii ff [a] form feed hex. 0c dec. 12 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. The first pr...

  • Page 299: Pld

    Partial line down pld data structure ascii pld [a] partial line down hex. 8b dec. 139 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 chara...

  • Page 300: Nel

    Reverse index ri data structure ascii ri [b] reverse index hex. 8d dec. 141 description the code ri moves the active position to the preceding line. An cr option is not permitted. Next line nel data structure ascii nel [b] next line hex. 85 dec. 133 description the code nel moves the active position...

  • Page 301: Graphics

    Graphics graphic modes esc % ... Csi 6 z csi 5 z data structure ascii esc "%" n n 1 ; n 2 ; data [c] set dpi for graphics hex. 1b 25 n n 1 3b n 2 3b data dec. 27 37 n n 1 59 n 2 59 data ascii csi "6" "z" [c] graphics invers hex. 9b 36 7a dec. 155 54 122 ascii csi "5" "z" [c] graphics unchanged hex. ...

  • Page 302

    The vertical resolution is 72 dpi. The graphics image is printed vertically closed at a line feed of 80 ⁄ 720 inch. (also see the sequences spacing increment (spi), page 15, and set line spacing (sls), page 26. Example: csi 80 ; sp g). Example for calculation of n 1 and n 2 : the length of graphics ...

  • Page 303

    Relationship between graphics data and needles: needle data byte 1 • bit 7 2 • bit 6 3 • bit 5 4 • bit 4 5 • bit 3 6 • bit 2 7 • bit 1 8 • bit 0 example 1 10 rem bit image print 20 width "lpt1:",255 30 lprint chr$(27);"%3";chr$(80);chr$(0); 40 gosub 100:lprint " 60 dpi" 50 lprint chr$(27);"%4";chr$(...

  • Page 304

    Example 2 10 rem bit image print 20 width "lpt1:",255 30 lprint chr$(27);"%3";chr$(10);chr$(0); 40 gosub 130:rem 60 dpi 50 lprint chr$(27);"%4";chr$(10);chr$(0); 60 gosub 130:rem 120 dpi 70 lprint chr$(27);"[6z"; 80 lprint chr$(27);"%3";chr$(10);chr$(0); 90 gosub 130:rem reverse 60 dpi 100 lprint ch...

  • Page 305: Miscellaneous

    Miscellaneous load menu csi ... Sp q data structure ascii csi n sp "q" [b] load menu hex. 9b n 20 71 dec. 155 n 32 113 description for n the following parameters are available: n hex. Dec. Loading of 0 30 48 default menu 1 31 49 menu no. 1 2 32 50 menu no. 2 3 33 51 menu no. 3 4 34 52 menu no. 4 (re...

  • Page 306: Csi ... + Z

    Automatic gap adjustment (aga) csi ... + z direct setting of the print head distance csi ... + y data structure ascii csi n "+" "z" [b] automatic gap adjustment ➊ hex. 9b n 2b 7a dec. 155 n 43 122 ascii csi n "+" "y" [b] direct setting of the print head distance ➋ hex. 9b n 2b 79 dec. 155 n 43 121 d...

  • Page 307: Csi Pn + W

    Paper handling csi ps1 ps2 ps3 pn4 pn5 + v data structure ascii csi ps1 ps2 ps3 pn4 pn5 "+" "v" hex. 9b ps1 ps2 ps3 pn4 pn5 2b 76 dec. 155 ps1 ps2 ps3 pn4 pn5 43 118 description ps1 missing or 0: printhead does not lift off at the fold 1: printhead lifts off at the fold ps2 missing or 0: printhead p...

  • Page 308: Csi ... M

    Color selection (option) csi ... M data structure ascii csi n "m" [a] set colors hex. 9b n 6d dec. 155 n 109 description for n the following parameters are available: n hex. Dec. Color selection 0 30 48 reset color 1 31 49 bold or increased intensity 2 32 50 alternate color or decreased intensity ➊ ...

  • Page 309

    The relationship between color selection sequences and the resulting colors for several ribbon cassettes is shown in the following table: selected color yellow, magenta, cyan, black (ymck) red, green, blue, black (rgbk) 3 ∗ black, red black black black black red red *) red red green green **) green ...

  • Page 310: Csi ... Z

    Input data control csi ... Z data structure ascii csi "9" "z" [c] set bit 8 = 1 ➊ hex. 9b 39 7a dec. 155 57 122 ascii csi "8" "z" [c] set bit 8 = 0 ➋ hex. 9b 38 7a dec. 155 56 122 ascii csi "7" "z" [c] bit 8 unchanged hex. 9b 37 7a dec. 155 55 122 description ➊ by means of this mtpl-sequence the eig...

  • Page 311

    Example 10 rem input data control 20 lprint chr$(27);"[7z"; 30 gosub 90 40 lprint chr$(27);"[9z"; 50 gosub 90 60 lprint chr$(27);"[8z"; 70 gosub 90 80 end 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 miscellaneous 75.

  • Page 312: Csi ... {

    Sheet feeder/paperway csi ... { eject form csi 2 j data structure ascii csi n ; n 1 ; n 2 "{" [a] set sheed feeder hex. 9b n 3b n 1 3b n 2 7b dec. 155 n 59 n 1 59 n 2 123 ascii csi "2" "j" [c] eject form ➊ hex. 9b 32 4a dec. 155 50 74 description with the sequence csi n ; n 1 ; n 2 { for n the follo...

  • 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...

  • 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; dec.10) vt (hex.0b; dec.11) print data example 10 rem sheet feeder 15 lp...

  • Page 315: Esc C

    Reset to initial state (ris) esc c csi 6 ~ data structure ascii esc "c" [a] reset to initial state hex. 1b 63 dec. 27 99 ascii csi "6" " ~ " [c] reset to initial state hex. 9b 36 7e dec. 155 54 126 description the printer is initialized, which means it has the same status as just after power switch-...

  • Page 316: Csi ? ... ~

    Command set csi ? ... ~ data structure ascii csi "?" n " ~ " [b] command set hex. 9b 3f n 7e dec. 155 63 n 126 description for n the following parameters are available: n hex. Dec. Command set 1 31 49 mtpl 2 32 50 mtpl + ibm-graphics-printer 3 33 51 mtpl + ibm-proprinter xl 4 34 52 mtpl + ibm-propri...

  • Page 317: Esc ...

    Activation of character sets si so esc ... Data structure ascii si zg locking shift ls0 ➊ hex. 0f dec. 15 ascii so zg locking shift ls1 ➋ hex. 0e dec. 14 ascii esc n zg locking shift ls2, ls3, ls1r, ls2r, ls3r ➌ hex. 1b n dec. 27 n description ➊ activation of g0 for codes 21 - 7e ➋ activation of g1 ...

  • Page 318

    A set of up to 94 characters is made ready for use. Example 10 open "lpt1:" as #1 20 width #1,32000 30 ’example "locking shift" 40 t1$=" french characters are printed" 50 t2$=" german characters are printed" 60 print #1,chr$(27),"+r" ’designate g3 70 ’table 80 print #1,chr$(27),"o" ’locking shift 3 ...

  • Page 319: Esc ( ...

    Designation of character set g0 esc ( ... Designation of character set g1 esc ) ... Designation of character set g2 esc * ... Designation of character set g3 esc + ... Data structure ascii esc n f designation of character sets hex. 1b n f dec. 27 n f description designation of character sets is a pr...

  • Page 320

    F hex. Dec. Character set à 85 133 table 863 (dos french-canadian) å 86 134 table 865 (dos norway) Ä 8e 142 table 866 standard (dos cyrillic) Å 8f 143 table 866 ukraine É 90 144 table 866 kazakhstan æ 91 145 kamenicky (combination of table 437 and 852) Æ 92 146 mazovia (code page 437 with polish cha...

  • Page 321

    Example 10 rem character sets 20 lprint chr$(27);"(b"; 30 lprint "us-ascii: ";:gosub 130 40 lprint chr$(27);"(a"; 50 lprint "uk-ascii: ";:gosub 130 60 lprint chr$(27);"(k"; 70 lprint "german : ";:gosub 130 80 lprint chr$(27);"(r"; 90 lprint "french : ";:gosub 130 100 lprint chr$(27);"(y"; 110 lprint...

  • Page 322

    Activation of characters so si data structure ascii so [b] zg single shift ss2 ➊ hex. 8e dec. 142 ascii si [b] zg single shift ss3 ➋ hex. 8f dec. 143 description ➊ activation of one single character from g2 (“single shift 2”). ➋ activation of one single character from g3 (“single shift 3”). The func...

  • Page 323

    Graphic description of locking shift/single shift (pages 81 - 86): repertoire of graphic sets designation of graphic sets invocation of one graphic character invocation of graphic sets active character set c = control code set g = graphic sets miscellaneous 87.

  • Page 324: Csi ? 50 H

    Size of character set (1 character set) csi ? 50 h size of character set (2 character sets) csi ? 50 data structure ascii csi "?" "5" "0" "h" [a] loading a character set hex. 9b 3f 35 30 68 with 256 characters ➊ dec. 155 63 53 48 104 ascii csi "?" "5" "0" " " [a] loading 2 character sets hex. 9b 3f ...

  • Page 325: Csi ? 51 H

    Proportional spacing (draft) off csi ? 51 h proportional spacing (draft) on csi ? 51 data structure ascii csi "?" "5" "1" "h" [a] disabling proportional spacing hex. 9b 3f 35 31 68 in print quality draft ➊ dec. 155 63 53 49 104 ascii csi "?" "5" "1" " " [a] enabling proportional spacing hex. 9b 3f 3...

  • Page 326: Csi ? 53 H

    Print code area expansion on csi ? 53 h print code area expansion off csi ? 53 data structure ascii csi "?" "5" "3" "h" [a] print code area expansion on ➊ hex. 9b 3f 35 33 68 dec. 155 63 53 51 104 ascii csi "?" "5" "3" " " [a] print code area expansion off ➋ hex. 9b 3f 35 33 69 dec. 155 63 53 51 105...

  • Page 327: Csi ... C

    Printer identification (da) csi ... C data structure ascii csi "0" "c" [b] request for printer indentification hex. 9b 30 63 dec. 155 48 99 ascii csi "?" ... "c" response from printer hex. 9b 3f ... 63 dec. 155 63 ... 99 description by this functions it is possible to get for example informations of...

  • Page 328: Csi ... N

    Device status report (dsr) csi ... N data structure ascii csi n "n" [b] device status report hex. 9b n 6e dec. 155 n 110 description for n the following parameters are available: n hex. Dec. Status report direction 0 30 48 “ready, no malfunction” printer → computer 1 31 49 “busy, no malfunction” pri...

  • Page 329: Enq

    Enquiry for status enq data structure ascii enq enquiry for status hex. 05 dec. 5 description with this code it is possible to get a status byte from the printer: status byte: bit 0 1 = busy bit 1 1 = offline bit 2 0 = paper end bit 3 1 = always 1 bit 4 1 = cover open bit 5 1 = buffer overflow bit 6...

  • Page 330: Nul

    Fill character nul data structure ascii nul fill character without further meaning hex. 80 dec. 128 start of text block stx data structure ascii stx start of text block hex. 02 dec. 2 description start of a text block. With this code any error message (parity error, memory overflow) is cleared. This...

  • Page 331: Etx

    End of text block etx data structure ascii etx end of text block hex. 03 dec. 3 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 ack data structure...

  • Page 332: Nak

    Negative acknowledge nak data structure ascii nak negative acknowledge hex. 15 dec. 21 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 onl...

  • Page 333: Del

    Delete del data structure ascii del [a] delete hex. 7f dec. 127 description with this code the line buffer is cleared. Acoustic alarm bel data structure ascii bel [a] acoustic alarm hex. 07 dec. 7 description this code causes an acoustic alarm. Miscellaneous 97.

  • Page 334: Start Character “Escape”

    Start character “escape” esc data structure ascii esc [a] start character esc hex. 1b dec. 27 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 introdu...

  • Page 335: Appendix A

    Appendix a summary of possible codes.

  • Page 336

    Ack control code ack (positive acknowledge) . . . . . . . . . . . . . . . . 95 bel acoustic alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 bs control code bs (backspace) . . . . . . . . . . . . . . . . . . . . . . . 61 can control code can (cancel) . . . . . . . . . . . . . ....

  • Page 337

    Csi 0 c request for printer identification . . . . . . . . . . . . . . . . . . . . . . 91 csi 0 g clear horizontal tab stop at current position . . . . . . . . . . . . . . . . 46 csi 0 m clear all selected fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 csi 0 m reset color . . . . . ....

  • Page 338

    Csi 12 z double height on (upper half) . . . . . . . . . . . . . . . . . . . . . . . 29 csi 13 m font 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 csi 13 y high resolution print quality . . . . . . . . . . . . . . . . . . . . . . . . 31 csi 13 z double height on (lowe...

  • Page 339

    Csi 3 w horizontal spacing 8,6 cpi . . . . . . . . . . . . . . . . . . . . . . . . . 16 csi 3 z line density 6 lpi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 csi 30 m color black . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 csi 31 m color red . . . . . . ....

  • Page 340

    Csi 7 w horizontal spacing 17,1 cpi . . . . . . . . . . . . . . . . . . . . . . . . 16 csi 7 y proportional mode off . . . . . . . . . . . . . . . . . . . . . . . . . . 37 csi 7 z set bit 8 = unchanged . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 csi 8 w double strike off . . . . . . . ....

  • Page 341

    Del control code del (delete) . . . . . . . . . . . . . . . . . . . . . . . . . 97 enq control code enq (enquiry for status) . . . . . . . . . . . . . . . . . . 93 esc mtpl-start character for program sequence . . . . . . . . . . . . . . . 98 esc ( f designate character set g0 . . . . . . . . . . . ...

  • Page 342

    Acoustic alarm bel . . . . . . . . . . . . . . . . . . . . . . . 97 additional character spacing csi n sp \ . . . . . . . . . . . . . . . . . . . 20 automatic gap adjustment off csi 0 + z . . . . . . . . . . . . . . . . . . . . 70 automatic gap adjustment on csi 1 + z . . . . . . . . . . . . . . . ....

  • Page 343

    Control code hts hts . . . . . . . . . . . . . . . . . . . . . . 45 control code ind (vertical index) ind . . . . . . . . . . . . . . . . . . . . . . . 51 control code lf (line feed) lf . . . . . . . . . . . . . . . . . . . . . . . 49 control code nak (negative acknowledge) nak . . . . . . . . . . ....

  • Page 344

    Font 1 csi 11 m . . . . . . . . . . . . . . . . . . . . 33 font 2 csi 12 m . . . . . . . . . . . . . . . . . . . . 33 font 3 csi 13 m . . . . . . . . . . . . . . . . . . . . 33 font 4 csi 14 m . . . . . . . . . . . . . . . . . . . . 33 font 5 csi 15 m . . . . . . . . . . . . . . . . . . . . 33 font ...

  • Page 345

    Horizontal spacing 17,1 cpi csi 7 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal spacing 20 cpi csi 11 w . . . . . . . . . . . . . . . . . . . . 16 horizontal spacing 5 cpi csi 0 w . . . . . . . . . . . . . . . . . . . . . 16 horizontal spacing 6 cpi csi 1 w . . . . . . . . . . . . . . . ...

  • Page 346

    Mtpl + ibm-proprinter xl command set csi ? 3 ~ . . . . . . . . . . . . . . . . . . . . 80 mtpl + nec p60/70 command set csi ? 7 ~ . . . . . . . . . . . . . . . . . . . . 80 mtpl command set csi ? 1 ~ . . . . . . . . . . . . . . . . . . . . 80 mtpl-start character for program sequence csi . . . . . ....

  • Page 347

    Shared interface csi pn + w . . . . . . . . . . . . . . . . . . . 71 single shift 2 (ss2) so . . . . . . . . . . . . . . . . . . . . . . . 86 single shift 3 (ss3) si . . . . . . . . . . . . . . . . . . . . . . . . 86 size of character set (1 character set) csi ? 50 h . . . . . . . . . . . . . . . . ...

  • Page 348: Appendix B

    Appendix b character sets.

  • Page 349

    Standard character set for the contents of the shaded areas, see table at page b-3. Hex 0 1 2 3 4 5 6 7 8 9 a b c d e f dec 0 nul sp nul 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 1 dc1 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 stx dc2 2 18 34 50 66 82 98 114 130 146 162...

  • Page 350

    International substitution table - normal font dec 35 36 64 91 92 93 94 96 123 124 125 126 hex 23 24 40 5b 5c 5d 5e 60 7b 7c 7d 7e usa 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 b-3.

  • Page 351: Programmer’S

    Programmer’s reference tally ansi barcode and lcp.

  • Page 352: Table of Contents

    Table of contents barcode and lcp printing introduction secured/unsecured mode data structure . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 barcode printing barcode header . . . . . . . . . . . . . . . . . . . . . . . ...

  • Page 353

    Code ean 13 with hri . . . . . . . . . . . . . . . . . . . . . . 23 code ean 13 without hri . . . . . . . . . . . . . . . . . . . . . 24 code msi / modified plessey . . . . . . . . . . . . . . . . . . . 25 code upca with hri . . . . . . . . . . . . . . . . . . . . . . . 26 code upca without hri . . ...

  • Page 354: Appendix

    Appendix character sets lcp character set, german . . . . . . . . . . . . . . . . . . . A-3 lcp character set, us-ascii . . . . . . . . . . . . . . . . . . . A-4 ocr-a character set . . . . . . . . . . . . . . . . . . . . . . . A-5 ocr-b character set . . . . . . . . . . . . . . . . . . . . . . . A-...

  • 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

    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...

  • Page 358

    This may cause conflict with other emulations, since the above commands may have dif- ferent functions in these emulations, for example: si condensed print dc4 reset expanded print esc p proportional spacing on/off esc p pica in barcode mode the barcode sequences have priority. The barcode interpret...

  • Page 359

    The syntax for the parameters, the start, separate and stop code is represented as follows: figures (n) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 ":" 3a 58 ":" 3a 58 for the parameter (here n), a distinction must be made between two types of repre- sentation: if the parameter...

  • 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 pro...

  • Page 361: Secured/unsecured Mode

    Secured/unsecured mode unsecured mode esc psc0 esc \ secured mode esc psc1 esc \ data structure ascii esc "p" "s" "c" "0" esc "\" unsecured mode hex. 1b 50 53 43 30 1b 5c dec. 27 80 83 67 48 27 92 ascii esc "p" "s" "c" "1" esc "\" secured mode hex. 1b 50 53 43 31 1b 5c dec. 27 80 83 67 49 27 92 desc...

  • Page 362

    Example 1 10 rem lcp unsecured mode 20 lprint chr$(27); "[?11~"; 30 rem select unsecured mode 40 lprint chr$(27); "psc0"; chr$(27); "\"; 50 rem set character size to 5 60 lprint chr$(16); "5"; chr$(25); 70 lprint "example for " 80 lprint chr$(15); "lcp"; chr$(15); " unsecured mode" example 2 10 rem ...

  • Page 363: Barcode Printing

    Barcode printing barcode header 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 (see section "header format"). In the header, the printing parameters, the barcode size and the b...

  • Page 364

    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") w...

  • Page 365

    Barcode print feature f for selection of f-code hri or normal/compressed as well as single or double pass is switched via character f according to the following table. Ascii char. Hex- value hri 2 ) print pass 3 ) direction 2 ) on off normal compr. Double single unidir. Bidir. Sp ! " # $ % & ‘ ( ) *...

  • Page 366

    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 i = ean 8 without hri j = 2/5 matrix (default) k = ean 13 with hri l = ean 13 without hri m = msi/modified plessey n = upc a with hri o = upc a wit...

  • Page 367

    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 normal compressed 1 ) older printer types (e.G.Mt230) older printer types (e.G.Mt230) w...

  • Page 368

    All values are only valid when a new colour ribbon is used. They change depending on the degree of wear: narrow bar: approx. -0.05 mm narrow space: approx. +0.05 mm. The code ean 128, as the ean/upc, is based on module widths. Therefore only the x parameter is valid for this type. This parameter is ...

  • Page 369: Code 2/5 Matrix

    Data formats of barcode types code 2/5 matrix type a syntax figures (n) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code n ... N stop code dc4 hex. 14 start code n ... N stop code 14 dec. 20 start code n ... N stop code 20 exam...

  • Page 370: Code 2/5 Industrial

    Code 2/5 industrial type b syntax figures (n) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 ":", "" 3a, 3c or 3e 58, 60 or 62 ";", "=" or "?" 3b, 3d or 3f 59, 61 or 63 data structure ascii dc4 start code n ... N stop code dc4 hex. 14 start code n ... N stop code 14 dec. 20 start ...

  • Page 371: Code 2/5 Interleaved

    Code 2/5 interleaved type c syntax figures (n) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 ":" or " 3a or 3c 58 or 60 ";" or "=" 3b or 3d 59 or 61 data structure ascii dc4 start code n ... N stop code dc4 hex. 14 start code n ... N stop code 14 dec. 20 start code n ... N stop c...

  • Page 372: Code 11

    Code 11 type d syntax figures/characters (n) start code stop code ascii hex. Dec. "0" to "9" and "-" 30 to 39 and 2d 48 to 57 and 45 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code n ... N stop code dc4 hex. 14 start code n ... N stop code 14 dec. 20 start code n ... N stop code 20 example 1...

  • Page 373: Code Bcd Matrix

    Code bcd matrix type e syntax figures (n) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code n ... N stop code dc4 hex. 14 start code n ... N stop code 14 dec. 20 start code n ... N stop code 20 example 10 rem bcd-matrix-code bar...

  • Page 374: Code 39

    Code 39 type f syntax numbers/character (n) start code stop code not fixed, recommended: not fixed, recommended: ascii hex. Dec. "0" to "9", "a" to "z" and "$", "%", "*", "+", "-", ".", "/" 30 to 39, 41 to 5a and 24, 25, 2a, 2b, 2d, 2e, 2f 48 to 57, 65 to 90 and 36, 37, 42, 43, 45, 46, 47 "*" 2a 42 ...

  • Page 375: Codabar

    Codabar type g syntax numbers/character (n) start code stop code not fixed, recommended: not fixed, recommended: ascii hex. Dec. "0" to "9", "a" to "d" and "$", "+", "-", ".", "/", ":" 30 to 39 and 24, 2b, 2d, 2e, 2f, 3a 48 to 57 and 36, 43, 45, 46, 47, 58 "a" to "e" and "n", "t", "*" 61 to 65 and 6...

  • Page 376: Code Ean 8 With Hri

    Code ean 8 with hri type h syntax figures (n) check number (c) start code separation code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnn separation code nnnc stop code dc...

  • Page 377: Code Ean 8 Without Hri

    Code ean 8 without hri type i syntax figures (n) check number (c) start code separation code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnn separation code nnnc stop code...

  • Page 378: Code Ean 13 With Hri

    Code ean 13 with hri type k syntax figures (n) check number (c) start code separation code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnnnnn separation code nnnnnc stop c...

  • Page 379: Code Ean 13 Without Hri

    Code ean 13 without hri type l syntax figures (n) check number (c) start code separation code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnnnnn separation code nnnnnc sto...

  • Page 380: Type M

    Code msi / modified plessey type m syntax figures (n) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 ":" 3a 58 ";" 3b 59 data structure ascii dc4 start code n ... N stop code dc4 hex. 14 start code n ... N stop code 14 dec. 20 start code n ... N stop code 20 example 10 rem code ms...

  • Page 381: Code Upc A With Hri

    Code upc a with hri type n syntax figures (n) check number (c) start code separation code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnnnn separation code nnnnnc stop cod...

  • Page 382: Code Upc A Without Hri

    Code upc a without hri type o syntax figures (n) check number (c) start code separation code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnnnn separation code nnnnnc stop ...

  • Page 383: Code Upc E With Hri

    Code upc e with hri type p syntax figures (n) check number (c) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnnnnnc stop code dc4 hex. 14 start code nnnnnnnc stop code 14 ...

  • Page 384: Code Upc E Without Hri

    Code upc e without hri type q syntax figures (n) check number (c) start code stop code ascii hex. Dec. "0" to "9" 30 to 39 48 to 57 calculation see section "check number calculation" ":" 3a 58 ":" 3a 58 data structure ascii dc4 start code nnnnnnnc stop code dc4 hex. 14 start code nnnnnnnc stop code ...

  • Page 385: Code Delta Distance (Ibm)

    Code delta distance (ibm) type r syntax figures/characters (n) start code stop code ascii hex. Dec. "0" to "9" and "a" to "f" 30 to 39 and 41 to 46 48 to 57 and 65 to 70 "f" 46 70 "d" 44 68 data structure ascii dc4 start code n ... N stop code dc4 hex. 14 start code n ... N stop code 14 dec. 20 star...

  • Page 386: Code 128

    Code 128 type s syntax figures/characters (n) start code stop code ascii hex. Dec. See table section "description" none none data structure ascii dc4 n ... N dc4 hex. 14 n ... N 14 dec. 20 n ... N 20 description while many barcode styles are limited to numbers, code 128 can encode numbers, let- ters...

  • 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.,...

  • Page 388

    Code 128 translation table wert code a code b code c wert code a code b code c wert code a code b code c 0 space space 00 36 d d 36 72 bs h 72 1 ! ! 01 37 e e 37 73 ht i 73 2 " " 02 38 f f 38 74 lf j 74 3 # # 03 39 g g 39 75 vt k 75 4 $ $ 04 40 h h 40 76 ff l 76 5 % % 05 41 i i 41 77 cr m 77 6 & & 0...

  • 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~" 34 barcode printing.

  • Page 390: Ean 128

    Ean 128 type t syntax figures/characters (n) start code stop code ascii hex. Dec. See code 128 none none data structure ascii dc4 n ... N dc4 hex. 14 n ... N 14 dec. 20 n ... N 20 description the only difference between both types of barcodes is the initial sequence. Code 128 starts with code a, cod...

  • Page 391

    Add-on barcodes upc and ean barcodes (commercial barcodes) can be extended with add-on barcodes. The following barcodes can be extended with add-on barcodes: barcode types h, i, k, l, n, o, p and q in the data formats the numbers are generally given in the sequence they are printed from left to righ...

  • 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 printi...

  • Page 393

    Check number calculation the following barcode types must be given a check number for transfer to the printer: type h and i (ean 8) 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). For the "ean" type, this is print...

  • Page 394

    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 fr...

  • Page 395

    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 subtrac...

  • Page 396

    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 0 0 4 remainder (0) 0 example 2 information 2 0 6 remainder (2) 2 example 3 information 3 9 9 remainder (3) 3 example 4 informati...

  • Page 397: Us Postnet Barcode

    Us postnet barcode us postnet barcode esc [ 1 sp p data structure ascii esc "[" "1" sp "p" hex. 1b 5b 31 20 70 dec. 27 91 49 32 112 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. C...

  • Page 398

    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 on...

  • 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 si n ... N si hex. 0f n ... N 0f dec. 15 n ... N 15 n = all printable characters (> hex.1f, dec.31) example rem example character densities open "lpt1...

  • Page 400: Lcp Character Set Us-Ascii

    Lcp character set us-ascii esc p l s 0 1 esc \ lcp character set german esc p l s 0 2 esc \ data structure ascii esc "p" "l" "s" "0" "1" esc "\" character set us-ascii hex. 1b 50 4c 53 30 31 1b 5c dec. 27 80 76 83 48 49 27 92 ascii esc "p" "l" "s" "0" "2" esc "\" character set german hex. 1b 50 4c 5...

  • Page 401: Various Examples

    Various examples example 1 10 lprint "example for different lcp character sizes" 20 lprint chr$(27); "[?11~"; 30 lprint chr$(27); "psc0"; chr$(27); "\"; 40 rem set character size to 3 50 lprint chr$(16); "3"; chr$(25); 60 lprint chr$(15); "3"; chr$(15); 70 rem set character size to 4 80 lprint chr$(...

  • 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); c...

  • 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 additional space is added to gain a full line feed d – factor 4 character; height e – factor 5 character; height additional s...

  • Page 404: Appendix

    Appendix character sets.

  • Page 405

    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 ...

  • Page 406

    Lcp character set, german hex 0 1 2 3 4 5 6 7 dec 0 nul 0 16 32 48 64 80 96 112 1 1 17 33 49 65 81 97 113 2 2 18 34 50 66 82 98 114 3 3 19 35 51 67 83 99 115 4 4 20 36 52 68 84 100 116 5 5 21 37 53 69 85 101 117 6 6 22 38 54 70 86 102 118 7 7 23 39 55 71 87 103 119 8 8 24 40 56 72 88 104 120 9 9 25 ...

  • Page 407

    Lcp character set, us-ascii hex 0 1 2 3 4 5 6 7 dec 0 nul 0 16 32 48 64 80 96 112 1 1 17 33 49 65 81 97 113 2 2 18 34 50 66 82 98 114 3 3 19 35 51 67 83 99 115 4 4 20 36 52 68 84 100 116 5 5 21 37 53 69 85 101 117 6 6 22 38 54 70 86 102 118 7 7 23 39 55 71 87 103 119 8 8 24 40 56 72 88 104 120 9 9 2...

  • Page 408

    Ocr-a character set (code page 437) hex 0 1 2 3 4 5 6 7 dec 0 nul 0 16 32 48 64 80 96 112 1 1 17 33 49 65 81 97 113 2 2 18 34 50 66 82 98 114 3 3 19 35 51 67 83 99 115 4 4 20 36 52 68 84 100 116 5 5 21 37 53 69 85 101 117 6 6 22 38 54 70 86 102 118 7 7 23 39 55 71 87 103 119 8 8 24 40 56 72 88 104 1...

  • Page 409

    Ocr-b character set (code page 437) hex 0 1 2 3 4 5 6 7 dec 0 nul 0 16 32 48 64 80 96 112 1 1 17 33 49 65 81 97 113 2 2 18 34 50 66 82 98 114 3 3 19 35 51 67 83 99 115 4 4 20 36 52 68 84 100 116 5 5 21 37 53 69 85 101 117 6 6 22 38 54 70 86 102 118 7 7 23 39 55 71 87 103 119 8 8 24 40 56 72 88 104 1...