background image

Programmer's Manual

Matrix printer

7265

Содержание Matrix Printer

Страница 1: ...Programmer s Manual Matrix printer 7265 ...

Страница 2: ...ison 7 Bit 8 Bit 4 8 bit Control Codes 4 Escape Sequence Summary 6 Printer Handshaking 8 Printer Control 9 Graphics Rendition Fonts and Modes 15 NATIONAL CHARACTER SET 16 Forms Setup 20 Superscript Subscript 21 Vertical Movement 22 Margins 25 Horizontal Movement 26 Tabs 28 Dot Graphics 29 Sample Basic Program for Dot Coding 30 Graphics Control Functions 31 ...

Страница 3: ...r A t B n C D e 9 10 11 12 52 UPC A Style 13 52 UPC E Style 14 53 Code 93 Style 15 54 Code 128 Style 16 54 MSI Style 19 55 POSTNET Style 50 56 Calculating the Checksum for Code 3 of 9 58 Calculating the Checksum for CODE 93 58 Code 93 Checksums for Full ASCII 60 Chapter 4 ANSI Oversized Font 63 Control Function Summary 64 Oversized Control Functions 64 Oversized Versus Expanded 66 Setting the Expa...

Страница 4: ...arameters 22 Figure 2 5 Dot Column Coding 29 Figure 2 6 Dot Graphics Example 30 Figure 3 1 Parts of a Bar Code 35 Figure 3 2 Effects of Rotation Parameters 40 Figure 3 3 Comma Space and Asterisk Delimiters 43 Figure 3 4 Horizontal Tab Delimiter 44 Figure 3 5 Horizontal Position Relative Delimiter 45 Figure 3 6 Vertical Bar Code Sumbols 46 Figure 4 1 Expanded and Oversized 66 Figure 4 2 Character C...

Страница 5: ...allmark of TallyGenicom products that they may be used with a broad range of systems hardware emulations and protocols All trademarks and registered trademarks are property of their respective holders CENTRONICS of GENICOM LLC Epson of Epson America Incorporated DEC of COMPAQ Corporation GENICOM of TallyGenicom LP IBM and Proprinter of International Business Machines Corporation The information in...

Страница 6: ...current status of fonts pitches tabs margins and so forth across emulation changes Although some minute differences due to translations from say columns to decipoints may be discernible when switching from one emulation to another the printer is quite predictable when switching from another emulation to ANSI and then back again The 7265 is a decipoint machine Locations and dimensions such as tabs ...

Страница 7: ...Off DC1 XON 11 Printer Ready DC3 XOFF 13 Printer Busy ESC 1B Escape DEL 7F Delete If 8 bit control code interpretation is enabled IND 84 Index NEL 85 Next Line HTS 88 Set Horizontal Tab VTS 8A Set Vertical Tab PLD 8B Partial Line Down PLU 8C Partial Line Up RI 8D Reverse Index DCS 90 Device Control String PU1 91 Private Use 1 CSI 9B Control String Introducer ST 9C String Terminator OSC 9D Strap s ...

Страница 8: ...e the status of the 8 bit control code enable from the Emulations Options Menu or with escape sequences The pertinent escape sequences are the ANSI private use sequences described on page 12 In 8 bit mode all of the lower contro l codes and ESC sequences remain active For example you can use either PLD or ESC K for subscript printing In 7 bit mode only ESC K is available If 8 bit control code inte...

Страница 9: ... 1 2 3 4 5 6 7 0 0 P p 1 DC1 1 A Q a q 2 2 B R b r 3 ETX DC3 3 C S c s 4 4 D T d t 5 ENQ 5 E U e u 6 ACK 6 F V f v 7 BEL 7 G W g w 8 BS 8 H X h x 9 HT 9 I Y I y A LF J Z j z B VT ESC K k C FF L l D CR M m E SO N n F SI O _ o DEL Figure 2 1 Default Character Set for ANSI Emulation 00 to 7F ...

Страница 10: ...F X Y Z Figure 2 2 Default Character Set for ANSI Emulation 80 to FF Escape Sequence Summary In this chart the 7 bit representation is given Use the Comparison Chart on page 4 to convert 7 bit to 8 bit sequences Code Description ESC H Set Horizontal Tab ESC J Set Vertical Tab ESC K Subscript Printing ESC L Superscript Printing ESC P Enter Dot Graphics ESC c Restore to Initial State ESC Exit Dot Gr...

Страница 11: ...C p1 pn h Set Mode GENICOM ESC p j Horizontal Position Backwards ESC p k Vertical Position Backwards ESC p1 pn l Reset Auto CR on LF ESC p1 pn l Reset Mode GENICOM ESC P1 Pn m Fonts and Print Modes SGR ESC p1 p Select Paper Path ESC p1 q Select Graphics Density ESC p1 p2 p3 r Forms Setup ESC p1 p2 s Sets Left and Right Margins ESC p1 t ENA DIS Oversized Expanded Bar Code ESC p1 p2 p22 u Set Horizo...

Страница 12: ...the host to signal that the printer cannot for the moment accept any more data In parallel interface if the printer is strapped for select deselect by received DC1 DC3 codes then the host sends DC3 to the printer to set the printer to Standby In Standby the printer will accept and acknowledge data from the interface but will discard all data received Dec 19 Hex 13 ETX ETX ACK COMMUNICATION PROTOCO...

Страница 13: ...scape sequence The printer evaluates characters following the ESC character to determine if the sequence is valid If the sequence is valid then the printer responds to the command If the sequence is not valid then the printer aborts the process discarding at least the first character following ESC Dec 27 Hex 1B ESC P DCS DEVICE CONTROL STRING The control function introducer for the device control ...

Страница 14: ...ll reset Example Select Epson emulation with full reset Dec 27 91 50 50 59 49 32 126 Hex 1B 5B 32 32 3B 31 20 7E ESC p1 p SELECT PAPER PATH p1 selects 08 unload current path 10 unload current path and load tractor 2 12 unload current path and load tractor 1 Forms in the current path should be torn off before changing paper paths If you send a command to change paper paths and there is more paper d...

Страница 15: ...p1 p2 SP B GRAPHIC SIZE MODIFICATION Sets the size of expanded and oversized characters The effect of this command on oversized is explained in a separate chapter When expanded print is selected the argument units for parameters p1 and p2 are percentages of the vertical and horizontal dimensions of the current font Parameter p1 controls the vertical expansion and p2 controls the horizontal expansi...

Страница 16: ... MODE GENICOM This is an ANSI private use sequence p Effect 1 proportional print 2 reserved 3 80 hex 9B hex interpreted as C1 control codes 4 bold mode accomplished by overstrike 5 select character set 2 Example set proportional print Dec 27 91 62 49 104 Hex 1B 5B 3E 31 68 ESC p1 pn l RESET MODE GENICOM Resets modes set by ESC pn h See the previous command The parameter definitions are the same Ex...

Страница 17: ...position is not at top of form then a form feed is executed Paper is advanced to the shear position and cut Next it is advanced an inch to eject the sheet that has been cut off then it is retracted to the top margin on the following form The horizontal position following a shear is the left margin The shear position should be set from the control panel so that paper is cut precisely at the perfora...

Страница 18: ...IONS 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 the User defined Options menu For details and descriptions see the User s Manual p3 0 reset 1 set p4 4 auto cr on lf 5 auto lf on cr 6 auto cr on vt 14 auto wrap ...

Страница 19: ... set underline 5 set doublewide 6 set proportional 10 and 11 Gothic DP 12 Gothic LQ 13 Courier DP 14 Courier LQ 15 Gothic Italic DP 16 Gothic Italic LQ 17 Courier Italic DP 18 Courier Italic LQ 19 Wide Gothic DP 22 cancel bold 24 cancel underline 25 cancel doublewide expanded 26 cancel proportional 30 select black ribbon color 31 select red ribbon color 32 select green ribbon color 33 select yello...

Страница 20: ... default character set 0 USA is selected To use substitutions that have characters in the 80 hex to 95 hex range first disable 8 bit control code processing either by escape sequence or from the Emulation Options Menu Next enable character set 2 either by the Straps and Options control sequence on page 14 or from the Emulation Options menu This causes ASCII codes 80 hex 9F hex to be mapped to prin...

Страница 21: ...ati on 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 Germany Ä Ö Ü ä ö ü ß 2 French A à ç é ù è 6 Italian ç é ù à ò è ì 7 UK 8 Spanis h í Ñ ñ 9 D N A Æ Ø Å æ ø å 16 Swedish É Ä Ö Å Ü é ä ö å ü Figure 2 3 National Character Substitutions 0 18 ...

Страница 22: ...escription ESC p1 p2 SP 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 Unspecified parameters remain at their current values This command does not affect oversized printing selected by ESC 1t ...

Страница 23: ...uous Example ESC 90 60 sp G sets the vertical spacing to 8 lines per inch and the horizontal spacing to 12 characters per inch 720 divided by 8 90 and 720 divided by 12 60 Dec 27 91 52 48 59 54 48 32 71 Hex 1B 5B 39 30 3B 36 30 20 47 p2 CPI 120 6 The quick brown fox jumped 90 8 The quick brown fox jumped over 72 10 The quick brown fox jumped over the lazy 60 12 The quick brown fox jumped over the ...

Страница 24: ...t reference p5 0 decipoints 0 inch left print reference Example Set 8 inch form length one inch top margin one inch bottom margin Dec 27 91 53 55 54 48 59 55 50 48 59 55 50 48 114 Hex 1B 5B 35 37 36 30 3B 37 32 30 3B 37 32 30 72 Note Before you send this command verify that the top print reference is zero in the target paper path One way to do this is to park and then load paper in the target path...

Страница 25: ...ne for superscript printing ESC L is used to return to the original line following ESC K subscript If 8 bit control code processing is enabled then Dec 140 Hex 8C otherwise Dec 27 76 Hex 1B 4C NOTE The partial line up does not respect top of form that is following a form feed ESC L causes a partial line movement upward Also partial line down does not respect bottom of form that is when printing th...

Страница 26: ...ion absolute 0 is at the left print reference If the default left print reference is current and if the left tractor position s are as shipped then this is about 0 6 inches from the left edge of the paper Top and left print references are adjustable from the printer menu CAUTION Do not attempt reverse paper motion across a perforation since this may cause the paper to snag on the print head Vertic...

Страница 27: ... form If no tabs are set then VT is processed according to the status of emulation option strap 14 Dec 11 Hex 0B FF FORM FEED Advances the paper to the top margin on the next form Dec 12 Hex 0C ESC D IND INDEX Advances the paper to the next line The current column is not changed regardless of the status of auto CR on LF Dec 132 Hex 84 ESC E NEL NEXT LINE The next line character advances the paper ...

Страница 28: ...s Example ESC 1080k moves the vertical position up by 1 5 inches Dec 27 91 49 48 56 48 107 Hex 1B 5B 31 30 38 30 6B ESC p d VERTICAL POSITION ABSOLUTE Moves the current print position to p decipoints from the top of the form The following example advances the paper to 2 inches below top of form Example ESC 1440d Dec 27 91 49 52 52 48 100 Hex 1B 5B 31 34 34 30 64 ESC p1 p2 f VERTICAL AND HORIZONTAL...

Страница 29: ...print reference This command takes effect following the next line terminator you cannot set margins for the current line EXAMPLE Set the left margin at 0 4 inch and right margin at 6 9 inches making a 6 5 inch print line Dec 27 91 50 56 56 59 52 57 54 56 115 Hex 1B 5B 32 38 38 3B 34 39 36 38 73 ESC s ASSIGN MARGIN DEFAULTS Assigns the default parameters Sets the left margin to zero right margin to...

Страница 30: ...cipoints Example ESC 1080a advances the print position 1 5 inches Dec 27 91 49 48 56 48 97 Hex 1B 5B 31 30 38 30 61 ESC p j HORIZONTAL POSITION BACKWARDS Moves the horizontal position p decipoints left of the current position Actual distance between symbols separated by this command is the argument p minus the current horizontal pitch text or graphics For example if you print an uppercase E at 10 ...

Страница 31: ... Causes the print position to move in decipoints a specified distance from the left print reference Example ESC 360 Move print head from left print reference Dec 27 91 51 54 48 96 Hex 1B 5B 33 36 30 60 BS BACKSPACE Prints the data in the print buffer then moves the print position one character position to the left Dec 8 Hex 08 ...

Страница 32: ... 1 inch and 4 inches Existing tab stops are not cleared Margin settings have no effect on the positions of tab stops ESC J VTS SET VERTICAL TAB AT CURRENT POSITION If 8 bit control code processing is enabled then both Dec 138 Hex 8A otherwise only Dec 27 74 Hex 1B 4A ESC p1 p2 p12 v SET VERTICAL TABS AT SPECIFIED POSITIONS Sets vertical tabs at positions p1 p2 p3 etc Up to 12 stops can be set at o...

Страница 33: ...ix bits in the byte as controlling the topmost six wires of the print head with the first bit controlling the top wire and the sixth bit controlling the sixth wire down If you wanted to fire all six wires then you would send a byte with a decimal value of 63 Byte values of 0 through 31 decimal are interpreted as control codes so you have to add 64 to any graphics data byte less than 32 decimal You...

Страница 34: ...7265 Programmer s Manual 30 Copyright 2004 TallyGenicom Chapter 2 ANSI Sample Basic Program for Dot Coding Figure 2 6 Dot Graphics Example ...

Страница 35: ...s next line Causes printing to move to the left margin on the following line If 8 bit control code processing is enabled then NExt Line does the same thing Dec 10 or 133 Hex 0A or 85 VT VERTICAL TAB Causes printing to move to the left margin at the next vertical tab stop Dec 11 Hex 0B FF FORM FEED Causes printing to move to the top left margin on the following form Dec 12 Hex 0C CR CARRIAGE RETURN...

Страница 36: ... Commands Description ESC p1 q GRAPHICS DENSITY Sets the graphics density The printer powers up with a graphics density of 72 x 72 dpi changes are not stored in NVRAM p1 horizontal density vertical density 0 72 dpi 72 dpi 1 144 dpi 72 dpi Dec 27 91 48 113 Hex 1B 5B 30 71 ...

Страница 37: ...haracters framed by white spaces known as quiet zones The symbol frame almost always includes start and stop characters Depending on the style some bar code symbols can also include check characters center characters and guard bars Among printers that generate bar codes internally and that also support any user adjustment of bar code widths some enable the specification of module width while other...

Страница 38: ...m feeds to make vertical moves between labels or rows of labels If you print nothing but text then the vertical position following each line feed lies on a grid that is evenly spaced according to the line feed increment If you print a bar code symbol then positions established by subsequent line feeds may not be on that grid The vertical position following a bar code symbol becomes the origin for ...

Страница 39: ... Set Up Bar Code Parameters Determines bar code parameters to be used when bar code mode is enabled See following sections Dec 27 91 p1 59 p2 59 p13 125 Hex 1B 5B p1 3B p2 3B p13 7D Figure 3 1 Parts of a Bar Code 0123456789 0123456789 0123456789 0123456789 0123456789 Bar Code Height Parameter p2 Wide Bar Width Parameter p5 Narrow Bar Width Parameter p4 Wide Space Width Parameter p7 Human Readable ...

Страница 40: ...st be less than values for wide spaces The ratio between wide and narrow elements should be about 3 1 As with other ANSI escape sequences that take multiple parameters you can use the semicolon as a place holder when you want to change a higher numbered parameter while leaving lower numbered parameters alone For example to set the horizontal print density to 60 dpi without changing any other bar c...

Страница 41: ...Codes with the characteristics set by ESC p1 p2 ESC 3t selects Bar Code mode and activates Bar Code printing Dec 27 91 51 116 Hex 1B 5B 33 74 ESC 0t CANCEL OVERSIZED EXPANDED BAR CODE MODES Dec 27 91 48 116 Hex 1B 5B 30 74 SO SHIFT OUT Turns off bar code printing then enters bar code mode again Dec 14 Hex 0E SI SHIFT IN SI turns bar code printing off Dec 15 Hex 0F ...

Страница 42: ...UPC E 15 Code 93 16 Code 128 subsets A B and C 17 Reserved 18 Reserved 19 MSI 50 POSTNET Note Each of the four Codabar styles will accept any combination of valid start stop characters that you send If you do not send any start stop characters then the printer generates start stop characters according to the style in force p2 Height Height of the bar code in 1 12 inch increments The default is inc...

Страница 43: ...ment is 1 60 inch the same as if you had specified a width of 2 If the element width argument is greater than 2 then the printer rounds down odd numbers A width argument of 5 produces the same result as a width argument of 4 p4 Narrow Bar Width Argument units are 1 120 inch if the bar code is horizontal 0 o or 180 o rotation or 1 144 inch if the bar code is vertical 90 o or 270 o rotation The defa...

Страница 44: ...ont is shown in the following table p9 Rotation HR Font if p12 0 0 no rotation default current font 1 no rotation special bar code HR font 2 o 270 rotation special bar code HR font 3 no rotation special bar code HR font 4 270o rotation special bar code HR font Figure 3 2 Effects of Rotation Parameters Rotation 0 1234 1234 Rotation 1 1234 1234 Rotation 2 1234 1234 Rotation 3 1234 1234 Rotation 4 12...

Страница 45: ... codes are darker and are printed at a somewhat slower speed p11 Check Character Enable N A p12 Human Readable Font N A p13 Height in 1 24 inch Increments Normally bar code height is specified in 1 12 inch increments by p2 Only specify p13 if your job requires the associated higher resolution of bar code height A non zero value of p13 supplants the value of p2 Caution In some versions of the print...

Страница 46: ...ent symbols no matter which delimiter is used The space character occupies an additional tenth of an inch Neither the comma nor the asterisk imposes any additional space between symbols Asterisks are valid delimiters in Code 3 of 9 style 4 only and are normally used in pairs 110 LPRINT CHR 27 0 9 1 height 3 4 hr on interleaved 2 of 5 120 LPRINT CHR 27 3t turn on bar code 140 LPRINT 001234 001234 c...

Страница 47: ...ght 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 9 ...

Страница 48: ...ld clear all tabs before setting tabs Note also that new tab stops do not take effect until you send a line terminator in other words you cannot set tabs for the current line The superfluous tab stops in the following example are included to show you how the function works If you use horizontal tabs for delimiters then set no more tab stops than you plan to use 100 LPRINT CHR 27 4 9 1 3 of 9 110 L...

Страница 49: ...ts 1 720 inch which the printer rounds off to the nearest 1 120 inch This command is a valid delimiter even when issued with an argument of zero 110 LPRINT CHR 27 4 9 1 height 3 4 hr on 120 LPRINT CHR 27 3t turn on bar code 140 LPRINT 1234 send a symbol 150 LPRINT CHR 27 720a hp_relative 1 inch 160 LPRINT 1234 send a symbol 170 LPRINT CHR 27 0t turn off bar code 180 LPRINT hp_rel delimiter Figure ...

Страница 50: ... the quiet zones 100 LPRINT CHR 27 4 9 1 3 of 9 110 LPRINT CHR 27 3g clear all h_tabs 120 set horizontal tabs at 1 2 inch intervals 130 LPRINT CHR 27 360 720 1080 1440 1800 2160u 140 LPRINT CHR 27 0 9 1 2 150 FOR K 1 TO 6 show where the tabs are 160 LPRINT CHR 9 T 170 NEXT K 180 LPRINT 190 LPRINT CHR 27 3t turn on bar code 200 LPRINT 1234 CHR 9 5678 210 LPRINT CHR 27 0t turn off bar code 220 LPRIN...

Страница 51: ...t stop characters separately for the variable length codes The default element widths are the narrowest that we recommend If you use wider element widths and maintain a 3 1 ratio of wide elements to narrow elements then you can extrapolate characters per inch for wider symbols If you depart from the 3 1 ratio then it s simpler for you to print test symbols and derive formulae based on what you mea...

Страница 52: ...e 5 NULL character Yes 6 Intercharacter gap None 7 Characters per symbol Variable 8 Check digit None 9 Delimiters Space comma horizontal tab hp_relative 10 HR characters Currently selected font special HR font special OCR A OCR B font 120 DPI only 11 CPI at default element widths 6 857 12 Combined start stop character length 0 167 Bidirectional Industrial 2 of 5 Styles 1 and 3 1 Bars per character...

Страница 53: ...only 11 CPI at default element widths 6 0 12 Combined start stop character length 0 278 Code 3 of 9 Style 4 1 Bars per character 5 dark bars and 4 light bars 2 Character set 0 through 9 upper case letters A through Z characters and the space character 3 Start Stop characters Yes 4 Center character code None 5 NULL character Yes 6 Intercharacter gap None 7 Characters per symbol Variable 8 Check dig...

Страница 54: ...d font special HR font special OCR A OCR B font 120 DPI only HR characters with guard bars OCR B font 11 CPI at default element widths 7 385 EAN 13 Style 6 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 gap None 7 Characters per symbol 13 8 Check digi...

Страница 55: ...racters Yes 4 Center character code None 5 NULL character Yes 6 Intercharacter gap None 7 Characters per symbol Variable 8 Check digit If needed it must be generated by the data source 9 Delimiters Space comma horizontal tab hp_relative 10 HR characters Currently selected font special HR font special OCR A OCR B font 120 DPI only 11 CPI at default element widths 6 00 12 Combined start stop charact...

Страница 56: ...ce comma horizontal tab hp_relative 10 HR characters Currently selected font special HR font special OCR A OCR B font 120 DPI only 11 CPI at default element widths 5 05 12 Combined start stop character length 0 458 UPC A Style 13 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 chara...

Страница 57: ...ollowed by a 3 1st 2nd 3rd 9th 10th 3 2 If the vendor number ends in 10 20 30 40 50 60 70 80 or 90 then the product number must be between 00000 and 00009 The six digits encoded are the first four characters of the vendor number followed by the last character of the product number followed by a 4 1st 2nd 3rd 4th 10th 4 3 If the vendor number does not end in zero then the product number must be bet...

Страница 58: ...top character length 0 333 Code 128 Style 16 1 Bars per character 3 dark bars and 3 light bars 2 Character set Any of 3 subsets The printer automatically shifts among subsets based on the data that you send Subset A All standard alphanumeric keyboard characters control characters and special characters Subset B All standard alphanumeric keyboard characters lower case alpha characters and special c...

Страница 59: ...s 2 dark bars and 1 light bar 4 Center character code None 5 NULL character Yes 6 Intercharacter gap None 7 Characters per symbol Variable 8 Check digit The check digit can be supplied by the data source 9 Delimiters Space comma horizontal tab hp_relative 10 HR characters Currently selected font special HR font special OCR A OCR B font 120 DPI only 11 CPI at default element widths 3 8 12 Combined ...

Страница 60: ...he symbol string Legal characters are the numerals 0 9 30 hex 39 hex and the dash symbol 2D hex which is ignored Any other printable characters in the symbol string cause an error character diamond to be printed ZIP 5 digits plus 1 check digit ZIP 4 9 digits plus 1 check digit ABC 11 digits plus 1 check digit The check digit is the digit that makes the sum of the digits in the symbol string includ...

Страница 61: ...ter code None 5 NULL character diamond symbol 6 Intercharacter gap Yes 7 Characters per symbol ZIP 5 1 check character ZIP 4 9 1 check character ABC 11 1 check character 8 Check digit yes If a check digit is not sent then the printer adds it If a check digit is sent then the printer verifies it If a user supplied check digit is wrong then an error character is printed 9 Delimiters Space comma hori...

Страница 62: ...the sum 115 43 2 Remainder 29 4 The check character is the character corresponding to location 29 in the 3 of 9 character table which is T Send to the printer 12345ABCDE T Code 3 of 9 Character Table 0 0 12 C 24 O 36 minus sign 1 1 13 D 25 P 37 period 2 2 14 E 26 Q 38 space 3 3 15 F 27 R 39 4 4 16 G 28 S 40 5 5 17 H 29 T 41 6 6 18 I 30 U 42 7 7 19 J 31 V 8 8 20 K 32 W 9 9 21 L 33 X 10 A 22 M 34 Y ...

Страница 63: ...For K sum the products of the K WEIGHTS DATA VALUES starting with the newly calculated C digit 1 14 2 3 3 9 4 38 5 14 6 13 7 24 8 12 611 5 Divide 611 by 47 611 47 13 remainder 0 6 The value of K therefore is 0 corresponding to character 0 Send to the printer CODE 93E0 The Code 93 character table is the same as the Code 3 of 9 character table except that there are four additional control characters...

Страница 64: ...ode 93 symbol for instance then the printer prints bars and spaces that correspond to the CTRL code in front of bars and spaces that correspond to the uppercase A The reader then interprets this character combination as a lowercase a So far this process is transparent both to routines sending symbol strings to the printer and to routines receiving decoded data from the reader When ASCII characters...

Страница 65: ...the products of the C WEIGHTS DATA VALUES 1 29 2 46 3 10 4 46 5 12 395 2 Divide 395 by 47 395 47 8 remainder 19 Therefore the value of C is 19 which corresponds to character J 3 For K sum the products of the K WEIGHTS DATA VALUES starting with the newly calculated C digit 1 19 2 29 3 46 4 10 5 46 6 12 557 4 Divide 557 by 47 611 47 11 remainder 40 5 The value of K therefore is 40 corresponding to c...

Страница 66: ... EOT D D D d D ENQ E E E e E ACK F F F F f F BEL G G G G g G BS H H H H h H HT I I I I i I LF J J J J j J VT K K K k K FF L L L L l L CR M M M m M SO N N N n N SI O O O o O DLE P 0 0 P P p P DC1 Q 1 1 Q Q q Q DC2 R 2 2 R R r R DC3 S 3 3 S S s S DC4 T 4 4 T T t T NAK U 5 5 U U u U SYN V 6 6 V V v V ETB W 7 7 W W w W CAN X 8 8 X X x X EM Y 9 9 Y Y y Y SUB Z Z Z Z z Z ESC A F K P FS B G L Q GS C H M ...

Страница 67: ...stitutions work the same as in normal text In contrast to the oversized function on earlier products the 7265 interprets escape sequences and control codes within an oversized string As of this writing however we recommend that you exit oversized before sending any other control functions To maintain compatibility with existing printers the 7265 printer does not back paper up to print oversized ch...

Страница 68: ... EXIT OVERSIZED EXPANDED BAR CODE Dec 15 Hex 0F ESC 0t CANCEL OVERSIZED EXPANDED BAR CODE Cancels oversized whether set with ESC 1t or ESC Ps and also expanded and bar code modes This command does not clear the oversized dimensions set by ESC Pv Ph sp B Dec 27 91 48 116 Hex 1B 5B 30 74 ESC 1t NON ROTATABLE OVERSIZED Included for compatibility with older products Use if you want to toggle oversized...

Страница 69: ...her ESC Ps or ESC Ps t will be printed in expanded mode If you do not want this to happen then you must follow this command immediately with a mode selection command The range of valid parameters in the sense that a valid parameter does not abort the escape sequence is 0 Pn 32767 The printer rounds off dimension parameters as follows If Pn 100 then Pn 100 If 100 Pn 18700 then Pn is rounded down to...

Страница 70: ...tion occurs for vertical expansions The horizontal resolution reflects the current font selection If you send a line feed character while in expanded mode then the paper advances by the current vertical expansion factor times the current line feed increment Oversized is based on a unique font is rotatable expandable to 1870x and propagates down from the top of the character cell The resolution is ...

Страница 71: ...ed mode selection if you do not want to drop into expanded mode Device Timeout with Very Large Characters Normally one byte of data in the printer s input buffer represents one text character which takes milliseconds to print If our host creates a huge character using dot graphics then one byte of data in the buffer corresponds to one dot column If we set oversized however then one byte of data ca...

Страница 72: ...haracter is often centered horizontally in the character cell There might be a fixed number of dot columns on either end of the character cell that are never printed This is analogous to the side bearings in a typeset character Figure 4 2 Character Cells In the oversized font on the other hand characters are left justified in the cells This lets you print a larger character when you are printing s...

Страница 73: ...ipoints apart Figure 4 3 Vertical Character Dimensions The height of an oversized character cell is 0 9 decipoints times the vertical expansion factor In thousandths of an inch it is 1 25 times the vertical expansion factor If you set a vertical expansion of 1000 then the top of the uppercase E is 1 25 inches or 900 decpoints from the bottom of the lowercase j The distance from the top of an overs...

Страница 74: ...vertical expansion factor Top of cell means the upper boundary of the character cell as you read the character When printing strings of sideways characters the printer adds horizontal space between character cells This space is equal to 0 36 decipoints times the vertical expansion factor Vertical Position Relative in Oversized Normally the origin of a vertical position relative move is the current...

Страница 75: ...decipoints from the top print reference and Ph is decipoints from the left print reference The logic seeking of the printer minimizes redundant paper motion associated with position absolute commands You could also use vertical position relative to implement line feeds Try a line feed increment of 1 2 decipoints times the vertical expansion factor If you send a line feed character while in oversiz...

Страница 76: ...of sideways characters propagate left to right across the portrait page The printer makes line feeds for you by inserting space between the trailing cell boundary of the previous character and the leading cell boundary of the next character This space is 0 36 decipoints times the vertical expansion factor which is generous line spacing If this line spacing is not satisfactory then send sideways te...

Страница 77: ...on GSM ESC p1 p2 s Left Right Margin Set GENSLR ESC p1 pn u Sets horizontal tab stops at specified positions Multiple Horizontal Tab Set GENHTS ESC p1 pn g Tab Clear TBC ESC p1 pn v Sets vertical tab stops at specified positions Multiple Vertical Tab Set GENVTS ESC p1 p2 p3 r Form Definition GENFD ESC p1 p2 SP G Sets the line character spacing ESC p1 pn h Set Mode SM ESC p1 pn l Reset mode RM ESC ...

Страница 78: ...haracters printed with a fixed rotation 4 The Genicom printer saves ESC sequence changes to powerup we load from the powerup menu 5 DEL character prints a space Genicom prints a house character 6 Across 13 6 inches we print one less character per line in the following CPI s 6 6 25 6 67 8 33 8 57 9 12 12 5 13 3 17 14 and 18 7 If we set Auto CR to ON then form feeds also get a CR where Genicom does ...

Страница 79: ...Programmer s Reference EPSON Emulation ...

Страница 80: ...otion Index 16 Enlarged print mode 18 Continuous enlarged print mode 18 Condensed Character Density 20 Character Density 10 cpi 21 Character Density 12 cpi 21 Character Density 15 cpi 21 Proportional Spacing 23 Character Spacing 24 Line Spacing 25 Fixed Line Spacing 1 8 inch 25 Fixed Line Spacing 7 72 inch 25 Fixed Line Spacing 1 6 inch 25 Variable Line Spacing n 180 or n 216 Inch 27 Variable Line...

Страница 81: ...b Stops 47 Set Horizontal and Vertical Pitch 49 Horizontal and Vertical Step Forward 50 Absolute Horizontal Step 51 Relative Horizontal Step 53 Vertical Tab Stops 55 Set Reset Vertical Tabs in Channels 57 Select Vertical Tab Channel 57 Set Absolute Vertical Print Position 59 Set Relative Vertical Print Position 59 Set Unit 62 Graphics 63 Select Graphics Mode 67 Graphics 60 dpi 63 Graphics 120 dpi ...

Страница 82: ...n of NLQ Characters 9 Needle Printer 88 24 Needle Printer 92 Miscellaneous 95 Print Data as Characters 95 Printing Direction unidirectional for one line 96 Half Speed Printing 97 Single n 180 inch or n 216 inch line feed 98 Single n 216 inch back feed 98 Colour Selection 99 International Character Sets 101 Character Sets 103 Assign Character Table 105 Input Data Control 107 Sheet Feeder 108 Print ...

Страница 83: ...B 3 International Substitution Table normal font B 4 International Substitution Table italic font B 5 Graphics Character Set B 6 Standard Character Set extended B 7 Graphics Character Set extended B 8 International Character Set B 9 International Character Set extended B 10 Table of Character Width for Proportional Printing B 11 Index ...

Страница 84: ...Description of Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Download Character Generator Miscellaneous Control Codes ...

Страница 85: ...quences are thus not available for that specific emulation Select the EPSON mode as described in the Operator s Manual Selecting this emulation mode will automatically select the Epson character set Read the Operator s Manual to see whether it is also possible to use ANSI MTPL sequences in addition to the special Epson sequences The following explanations will help you understand the sequences bet...

Страница 86: ...ed if the parameter is not in pointed parentheses the ASCII value is transferred Example Parameter syntax n with n 0 to be transmitted ASCII NUL hex 00 dec 0 Parameter syntax n with n 0 to be transmitted ASCII 0 hex 30 dec 48 Character explanation and symbol description l Lower case l Information Sequence only applies for 9 needle printer Sequence only applies for 24 needle printer Sequence only a...

Страница 87: ...200 LPRINT CHR 27 CHR 67 CHR 72 210 REM set form length up to 72 lines Setting the form length to 12 inches Escape Sequence ESC C NUL n with n 12 Transfer ASCII ESC C NUL FF hex 1B 43 00 0C dec 27 67 0 12 100 REM Sample for the ESC C NUL n sequence in ASCII 110 REM using form with 12 inch length 120 REM Please note in ASCII Syntax you can use ASCII values 130 REM equal or bigger codetable no 32 on...

Страница 88: ... tiplied by the current line feed pitch to obtain the form length For example if 60 is specified for n and the current line feed pitch is 1 6 inch the form length is set to 10 in ches Once set by this sequence the form length is not affected by changing the line spacing This code sequence is ignored if the value specified for n is not in the range of 1 to 127 This code sequence sets the form lengt...

Страница 89: ...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 F line L 170 NEXT L 180 K K 1 190 LPRINT FF 200 NEXT F 210 END 6 Paper and Text Formatting ...

Страница 90: ...22 Defines page length in untis previously defined with the sequence ESC U see page 62 page length mH x 256 mL x defined unit mH INT page length x 1 defined unit 256 mL MOD page length x 1 defined unit 256 This sequence sets top and bottom margins to default Set page length first then load paper Using this sequence within the form sets top of form position at the current position Paper and Text Fo...

Страница 91: ...ottom margin bH x 256 bL x defined unit 22 bottom margin 22 inches Defines top and bottom margins previously defined with the sequence ESC U see page 62 top margin tH x 256 tL x defined unit tH INT top margin x 1 defined unit 256 tL MOD top margin x 1 defined unit 256 top margin tH x 256 tL x defined unit bH MOD bottom margin x 1 defined unit 256 bL MOD bottom margin x 1 defined unit 256 8 Paper a...

Страница 92: ...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 ...

Страница 93: ...within the margin area defined as n lines from the bottom of the current page n being the value specified for the bottom margin area The margin area before and after the perforation is n times the current line spacing Once this margin area has been defined it will not be affected by changing the line spacing and remains effective until the printer receives code sequence ESC O reset perforation ski...

Страница 94: ...mple 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 ...

Страница 95: ...ition depends on whether enlarged print mode compressed print mode Pica or Elite are selected When using proportional spacing the setting of the mar gins corresponds to the setting when in Pica font type 10 cpi The command for setting the margins must be given at the beginning of a line all data of the same line are lost in the print buffer The right margin is set to n columns depending on the cha...

Страница 96: ...R 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 CHR 27 l CHR 5 CHR 27 Q CHR 41 80 LPRINT Now the left margin has been reduced 90 LPRINT to column 5 and the right margin has 100 LPRINT been set to column 41 110 END Paper and Text Formatting 13 ...

Страница 97: ...st always be set at beginning of the line Justification mode can be used in all print qualities If left and right justification is activated the validity of codes ESC ESC and HT at the beginning of the line is checked Left and right justification is only achieved if the length of the data line measured from the start of data input up to a CR or LF code fills 75 to 125 of the given printed area At ...

Страница 98: ...stification 70 LPRINT is on The lines are filled with blanks 80 LPRINT until they are long enough to reach the 90 LPRINT right margin 100 LPRINT 110 LPRINT CHR 27 a CHR 2 These lines are only 120 LPRINT justificated on the 130 LPRINT right margin 140 LPRINT 150 LPRINT CHR 27 a CHR 0 Now the default setting 160 LPRINT is selected again The lines are 170 LPRINT justified on the left margin 180 END P...

Страница 99: ...H set HMI Horizontal Motion Index hex 1B 63 nL nH dec 27 99 nL nH Description Valid values 0 nH 4 0 nL 255 0 nH x 256 nL 1080 HMI 3 00 inches The normal print density is enlarged according this formula HMI nH x 256 nL 360 inch nH INT HMI x 360 256 nL MOD HMI x 360 256 16 Character Spacing ...

Страница 100: ... DC2 reset condensed print DC4 reset enlarged print mode set by SO or ESC SO ESC g character density 15 cpi ESC M character density 12 cpi Elite ESC P character density 10 cpi Pica ESC p proportional spacing ON OFF ESC SP character spacing ESC W continuous enlarged print mode ON OFF SI condensed print ON SO enlarged print mode automatically reset after one line Character Spacing 17 ...

Страница 101: ... normal mode Enlar ged printing can be used with all print qualities Enlarged print mode set by SO or ESC SO is reset by LF CR FF VT ESC ESC W 0 and DC4 This code resets the printer from enlarged print mode to normal standard size mode The code is ignored except when the printer has been set to enlarged mode by SO or ESC SO It does not affect the enlarged mode set by ESC W or by ESC se quences Thi...

Страница 102: ...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 enlarged 80 LPRINT CHR 27 W0 REM normal character density 90 LPRINT CHR 14 REM enlarged character density for one line 100 LPRINT this is enlarged only 110 LPRINT for one line 120 END Character Spacing 19 ...

Страница 103: ...an be used in all print qualities It can be used during printing in the double strike or bold modes Once set this code remains ef fective until it is reset by code DC2 When the printer receives this code the condensed print mode is reset This code is ignored except when the printer has been set to condensed mode by SI or ESC SI Proportionally spaced characters cannot be condensed Example 10 REM co...

Страница 104: ...the default character density This code sequence sets the character density to 12 cpi Elite This code sequence sets the character density to 15 cpi With this code sequence not only the character spacing is altered but also the size of the characters approx 2 3 mm high and 1 mm wide That is why the font set with this sequence is referred to as microfont All three control codes neutralise each other...

Страница 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 ...

Страница 106: ...onal spacing the spaces between each character are set to the actual width of the characters on account of these proportional characters reading of the text becomes more easy Proportional spacing selects automatically LQ as print quality Condensed is reset The set character densities are only effective again when proportional spacing is switched off Example 10 REM proportional spacing 20 LPRINT CH...

Страница 107: ...ch This space is added to the spaces used for character de finition The value specified for n must be in the range of 0 to 127 Example 10 REM character spacing 20 LPRINT CHR 27 25 LPRINT CHR 27 x1 REM High Print quality 30 LPRINT this is normal width 40 LPRINT CHR 27 CHR 3 50 LPRINT now 3 180 inch is added to normal width 60 LPRINT CHR 27 CHR 6 70 LPRINT now 6 180 inch is added 80 END 24 Character...

Страница 108: ...s been changed by this sequence 1 8 inch line feeds are made until line spacing is changed by code sequences ESC 1 ESC 2 ESC 3 n ESC A n or ESC n This code sequence sets line spacing to 7 72 inch Once the line spacing has been changed by this sequence 7 72 inch line feeds are made until line spacing is changed by code sequences ESC 0 ESC 2 ESC 3 n ESC A n or ESC n This code sequence sets line spac...

Страница 109: ...ng 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 LPRINT CHR 27 2 60 LPRINT and these two lines are printed with 70 LPRINT a spacing of 1 6 inch 80 END 26 Line Spacing ...

Страница 110: ...hes 24 needle version or to n 216 inches 9 needle version The value specified for n must be in the range of 0 to 255 This code sequence sets the line feed pitch to n 60 inch 24 needle version or to n 72 in ches 9 needle version The value specified for n must be in the range of 1 to 127 This code sequence sets the line feed pitch to n 360 inch 24 needle version The 9 needle printer ignores this seq...

Страница 111: ... 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 two lines are printed with 50 LPRINT a spacing of N 216 inches 60 NEXT 70 END 28 Line Spacing ...

Страница 112: ...r n and to subscript mode when 1 hex 01 or hex 31 is set The subsequent characters are printed with about 2 3 of their normal height either in the upper or lower half of the cor responding character location If superscript or subscript characters are underlined the underline character is printed at its normal position The characters hex B0 to hex DF dec 176 dec 223 and hex F0 to hex FE dec 240 dec...

Страница 113: ...d 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 Styling ...

Страница 114: ...rs thicker and fuller Print speed is reduced since the characters are printed twice Double strike mode can be used in combination with emphasized mode ESC E Double strike mode is reset when the printer receives the code sequence ESC H This code sequence resets the double strike mode set by ESC G or ESC This code sequence is ignored when the printer is not in double strike mode Example 10 REM doubl...

Страница 115: ...55 0 nH 127 Selects the pitch and point attributes for scalable fonts Pitch m 0 No change in pitch m 1 Selects proportional spacing m 5 Selects fixed pitch equal to 360 m cpi m 36 default 10 cpi Points point size nH x 256 nL 2 inch 1 point 1 72 inch nH INT point size x 2 256 nL MOD point size x 2 256 nH nL 0 No change in point size nH 0 nL 21 default 10 5 points 32 Character Styling ...

Страница 116: ... in scaleable font mode ESC SI condensed print ESC SO enlarged print mode automatically reset after one line ESC SP character spacing ESC W continuous enlarged print mode ON OFF ESC w double height SI condensed print ON SO enlarged print mode automatically reset after one line Following sequences will cancel the scaleable font mode ESC print mode selection ESC printer initialization ESC g characte...

Страница 117: ...ected 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 hex 31 Example 10 REM print quality 20 LPRINT CHR 27 x1 This is high print quality 30 LPRINT CHR 27 x0 and this is draft print quality 40 END 34 Character Styling ...

Страница 118: ...ual which fonts are supported by your printer type This sequence is not valid in Draft Mode Example depending on the printer These fonts can be selected also via the menu of the printer Roman_T and S_Serif_H are scaleable fonts 0 Roman 1 S_Serif 2 Courier 3 Prestige 4 Script 5 OCR B 6 OCR A 7 Modern 8 Kaufmann 9 Gothic 10 Helvetica 11 Quadrato 12 Kyrillic 13 Arabic_I 14 Arabic_II 15 Farsi_I 16 Far...

Страница 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 ...

Страница 120: ...45 can be printed in the selected typestyle The following parameter assignment applies n Typestyle 0 hex 00 or hex 30 Normal typestyle 1 hex 01 or hex 31 Outline typestyle 2 hex 02 or hex 32 Shaded typestyle 3 hex 03 or hex 33 Shaded Outline typestyle Beispiel 10 REM character style 20 LF CHR 10 30 LPRINT CHR 27 q CHR 0 40 LPRINT 0 normal characters LF 50 LPRINT CHR 27 q CHR 1 60 LPRINT 1 outline ...

Страница 121: ...les in the print head are fired twice instead of once as in standard mode print speed is reduced This code sequence is ignored if received while the printer is already in emphasized mode Emphasized mode plus condensed or Elite is not possible This code sequence resets the emphasized mode initiated by ESC E or ESC Master Select This code sequence is ignored if the printer is not in emphasized mode ...

Страница 122: ...ed for n and is OFF when 0 is specified Once the printer receives ESC 1 all subsequent characters including spaces are automatically underlined until ESC 0 is received Spaces between tab codes HT will not be underlined The characters hex B0 to hex DF hex 176 dec 223 and hex F0 to hex FE dec 240 dec 254 of the extended EPSON graphics character set cannot be underlined using this mode Example 10 REM...

Страница 123: ...ex 01 underscore mode 2 hex 02 strike through mode 3 hex 03 overscore mode type n2 The parameter n2 indicates the type of score to be printed The following values are avaiable 0 hex 00 cancel scoring selected by n1 loc 1 hex 01 single continuous line 2 hex 02 double continuous line 5 hex 05 single broken line 6 hex 06 double broken line This command can be used more than once to activate the under...

Страница 124: ...through double continous line 70 LPRINT CHR 27 CHR 3 CHR 0 CHR 1 CHR 2 CHR 0 80 LPRINT CHR 27 CHR 3 CHR 0 CHR 1 CHR 2 CHR 1 90 LPRINT 3 Strike through Single continous line and 100 LPRINT Underline Double continous line 110 REM cancel underline double continous line 120 LPRINT CHR 27 CHR 3 CHR 0 CHR 1 CHR 1 CHR 0 130 LPRINT CHR 27 CHR 3 CHR 0 CHR 1 CHR 3 CHR 1 140 LPRINT 4 Overscore and strike thr...

Страница 125: ...the eight bit set by ESC are sent to the printer The characters hex B0 to hex DF hex 176 dec 223 and hex F0 to hex FE dec 240 dec 254 of the extended EPSON graphics character set cannot be printed in italic mode Italic print mode set by ESC 4 or ESC Master Select is reset Italic mode can be used in all print qualities DPQ NLQ LQ Example 10 REM italic mode 20 LPRINT CHR 27 4 30 GOSUB 70 40 LPRINT C...

Страница 126: ...e simulta neously set via the value of n This command can also be used to reset all character sty ling features or to reset the printer to standard Pica font type by specifying n 0 The value specified for n must be in the range of 0 to 255 See the following table for pos sible values of n Print mode selection byte 0 Pica 10 cpi 1 Elite 12 cpi Proportional Condensed Bold Double Strike Enlarged Ital...

Страница 127: ... 128 132 160 164 130 162 128 160 underlined emphas 136 168 146 178 136 168 double 144 148 176 180 em double 152 184 Pica italic normal 192 196 224 228 194 226 underlined emphas 200 232 210 242 double 208 212 240 244 em double 216 248 Elite normal 1 5 33 37 double 17 21 49 53 Elite italic normal 65 69 97 101 double 81 85 113 117 Elite normal 129 133 161 165 underlined double 145 149 177 181 Elite i...

Страница 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 ...

Страница 129: ... To reset the double height to the normal height specify n 0 hex 00 oder hex 30 The line spacing is not altered This command cannot be combined with superscript sub script or condensed print commands ESC w with parameter n 0 hex 00 or hex 30 resets character representation back to normal character height Example 10 REM double height 20 LPRINT for 20 LPRINT CHR 27 w CHR 1 30 LPRINT Headlines 40 LPR...

Страница 130: ...ich are specified by character codes following ESC D These character codes must be arranged in ascending order The length of this code sequence varies according to the number of tab stops being set Code hex 00 is used as a terminator to signal the end of the data string If a character code with a smaller numeric value than the preceding is among those codes the code with the smaller value is ignor...

Страница 131: ...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 LPRINT 123456789012345678901234567890123456789 60 GOSUB 120 70 LPRINT CHR 14 REM double width 80 GOSUB 120 90 LPRINT CHR 15 REM condensed 100 GOSUB 120 110 END 120 LPRINT CHR 9 tab1 130 LPRINT CHR 9 tab2 140 LPRINT CHR 9 tab3 150 RETURN 48 Print Positioning ...

Страница 132: ...ter den sity When an HT command is received a horizontal tab stop is carried out The following maximum values apply for n 21 Pica 25 Elite 36 narrow Pica 42 narrow Elite The horizontal tab stop positions are set relative to the left margin This sequence defines the vertical step width n as the number of line feeds correspon ding to the line spacing set for LF On receipt of a VT command a vertical ...

Страница 133: ...d As soon as this command is received all data in the buffer are printed This command is igno red when justification is activated If the next print position is on or beyond the right margin a line feed is carried out and printing starts at the left margin On receipt of this sequence the printer carries out n line feeds corresponding to the current line spacing A carriage return CR is not carried o...

Страница 134: ...0 to 3 This code sequence can be used in all print qualities DPQ NLQ LQ Example for calculating n1 and n2 The print position is 4 5 inches which corresponds to a number of dots of 270 4 5 inch x 60 dots inch 270 dots n2 number of dots divided by 256 270 256 dec 1 hex 01 n1 remainder of division of n2 dec 14 hex 0E Note that you obtain the same result by using the formula given for calculating n1 a...

Страница 135: ...Q 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 10 90 LPRINT CHR 27 CHR 100 CHR 0 100 100 LPRINT CHR 27 CHR 170 CHR 0 170 110 LPRINT 120 END 52 Print Positioning ...

Страница 136: ...Q Calculation of the values of n1 and n2 first requires the prefix n dots to be calculated If the movement is directed towards the left side the result is subtracted from 65536 Sub sequently the values for n1 and n2 can be calculated according to the formula n1 n MOD 256 n2 INT n 256 If the print position exceeds the currently set margins after execution of the horizontal step this code sequence i...

Страница 137: ...en for calculating n1 and n2 for absolute horizontal step see sequence ESC Only the method of calculations is different The two different methods give the same result and therefore the programmer should use the method best suited for his application Example 10 REM relative horizontal position 20 LPRINT CHR 27 CHR 224 CHR 1 480 30 LPRINT CHR 27 CHR 56 CHR 255 200 40 LPRINT CHR 27 CHR 50 CHR 0 50 50...

Страница 138: ...ing ESC B These character codes must be arranged in ascending order The length of this code sequence varies according to the number of tab stops being set Code NUL hex 00 is used as a terminator to signal the end of the data string If any character code with a smaller numeric value than the preceding is among those codes the code with the smaller value is ignored Vertical tab stops set by this seq...

Страница 139: ...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 tab line 3 60 LPRINT CHR 11 this is the second vertical tab line 5 70 LPRINT CHR 11 this is the third vertical tab line 9 80 END 56 Print Positioning ...

Страница 140: ... 1B 62 m 00 dec 27 98 m 0 ASCII ESC m select vertical tab channel hex 1B 2F m dec 27 47 m Description Up to 16 vertical tabs for one channel m can be set the number of tab channels m ranges from 0 to 7 The value of n given in lines ranges from 1 to 255 Channel 0 can be set via ESC B The default value is m 0 This command is used to select one of the eight vertical tab channels The value of m ranges...

Страница 141: ...4 and 6 50 LPRINT CHR 27 b CHR 1 CHR 9 CHR 11 CHR 14 CHR 0 60 REM Channel 1 tabs set at lines 9 11 and 14 70 LPRINT CHR 27 CHR 0 80 REM Selects channel 0 90 LPRINT Channel 0 100 GOSUB 180 110 LPRINT CHR 27 CHR 1 120 REM Selects channel 1 130 LPRINT Channel 1 140 GOSUB 180 150 END 160 FOR I 1 TO 3 170 LPRINT CHR 11 180 LPRINT VT Position I 190 NEXT 200 RETURN 58 Print Positioning ...

Страница 142: ...ly defined with the sequence ESC U see page 62 vertical position mH x 256 mL x defined unit top margin position mH INT vertical position top margin position x 1 defined unit 256 mL MOD vertical position top margin position x 1 defined unit 256 The default unit for this sequence is 1 360 Only positions within a valid form can be achieved Positions below bottom margin will a eject paper single sheet...

Страница 143: ... relatively up and down in units previously defined with the sequence ESC U see page 62 horizontal position mH x 256 mL x defined unit current position Downwards mH INT vertical position current position x 1 defined unit 256 mL MOD vertical position current position x 1 defined unit 256 Upwards mH 32768 INT current position vertical position x 1 defined unit 256 mL 32768 MOD current position verti...

Страница 144: ... can be achieved The current position is base for the newly defined relative positions Positions exceeding the defined top margin will be ignored Positions below bottom margin will a eject paper single sheet and b set new position to top of form at next page Print Positioning 61 ...

Страница 145: ... 28 55 nL nH m dec 27 40 85 nL nH m Description Valid values nL 1 nH 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 values of these sequences is defined at 1 360 inch 62 Print Positioning ...

Страница 146: ... n1 n2 high speed graphics 120 dpi hex 1B 59 n1 n2 dec 27 89 n1 n2 ASCII ESC Z n1 n2 graphics 240 dpi hex 1B 5A n1 n2 dec 27 90 n1 n2 ASCII ESC 0 n1 n2 graphic modes hex 1B 2A 00 n1 n2 dec 27 42 0 n1 n2 Description Data following the graphics ESC sequence is printed out as a dot pattern The number of bytes of the graphics string is defined by n1 and n2 You will find a list of all sequences and the...

Страница 147: ...C 4 screen graphics 80 8 possible ESC 5 plot 1 1 72 8 possible ESC 6 screen graphics II 90 8 possible ESC 7 plot double density 144 8 possible ESC 32 single density 60 180 24 possible ESC 33 double density 120 24 possible ESC 38 screen graphics II 90 24 possible ESC 39 triple density 180 24 possible ESC 40 sixfold density 360 24 not possible Example for Calculation of n1 and n2 The number of graph...

Страница 148: ...hip between bits of graphics data and needles 24 needle version When using 24 pin graphics modes three bytes of data are required for each dot column Needle Data Byte 1 Needle Data Byte 2 Needle Data Byte 3 1 Bit 7 9 Bit 7 17 Bit 7 2 Bit 6 10 Bit 6 18 Bit 6 3 Bit 5 11 Bit 5 19 Bit 5 4 Bit 4 12 Bit 4 20 Bit 4 5 Bit 3 13 Bit 3 21 Bit 3 6 Bit 2 14 Bit 2 22 Bit 2 7 Bit 1 15 Bit 1 23 Bit 1 8 Bit 0 16 B...

Страница 149: ...rea 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 LPRINT STRING 1 64 16 4 1 STRING 1 128 32 8 2 80 NEXT j 90 LPRINT CHR 10 CHR 13 100 NEXT i 110 END 66 Graphics ...

Страница 150: ...er entering graphics mode ESC c Set page format ESC C Set page length in units ESC V Set absolute vertical print position ESC v Set relative vertical print position ESC Relative horizontal step ESC Absolute horizontal step ESC r Select printing color ESC U Set reset unidirectional printing ESC Variable line spacing n 360 inch ESC U Set unit ESC EM Sheet feeder ESC Printer initialization ESC Print ...

Страница 151: ...ted 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 ...

Страница 152: ... 75 76 89 90 ASCII K L Y Z n 0 single density n 1 double density n 2 double density high speed n 3 quadruple density n 4 screen graphics n 5 plot graphics 1 1 n 6 screen graphics II n 7 plot graphics double density n 32 single density n 33 double density n 38 screen graphics II n 39 triple density n 40 sixfold density For example if you send the following code before you run a graphics program it ...

Страница 153: ...ics 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 LPRINT CHR 27 K CHR 60 CHR 0 100 FOR Z 1 TO 60 REM 60 Columns 110 LPRINT CHR 255 CHR 255 CHR 255 130 NEXT Z 140 END 70 Graphics ...

Страница 154: ...te controls the upper eight print dots and the second controls only the lowest print dot m 0 selects normal graphics resolution 60 dpi m 1 selects double graphics resolution 120 dpi The data following the graphics ESC sequence are printed as a dot pattern The parame ters n1 and n2 define the number of graphics bytes Print Head Data Byte Value Needle 1 Bit 7 128 2 Bit 6 64 3 Bit 5 32 4 Bit 4 16 5 B...

Страница 155: ...tes is 80 n2 number of bytes divided by 256 80 256 dec 0 hex 00 n1 remainder from division of n2 dec 80 hex 50 Graphics and text data can be used in combination in a line For 9 print dots graphics printing two graphics bytes must be transferred per column 72 Graphics ...

Страница 156: ...d store in the prin ters memory a maximum of 96 DLL characters If only single characters of an internal character set should be changed it is possible to copy the internal character set to the Download Character Generator and redefine these single characters After power switch off or initialization of the printer the contents of the Download Character Generator is lost Download characters are poss...

Страница 157: ...nal characters Superscript or subscript character 12 cpi or 15 cpi character DPQ LQ The desired print mode DPQ or LQ or LQ proportional must be selected in the printer Load characters from ROM to RAM using ESC if necessary Define the new character in the RAM using ESC Select the RAM character set using ESC 74 Download Character Generator ...

Страница 158: ...ence copies the specified character set see ESC k n from ROM or from the font module to RAM There the individual characters can be altered by the user Example 10 REM Copy ROM CG into Download CG 20 LPRINT CHR 27 CHR 0 CHR 0 CHR 0 30 REM Select Download CG 40 LPRINT CHR 27 CHR 1 CHR 0 50 LPRINT 60 END Download Character Generator 75 ...

Страница 159: ...c 1 v 10 20 h 10 20 m 1 8 24 0 nL 255 0 nH 127 0 d 255 This sequence supports following print densities v h v dpi h dpi m 20 20 180 180 1 8 or 24 20 20 180 360 1 8 or 24 10 10 360 360 1 8 or 24 ESC allows printing dot graphics in raster format A compression algorithm is provided for multiple printing of a particular byte of data 76 Download Character Generator ...

Страница 160: ...raphics nL nH Horizontal dot count columns of dot graphics Calculating algorithm nH INT horizontal dot count 256 nL MOD horizontal dot count 256 x Total number of data bytes x m x INT nH x 256 nL 7 8 d During normal mode c 0 Graphics data d1 dx d During DLE c 1 The first data byte is treated as a counter Graphics data bytes then alternate with a data counter byte 0 counter byte 127 Download Charac...

Страница 161: ...ed the right margin are discarded The vertical movement cannot be defined smaller than the current print density density must not be changed within Graphics Mode Avoid moving the print position upwards while in Graphics Mode This sequence is valid only in Graphics Mode ESC G see page 67 After printing raster graphics the actual print position is the most right dot 1 dot of the image Counter a and ...

Страница 162: ...AM hex 1B 25 01 dec 27 37 1 ASCII ESC NUL activate normal character set in ROM or Font Card hex 1B 25 00 dec 27 37 0 Example Example 30 LPRINT 40 REM Copy ROM CG into Download CG 50 LPRINT CHR 27 CHR 0 CHR 0 CHR 0 60 REM Select Download CG 70 LPRINT CHR 27 CHR 1 80 LPRINT 90 END Download Character Generator 79 ...

Страница 163: ...redefined y last character to be redefined A an attribute which consists of descending data and proportional data see Computing the Attribute n1 needle information for column 1 n2 needle information for column 2 n3 needle information for column 3 n11 needle information for column 11 This code sequence assigns the character pattern defined by n1 n2 n3 to n11 as down load character to ASCII codes x ...

Страница 164: ...fore it is always left blank by automatically setting dots in column 12 to zero Also only 8 of 9 dots in any one column can be printed see also Descenders Each column is defined by a single byte where each row in that column corresponds to the LSB dec 1 and the top row to the MSB dec 128 1 2 3 4 5 6 7 8 9 10 11 12 COLUMNS 8 7 6 5 4 3 2 1 0 R O W S R O W S 1 2 3 4 5 6 7 8 9 10 11 128 64 32 16 8 4 2...

Страница 165: ...n 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 4 2 1 32 16 8 56 64 4 68 128 16 2 146 32 8 40 128 2 130 32 8 40 128 2 130 64 8 68 32 16 8 56 6 7 8 9 10 11 1 2 3 4 5 0 0 Totals 82 Download Character Generator ...

Страница 166: ... ending positions of the character in the print area Descenders 9 needle printer Some characters like g or y extend below the line To define a character that extends below the line the ninth needle which corresponds to row 0 of the matrix field must be used Characters which use row 0 cannot use the top needle or row 8 of the matrix field Bit 8 of the attribute determines whether the matrix field i...

Страница 167: ...ng print position one or more blank columns greater than the actual width of the character This is also true for enlarged mode The maximum print area width of a download character is 12 columns but column 12 must be blank or if dots are specified in this column they will automatically set to 0 The minimum width of a download character is 5 columns All of the download character data n1 to n11 must ...

Страница 168: ...s 4 48 First column is 5 64 First column is 6 80 First column is 7 96 First column is 8 112 3 Last column is 5 4 Last column is 6 5 Last column is 7 6 Last column is 8 7 Last column is 9 8 Last column is 10 9 Last column is 11 10 Last column is 12 11 Example Descender matrix field 0 First column is 3 32 Last column is 10 9 Total value of A 41 E L Download Character Generator 85 ...

Страница 169: ...al matrix field 128 First column is 1 0 Last column is 12 11 Total value of A 139 Normal matrix field 128 First column is 4 48 Last column is 9 8 Total value of A 184 E L E L 86 Download Character Generator ...

Страница 170: ...9 130 LPRINT CHR 56 CHR 68 CHR 146 CHR 40 140 LPRINT CHR 130 CHR 40 CHR 130 CHR 68 150 LPRINT CHR 56 CHR 0 CHR 0 160 REM Select Download Character Generator 170 LPRINT CHR 27 CHR 1 CHR 0 180 LPRINT Draft print quality 190 PRINT 200 LPRINT First character without descender 210 LPRINT Second character with descender 220 LPRINT Both characters mixed 230 LPRINT LPRINT LPRINT 240 LPRINT CHR 27 p1 250 L...

Страница 171: ...ter hex 1B 26 00 dez 27 38 0 Description x first character to be redefined y last character to be redefined d0 leading space of the character d1 number of columns of the defineded character d2 following space of the character k number of data bytes to transmit n1 nk data bytes 3 data bytes for one column Values of parameters 0 d0 20 0 d1 20 0 d2 20 k 3 d1 If only a single download character is to ...

Страница 172: ...ch bit of the data bytes corresponds to a certain value The example on the right shows the as signment of print dots to data bytes and the calculation of the values In order to determine the nu meric value of a column it is necessary to first of all add the values of the 3 bytes separa tely A byte with no print dot receives the numeric value 9 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 128 64 1 2 3...

Страница 173: ...ust 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 corresponding programming example 1 2 3 4 5 6 7 8 9 10 11 12 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 128 64 90 Download Character Generator ...

Страница 174: ...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 LPRINT 220 END 230 DATA 0 8 0 0 4 0 0 2 0 0 1 0 240 DATA 0 0 128 255 255 192 0 0 128 0 1 0 250 DATA 0 2 0 0 4 0 0 8 0 0 0 0 Download Character Generator 91 ...

Страница 175: ...r DPQ LQ If the download character is only being assigned one character code specify x y Limitations for d0 d1 and d2 print quality d0 d1 d2 d0 d1 d2 DPQ 10 cpi 0 12 0 12 DPQ 12 cpi 0 10 0 10 DPQ 15 cpi 0 8 0 8 LQ 10 cpi 0 36 0 36 LQ 12 cpi 0 30 0 30 LQ 15 cpi 0 24 0 24 LQ proportional 0 42 0 42 LQ super subscript 0 37 0 37 If defined character density 10 12 15 cpi is selected d0 and d2 will be ig...

Страница 176: ...f them i e it will print in alternating order Example Needles 1 n1 Byte 1 128 2 64 3 32 4 16 5 8 6 4 7 2 8 1 9 n2 Byte 2 128 10 64 11 32 12 16 13 8 14 4 15 2 16 1 17 n3 Byte 3 128 18 64 19 32 20 16 21 8 22 4 23 2 24 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 Code 1 15 16 32 64 128 0 128 0 128 0 128 0 128 0 255 0 0 0 0 0 0 ...

Страница 177: ...0 LPRINT CHR 0 CHR 0 CHR 0 190 LPRINT CHR 255 CHR 0 CHR 1 200 LPRINT CHR 0 CHR 128 CHR 0 210 LPRINT CHR 0 CHR 64 CHR 2 220 LPRINT CHR 0 CHR 32 CHR 4 230 LPRINT CHR 0 CHR 16 CHR 8 240 LPRINT CHR 0 CHR 8 CHR 16 250 LPRINT CHR 0 CHR 4 CHR 0 260 LPRINT CHR 0 CHR 0 CHR 16 270 LPRINT CHR 0 CHR 4 CHR 0 280 LPRINT CHR 0 CHR 0 CHR 16 290 LPRINT CHR 0 CHR 4 CHR 0 300 LPRINT CHR 0 CHR 0 CHR 16 310 LPRINT CHR...

Страница 178: ... 1B 28 54 nL nH d1 dn dec 27 40 94 nL nH d1 dn Description Valid values 0 nL 255 0 nH 127 Data bytes d1 to dn are printed as characters rather than control codes k nH x 256 nL nH INT k 256 nL MOD k 256 Data is ignored if no character is assigned to that character in the active character table Miscellaneous 95 ...

Страница 179: ...ode only for one line The printing is carried out from left to right This code sequence sets or resets unidirectional printing mode Unidirectional printing is enabled when 1 is specified for n and is disabled when 0 is specified In text mode printing is faster when unidirectional printing is disabled However char acters on one line may be slightly shifted with respect to those in the preceding lin...

Страница 180: ...LPRINT This is full speed print in LQ mode 30 LPRINT CHR 27 s CHR 1 REM set half speed 40 LPRINT This is half speed print in LQ mode 50 LPRINT Quiet Mode 60 LPRINT CHR 27 s CHR 0 REM Set full speed 70 LPRINT CHR 27 x CHR 0 REM Set draft mode 80 LPRINT This is full speed print in draft mode 90 LPRINT CHR 27 s CHR 1 REM set half speed 100 LPRINT This is half speed print in draft mode 110 LPRINT Quie...

Страница 181: ...nches 9 neadle printer This sequence does not effect a CR reset line pointer When the printer receives this code sequence it moves the paper backwards by n 180 inches 24 needle printer or by n 216 inches 9 needle printer Unlike an ordinary line feed code code ESC J does not advance the paper to the top of the next page when the print position enters the perforation area Perforation skip operati on...

Страница 182: ... the ribbon used The ribbon used must be matched in the user menu PRINTER OPTIONS RIBBON OPTIONS If a ribbon with several black tracks is used then it is automatically switched every 60 lines between the black tracks The relationship between the track and the ribbon colour for various ribbon cassettes is shown in the following table track magenta cyan yellow black ribbon red green blue black ribbo...

Страница 183: ... red red red green green green yellow yellow green blue blue blue magenta magenta red red cyan cyan blue the red is made from yellow magenta the green is made from yellow cyan two pass print is automatically executed the blue is made from magenta cyan Sequence is ignored Example 10 REM colour selection 20 LPRINT CHR 27 r CHR 5 30 LPRINT this is written with red colour 40 LPRINT CHR 27 r CHR 3 50 L...

Страница 184: ...escription 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 Sweden 6 Italy 7 Spain I 8 Japan 9 Norway 10 Denmark II 11 Spain II 12 Latin America 13 Corea 64 Legal For character sets see Appendix B Miscellaneous 101 ...

Страница 185: ...EN GOSUB 160 80 LPRINT CHR 27 R CHR 6 ITALY GOSUB 160 90 LPRINT CHR 27 R CHR 7 SPAIN I GOSUB 160 100 LPRINT CHR 27 R CHR 8 JAPAN GOSUB 160 110 LPRINT CHR 27 R CHR 9 NORWAY GOSUB 160 120 LPRINT CHR 27 R CHR 10 DENMARK II GOSUB 160 130 LPRINT CHR 27 R CHR 11 SPAIN II GOSUB 160 140 LPRINT CHR 27 R CHR 12 LATIN AMERICA GOSUB 160 150 END 160 LPRINT CHR 35 CHR 36 CHR 64 CHR 91 170 LPRINT CHR 92 CHR 93 C...

Страница 186: ...9 Character table 1 Table 437 The Epson Graphic Character Set is selected The upper half contains international and graphic characters see IBM Character Set 2 from hex A0 to hex FF d1 2 or 50 Character table 2 DLL The upper half contains user defined characters if created by ESC When creating characters assign code value in the range of 0 to 127 For using add 128 to the codes Using of n 2 without ...

Страница 187: ... defined characters defined previously with ESC t see page 105 Example 10 REM upper half of code table 20 LPRINT CHR 27 t0 30 GOSUB 90 40 LPRINT CHR 27 t1 50 GOSUB 90 60 LPRINT CHR 27 t2 70 GOSUB 90 80 END 90 RESTORE 100 FOR I 1 TO 15 110 READ D 120 LPRINT CHR D 130 NEXT I 140 LPRINT 150 RETURN 160 DATA 65 66 67 68 69 165 166 167 168 169 170 171 172 173 174 104 Miscellaneous ...

Страница 188: ...es the choosen character table to the register d1 0 3 The ESC t command see page 103 can be used to activate the defined character set d2 d3 Table name 0 0 Italic 1 0 Table 437 US 3 0 Table 850 Multilingual 7 0 Table 860 Portugal 8 0 Table 863 Canada French 9 0 Table 865 Norway 10 0 Table 852 East Europe 11 0 Table 857 Turkish 14 0 Table 866 Russian 24 0 Table 861 Iceland 25 0 BRASCII continued on...

Страница 189: ...d2 d3 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 ...

Страница 190: ... 61 ASCII ESC Removing the settings set for Bit 8 MSB most significant bit hex 1B 23 which were set with the use of either ESC or ESC dec 27 35 Example 10 REM input data control 20 LPRINT CHR 27 30 GOSUB 90 40 LPRINT CHR 27 50 GOSUB 90 60 LPRINT CHR 27 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 107 ...

Страница 191: ...M R eject paper hex 1B 19 52 dec 27 25 82 Description This code sequence should only be used when the sheet feeder is mounted and se lected Parameters for sheet feeder operation set via the control panel are deactivated When sheet feeder operation is activated the paper is fed automatically by a received code FF If the last print position is outside the defined print area the paper will additio na...

Страница 192: ...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 ...

Страница 193: ...ontrol codes ASCII 128 to 159 and 255 in the form of characters and symbols instead of the repetition of the functi ons of ASCII codes 0 to 31 and 127 For this function the Graphic character set must be selected by ESC t 1 or by menu see IBM Character Set 2 from hex 80 to hex 9F When the printer receives this code sequence the ASCII codes 128 to 159 and 255 are used as duplicates of the functions ...

Страница 194: ...RINT 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 111 ...

Страница 195: ... ESC i Data Structure ASCII ESC i n or n hex 1B 69 n or n dec 27 105 n or n Description In this mode no complete lines from the print buffer are printed but each character is prin ted immediately on receipt of the character just like in a typewriter In addition the printer pushes the paper up so that the user can immediately see the printed character and then pulls the page down again to continue ...

Страница 196: ... printable characters These codes can how ever be converted to printable characters using ESC I Valid values for n are either ASCII code hex 00 and hex 01 or ASCII characters 0 and 1 hex 30 and hex 31 n 1 hex 01 or hex 31 Access to user defined or international characters n 0 hex 00 or hex 30 Hex 00 to hex 1F and hex 80 to hex 9F assigned with non printable codes For character sets see appendix B ...

Страница 197: ...t data transferred after the last print control code CR LF are lost For this reason first send the respective print control code CR LF and then the ESC sequence Example 10 REM initialization 15 LPRINT CHR 27 l CHR 10 REM set left margin 20 LPRINT CHR 27 CHR 15 REM set condensed 30 LPRINT CHR 27 G REM set NLQ 35 LPRINT CHR 27 S1 REM set subscript 40 GOSUB 90 70 LPRINT CHR 27 80 GOSUB 90 90 END 100 ...

Страница 198: ...sor hex 1B 39 dec 27 57 Description This sequence deactivates the paper end sensor so that a cut sheet can be printed all the way to the bottom With the sheet feeder activated this command is ignored Activates the paper end sensor As soon as a certain area near the lower paper edge is reached an acoustic signal sounds and the printing process is interrupted Miscellaneous 115 ...

Страница 199: ... control code DC1 switches the printer into Online Mode If the printer has been set Offline with the control code DC3 then DC1 is the only control code which can be carried out DC1 has no effect if the printer has been set Offline via the control panel DC1 and DC3 have no effect if the Centronics interface signal SELECT is switched off LOW DC2 hex 12 dec 18 Reset condensed print mode DC3 hex 13 de...

Страница 200: ...lation is carried out e g at a position being ten spaces to the right of the current print position code HT will shift printing in normal mode one inch to the right Except for enlarged mode the print position at which the character spacing is changed is defined as the first column provided that character spacing is changed within a line If there are no tab stops following the current print positio...

Страница 201: ...e next character is printed in the column following the last print position if no CR is transmitted The amount by which the paper is advanced varies depending on line spacing When the printer is switched on no vertical tab stops are set If there are no vertical tab stops between the current print position and the end of the page or if there are no vertical tabs set VT assumes the same function as ...

Страница 202: ...Appendix A Summary of Possible Codes ...

Страница 203: ...dle version 80 ESC NUL x y d0 define NLQ download characters 9 needle version 88 ESC NUL x y d0 define download characters 24 needle version 92 ESC 3 NUL n1 n2 score selection 40 ESC print data as characters 95 ESC C set page length in units 7 ESC c set page format 7 ESC G select graphics mode 67 ESC t assign character table 105 ESC U set unit 62 ESC V set absolute vertical print position 59 ESC v...

Страница 204: ...t data control bit 8 1 107 ESC s 0 reassign graphics mode 107 ESC s 1 reassign graphics mode 107 ESC s 2 reassign graphics mode 107 ESC s 3 reassign graphics mode 107 ESC s 4 reassign graphics mode 107 ESC s 5 reassign graphics mode 107 ESC s 6 reassign graphics mode 107 ESC s 7 reassign graphics mode 107 ESC s 32 reassign graphics mode 107 ESC s 33 reassign graphics mode 107 ESC s 38 reassign gra...

Страница 205: ...m n NUL vertical tab stops in channels 57 ESC c set HMI horizontal motion index 16 ESC C NUL n form length in inches 5 ESC C n form length in lines 5 ESC D NUL clear all horizontal tab stops 47 ESC D n1 n32 NUL horizontal tab stops 47 ESC E emphasized mode ON 38 ESC e horizontal and vertical step width 49 ESC EM 0 deselect sheet feeder 108 ESC EM 1 sheet feeder magazine 1 108 ESC EM 2 sheet feeder...

Страница 206: ... Orator 35 ESC k 8 font type selection Orator S 35 ESC L n1 n2 graphics 120 dpi 63 ESC l n left margin 12 ESC M character density 12 cpi Elite 21 ESC m graphics characters activate deactivate 112 ESC N n perforation skip 10 ESC O reset perforation skip 10 ESC P character density 10 cpi Pica 21 ESC p n proportional spacing ON OFF 23 ESC Q n right margin 12 ESC q typestyle selection 37 ESC R n natio...

Страница 207: ...C x n print quality 34 ESC Y n1 n2 high speed graphics 120 dpi 63 ESC Z n1 n2 graphics 240 dpi 63 ESC X select font by pitch and point 32 FF form feed 117 HT horizontal tab 117 LF line feed 117 NUL ASCII character 0 117 SI condensed print ON 20 SO enlarged print mode automatically reset after one line 18 SOH ASCII character 1 Start Of Heading 118 SP Space 118 VT vertical tab 118 Sequence Function ...

Страница 208: ...el CAN 116 control code CR Carriage Return CR 116 control code DEL Delete DEL 116 control code ESC Escape ESC 117 copy ROM character generator ESC 0 n m 75 define download characters 24 needle version ESC s x y A 92 define draft download characters 9 needle version ESC NUL x y A 80 define NLQ download characters 9 needle version ESC NUL x y d0 88 direct print mode activate deactivate ESC i 112 dou...

Страница 209: ... dpi ESC 4 n1 n2 63 graphics 90 dpi ESC 6 n1 n2 63 graphics 90 dpin ESC 38 n1 n2 63 graphics characters activate deactivate ESC m 112 half speed printing ESC s 97 high speed graphics 120 dpi ESC 2 n1 n2 63 horizontal and vertical step forward ESC f 50 horizontal and vertical step width ESC e 49 horizontal tab HT 117 horizontal tab stops ESC D n1 n32 0 47 input data control bit 8 unchanged ESC 107 ...

Страница 210: ...d print mode set by SO or ESC SO DC4 116 reset perforation skip ESC O 10 right margin ESC Q n 12 score selection ESC 40 select 9 dots graphics mode ESC m n1 n2 71 select download character generator ESC NUL NUL 79 select font by pitch and point ESC X 32 select graphics mode ESC G 67 select ROM character generator ESC 1 NUL 79 set absolute vertical print position ESC V 59 set HMI horizontal motion ...

Страница 211: ...le selection ESC q 37 underline mode ON OFF ESC n 39 unidirectional printing for one line ESC 96 unidirectional printing ON OFF ESC U n 96 variable line spacing n 360 inch ESC n 27 vertical tab VT 118 vertical tab channel selection ESC m 57 vertical tab stops ESC B n1 n16 0 55 vertical tab stops in channels ESC b m n 0 57 Function Sequence Page A 10 Summary of Possible Codes ...

Страница 212: ...Appendix B Character Sets ...

Страница 213: ...respond 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 33 49 65 81 2 DC2 2 18 34 50 66 82 3 3 19 35 51 67 83 ASCII B dec 66 hex 42 B 2 Character Sets ...

Страница 214: ...02 118 134 150 166 182 298 214 230 246 7 BEL BEL 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN BS CAN 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT HT 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF LF 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 B VT ESC VT ESC 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 C FF FF 12 28 44...

Страница 215: ...ble 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 ...

Страница 216: ...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 ...

Страница 217: ... 102 118 134 150 166 182 298 214 230 246 7 BEL BEL 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN BS CAN 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT HT 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF LF 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 B VT ESC VT ESC 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 C FF FF 12 28 ...

Страница 218: ...2 38 54 70 86 102 118 134 150 166 182 298 214 230 246 7 BEL 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 B VT ESC 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 C FF 12 28 44 60 76 92 10...

Страница 219: ...2 38 54 70 86 102 118 134 150 166 182 298 214 230 246 7 BEL 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 B VT ESC 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 C FF 12 28 44 60 76 92 10...

Страница 220: ...134 150 166 182 298 214 230 246 7 BEL BEL 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN BS CAN 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT HT 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF LF 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 B VT ESC VT ESC 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 C FF FF 12 28 44 60 76 ...

Страница 221: ...38 54 70 86 102 118 134 150 166 182 298 214 230 246 7 BEL 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 B VT ESC 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 C FF 12 28 44 60 76 92 108 ...

Страница 222: ...idths are units of 1 120 inch For example The value in the field for character width is 12 that means the width of the character is 12 120 inch If the field consists of two values separated by a slash for example 12 5 the first value stands for the italic character the second for graphics The values of the character widths are units of 1 360 inch For example The value in the field for character wi...

Страница 223: ...based on the width of a proportional 10 5 point character Calculate the width as follows character width INT point size x base width 10 5 0 5 360 inch Example for a 24 point 0 character width INT 24 x 30 10 5 0 5 360 inch character width INT 69 07 360 inch character width 69 360 inch The base width for the large character 0 is 30 Please refer to the table B 12 Character Sets ...

Страница 224: ...1 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 18 12 30 20 30 20 30 20 30 20 36 24 36 24 36 24 36 24 36 24 36 24 36 24 36 24 36 24 24 16 30 20 36 24 36 24 42 28 36 24 36 24 36 24 36 24 36 24 36 24 36 24 42 28 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 86 87 88 89 90...

Страница 225: ...6 24 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 18 12 18 12 18 12 36 24 36 24 36 24 42 28 42 28 30 20 30 20 30 20 36 24 36 24 36 24 36 24 42 28 30 20 30 20 36 24 42 28 30 20 30 20 18 12 30 20 36 24 36 24 36 24 30 20 30 20 B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF C0 C1 C2 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 30 20 30 20 30 20 30 20 30 20 30 2...

Страница 226: ...30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF F0 F1 F2 F3 F4 F5 F6 F7 F8 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 30 30 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 30 30 30 30 30 30 30 30 F9 FA FB FC FD F...

Страница 227: ...8 12 12 12 12 12 12 12 12 6 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 6 10 12 10 12 12 12 12 12 12 12 12 12 12 8 11 12 12 12 12 12 12 12 12 12 12 12 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 ...

Страница 228: ... 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 12 12 11 12 12 12 12 12 11 12 12 12 8 10 8 12 12 12 12 12 10 10 10 11 11 12 12 12 B0 B1 B2 B3 B4 B5 176 177 178 179 180 181 11 12 12 12 11 12 12 10 8 10 10 12 11 11 11 12 12 12 12 5 12 8 12 8 12 12 12 12 12 8 12 12 5 7 12 10 12 12 12 9 12 12 12 12 12 12 12 12 12 Character Sets B 17 ...

Страница 229: ...12 12 12 12 10 12 12 12 12 12 12 12 12 12 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 234 235 236 12 12 12 12 12 12 12 12 12 12 11 12 12 12 12 12 12 12 12 12 11 12 7 12 11 12 10 12 12 12 5 12 11 11 11 10 11 12 12 10 11 11 12 11 11 12 11 10 9 12 10 12 11 12 EC ED EE E...

Страница 230: ...hout notice All care has been taken to ensure accuracy of information contained in this manual However we cannot accept responsibility for any errors or damages resulting from errors or inaccuracies of information herein TRADEMARK ACKNOWLEDGES EPSON and EPSON ESC P are registered trademarks and EPSON ESC P 2 is a trademark of SEIKO EPSON Corporation IBM is a trademark of International Business Mac...

Страница 231: ...Programmer s Reference Tally ANSI MTPL Emulation ...

Страница 232: ...gin 9 Set Left and Right Margin 11 Clear Left and Right Margin 11 Set Line Home SLH 13 Set Line Limit SLL 13 Right Justification ON 14 Centering ON 14 Right Justification and Centering OFF 14 Character Spacing 15 Spacing Increment SPI 15 Horizontal Spacing 16 Horizontal Character Spacing SHS 18 Character Spacing SCS 19 Additional Character Spacing SACS 20 Reduced Character Spacing SRCS 21 Horizont...

Страница 233: ...Half 29 Double Height OFF 29 Print Quality 31 Select Typestyle 33 Emphasized Mode ON 35 Emphasized Mode OFF 35 Italic Mode ON 36 Italic Mode OFF 36 Proportional Mode ON SGR 37 Proportional Mode OFF 37 Underline Mode ON SGR 39 Underline Double Mode 39 Underline Mode OFF 39 Overline Mode ON SGR 40 Overline Mode OFF 40 Double Strike ON 41 Double Strike OFF 41 Graphic Size Selection GSS 42 Graphic Siz...

Страница 234: ... 54 Horizontal Position Relative HPR 55 Horizontal Position Backward HPB 56 Vertical Position Absolute VPA 57 Vertical Position Relative VPR 58 Vertical Position Backward VPB 59 Horizontal and Vertical Position Absolute HVP 60 Backspace 61 Carriage Return 61 Form Feed 62 Partial Line Down 63 Partial Line Up 63 Reverse Index 64 Next Line 64 Graphics 65 Graphic Modes 65 Miscellaneous 69 Load Menu 69...

Страница 235: ...Size of Character Set 2 Character Sets 88 Proportional Spacing Draft OFF 89 Proportional Spacing Draft ON 89 Font Selection for NLQ LQ only 89 Font Selection 89 Print Code Area Expansion ON 90 Print Code Area Expansion OFF 90 Print Transparent Characters 90 Printer Identification DA 91 Device Status Report DSR 92 Enquiry for Status 93 Fill Character 94 Start of Text Block 94 End of Text Block 95 P...

Страница 236: ...y of Possible Codes Sorted by Sequences A 2 Sorted by Functions A 8 Appendix B Character Sets Standard Character Set B 2 International Substitution Table normal font B 3 Appendix C Additional Technical Description Index ...

Страница 237: ...Description of MTPL Sequences Introduction Paper and Text Formatting Character Spacing Line Spacing Character Styling Print Positioning Graphics Miscellaneous ...

Страница 238: ...n your printer and which of the described sequences are thus not available Select the MTPL sequence as described in the Operator s Manual chapter 2 Apart from the command language MTPL your printer also understands other printer emu lation sequences and commands MTPL and an additional emulation can be active at the same time For this refer to the chapter 2 Emulations Operator s Manual The followin...

Страница 239: ... types of syntax if the parameter is in pointed parentheses the decimal value is transferred if the parameter is not in pointed parentheses the ASCII value is transferred Example Parameter syntax n with n 0 to be transmitted dec 0 hex 00 Parameter syntax n with n 0 to be transmitted ASCII 0 hex 30 dec 48 Each sequence description or a number of the available parameters is additionally speci fied w...

Страница 240: ...5 50 116 100 REM Sample for the CSI n t sequence in ASCII 110 REM using formulars with 72 lines 120 REM Please note in ASCII Syntax you can use ASCII values 130 REM equal or bigger codetable no 32 only 140 LPRINT CHR 155 72 t REM mixed syntax 150 REM set form length up to 72 lines 160 REM The same sequence written in hexadecimal syntax 170 LPRINT CHR H9B CHR H37 CHR H32 CHR H74 180 REM set form le...

Страница 241: ...s simultaneously defined as top of form The value specified for n must be in the range 1 to 255 This value is multiplied by the cur rent line feed pitch to obtain the form length For example if 60 is specified for n and the current line feed is 1 6 inch the form length is set to 10 inches Once set by this sequence the form length is not affected by changing the line spacing PUM turned ON The unit ...

Страница 242: ... 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 130 END 6 Paper and Text Formatting ...

Страница 243: ... horizontal or vertical position parameters have characters and line positions as parameters or some fixed units defined by the SSU control function Select Size Unit see the following sequence If PUM is turned on and no unit is defined the units shall default to decipoints 1 720 of an inch If PUM is turned off the units shall default to line or character distances By default the PUM mode is turned...

Страница 244: ... 1 1000 inch 0 0254 mm 5 35 53 Basic Measuring Unit BMU 1 1200 inch 0 02117 mm 6 36 54 Micrometer 0 001 mm 7 37 55 Pixels This unit is machine dependent and may be of different size horizontally and vertically Page printers support typically 200 300 or 600 dpi matrix printers e g 180 or 360 dpi Example CSI 720 SP I 1B 55 37 32 30 20 49 results in one inch By default the size unit is the decipoint ...

Страница 245: ...of margin settings is only effective from the next page on The setting of the top and bottom margins depends on the line spacing which is defined before setting the margins If line spacing is set after the setting of the top and bottom margins the margin positions on this page are not influenced If the form length is changed the top margin is set to the first line the bottom margin is set to the l...

Страница 246: ...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 LPRINT form F line L 130 NEXT L NEXT F 140 END 10 Paper and Text Formatting ...

Страница 247: ...t 17 1 cpi 1 232 at 17 1 cpi 1 160 at 20 cpi 1 272 at 20 cpi Values for n1 n2 are valid for a line length of 8 inches 80 column printer or 13 6 inches 136 column printer set in the printer menu Example CSI n1 s set left margin set right margin to default CSI s clear left and right margin CSI n2 s clear left margin set right margin The setting of the left and right margins depends on the current ch...

Страница 248: ...s ignored Example 10 REM left and right margin 20 WIDTH LPT1 255 30 LPRINT CHR 27 10 53s 40 LPRINT Now the left margin is set to column 10 and the 50 LPRINT right margin is set to column 53 60 LPRINT CHR 27 5 41s 70 LPRINT Now the left margin has been reduced to column 5 80 LPRINT and the right margin has been set to column 41 90 END 12 Paper and Text Formatting ...

Страница 249: ... The unit depends on PUM Positioning Unit Mode and is either characters or defined by SSU Select Size Unit see page 8 Example CSI SP U reset to physical left margin CSI 10 SP U set left margin to position 10 Default setting Physical right margin 1 of medium or device n specifies the right margin The unit depends on PUM Positioning Unit Mode and is either character positions or defined by SSU Selec...

Страница 250: ...dec 155 n 121 Description For n the following characters are available n hex dec justification 8 38 56 A right justification ON 9 39 57 A centering ON 10 31 30 49 48 A right justification and centering OFF 3A 58 C right justification and centering OFF Leading blanks will not be corrected Blanks at line end will be ignored The text is centered between the active margins 14 Paper and Text Formatting...

Страница 251: ...2 specifies the character spacing The unit is expressed in decipoints or other units defined by SSU Select Size Unit see page 8 For this note also the sequence Set Line Spacing SLS on page 26 Example CSI 120 0 G 6 lpi basic cpi CSI 90 60 G 8 lpi 12 cpi The default setting of the spacing increment normally is 10 cpi n 0 The distance is reset to the values set in the printer menu Character Spacing 1...

Страница 252: ...pi 3 33 51 B C 8 6 cpi 4 34 52 10 cpi 5 35 53 12 cpi 6 36 54 15 cpi 7 37 55 B C 17 1 cpi 11 31 31 49 49 B C 20 cpi 12 31 32 49 50 C 10 cpi 10 cpi in this sequence means higher horizontal resolution of the printed characters emphasized printing but lower print speed Various character densities can also be used within one line The default value for the character density is the printer menu setting 1...

Страница 253: ...esolution 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 cpi 80 LPRINT CHR 27 0wthis is 5 cpi 90 LPRINT CHR 27 1wthis is 6 cpi 100 LPRINT CHR 27 2wthis is 7 5 cpi 110 LPRINT CHR 27 3wand 8 6 cpi 120 END Character Spacing 17 ...

Страница 254: ...55 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 horizontal character spacing is defined The change of the character dimensions is implementation dependent 18 Character Spacing ...

Страница 255: ...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 be changed Character Spacing 19 ...

Страница 256: ...e units are either decipoints or defined by SSU Select Size Unit see page 8 This function enlarges the inter character spacing The function will typically be used with proportional spacing to get effects like spaced out or right justification With fixed spacing functions like SCS Set Character Spacing see previous page 19 should be used The character size will not be changed 20 Character Spacing ...

Страница 257: ...spacing The units are either decipoints or defined by SSU Select Size Unit see page 8 This function reduces the inter character spacing The function will typically be used with proportional spacing to get special effects like e g kerning With fixed spacing functions like SCS Set Character pacing see page 19 should be used The character size will not be changed Character Spacing 21 ...

Страница 258: ...racter 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 this is normal width 30 LPRINT CHR 27 3p 40 LPRINT now 3 120 inch is added to normal width 50 LPRINT CHR 27 6p 60 LPRINT now 6 120 inch is added to normal width 70 END 22 Character Spacing ...

Страница 259: ...he 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 CSI 10 q inserts a 1 12 inch space Example 10 REM horizontal step 20 LPRINT in the word hori 30 LPRINT CHR 27 20q 40 LPRINT zontal there is a step of 20 120 inch 50 END Character Spacing 23 ...

Страница 260: ...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 lpi 9 39 57 2 lpi Note that changing the line spacing also changes the number of lines per page Changing of line spacing does not affect the form length set before hand 24 Line Spacing ...

Страница 261: ...acing to 1 6 inch 6 lpi line density or 1 8 inch 8 lpi line density Note that changing the line spacing also changes the number of lines per page Changing of line spacing does not affect the current vertical tab stops or form length Example 10 REM line spacing 20 LPRINT CHR 27 4z 30 LPRINT these two lines are printed with 40 LPRINT a spacing of 1 8 inch 50 LPRINT 60 LPRINT CHR 27 3z 70 LPRINT thes...

Страница 262: ...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 Increment see page 15 26 Line Spacing ...

Страница 263: ...roscript OFF 10 31 30 49 48 microscript ON These sequences switch the printer to superscript subscript or microscript mode The subsequent characters are printed with about 1 2 of their normal height If superscript or subscript characters are underlined the underline character is printed at its normal position This sequence resets the printer to normal mode The base line for microprint is the same ...

Страница 264: ...R 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 CHR 27 2z 110 LPRINT is printed in the base line 120 END 28 Character Styling ...

Страница 265: ...0 122 Description The same character must be sent to both lines to form a full character Afterwards double height must be reset If only a part of the line is printed double height the posi tioning of upper lower half must be done by spaces The line spacing should be set to 1 6 inch This sequence also resets superscript subscript and microscript Note For selection of double height together with the...

Страница 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 ...

Страница 267: ... are available printer menu setting is valid n hex dec print quality 0 30 48 A B high 1 31 49 A medium 2 32 50 A low With the sequence CSI n y for n the following parameters are available n hex dec typeface 0 30 48 A draft print quality DPQ 1 31 49 A near letter quality NLQ 4 34 52 C NLQ at 10 cpi 5 35 43 C NLQ at 12 cpi 11 31 31 49 49 B fast draft print quality 12 31 32 49 50 A letter print quali...

Страница 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 ...

Страница 269: ... 7 18 31 38 49 56 font 8 19 31 39 49 57 font 9 0 30 48 clear all selected fonts Depending on the value specified for n one of the internal printer fonts or a font of an optional font card is selected Refer to the Operator s Manual for information on printer resident fonts and font cards which can be installed The order of the font 0 to font 9 not corresponds to the fonts displayed on your printer ...

Страница 270: ...Example Valid for most MTPL printers Fontregister Font 0 Draft 1 NLQ Courier 2 LQ Courier 3 NLQ Sans Serif 4 LQ Sans Serif 5 LQ Roman 6 LQ Script 7 LQ Prestige 8 LQ OCR B 9 LQ OCR A 34 Character Styling ...

Страница 271: ... 7A dec 155 62 122 Description During printing in emphasized mode each dot is printed twice slightly shifted in horizon tal direction Emphasized mode can be used in all print qualities and character densities Example 10 REM emphasized mode 20 LPRINT CHR 27 z this is printed in the normal mode 30 LPRINT CHR 27 z and this in the emphasized one 40 END Character Styling 35 ...

Страница 272: ...talic 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 joined in one sequence e g as follows CSI n1 n2 nx m Example 10 REM italic mode 20 LPRINT CHR 27 3m 30 GOSUB 70 40 LPRINT CHR 27 23m 50 GOSUB 70 60 END 70 LPRINT Matrix Printer 80 RETURN 36 Character Styling ...

Страница 273: ...x 9B 37 79 dec 155 55 121 Description When in default font type all characters are assigned a fixed equally wide space When in proportional mode the spaces between each character are set to the actual width of the characters on account of these proportional spaces reading of the text becomes more easy Various font types basically are printed in proportional mode e g Script Kaufmann etc The sequenc...

Страница 274: ...mple 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 ...

Страница 275: ... OFF hex 9B 32 34 6D dec 155 50 52 109 Description All printed characters including spaces are automatically unerlined Spaces between tab codes HT are underlined The sequence CSI 0 m resets all CSI m sequences A maximum of 16 CSI m sequences can be joined in one sequence e g as follows CSI n1 n2 nx m Example 10 REM underline mode 20 LPRINT the most 30 LPRINT CHR 27 4m 40 LPRINT important 50 LPRINT...

Страница 276: ...53 109 Description This sequence switches the automatic overline function on or off When the automatic overline function is on all printed characters including spaces are automatically under lined also see SGR Underline Mode ON previous page 39 The sequence CSI 0 m resets all CSI m sequences A maximum of 16 CSI m sequences can be joined in one sequence e g as follows CSI n1 n2 nx m 40 Character St...

Страница 277: ...are printed twice in two printing passes Double strike mode can be used in all print qualities and character densities Double strike mode can also be used in combination with emphasized mode The use of this sequence in combination with LQ and emphasized printing is not recommended Example 10 REM double strike 20 LPRINT CHR 27 8w 30 LPRINT this is normal printing 40 LPRINT CHR 27 9w 50 LPRINT and t...

Страница 278: ...is implicitly defined by the height Example CSI 120 SP C set 12 point font 120 decipoints n1 specifies the height of the used fonts default setting 100 n2 specifies its width default setting 100 These parameters are given as a percent value of the size establishment by sequence Example CSI SP B standard height and width CSI 50 50 SP B half sized characters e g for indices or exponents CSI 200 200 ...

Страница 279: ...dern 8 38 56 Kaufmann 9 39 57 Gothic 10 31 30 49 48 Swiss 11 31 31 49 49 Quadrato 66 36 36 54 54 Courier IBM The first parameter n1 selects one of ten font registers to which the second parameter n2 designates one font of the whole repertory in the device With the sequence CSI 1 m the designated font can be selected see page 33 Select Typestyle n1 is in the range of zero to nine and selects primar...

Страница 280: ...6 is OCR A 0 Roman 1 Sans Serif 2 Courier 4 Script 5 OCR B 6 OCR A 7 Modern 8 Kaufmann 9 Gothic 10 Helvette 11 Quadrato 66 Courier IBM The upper eight bits Only bits 9 512H and 11 2048H are used All the other bits must be left at 0 Bits 9 and 11 set print quality Bit 11 Bit 9 0 0 Letter Quality 0 1 Draft 1 0 Near Letter Quality 1 1 Reserved When Draft 01 is selected the lower eight bits have a new...

Страница 281: ...e tab stops are set or the next tab stop is beyond the defined right margin spaces are inserted The graphic renditions e g underlining overscoring etc being active during the tab is ex ecuted apply also to the whitespace produced by two tab stops Set Horizontal Tab Stop at Current Position HTS Data Structure ASCII HTS A set horizontal tab stop hex 88 dec 136 Description This code sets a tab stop a...

Страница 282: ...t 10 cpi 1 96 at 12 cpi 1 163 at 12 cpi 1 120 at 15 cpi 1 204 at 15 cpi 1 136 at 17 1 cpi 1 232 at 17 1 cpi 1 160 at 20 cpi 1 272 at 20 cpi Values for n1 are valid for a line length of 8 inches 80 column printer or 13 6 inches 136 column printer set in the menu Up to 16 tab stops can be joined in one sequence as follows CSI n1 n2 n3 n16 u The parameters do not have to be sorted The positions of th...

Страница 283: ...zontal tab stops in all lines Examples CSI g clear horizontal tab stop at current position CSI 3 4 g clear all horizontal and vertical tab stops for this also see page 52 Vertical Tab Stops ON OFF Later changes of character density will not influence the physical position of the tab stops A horizontal tabulation is executed by the HT control code hex 09 dec 9 for this see page 45 Horizontal Tab St...

Страница 284: ...0 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 120 LPRINT CHR 9 tab2 130 LPRINT CHR 9 tab3 140 RETURN Example 2 10 FOR I 1 TO 3 20 LPRINT 1234567890 CHR 27 H 30 NEXT I 40 LPRINT 50 FOR J 1 TO 3 60 LPRINT CHR 9 tab 70 NEXT J 80 LPRINT 90 END 48 Print Positioning ...

Страница 285: ...then advances the paper one line The LF code can also give a carriage return if automatic carriage return is selected If no CR is given the next printing starts in the column following the end of printing The amount by which the paper is advanced depends on the current line spacing The default line spacing of the printer is 1 6 inch Print Positioning 49 ...

Страница 286: ...rriage return is selected refer to Operator s Manual If no CR is given the next printing starts in the column following the end of printing The amount by which the paper is advanced depends on the current line spacing After switching on the printer no vertical tab stops are set default configuration If there are no vertical tab stops between the current print position and the end of the page or if...

Страница 287: ...on 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 IND moves the active print position to the following line The difference to Line Feed LF is that IND does not permit an CR option Print Positioning 51 ...

Страница 288: ...acing of 1 6 inch 6 lpi 1 176 lines at a line spacing of 1 8 inch 8 lpi Up to 16 tab stops can be joined in one sequence as follows CSI n1 n2 n3 n16 v The parameters do not have to be sorted The positions of the horizontal tab stops depend on the current character density Examples CSI g clear horizontal tab stop at current position CSI 3 4 g clear all horizontal and vertical tab stops for this als...

Страница 289: ... 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 first vertical tab line 3 60 LPRINT CHR 11 this is the second vertical tab line 5 70 LPRINT CHR 11 this is the third vertical tab line 9 80 END Print Positioning 53 ...

Страница 290: ... head to a horizontal print position absolute The unit depends on PUM Positioning Unit Mode and is either character positions or defined by the SSU function Select Size Unit see page 8 Example CSI 40 next character goes to position 40 CSI next character goes to the left margin Positions outside the right margin are ignored Make sure you do not confuse the character with the apostrophe 54 Print Pos...

Страница 291: ...is sequence moves the print head to the right The unit depends on PUM Positioning Unit Mode and is either character positions or defined by the SSU function Select Size Unit see page 8 Example CSI 8 a next character goes 8 positions to the right CSI a next character goes one position to the right Positions beyond the right margin are ignored Print Positioning 55 ...

Страница 292: ...This sequence moves the print head to the left The unit depends on PUM Positioning Unit Mode and is either character positions or defined by the SSU function Select Size Unit see page 8 Example CSI 8 j next character goes 8 positions to the left CSI j next character goes one position to the left Positions outside the left margin are ignored 56 Print Positioning ...

Страница 293: ...nce moves the print head to a vertical print position absolute The unit depends on PUM Positioning Unit Mode and is either lines or defined by the SSU function Select Size Unit see page 8 Example CSI 40 d move the active print position to line or vertical position 40 CSI d move the active print position to top margin Positions outside the bottom margin are ignored Print Positioning 57 ...

Страница 294: ...quence moves the print head lines or vertical positions down The unit depends on PUM Positioning Unit Mode and is either lines or defined by the SSU function Select Size Unit see page 8 Example CSI 12 e move print position 12 lines or vertical positions down CSI e move print position one line down Positions beyond the bottom margin are ignored 58 Print Positioning ...

Страница 295: ...ption n 1 default setting This sequence moves the print head lines or vertical positions upward The unit depends on PUM Positioning Unit Mode and is either lines or defined by the SSU function Select Size Unit see page 8 Positions beyond the top margin are ignored This sequence is not valid in Single Sheet Mode Print Positioning 59 ...

Страница 296: ... vertical print position absolute The unit depends on PUM Positioning Unit Mode and is either lines or defined by the SSU function Select Size Unit see page 8 Example CSI f move the print position to the top left position on page CSI 20 35 f move the print position to line vertical position 20 and horizontal character position 35 if PUM is turned off Note that during manual and automatic cut sheet...

Страница 297: ...rent values of cpi Carriage Return CR Data Structure ASCII CR A carriage return hex 0D dec 13 Description When the printer receives this code it prints any data in the print buffer and resets the line pointer The active print position is set to the left margin first possible character posi tion The code CR can also give a line feed if automatic line feed is selected refer to Oper ator s Manual Pri...

Страница 298: ...p physi cally possible position Fanfold paper The paper is moved by the form length given before The first print position on the follow ing paper is the first top physically possible position The FF code can also give a carriage return if automatic carriage return is selected refer to Operator s Manual The next print is started in the column following the print end of the last print out if no CR i...

Страница 299: ...bscripted If the preceding character is in a superscript position PLD moves to normal position Partial Line Up PLU Data Structure ASCII PLU A partial line up hex 8C dec 140 Description If the preceding character is in normal position PLU moves the active position up a sufficient distance to give the following characters the appearence of being superscripted If the preceding character is in a subsc...

Страница 300: ...ition 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 to the left margin of the next line This gives the same result as the combination of CR Carrigage Return and LF Line Feed 64 Print Positioning ...

Страница 301: ...CII CSI 5 z C graphics unchanged hex 9B 35 7A dec 155 53 122 Description For n the following parameters are available n dpi 3 33 51 graphics 60 dpi 4 34 52 graphics 120 dpi 5 35 53 graphics 80 dpi 6 36 54 graphics 240 dpi 7 37 55 graphics 240 dpi 8 38 56 graphics 72 dpi 9 39 57 graphics 90 dpi Data following the graphic CSI sequence are printed out as dot pattern n1 and n2 define the length of the...

Страница 302: ... SP G Example for calculation of n1 and n2 The length of graphics is 80 bytes n2 number of bytes divided by 256 int 80 256 dec 0 hex 00 n1 remainder of division of n2 80 mod 256 dec 80 hex 50 Graphics data and text data can be mixed within one line Relationship between graphics data and needles Needle Data byte 1 3 Bit 7 4 5 Bit 6 6 8 Bit 5 9 10 Bit 4 11 13 Bit 3 14 15 Bit 2 16 18 Bit 1 19 20 Bit ...

Страница 303: ... 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 80 CHR 0 60 GOSUB 100 LPRINT 120 dpi 70 LPRINT CHR 27 7 CHR 80 CHR 0 80 GOSUB 100 LPRINT 240 dpi 90 END 100 FOR N 1 TO 80 110 LPRINT CHR 255 120 NEXT N 130 RETURN Graphics 67 ...

Страница 304: ...NT 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 CHR 27 5z 110 LPRINT 120 END 130 RESTORE 140 FOR I 1 TO 10 150 READ D 160 LPRINT CHR D 170 NEXT I 180 LPRINT 190 RETURN 200 DATA 34 80 138 0 143 0 138 80 34 0 68 Graphics ...

Страница 305: ...fault 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 reserved Up to 3 4 various configurations can be saved with the printer Setting the configuration is made by the control panel of the printer refer to Operator s Manual chapter 2 Menu Example CSI 0 SP q or CSI SP q load default menu By using this sequence all settings changed by sequences are reset Miscellaneous 69 ...

Страница 306: ...utomatic adjustment OFF print head distance must be set at the printer 1 31 49 automatic adjustment ON For the sequence CSI n y the following parameters are available for n n hex dec Setting direct 0 30 48 Default value is set at the printer n print head distance in n steps Setting the print head distance accords to the respective paper path selected Unit adjust range and default setting depend on...

Страница 307: ...rgin during paper movement allowed 1 Printhead position at right margin during paper movement not allowed Pn4 missing or 20 or 136 No limitation of print width 20 136 Print width in 1 10 inch Pn5 missing or 0 or 30 No displacement of the start of the print area left margin 1 20 Displacement of the start of the print area in 1 10 inches Shared Interface CSI Pn w Data Structure ASCII CSI Pn w hex 9B...

Страница 308: ...3 51 51 yellow 34 33 34 51 52 blue 35 33 35 51 53 magenta red 36 33 36 51 54 cyan blue 39 33 39 51 57 default color blac red or magenta depending on the ribbon used only available with multi color ribbon The available colors depend on the ribbon used and must be matched in the menu If a ribbon with several black tracks is used then it is automatically switched every new page between the tracks The...

Страница 309: ...ow green blue blue blue magenta magenta red red cyan cyan blue The sequence CSI 0 m resets all CSI m sequences A maximum of 16 CSI m sequences can be joined in one sequence e g CSI n1 n2 nx m Example 10 REM color selection 20 LPRINT CHR 27 31m 30 LPRINT this is written with red colour 40 LPRINT CHR 27 34m 50 LPRINT this is written with blue colour 60 END red yellow magenta green yellow cyan two pa...

Страница 310: ...onal character set or italic characters to be printed By means of this MTPL sequence the eighth data bit is set to 0 This means that wrong character printing caused by the eighth data bit set high by the system can be avoided CSI 9 z is ignored if Extended Character Set is selected if Graphic Mode is selected Note that following the sequence CSI 8 z all subsequent control sequences must begin with...

Страница 311: ...rol 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 ...

Страница 312: ...rved 31 33 31 51 49 stacker 1 of the sorter 50 35 30 53 48 move paper to normal print position return of view or tear off position 51 35 31 53 49 move paper to tear off position 52 35 32 53 50 move paper to view position 51 35 31 53 49 cuts fanfold paper at the next perforation 54 35 34 53 52 cut is made above below the current line n1 C specifies the horizontal print head position during the pape...

Страница 313: ...on or to the first possible line of the following document Independent of the menu settings the paper is set to tear off position This sequence has no affect if the respective position is just set manual by means of the Tear key or automatically printer menu setting Parameter group Auto Tear Independent of the menu settings the paper is set to view position last printed line This sequence has no a...

Страница 314: ...R 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 LPRINT CHR 27 3t REM set form length 20 LPRINT CHR 27 21 30 LPRINT This text is on a form 40 LPRINT from magazine one 50 LPRINT CHR 12 REM form feed 60 LPRINT CHR 27 22 70 LPRINT This text is on a form 80 LPRINT from magazine two 90 END 78 Miscellaneous ...

Страница 315: ...as just after power switch on All parameters set by CSI sequences are cleared The active print position is set on the top position of a page document Example 10 REM initialization 20 LPRINT CHR 27 10s REM set left margin 30 LPRINT CHR 27 7w REM set 17 1 cpi 40 LPRINT CHR 27 1y REM set NLQ 50 LPRINT CHR 27 1z REM set subscript 60 GOSUB 100 70 LPRINT CHR 27 6 80 GOSUB 100 90 END 100 LPRINT Matrix Pr...

Страница 316: ...Printer 3 33 51 MTPL IBM Proprinter XL 4 34 52 MTPL IBM Proprinter XL 24e 5 35 53 MTPL EPSON FX 6 36 54 MTPL EPSON LQ 7 37 55 MTPL NEC P60 70 10 31 30 49 48 end of special command interpretations and return to standard command set e g end of Barcode interpretation 11 31 31 49 49 start of Barcode interpretation Tally Printer Language For more information see the Barcode Programmer s Manual 80 Misce...

Страница 317: ... available n hex dec locking shift LS n 6E 110 B LS2 Activation of G2 for codes 21 7E o 6F 111 B LS3 Activation of G3 for codes 21 7E 7C 124 B LS3R Activation of G3 for codes A1 FE 7D 125 B LS2R Activation of G2 for codes A1 FE 7E 126 A LS1R Activation of G1 for codes A1 FE These sequences activate various character sets also see Invocation of Character Set G0 G3 page 83 4 registers from G0 until ...

Страница 318: ...Are Printed 50 t2 German Characters Are Printed 60 print 1 chr 27 R Designate G3 French Substitution 70 Table 80 print 1 chr 27 o Locking Shift 3 90 print 1 Öä t1 French Substitutes 100 print 1 chr 27 K Designate G3 German Substitution 110 Table 120 print 1 chr 27 o Locking Shift 3 130 print 1 Öä t2 German Substitutes 140 end 82 Miscellaneous ...

Страница 319: ...ols is con nected to the usable character set registers G0 G1 G2 and G3 For n and F the following parameters are available n hex dec character set 28 40 A G0 29 41 A G1 2A 42 B G2 2B 43 B G3 F hex dec character set A 41 65 US ASCII B 42 66 UK ASCII H 48 72 Swedish Finnish K 4B 75 German L 4C 76 Portuguese R 52 82 French Y 59 89 Italian Z 5A 90 Spanish 60 96 Norwegian Ç 80 128 Table 437 DOS Standar...

Страница 320: ... 3C 60 ASCII Cro ASCII character set Codepage 437 with croatic characters Other character sets may be available on request If the mode is selected by the printer menu the MTPL character set US ASCII is active default configuration The slashed zero as well as the IBM and Epson character sets can only be selected via the printer control panel By default the graphic character set G0 is automatically ...

Страница 321: ...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 ITALIAN GOSUB 130 120 END 130 LPRINT CHR 35 CHR 36 CHR 64 140 LPRINT CHR 91 CHR 92 CHR 93 150 LPRINT CHR 94 CHR 96 CHR 123 160 LPRINT CHR 124 CHR 125 CHR 126 170 RETURN Miscellaneous 85 ...

Страница 322: ...aracter following the code for the changeover is replaced once The graphic character set activated by the locking shift function page 81 Activation of Character Sets will not be changed with this function Example 10 open lpt1 as 1 20 width 1 32000 30 Example Single Shift 40 t1 French a accent is printed 50 t2 funny a is printed 60 print 1 chr 27 R Designate G3 French Substitution 70 Table 80 print...

Страница 323: ...cking 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 ...

Страница 324: ...ivates G0 in the code range 21 7E and therefore loads G0 in the lower half of the code table see also function Activation of Character Sets on page 79 This function causes a character set with 256 characters to be loaded by the control codes SO SI ESC n or ESC o Thus the activation of character sets with the using of the codes ESC ESC and ESC becomes ineffective This function can be used for examp...

Страница 325: ...sequence enables proportional spacing for the print quality DRAFT It is the default setting Font Selection for NLQ LQ only CSI 52 h Font Selection CSI 52 Data Structure ASCII CSI 5 2 h A print control ignores the font IDs of the hex 9B 3F 35 32 68 default character generator dec 155 63 53 50 104 ASCII CSI 5 2 A print control does not ignore the font IDs hex 9B 3F 35 32 69 of the default character ...

Страница 326: ...s and symbols instead of the repetition of the functions of ASCII codes 0 to 31 When the printer receives this code sequence the ASCII codes 128 to 159 are used as duplicates of the functions of the lower control codes 0 to 31 Print Transparent Characters CSI Pn SP r Data Structure ASCII CSI Pn SP r hex 9B Pn 20 72 dec 155 Pn 32 114 Description Up to 16 numeric parameters The parameter represents ...

Страница 327: ... hex 9B 3F 63 dec 155 63 99 Description By this functions it is possible to get for example informations of device type and firmware revision or some capabilities like paper supply bins of the connected printer This sequence can only be used if the printer is connected to a computer with a serial interface or another bi directional interface Miscellaneous 91 ...

Страница 328: ...1 49 Busy no malfunction printer computer 3 33 51 Some malfunction detected printer computer 5 35 53 Request of device status report computer printer By these sequences it is possible to request the current printer status This sequence can only be used if the printer is connected to the computer with a serial interface or a other bi directional interface The printer sends the complete sequence bac...

Страница 329: ...e 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 1 parity or framing error Bit 7 0 always 0 This code concerns only serial data transfer with ENQ STX protocol Miscellaneous 93 ...

Страница 330: ...ex 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 code concerns only serial data transfer with ENQ STX protocol 94 Miscellaneous ...

Страница 331: ...ith your printer Positive Acknowledge ACK Data Structure ASCII ACK positive acknowledge hex 06 dec 6 Description By sending the positive acknowledge code ACK printer host it is possible to transmit a data block to the printer and thus transfer it into the printer s line buffer This code concerns only serial data transfer with ACK NAK protocol For a detailed description see the documentation which ...

Страница 332: ...ed This code concerns only serial data transfer with ACK NAK protocol For a detailed description see the documentation which comes with your printer Clear Print Buffer CAN Data Structure ASCII CAN clear print buffer hex 18 dec 24 Description When the printer receives this code the print buffer is completely cleared This code only clears the contents of the print buffer It does not affect any contr...

Страница 333: ... 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 ...

Страница 334: ... be used instead of ESC if option is selected in the printer setup MTPL Start Character Control Sequence Introducer Data Structure ASCII CSI A MTPL start character CSI hex 9B dec 155 Description MTPL start character for a subsequent program sequence Do not use CSI in any other printer command language than MTPL Use instead ESC if using other emulations STOP 98 Miscellaneous ...

Страница 335: ...Appendix A Summary of Possible Codes ...

Страница 336: ...d interpretations 80 CSI 11 start of Barcode interpretation 80 CSI 2 MTPL IBM Graphics Printer command set 80 CSI 3 MTPL IBM Proprinter XL command set 80 CSI 4 MTPL IBM Proprinter XL 24e command set 80 CSI 5 MTPL EPSON FX command set 80 CSI 50 l size of character set 2 character sets 88 CSI 50 h size of character set 1 character set 88 CSI 51 h proportional spacing Draft off 89 CSI 51 l proportion...

Страница 337: ...tops 52 CSI 1 m bold or increased intensity 72 CSI 1 n device status report Busy no malfunction 92 CSI 1 SP I size unit Millimeters 8 CSI 1 SP K horizontal character spacing 6 cpi 18 CSI 1 SP L vertical spacing 4 lpi 24 CSI 1 SP q load menu No 1 69 CSI 1 SP X medium print quality 31 CSI 1 w horizontal spacing 6 cpi 16 CSI 1 y near letter quality NLQ 31 CSI 1 z subscript ON 27 CSI 10 m font 0 DPQ 3...

Страница 338: ...uality 31 CSI 2 w horizontal spacing 7 5 cpi 16 CSI 2 y proportional mode ON 37 CSI 2 z double height OFF 29 CSI 2 z super sub and microscript OFF 27 CSI 21 m double underline mode 39 CSI 21 n1 n2 bin 1 front 76 CSI 22 m normal color or normal intensity 72 CSI 22 n1 n2 bin 2 rear 76 CSI 23 m italic mode OFF 36 CSI 23 n1 n2 bin 3 option 76 CSI 24 m underline mode OFF 39 CSI 26 m proportional mode O...

Страница 339: ...ntal spacing 10 cpi 16 CSI 4 y NLQ at 10 cpi 31 CSI 4 z line density 8 lpi 25 CSI 5 n request for device status report 92 CSI 5 n1 n2 fanfold paper 76 CSI 5 SP I Basic Measuring Unit BMU 8 CSI 5 w horizontal spacing 12 cpi 16 CSI 5 y NLQ at 12 cpi 31 CSI 5 z graphics normal 65 CSI 50 m proportional mode OFF 37 CSI 50 n1 n2 move paper to normal print position 76 CSI 51 n1 n2 move paper to tear off ...

Страница 340: ...59 CSI n p Horizontal Motion Index 22 CSI n q horizontal step 23 CSI n SP additional character spacing 20 CSI n SP C graphic size selection 42 CSI n SP f reduced character spacing 21 CSI n SP g character spacing 19 CSI n SP h line spacing 26 CSI n SP U line home 13 CSI n SP V line limit 13 CSI n t form lenght in lines 5 CSI n v vertical tab stop 52 CSI n1 n2 SP B graphic size modification 42 CSI n...

Страница 341: ...1 7E 81 ESC o LS2 Activation of G3 for codes 21 7E 81 ETX control code ETX End of Text Block 95 FF control code FF Form Feed 62 HT control code HT horizontal step 45 HTS control code HTS 45 IND control code IND Vertical Index 51 LF control code LF Line Feed 49 NAK control code NAK Negative Acknowledge 95 NEL control code NEL Next Line 64 NUL control code NUL fill character 94 PLD control code PLD ...

Страница 342: ...vertical tab stops CSI 1 g 52 clear all vertical tab stops CSI 4 g 52 clear horizontal tab stop at current position CSI 0 g 46 color black CSI 30 m 72 color blue CSI 34 m 72 color cyan blue CSI 36 m 72 color green CSI 32 m 72 color magenta red CSI 35 m 72 color red CSI 31 m 72 color white CSI 37 m 72 color yellow CSI 33 m 72 control code ACK Positive Acknowledge ACK 95 control code BS Backspace BS...

Страница 343: ...te character set G3 ESC F 83 device status report Busy no malfunction CSI 1 n 92 device status report Ready no malfunction CSI 0 n 92 device status report Some malfunction detected CSI 3 n 92 direct setting of the print head distance default value CSI 0 y 70 direct setting of the print head distance in n steps CSI n y 70 double height OFF CSI 2 z 29 double height ON lower half CSI 13 z 29 double h...

Страница 344: ... dpi CSI 5 n1 n2 DATA 65 graphics 90 dpi CSI 9 n1 n2 DATA 65 graphics invers CSI 6 z 65 graphics normal CSI 5 z 65 high print quality CSI 0 SP X 31 high resolution print quality CSI 13 y 31 horizontal character spacing 10 cpi CSI 0 SP K 18 horizontal character spacing 15 cpi CSI 2 SP K 18 horizontal character spacing 6 cpi CSI 1 SP K 18 horizontal character spacing 6 cpi CSI 3 SP K 18 Horizontal M...

Страница 345: ...69 load menu No 1 CSI 1 SP q 69 load menu No 2 CSI 2 SP q 69 load menu No 3 CSI 3 SP q 69 load menu No 4 CSI 4 SP q 69 low print quality CSI 2 SP X 31 LS1R Activation of G1 for codes A1 FE ESC 81 LS2 Activation of G2 for codes 21 7E ESC n 81 LS2 Activation of G3 for codes 21 7E ESC o 81 LS2R Activation of G2 for codes A1 FE ESC 81 LS3R Activation of G3 for codes A1 FE ESC 81 medium print quality C...

Страница 346: ...Pn SP r 90 proportional mode OFF CSI 50 m 37 proportional mode OFF CSI 7 y 37 proportional mode ON CSI 2 y 37 proportional mode ON CSI 26 m 37 proportional spacing Draft off CSI 51 h 89 proportional spacing Draft on CSI 51 l 89 reduced character spacing CSI n SP f 21 request for device status report CSI 5 n 92 request for printer identification CSI 0 c 91 reset color CSI 0 m 72 reset to initial st...

Страница 347: ...subscript ON CSI 1 z 27 super sub and microscript OFF CSI 2 z 27 superscript ON CSI 0 z 27 top and bottom margin CSI n1 n2 r 9 turn OFF positioning unit mode CSI 11 l 7 turn ON positioning unit mode CSI 11 h 7 underline mode OFF CSI 24 m 39 underline mode ON CSI 4 m 39 vertical position absolute CSI n d 57 vertical position backward CSI n k 59 vertical position relative CSI n e 58 vertical spacing...

Страница 348: ...Appendix B Character Sets ...

Страница 349: ...97 213 229 245 6 ACK 6 22 38 54 70 86 102 118 134 150 166 182 298 214 230 246 7 BEL BEL 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN HTS 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT HT 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF VTS 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 B VT ESC PLD CSI 11 27 43 59 75 91 107 123 139 155 17...

Страница 350: ... 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 ...

Страница 351: ...Programmer s Reference Tally ANSI Barcode and LCP ...

Страница 352: ...er Format 8 Transparent Barcode LCP commands 9 Barcode Print Feature F for Selection of F Code 10 Barcode Types 11 HRI 11 Barcode Width 12 Error Code 13 Data Formats of Barcode Types Code Matrix 2 5 14 Code 2 5 Industrial 15 Code 2 5 Interleaved 16 Code 11 17 Code BCD Matrix 18 Code 39 19 CODABAR 20 Code EAN 8 with HRI 21 Code EAN 8 without HRI 22 ...

Страница 353: ...HRI 28 Code UPCE without HRI 29 Delta distance IBM 30 Code 128 31 EAN 128 35 Add On Barcodes 36 Check Number Calculation EAN 13 38 EAN 8 39 UPCA 39 UPCE 40 Add On 5 40 Add On 2 41 US Postnet Barcode Sequence Description 42 Large Character Printing LCP LCP Header 43 LCP Data 43 LCP Character Set Selection 45 Various Examples Exemples 1 4 46 48 ...

Страница 354: ...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 6 ...

Страница 355: ......

Страница 356: ...Barcode and LCP Printing Introduction Secured Unsecured Mode Barcode Printing US Postnet Barcode Large Character Printing LCP ...

Страница 357: ... characters the following steps must be carried out in most cases Activate barcode Activate secured unsecured mode see section Secured Unsecured Mode Transfer barcode and or LCP header see sections Barcode Header and LCP Header Calculate check number barcode only see section Calculate Check Number Transfer barcode and or LCP data see sections Barcode Typees and LCP Header Deactivate barcode if nec...

Страница 358: ...ication barcode header LCP header secured unsecured mode Transmit barcode LCP Barcode OFF The mode specifications is saved temporarily and must only be sent to the printer once The specification remains valid until the printer is switched off Please note the following explanatory information Every sequence description begins with a header in which the function and short form of the sequence of the...

Страница 359: ...eter is in pointed parentheses the decimal value must be transmitted if the parameter is not in pointed parentheses the ASCII value must be transmitted Example Parameter representation n with n 0 to be transmitted dec 0 hex 00 Parameter representation n with n 0 to be transmitted ASCII 0 hex 30 dec 48 Character explanation and symbol descriptions Information important notes Optional must be not ne...

Страница 360: ...s Following control codes in Barcode strings can be substituted by the appropriate ANSI se quences Control Code ANSI Sequence CSI Hex 9B or Hex 1B 5B or ESC Example Hex SUB CSI 26 Space s 1B 5B 32 36 20 73 EM CSI 25 Space s 1B 5B 32 35 20 73 DC4 CSI 20 Space s 1B 5B 32 30 20 73 DLE CSI 16 Space s 1B 5B 31 36 20 73 SI CSI 15 Space s 1B 5B 31 35 20 73 ANSI sequences with not matching parameters will...

Страница 361: ... in the following lines wi thout influencing the barcode or LCP character As a result normal characters can be prin ted to the right or left of the barcode or LCP character in each line In order to guarantee successful barcode and LCP character printing it is important to in sert the correct paper feed commands so that paper feed is ensured to the end of the barcode and LCP height In unsecured mod...

Страница 362: ...INT Example for 80 LPRINT CHR 15 LCP CHR 15 unsecured mode Example 2 10 REM LCP secured mode 20 LPRINT CHR 27 11 30 REM select secured mode 40 LPRINT CHR 27 PSC1 CHR 27 50 REM set character size to 5 60 LPRINT CHR 16 5 CHR 25 70 LPRINT This is CHR 15 LCP CHR 15 80 LPRINT an ex 90 LPRINT ample of an 100 LPRINT expres sion 110 LPRINT in the secured mode Secured Unsecured Mode 7 ...

Страница 363: ...T only the X parameter is valid This is automatically used for the Y parameter The Z parameter is not evaluated Meaning of the characters SUB hex 1A dec 26 Start header F Print feature see section Barcode Print Feature F to select the F codes page 10 a ASCII a A S Barcode Types see section Barcode Types n ASCII n 0 90 Barcode height in n 6 inch At n 0 the barcode height equals to 1 12 inch ASCII S...

Страница 364: ...e printer is switched OFFLINE all defined barcodes are printed out completely Plea se not that the barcode remains resident in the background and can be activated again by the barcode bracket Text justification and centering are both permitted With activated barcodes these function are not carried out since they lead to conflicts with the barcodes Transparent Barcode LCP commands Following control...

Страница 365: ...5 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x 1 It is recommended to avoid using of ASCII Characters 0 and 1 when possible since they are reserved for future functions 2 Human Readable Index 3 It depends on the used printer type whether the printer performs Double...

Страница 366: ...C E without HRI R Delta Distance IBM S Code 128 T EAN 128 All commercial barcodes for labeling systems of the H I K L N O P Q Types can be extended using the barcodes Add On 2 or Add On 5 see section Add On Barcodes HRI HRI Human Readable Index HRI characters are centered if enough space is left If the barcode printout is smaller than the HRI character field smaller character density CPI is used S...

Страница 367: ... 3 0 59 mm 3 0 90 mm 3 Width of the narrow space y 0 y 1 y 2 y 3 0 53 mm 0 74 mm 1 16 mm 1 38 mm 0 54 mm 0 67 mm 1 09 mm 1 30 mm 0 48 mm 0 69 mm 1 16 mm 1 33 mm 0 32 mm 0 53 mm 0 74 mm 0 95 mm 0 33 mm 0 43 mm 0 65 mm 0 88 mm 0 27 mm 3 0 37 mm 3 0 59 mm 3 0 90 mm 3 Enlarge ment factor z 0 z 1 z 2 z 3 2 0 1 2 5 1 3 0 1 3 5 1 2 0 1 2 2 5 1 2 3 0 1 2 3 5 1 2 EAN UPC Barcode X Y unregarded Table 2 Head...

Страница 368: ...ths Therefore only the X parameter is valid for this type This parameter is also used for the Y parameter narrow bar width The Z parameter has no meaning In combination with the normal condensed feature 8 widths result see table 1 Error Code Wrong characters in a control code or in a barcode test e g an undefined character in a certain barcode Type cause the barcode error sign to be printed Barcod...

Страница 369: ... 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 code 2 5 matrix barcode 20 LPRINT CHR 27 11 30 LPRINT CHR 26 A3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR 27 10 14 Barcode Printing ...

Страница 370: ... 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 code n n Stop code 20 Example 10 REM code 2 5 industrial barcode 20 LPRINT CHR 27 11 30 LPRINT CHR 26 B3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 15 ...

Страница 371: ...n n Stop code 14 dec 20 Start code n n Stop code 20 Example 10 REM code 2 5 interleaved barcode 20 LPRINT CHR 27 11 30 LPRINT CHR 26 C3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR 27 10 Due to the interleaved mechanism data stream n n should only be transferred as even number e g not 398 but 0398 If odd count of numbers are transferred the printer adds a leading zero to the printed barcod...

Страница 372: ...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 10 REM code 11 barcode 20 LPRINT CHR 27 11 30 LPRINT CHR 26 D3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 17 ...

Страница 373: ... 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 barcode 20 LPRINT CHR 27 11 30 LPRINT CHR 26 E3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR 27 10 18 Barcode Printing ...

Страница 374: ...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 2A 42 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 39 barcode 20 LPRINT CHR 27 11 30 LPRINT CHR 26 F3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 19 ...

Страница 375: ...58 a to e and n t 61 to 65 and 6E 74 2A 97 to 101 and 110 116 42 a to e and n t 61 to 65 and 6E 74 2A 97 to 101 and 110 116 42 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 codabar barcode 20 LPRINT CHR 27 11 30 LPRINT CHR 26 G3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR 27 10 20 Barcode Printing...

Страница 376: ...culation 3A 58 3A 58 3A 58 Data Structure ASCII DC4 Start code nnnn Separation code nnnc Stop code DC4 hex 14 Start code nnnn Separation code nnnc Stop code 14 dec 20 Start code nnnn Separation code nnnc Stop code 20 Example 10 REM code EAN 8 with HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 H3 111 CHR 25 40 LPRINT CHR 20 0123 4567 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 21 ...

Страница 377: ...culation 3A 58 3A 58 3A 58 Data Structure ASCII DC4 Start code nnnn Separation code nnnc Stop code DC4 hex 14 Start code nnnn Separation code nnnc Stop code 14 dec 20 Start code nnnn Separation code nnnc Stop code 20 Example 10 REM code EAN 8 without HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 I3 111 CHR 25 40 LPRINT CHR 20 0123 4567 CHR 20 50 LPRINT CHR 27 10 22 Barcode Printing ...

Страница 378: ...A 58 3A 58 3A 58 Data Structure ASCII DC4 Start code nnnnnnn Separation code nnnnnc Stop code DC4 hex 14 Start code nnnnnnn Separation code nnnnnc Stop code 14 dec 20 Start code nnnnnnn Separation code nnnnnc Stop code 20 Example 10 REM code EAN 13 with HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 K3 111 CHR 25 40 LPRINT CHR 20 0123456 789012 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 23 ...

Страница 379: ...A 58 3A 58 3A 58 Data Structure ASCII DC4 Start code nnnnnnn Separation code nnnnnc Stop code DC4 hex 14 Start code nnnnnnn Separation code nnnnnc Stop code 14 dec 20 Start code nnnnnnn Separation code nnnnnc Stop code 20 Example 10 REM code EAN 13 without HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 L3 111 CHR 25 40 LPRINT CHR 20 0123456 789012 CHR 20 50 LPRINT CHR 27 10 24 Barcode Printing ...

Страница 380: ...8 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 MSI plessey modified 20 LPRINT CHR 27 11 30 LPRINT CHR 26 M3 111 CHR 25 40 LPRINT CHR 20 0123 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 25 ...

Страница 381: ... 3A 58 3A 58 3A 58 Data Structure ASCII DC4 Start code nnnnnn Separation code nnnnnc Stop code DC4 hex 14 Start code nnnnnn Separation code nnnnnc Stop code 14 dec 20 Start code nnnnnn Separation code nnnnnc Stop code 20 Example 10 REM code UPC A with HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 N3 111 CHR 25 40 LPRINT CHR 20 012345 678901 CHR 20 50 LPRINT CHR 27 10 26 Barcode Printing ...

Страница 382: ... 3A 58 3A 58 3A 58 Data Structure ASCII DC4 Start code nnnnnn Separation code nnnnnc Stop code DC4 hex 14 Start code nnnnnn Separation code nnnnnc Stop code 14 dec 20 Start code nnnnnn Separation code nnnnnc Stop code 20 Example 10 REM code UPC A without HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 O3 111 CHR 25 40 LPRINT CHR 20 012345 678901 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 27 ...

Страница 383: ...tion 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 dec 20 Start code nnnnnnnc Stop code 20 Example 10 REM code UPC E with HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 P3 111 CHR 25 40 LPRINT CHR 20 01234567 CHR 20 50 LPRINT CHR 27 10 28 Barcode Printing ...

Страница 384: ...tion 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 dec 20 Start code nnnnnnnc Stop code 20 Example 10 REM code UPC E without HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 Q3 111 CHR 25 40 LPRINT CHR 20 01234567 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 29 ...

Страница 385: ... 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 Start code n n Stop code 20 Example 10 REM code delta distance IBM without HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 R3 111 CHR 25 40 LPRINT CHR 20 F0123D CHR 20 50 LPRINT CHR 27 10 30 Barcode Printing ...

Страница 386: ...des upper and lower case alpha and numeric codes Code C encodes digits in pairs A single Code 128 barcode may consist of all three Code 128 barcode styles A B and C The printer chooses the styles which result in the most compact Code 128 barcode for the data to be encoded Thus the user needn t be concerned about choosing the correct barcode styles as this is done automatically The greater than sym...

Страница 387: ...nsmitted send 0 the 0 will not be part of the printed data The Code 128 barcode style selection can also be done manually This is done by adding a style selection character to the beginning of the barcode data Choose code A B or C from the table of special characters below Special Character Code 128 0 30 1 95 2 96 3 97 4 98 5 99 Code C 6 100 Code B 7 101 Code A 8 102 When a style selection has bee...

Страница 388: ... S 51 87 ETB w 87 16 0 0 16 52 T T 52 88 CAN x 88 17 1 1 17 53 U U 53 89 EM y 89 18 2 2 18 54 V V 54 90 SUB z 90 19 3 3 19 55 W W 55 91 ESC 91 20 4 4 20 56 X X 56 92 FS 92 21 5 5 21 57 Y Y 57 93 GS 93 22 6 6 22 58 Z Z 58 94 RS 94 23 7 7 23 59 59 95 US DEL 95 24 8 8 24 60 60 96 FNC3 FNC3 96 25 9 9 25 61 61 97 FNC2 FNC2 97 26 26 62 62 98 SHIFT SHIFT 98 27 27 63 _ _ 63 99 CODEC CODEC 99 28 28 64 NUL ...

Страница 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 ...

Страница 390: ... is the initial sequence Code 128 starts with Code A Code B or Code C followed by character information Barcode EAN 128 requires the code FNC1 between Startcode and character information The Code 128 translation table remains valid The checksum of EAN 128 is calculated using Code 128 algorythm Example 10 LPRINT CHR 27 11 20 LPRINT CHR 26 T3 111 CHR 25 30 LPRINT CHR 20 1234ABCD CHR 20 40 LPRINT CHR...

Страница 391: ...de the 13 figure is trans ferred first and the 1 figure last For the formats for the Add On barcodes the printer ex pects the check number as the first figure This is not printed in the barcode The follo wing numbers 2 or 5 are printed from left to right in Add On barcode Example 1 EAN13 barcode with HRI and Add On 2 extention Format DC4 nnnnnnn nnnnnn cnn DC4 10 REM code EAN 13 with add on 2 exte...

Страница 392: ...d Add On 5 extention Format DC4 nnnnnnn nnnnnn cnnnnn DC4 10 REM code EAN 13 with add on 5 extention 20 LPRINT CHR 27 11 30 LPRINT CHR 26 K3 111 CHR 25 40 LPRINT CHR 20 0123456 789012 012345 CHR 20 50 LPRINT CHR 27 10 Barcode Printing 37 ...

Страница 393: ...on Add On Barcodes Add On 2 barcode Add On 5 barcode Here the check number c is transferred before the barcode information n EAN 13 12 numbers are transferred for the EAN 13 code The 13 digit represents the check num ber 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 remai ning figur...

Страница 394: ... modul 8 remainder 2 check number For remainder 0 the check number is also 0 UPCA 11 numbers are transferred for the UPCA code The 12 digit represents the check num ber 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 remai ning figure is subtracted from the modul 10 If the remainder i...

Страница 395: ... 12 5 18 Cross sum 45 10 modul 5 remainder 5 check number For remainder 0 the check number is also 0 Add On 5 6 numbers are transmitted check number c 5 information items n The uneven figu res of the information have a factor of 3 the even figures a factor of 1 Counting be gins from the right The resulting cross sum is divided by 10 The remaining integer value is subtracted from the modul 10 The r...

Страница 396: ...he 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 Information 1 0 9 Remainder 1 1 The check number always lies between 0 and 3 it is not printed in the HRI line Barcode Printing 41 ...

Страница 397: ... dec 9 to hex 1F dec 31 terminates this barcode mode You may use this sequence in every emulation The printer can print barcode in NLQ and LQ If draft print quality DPQ is selected the printout is performed in NLQ The character e g CR carriage return hex 0D which terminates barcode mode will neither be printed nor carried out A tab command hex 09 dec 9 is carried out in this barcode 10 REM US post...

Страница 398: ...r distance At a character distance of 10 characters inch and an enlargement factor of 6 the LCP font width is 6 10 inch The height of a LCP character is n times 1 12 inch It is independent of the selected line spacing The LCP characters are printed so that their lower edges lie flush with the next available ground line The result is that only the upper edges of characters with an un even enlargeme...

Страница 399: ... 15 n all printable characters hex 1F dec 31 Example REM Example Character Densities OPEN lpt1 FOR RANDOM AS 1 WIDTH 1 255 PRINT 1 CHR 27 11 PRINT 1 CHR 16 4 CHR 25 PRINT 1 CHR 27 6w REM 15CPI PRINT 1 CHR 15 LCP CHR 15 PRINT 1 CHR 27 5w REM 12CPI PRINT 1 CHR 15 LCP CHR 15 PRINT 1 CHR 27 4w REM 10CPI PRINT 1 CHR 15 LCP CHR 15 PRINT 1 STRING 5 10 END 44 Large Character Printing LCP ...

Страница 400: ...n 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 53 30 32 1B 5C dec 27 80 76 83 48 50 27 92 Large Character Printing LCP 45 ...

Страница 401: ... 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 16 4 CHR 25 90 LPRINT CHR 15 4 CHR 15 100 REM set character size to 5 110 LPRINT CHR 16 5 CHR 25 120 LPRINT CHR 15 5 CHR 15 130 REM set character size to 6 140 LPRINT CHR 16 6 CHR 25 150 LPRINT CHR 15 6 CHR 15 160 LPRINT CHR 27 10 170 END 46 Various Examples ...

Страница 402: ...PRINT 1 Example for PRINT 1 CHR 15 LCP CHR 15 unsecured mode PRINT 1 CHR 10 CHR 13 END Example 3 REM Example 3 for secured printing OPEN lpt1 FOR RANDOM AS 1 WIDTH 1 255 PRINT 1 CHR 27 11 PRINT 1 CHR 27 PSC1 CHR 27 PRINT 1 CHR 16 5 CHR 25 PRINT 1 Example for PRINT 1 CHR 15 LCP CHR 15 PRINT 1 secured CHR 10 mode PRINT 1 STRING 5 10 END Various Examples 47 ...

Страница 403: ...aracter height additional space is added to gain a full Line Feed start actual print cursor position end actual print position Description The room will be occupied to fit the highest character in one line Characters which will not meet the 1 6 grid are adding additional space to fill the room to the next possible line this value may change due to actual line density setting A B D E C 6 3 LF 1 12 ...

Страница 404: ...Appendix Character Sets ...

Страница 405: ...ape sequences which corre spond to the selected emulation mode The codes hex A0 up to hex FE correspond to the selected character set 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 33 49 65 81 2 DC2 2 18 34 50 66 82 3 3 19 35 51 67 83 ASCII B dec 66 hex 42 A 2 Character Sets ...

Страница 406: ... 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 41 57 73 89 105 121 A 10 26 42 58 74 90 106 122 B 11 27 43 59 75 91 107 123 C 12 28 44 60 76 92 108 124 D 13 29 45 61 77 93 109 125 E 14 30 46 62 78 94 110 126 F 15 31 47 63 79 95 111 127 Character Sets A 3 ...

Страница 407: ...9 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 41 57 73 89 105 121 A 10 26 42 58 74 90 106 122 B 11 27 43 59 75 91 107 123 C 12 28 44 60 76 92 108 124 D 13 29 45 61 77 93 109 125 E 14 30 46 62 78 94 110 126 F 15 31 47 63 79 95 111 127 A 4 Character Sets ...

Страница 408: ...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 41 57 73 89 105 121 A 10 26 42 58 74 90 106 122 B 11 27 43 59 75 91 107 123 C 12 28 44 60 76 92 108 124 D 13 29 45 61 77 93 109 125 E 14 30 46 62 78 94 110 126 F 15 31 47 63 79 95 111 127 Character Sets A 5 ...

Страница 409: ...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 41 57 73 89 105 121 A 10 26 42 58 74 90 106 122 B 11 27 43 59 75 91 107 123 C 12 28 44 60 76 92 108 124 D 13 29 45 61 77 93 109 125 E 14 30 46 62 78 94 110 126 F 15 31 47 63 79 95 111 127 A 6 Character Sets ...

Отзывы: