background image

Summary of Contents for 8111

Page 1: ...Applications Manual j ...

Page 2: ...ft Corporation MultiMate Multimate International TRS 80 Radio Shack a division of Tandy Corporatim Epson EX 800 Seiko Epsm Corporatim WordPorlect WordPerfect Corporation Ventura Publisher Xerox Corporatim NOTICE l All rights reserved Reproductim of any w of this manual in any form whatsoever without STAR s expnxs pennissim is forbidden l lhe contents of this manual are subject to changp without no...

Page 3: ... printer This manual provides the software help you need to get the most from your LaserPrinter 8111 Though this Applications Manual is really intended for intermediate to advanced computer users we ve tried to accommodate relative novices too The information is organized so you can walk through the general theory underlying printer programming before dancing into specific details It makes sense t...

Page 4: ... of chapters4 through 6 which cover Star LaserPrinter 8111commands Your LaserPrinter 8111 emulates other printers it imitates other printers by accepting the same commands they do Just think of your Star LaserPrinter 8111as three printers hiding inside one unit If you want to write or modify a program that uses one of these printers the Hewlett Packard LaserJet III Epson EX 800 IBM Proprinter or c...

Page 5: ... the companion to the Star LaserPrinter 8111 Operations Manual that came with your printer A laser printer is a fairly complex tool that requires care and delicate handling So to use this Applications Manual best make sure you understand that Operations Manual first Your Operations Manual holds essential information about the LaserPrinter 8111 such as how to l unpack and set up your laser printer ...

Page 6: ...S 33 Font Terminology 33 How the Star LaserPrinter 8111 Stores Fonts 36 Symbol Sets 39 Managing Fonts 4 1 CHAPTER 4 HP LASERJET III COMMANDS 49 HP LaserJet III Commands 49 Controlling the Printer 5 1 Page Orientation 54 Moving the Print Position 58 Controlling Fonts 66 Using Your Own Fonts 82 Raster Graphics 86 Pattern Graphics 89 Vector Graphics 94 Macros 116 CHAPTER 5 EPSON EX 800 COMMANDS 119 E...

Page 7: ...ANDS 145 Proprinter Commands 145 b Controlling the Printer 146 Formatting Pages 147 Moving the Print Position 147 Controlling Fonts 150 i Graphics 153 CHAPTER 7 TECHNICAL SUPPLEMENT 155 L Command summary 156 Symbol sets 164 INDEX 215 ...

Page 8: ......

Page 9: ...nter 8111 produces pages that look close to typeset quality with up to 90 000 dots per square inch no more NLQ near letter quality compromises The Star LaserPrinter 8111produces eight of those pages a minute These numbers translate to about five times more resolution and speed than the average dot matrix printer Star s new printer is remarkably versatile You can print complicated forms widthwise i...

Page 10: ... these you may be able to use optional cartridges and disks to give your Star LaserPrinter 8111 a variety of extra fonts such as these Helvet line drawing Letter Gothic presentation fonts Bar codes optical character reader fonts universal product code You can load your Star LaserPrinter 8111 s memory with fonts stored on computer disks Literally hundreds of fonts are marketed by font supply compan...

Page 11: ...d in your Star LaserPrinter 8111Operations Manual The Star LaserPrinter 8111 is a computer The Star LaserPrinter 8111 first maps the characters to be printed into its own random access memory RAM That is the printer builds a picture in its memory corresponding to the page you want to print When that s done the printer can reproduce the page onto paper on its own letting your computer get on with o...

Page 12: ...t pulse strikes that tiny part of the drum drops to a neutral electrical charge That spot then attracts fine toner powder asthe drum rotates past the powder compartment As the drum rotates further it meets the paper The paper itself is negatively charged by passing by a fine corona wire Since opposite charges attract the negative paper clings to the positive drum Then heat and pressure from a roll...

Page 13: ...n to its right And we only need two symbols 0 zero and 1 one to show the values that may be in any position So in binary we get numbers that look like 1010 or 10001100 The hexadecimal system is made of base sixteen numbers Hexadecimal is positional like the other counting systems And each higher position is worth sixteen times as much as the position to its right We need sixteen different symbols ...

Page 14: ... printers use only the binary number system to represent both commands and all the alphabetic numeric and other key board symbols Nearly all of those machines use the same scheme to code those symbols the American Standards Code for Information Interchange ASCII Anexample inourfamiliardecimal system binary01001010 adds up to the number 74 Depending on which program your printer is using it can int...

Page 15: ... hex 41 to 60 are capital letters and the less common keyboard symbols we l hex 61 to 7F are lowercase letters and a few final symbols That takes care of the first 128 ASCII symbols However nearly every computer and printer manufacturer treats the second half of the table differently Hewlett Packard for example puts a variety of accented _ _ foreign language characters into positions 128 255 often...

Page 16: ...next character specifies a command not something to be printed Therefore if you send just the character 4 to the printer it will print a 4 and that s all But if you send the ES0 code just before the 4 then the printer in EX 800 mode will switch over to italics text Extending the control codes this way gives you many more commands to control your printer In fact these Escape sequences make up most ...

Page 17: ...nges easily WordPerfect and Microsoft Word are strong at this but are by no means the only good font manipulators If you have trouble using a particular program with your Star LaserPrinter 8111 you ll probably get answers most quickly by asking your software supplier how the program interacts with your printer In this manual we refer to programs fonts and other products sold by several companies P...

Page 18: ...keep the print position moving when it hits the end of a line Unasked for carriage returns can mess up your printing however so it s a good habit to put in a WIDTH statement as shown That lets us print over the whole page area The cBEL control code ASCII code 7 is sent in BASIC as CHR 7 The ES0 code itself is CHR 27 And because we re using the character 4 as part of an SC command we type CHR 52 in...

Page 19: ...several other printers use Being able to emulate the Epson EX 800 lets you use your Star LaserPrinter 8111 with older programs that haven t been updated to take advantage of laserprinters In fact because it emulates three of the most popular printers you can use the Star LaserPrinter 8111 with just about any microcomputer program around Unfortunately those printers often use different escape seque...

Page 20: ...NOTES 12 ...

Page 21: ...mportant fact about printer commands though is that you may not even need to know how to use them If your software systems include their own printer drivers you may want to read only this chapter and skip all of chapters 4 through 6 PRINTER PARAMETERS The front panel The easiest way to control your Star LaserPrinter 8111is through its front panel as explained in more detail in your Star LaserPrint...

Page 22: ...t l layout how pages will be formatted l paper feed what paper the printer will use l command which commands the printer will accept l interface how the printer communicates with your computer A default is the setting the Star LaserPrinter 8 will use if none is specifically selected by aprogram When you first turn on or later reset your printer these default settings will take effect Your main use...

Page 23: ...LaserPrinter 8111 sinitial set rings sometimes called session settings You ll likely only change them when you want to use a different printer emulation than normal These initial settings stay the same as the power on settings until you change them On the other hand your software will probably change the current settings many times within the same document with every change of font or print style ...

Page 24: ...st basic of the Star LaserPrinter 8 s configuration settings defines how your computer connects to the printer You can set the INTERFACE to either Serial or Parallel in IBM or Centronics mode In most single computer environments you ll opt for the faster Parallel interface in a multi user network you may be better off with Serial The particular printer interface settings don t matter as much as ma...

Page 25: ...t extra parity bit you ll have to say whether it produces an even or odd number of on bits in the character You ll also have to indicate if your computer sends two stop bits to indicate the end of a byte instead of one the default These serial interface settings are described in more detail in your Star LmerPrinter 8111 Operations Manual Serial interface protocol Finally in Serial mode your comput...

Page 26: ...le DTR or ETX ACK or disable XON XOFF you ll have to set those parameter values accordingly Turning on one of these protocols automatically flips off the others Checking your connections Your computer and printer may have trouble communicating when you first introduce them to each other The quick way to find out if your settings and printer cable are working is to send your printer a printout from...

Page 27: ...of the superset commands at the end of this chapter What are the emulated printers like Most of the time you will probably choose HP LaserJet III emulation which is the default when you turn on the Star LaserPrinter 8111 That s because the LaserJet III like the Star LaserPrinter 8111 is a laser printer This emulation mode gives you the best control over your printer s features and works with most ...

Page 28: ...up the length of the page Unlike most other laser printers your Star LaserPrinter 8 lets you rotate fonts to print either way you don t have to buy separate fonts to print sideways on the page Your printer normally feeds a new form when you rotate a font to avoid accidentally printing both orientations on the same page But if you want to intermix orientations just change the value of FF on Rotate ...

Page 29: ...t if necessary you consult another programmer more familiar with your computer l Actually if you are debugging any program you may find this hex dump mode helpful It can be a great trouble shooter CONTROLLING THE PAGE In this section we look at two controls you have over how the Star LaserPrinter 8111 handles and formats its pages You can set values for the PAPER PEED and LAYOUT parameters on the ...

Page 30: ...es One other nice thing you can do is print directly on envelopes With this Paper Size parameter you can specify envelopes in sizes lo Monarch European C5 and DL Then just work out where to put the address set the orientation to landscape see below and slide your envelope into the manual feed slot Easy In any emulation mode you can send your printer commands to change paper size or feed in paper m...

Page 31: ...ou d like Avoid shiny coated paper or multipart forms And don t even think about putting in stapled or ripped pages l If you frequently change paper weights you will probably get skewing problems lines that print at an angle because of misfeeding For best results when your Star LaserPrinter 8111is first set up have the paper feeder squared for paper of at least 20 pounds Lighter paper though cheap...

Page 32: ...bend over and through the guide rollers moreover fusing toner to the paper involves heat You can eliminate trouble by always feeding label sheets manually Both Avery s Lasergraphic labels and Canon s labels seem to work fine Your main concern is that the labels completely cover the backing sheet so it shows only at the outside margins That way individual labels can t easily peel off The safest app...

Page 33: ...mputer Page orientation A page s orientation tells you in which direction the print goes on the page When you useportrait orientation the lines areprinted as they are in anormal business letter across the width of the page A portrait painting of a person is usually vertical hence the name landscape Portrait When you use fun ape orientation the words are printed on their sides vertically up the len...

Page 34: ...nt the space character to be Each column running from page top to bottom will be the width of a space You probably will let your software worry about the space width But if you want you can set the HMI parameter on the panel in increments of l 120 inch anywhere from 1 to 255 increments Similarly the meaning of a line sometimes called a row is defined by the vertical motion index VMI The printer mo...

Page 35: ...8111 to move the print position vertically or horizontally in increments of l 10 l 12 or similar fractions of an inch pitch settings l 48 l 60 l 72 l 120 or l 216 inch line or column definitions l 300 inch dots or l 720 inch tenths of a point These increments reflect the history of twentieth century printing Pitch referring to the number of characters printed in each horizontal inch derives from h...

Page 36: ...erica n or Japan 3 Spacing and pitch are linked Characters can be spaced on the line propor tionally so a narrow letter such as i takes less room than a wide letter like W Or characters can be spaced all the same width twelve characters to the inch is the monospaced spacing called 12 pitch Pointsize defines how big characters will print such as 10or 12points high Sryle defines whether characters p...

Page 37: ...e printer commands yourself Several companies sell programs that look after laser printing commands for such software Ask your dealer about LaserControl Printworks for Lasers PCL Pak and RAM Resident Printmerge There s not much point in reinventing the wheel The Star LaserPrinter 8lll superset Besides the commands that emulate other printers your laser printer understands three other commands call...

Page 38: ...ge Note always send Carriage Return and Form Feed control codes CR and FF just before you give this Change Emulation command These force the printer to print any partial page in its memory and start a new page with the new emulation If you forget to issue these control codes first the Star LaserPrinter 8 will do them for you butyour Change Emulation command will just reset the printer s parameters...

Page 39: ...e lower left comer for a landscape page The Star LaserPrinter 8111 lets you mix portrait and landscape orientations on the same page Because the starting print position changes when you switch orientations though you have to remember to re orient commands that move the print position If you don t want to allow the printer to mix orientations use the front panel program menu to change the COMMAND p...

Page 40: ...International C5 size envelope This command controls the size that the printer should use when next feeding from the selected paper feeder If the printer does not have the requested size the front panel will display a message instructing you to insert the requested paper envelope If the operator overrides that request the requested size is ignored and the size of the current cassette is used If yo...

Page 41: ...iables can characterize typefaces including weight light medium bold width condensed or extended and style upright or italic Courier for example is atypeface family that includes the characters in both Courier medium italic and Courier bold upright Let s consider these variables Bold print is sometimes called emphasized or double strike On earlier printers boldface is generated by printing each ch...

Page 42: ...option is chosen while the printer is in duplex mode it is only valid if then face down output stack has been selected The page containing this com mand will become the face of the double sided page If the printer is in duplex mode the 1 option will force single sided printing commencing with the page containing this command If the printer is already in duplex mode the page containing this command...

Page 43: ...special sizes of type for most text Elite characters are 10points high and print 12characters per inch And pica chararacters am 12 points high and pitched at 10 characters to the inch You ll often run across these monospaced font sizes in the laser printing world Ideally each character in a word should nestle against its neighbours so they appear evenly spaced But adjacent round characters are apt...

Page 44: ...ometimes called font characteris tics Let s consider three more attributes font height spacing and pitch Font height The baseline is the invisible line upon which characters of type sit Since the first letter blocks were made of lead alloy the distance from one baseline to the next is called leading pronounced ledding Type itself is measured from the top of anascender the part extending up in the ...

Page 45: ...der range of typefaces too such as Helvet and Letter Gothic Generally cartridge and internal font typefaces are suitable for both text and headlines The third kind of font is neither built into your Star LaserPrinter 8111nor available just by slipping in a cartridge You download this kind of font which means you use a computer program to send characters from a computer disk to your printer s memor...

Page 46: ...oment Star LaserPrinter 8 fonts can be grouped into three categories internal cartridge and downloadable fonts Internal fonts The Star LaserPrinter 8 has four built in internal fonts that reside perma nently in its read only memory ROM That s why these are sometimes called resident fonts Courier Prestige Elite Tms Romn Line Printer Courier is the face used on the most common electric typewriters N...

Page 47: ...entally the best way to underline is to use the underline command in the emulation you are using instead of backspacing and overprinting with the separate underline character J If you do the latter with proportionally spaced text you ll usually find the underlining is too long for the text What are symbol sets Keyboards differ from country to country The British need their f symbol the French need...

Page 48: ...ped fonts of any size from a library of outline fonts In outline fonts each character s profile is defined just once and the printer generates any font height from that profile which saves printer memory Outline fonts demand awesome computing power of the printer though so they ve been available only on laser printers considerably more expensive than the Star LaserPrinter 8 Now with programs like ...

Page 49: ...t Courier monospaced 10 12 point Line Printer monospaced 16 6 8 5 point Technically you can use any of the Star LaserPrinter 8111 sresident fonts when you send commands emulating aparticular printer But each emulation only prints properly with the fonts designed for it Furthermore you can only use symbol sets or arrangements of those fonts which that emulation can handle So be aware that if you tr...

Page 50: ... for selecting a font from a computer program is a bit more complicated and depends on which emulation mode you are using These font selection methods are detailed in the next three chapters Hints Desktop publishing and page design l Desktop publishing systems help you automate your specifications for margins cover design typefaces font sizes placement of graphics and regular features You build th...

Page 51: ...nt or draw a box around it l Don t be afraid to use white space White space relieves eye fatigue and looks more attractive Optional fonts Many optional fonts available for your Star LaserPrinter 8111 complement its internal fonts These can give you more variety in symbol sets spacing font height style and stroke weight To your Courier or Tms Romn fonts for example you might add italics and bold le...

Page 52: ... font from the front panel How to download fonts To download fonts from computer disk you ll need more than a small 64K microcomputer We recommend at least a 512K computer with a couple of disk drives a hard disk is better Many commercial font management programs are now on the market including Insight Development sLaserControZ Blaha Software s HotLead SoftCraft s LaserFonts and the PCL printer dr...

Page 53: ...ntly or temporarily you type either P or T a temporary font disappears if you press the printer s RESET button Finally the program asks if you want to print a sample of the font and you reply Y or N for yes or no You then do the same for the italics and boldface files for example typing for the italics font DOWNLOAD CNlOOIPN R8P The prompts will be the same but you have to remember to use differen...

Page 54: ...II mode creating and downloading fonts is described further in chapter 4 Hints Managing memory l Printing fancy stuff can be quite cumbersome for your printer You trade off fanciness against speed if you opt for fewer flourishes you give your printer breathing room in memory And that rewards you with faster output Any of the following will slow down your laser printer text over 20 points lots of l...

Page 55: ... laser printer s memory is not available for storing fonts because it has to store each page before printing it as well as any macros or overlays you are using To see how much memory is available for extra fonts put the printer offline and press the TEST button to print a status sheet Your printer will beep and show a front panel message if you try to overload its memory by downloading too many fo...

Page 56: ...NOTES ...

Page 57: ...nd page setup commands then we ll cover commands that poise the laser pen over the paper next we ll pick a font and finally we ll lay down our words and pictures At the end of the chapter we describe how to create and use your own fonts and also how to save time by writing command macros HP LASERJET III COMMANDS What do LaserJet III commands look like The LaserJet III emulation mode includes a doz...

Page 58: ...hat command sends your printer the symbols 6 and 5 which its LaserJet III program interprets as the column number However if you were using Epson EX 800 emulation the command that sets the right margin looks like this ES0 Q 65 which in BASIC you would write this way 10 LPRINT CHR 27 Q CHR 65 That command sends the printer whatever character happens to be in ASCII position 65 Your printer s Epson P...

Page 59: ...ow your LaserPrinter 8111 is printing and have a look at its parameter settings by sending this Self Test command ESC z Notice that the z is lowercase this is the only LaserJet III command that ends with a smaIl letter After you send a Self Test command the printer finishes printing any pages left in its memory Then on anew page it prints its current parameters just important items such as number ...

Page 60: ...om this table n FEED SELECTED 0 zero the printer only ejects the current page 1 one the printer takes its next page from the paper cassette 2 the printer takes a regular page manually 3 the printer accepts an envelope you feed in manually Should an unprinted page be in the printer s memory when you give this command the paper for that page will feed from where you ve indicated Therefore you can ma...

Page 61: ...ands to your printer ESC z ES E ES0 2h 2X As a BASIC program these would look like this NEW 10 WIDTH LPT1 255 20 LPRINT CHR 27 z 30 LPRINT CHR 27 E 40 LPRINT CHR 27 12h2X RUN First if it is working properly the printer prints a test print with all the characters in its default font for this emulation Courier Next the printer sets all its parameter values including feed selection and number of copi...

Page 62: ...is the number of text lines on the page it can be any number between 5 and 128 The default number of lines is the length of the paper tray times 6 lines per inch For 11 inch letter size paper that works out to 66 lines that s also the default when you haven t put in a tray If you don t want the default length you should send the Page Length command before you send text for printing The table below...

Page 63: ...ther you have to send any of the following margin setting commands Side margins Margin settings define that part of the page on which the printer can print You set side margins to particular columns The width of a column differs for each font depending on its pitch Ten pitch Courier for example puts column 30 three inches from the left edge of the page column 0 But 12 pitch Prestige Elite puts col...

Page 64: ...efault the LaserPrinter 8111automatically gives you top and bottom margins of the same size So you only need to send the Text Length command when you want different top and bottom margins If you want a different bottom margin first decide how many text lines will produce the margin you want Check that they won t produce a bottom margin lower than the page length Then send the following Text Length...

Page 65: ...t on the page depends on which font we use Let s plan on using our 16 66 pitch Line Printer font at eight lines per inch column 10 column 70 tap margin 8 lil text length I 100 lines bottom margin 4 lines I pageleng h llZIines cctasional footnotes As it prints we also want to permit the occasional one line footnote below the normal bottom margin And when we re finished printing let s reset the side...

Page 66: ... hint about moving the print position you can confuse yourself trying to use more than two different units during the same session So decide beforehand how precise you need to be in moving the print position not forgetting any graphics you want to include Then stick to the unit s you choose Lines per inch This vertical line spacing command gives you more options than just the six or eight lines pe...

Page 67: ...half overlap the one before it If you are using SIB and SO to shift between a primary and secondary font it s a good idea to change the space width after every shift To change the space width you send this command SC k n H in which for n you can enter a number fmm 0 zero to 840 A width of 0 will print characters on top of each other a width of 840 will print them seven inches aprt Defining line de...

Page 68: ...ay from the current print position To show you want to move away from the current print position you put a plus or minus sign before the number of units you want to move If you send a command that would put the print position outside either side margin the LaserPrinter 8111will let you do just that However you can t send the print position further than its printable limits atthe edges ofthe page H...

Page 69: ...use of the horizontal tab command Simply send a tab character HT to do this Reverse tabbing is not possible Moving the print position vertically You can use similar units to move the print position vertically lines dots or decipoints Both lines and decipoints can be fractions to two decimal places You can also move the print position absolutely down from the top edge of the page or relatively away...

Page 70: ...own or precede the number with a or sign if you want to move up or down from the current position Finally you can move a number of dots down from the top edge of the page or you can move anumber of dots up or down from the current print position To move the print position up or down an absolute or relative number of dots send the command cESC p n Y in which for n you put either the absolute number...

Page 71: ...s command can be quite useful It lets you superimpose one character over another Say you want to indicate a blank space as the letter b with a slash through it an old programming symbol Just send the b and then follow it with CBS and the slash and you get this b Carriage return The Carriage Return command by itself only moves the print position back to the left margin of the line on which it curre...

Page 72: ...you press the Carriage Return key what do you expect to happen Most people think a computer keyboard should work like a typewriter with a Carriage Return starting a new line as well But computer programs don t have to stick to that analogy Some programs particularly graphics packages want a Carriage Return to just move the print position back to the left edge of the page And they want a Line Feed ...

Page 73: ...int beyond the right margin it returns the print position for that character back to the left and one line down Carriage Return and Line Feed The Autowrap command works like a toggle switch ES0 s n C If for n you enter 0 zero then this wrap around mode will apply But if for n you put 1 one this automatic wrapping of characters will not happen The default if you don t send a command is no wrapping ...

Page 74: ... s done you pop it again to return to printing text As you might suspect this can involve fairly complicated programming typically using the macro commands described later in this chapter To push or pop a print position you send this command ESC f IIS For n you enter 0 to push save the current print position or 1 to pop restore the last position saved off the list Note The last position pushed ont...

Page 75: ...ed at ten characters to the inch Typing a right parenthesis instead means you are referring to the secondary font cESC s 10 H You define a font as primary or secondary as you select it To make a font your primary or secondary font you use font description Escape sequences such as those just above specifying the attributes you want If you don t explicitly indicate what attributes you want for the p...

Page 76: ...nts The easiest way to select among downloaded fonts is to use font ID numbers When you download a font you make the Assign Font ID command above the first command in your sequence see How to download your own fonts later in this chapter After you ve assigned an ID number to a downloaded font you can select it as your primary font with this Select Font ID command ESC n X in which n is your desired...

Page 77: ...ed or the default value if you ve just turned on the printer This can save you some effort if the font you want has an attribute the same as the current font you don t have to specify that attribute again Orientation Portrait orientation prints text across the width of a page Landscape orientation prints text sideways up the length of a page The Star LaserPrinter 8111 is more flexible about orient...

Page 78: ... position in the printer s memory The default LaserJet III emulation symbol set is Roman 8 which includes all ASCII characters plus dozens of accented letters But you can use any of the sets shown below Technically you can pair any symbol set with any internal cartridge or downloaded font however it doesn t make much sense to print text with a math or line drawing symbol set LaserJet III mode prov...

Page 79: ...aw characters IS0 60 Norwegian Roman Extension IS0 25 French HP German IS0 15 Italian JIS ASCII ECMA 94 Latin 1 OCR A Math 8A symbols IS0 11 Swedish US ASCII Bar Code 39 IS0 61 Norwegian IS0 UK IS0 69 French IS0 21 German OCR B Math 8B symbols HP Spanish I 4 IS0 57 Chinese Pi font A symbols IS0 17 Spanish IS0 IRV OCR B Extension IS0 10 Swedish IS0 16 Portuguese IS0 84 Portuguese IS0 85 Spanish Mat...

Page 80: ...ing command lets you select one of those symbol sets for your primary font ESC n For n enter one of the following selection values for your primary font n VALUE SELECTION 0 zero or 1 one Selects the default symbol set 2 Selects the current font s symbol set this forces the printer to select its best matching font 3 Selects all of the default font s attributes not just symbol set Similarly you can ...

Page 81: ...you decide to use a proprietary product name so want to I L nip out to grab the symbol on alegal cartridge font you ve already loaded i I then return to your German set When your report s all done you want to return the printer to its Roman 8 default I Here are the commands that will do the job for us 1 _ ES0 OG I you s t your report here I ESC IU j ESC OG you finish your report here I ESC O If yo...

Page 82: ...monospaced pitch fonts have settings of IO 12 or 16 66 characters per inch Cartridge or downloaded fonts with monospaced pitches often have other settings for characters per inch To select the pitch you want for the primary font send this command ES0 s it H where for n you put in how many characters per inch you want For example ES0 s 12 H will pack twelve characters into each inch The correspondi...

Page 83: ... 0 if you want normal upright text or 1 if you want italics To select style for the secondary font just reverse the parenthesis and use the same n numbers Esc s n s Remember that style is a relatively low priority attribute If a particular font satisfies all higher priority attributes but doesn t come in the style you want you ll get that font without your style Stroke weight The weight of a font ...

Page 84: ...ourier that s easy just keep track of how many characters you print In aproportional font you d keep track of the decipoints by using a character width table After backing up 4 decipoints less than the total text width you just print your text again Typeface The last attribute you can give to characters is their typeface The design of I characters is what font designers often think of as the main ...

Page 85: ...rientation and symbol set But let s be specific about the other attributes and let s remember to put them in priority order We decide on a monospaced of 16 66 characters per inch and a height of just seven points footnotes should look smaller than our regular text To keep it readable we opt for the ordinary upright style and medium weight in the Line Printer typeface Our sequence of individual com...

Page 86: ...t 0 zero to get fixed underline or 3 to get floating underline And send this command to turn off the underline mode SC d How toprint Escape sequences and control codes You use both Escape sequences and control codes to print So how do you print Escape sequences and control codes But you actually can print commands and in two different ways You would do this when you want to see everything exactly ...

Page 87: ...itself prints as a blank followed by a Z L Font control The Font Control command has two main functions defining a font s status and deleting fonts You can make a font either permanent or temporary with the Font Control command Thishelps you control which fonts you delete aspermanent fonts do not get deleted when you reset the system The permanent or temporary status you give to a font will apply ...

Page 88: ...ve it an ID number and finally copy the font into memory with Font Control function 6 If you want that copy to stay in RAM when you reset the printer you conclude by sending Font Control function 5 Example Controlling fonts Let s see how those last few commands work translated into BASIC Pretend you want to make a short test with your current font it doesn t matter what it is you wanttoprint what ...

Page 89: ...emporary fonts Example Assigning font numbers Now let s do a program in BASIC First we ll assign font numbers to the Courier and Line Printer resident fonts and to a cartridge font IBM PC Courier Then we ll print samples of each font 100 LPRINT CHR 27 8U 110 LPRINT CHR 27 sOp10h12vOsOb3T 120 LPRINT CHR 15 130 LPRINT CHR 27 clD 140 LPRINT CHR 27 c6F 150 LPRINT CHR 27 8U 160 LPRINT CHR 27 sOp16 66h8...

Page 90: ... own typeface even if you don t work with a company in the font selling business You may for example want to print your own customized company logo It means building up characters within a cell or grid perhaps 50 dots high and 35 wide lots of dots Because defining yourowntypeface is so tedious make sure you ve checked out as many downloadable fonts as you can find from font development companies T...

Page 91: ...nder Assigning font ID numbers with an ID number for nbetween 0 and 32767 ESC c it D i Before sending that command though check whether the ID number is already allocated to another font If it is that existing font will be deleted with the next command 2 Downloading a header for your font Even if the printer doesn t have enough memory to create your font it will delete any existing font with the s...

Page 92: ...and we recommend you ask your Star Micronics dealer to help you build your font header To get you started the table below shows what each of those bytes means BYTE MEANING o 1 header length 2 blank 3 font size 4 5 blank 6 7 baseline position for characters 8 blank 9 cell width 10 blank 11 cell height 12 orientation 13 spacing 14 15 symbol set 16 17 pitch 18 19 line spacing 20 22 blank 23 style 24 ...

Page 93: ...s two or three hundred bytes As with the font header each byte in the character description is a number sent as the symbol at that position in the ASCII table Coding character descriptions is tricky too so again we recommend you ask your Star Micronics dealer for help The table below shows what the bytes in the character description mean BYTE MEANING 0 description length 1 blank 2 always 14 3 alwa...

Page 94: ... raster graphics 4 Send the command to end graphics You must define the resolution of your raster graphics before you use the Start Raster Graphics command To define the resolution you need in your graphics send this command ES0 t n R If the value of n is greater than 150 the resolution of the final graphics image will be 300 dots per inch dpi if n is from 101to 150 the resolution will be 150 dpi ...

Page 95: ... either opaque or transparent depending on the source transparency mode The Raster Width command specifies the width in pixels of the next raster graphic ESC r n S The value of n must be non negative if necessary it is truncated to the value of logical page width x coordinate of cursor It will clip all raster rows longer than the specified width even if n 0 It will pad any row shorter than the spe...

Page 96: ... first byte is 128 the run consists of the following first byte 1 bytes and these am interpreted in the unencoded compression mode If the first byte is 128 the command is ignored In the delta row compression mode a row is described by its difference from the current seed row The initial seed row is set to allzeros by the start raster graphics command Once a new tow has been built it becomes the se...

Page 97: ...ar area with one skinny dimension from one to many dots thick We will use the word rules too to avoid confusion with the lines used to measure pages You follow these three steps when you use rule and pattern graphics 1 Define the dimensions you need 2 Choose the graphics pattern you want to fill in those dimen sions 3 Print the pattern Remember to send the following rule or pattern commands in tha...

Page 98: ...c n A in which for n you enter how many dots across the page you want the rule or pattern to be Alternatively to specify the horizontal dimension for a rule or pattern in decipoints you can print this command ESC c n H in which n is the horizontal rule or pattern size in decipoints Vertically you can indicate the size of your rule or pattern in dots with this command ESC c n B in which n is the nu...

Page 99: ...ate the particular pattern you want send the following command The general meaning of the n value you enter actually depends on the command you put after this ES0 c n G If you want a solid black rule it doesn t matter what you put in for n as the printer ignores it If you want a l scale dotted pattern for n you enter here apercentage number from 1to 100indicating the density with which you want th...

Page 100: ...have defined is to be filled with a rule dotted gray scale pattern or linear pattern ESC cnP For n enter a value from the following table If you select a linear pattern here but a dotted pattern in the previous Specify Pattern command the printer will ignore this Print Pattern command n VALUE PATTERN 0 zero solid black 1 solid opaque white 2 shaded fill as selected with cESC c n G 3 cross hatched ...

Page 101: ...lace ESC v n N This selects the source transparency mode whether white areas of the source image should be treated as transparent and do not white out black pixels they cover or opaque in which case they white out black pixels Set n to 0 for the transparent mode and to 1 for the opaque mode ESC v n 0 This selects the pattern transparency mode similarly to the above command whether the current patt...

Page 102: ...ected The Star LaserPrinter 8111 has a buffer capable of storing 1500 points with pen up and down commands stored as points The following commands clear the polygon buffer and then use it to draw EA ER EW RA RR WG I The following commands use the polygon buffer when in the polygon mode I 1AA AR AT CI PA PD PE PR PU RT Other commands if given in the polygon mode are ignored If the polygon buffer ov...

Page 103: ...ith the picture frame it clears the polygon buffer and it moves the cursor to Pl ESC c n K in which n is the horizontal size of the HP GL 2 plot in inches and ESD c nL in which n is the vertical size of the HP GL 2 plot in inches These commands fit the HP GL 2 plot into the picture frame establishing scaling factors using the formula plot size picture frame size divided by 720 If n in either of th...

Page 104: ...s set to its default position the plot size is set to its default size l the page orientation is reset A reset command from the control panel will have the same effect cESC n 0 l the orientation of the picture frame is changed l the picture frame is set to its default size l the frame anchor is set to its default position l the plot size is set to its default size ESC a n P l The printing directio...

Page 105: ... character not terminating or character string followed by terminator t 0 semicolon or optional command terminator Numeric parameters can be of the following four types within the ranges given type range integer 2 147 483648 to 2 147 483 647 clamped integer 32 768 to 32 767 real lo 38 to 10 38 clamped real 32 768 to 32 767 HP GU2 coordinate system In HP GL 2 the coordinate system can lx set by the...

Page 106: ...nt A Ay y coordinate of point A Commands AA arc absolute xc yc angle chord angle 5 xc x coordinate of center of arc yc y coordinate of center of arc angle angular size of arc from 360 to 360 chord angle angle subtended by chord from 0 5 to 180 This command draws an arc from the current pen position as specified After drawing the arc the current pen position is at the end of the arc AC anchor comer...

Page 107: ...s only to outline characters 2 filled using current fill type FT no edging 3 filled using current fill type FT with edging The two edge pens are 0 no pen no edging 1 pen black edging CI circle RJchord angle IS R radius of circle integer chord angle angle subtended by chord from 0 5 to 180 This command draws a circle radius R with its center at cgc Since acircle is aclosed polygon in the polygon mo...

Page 108: ...tween points Pl and P2 as expressed by run dx 2x Plx lOO rise dy P2y Ply 100 DT define terminator I ETX mode 1 1 T string termination character not null LF ESC or I mode clamped integer determining action of control character CharacterT is used as the terminator of strings in subsequent LB commands T can be a control character The mode indicates what to do with T besides using it as a terminator m...

Page 109: ...command is similar to the EA command except that the coordinates of the opposite comer relative to cgc are specified ES extra space width 0 height O width clamped real extra space between characters in inches height clamped real extra space between lines in inches This command allows the character and line spacing to be changed The values are added to or subtracted from the font parameters This re...

Page 110: ...nt ID as used in standard LaserJet III emulation mode command ESO or nX This command does for the secondary font what FI does for the primary font f7 fin PoWon This command uses the even odd rule to fill the polygon currently in the polygon buffer The fill type is the one currently selected All points are used whether stored with the pen up or down The contents of the buffer are used but not chang...

Page 111: ...ng to the patterns defined in the standard emulation mode If any parameter or combination is outside the values in the table the command is ignored IN initialize This command resets the parameters to their default values It also sets the current position to the origin of the coordinate system the lower left comer of the picture frame IP input Pl and P2 Plx Ply lower left comer of picture frame P2x...

Page 112: ...ular 4 round 5 beveled 6 none 3 miter limit 1 to 32 767 default 5 For a line end other than a butt end add l 2 line width to the length If the miter in amitered line join exceeds the miter limit it is truncated If the miter in a mitered beveled line join exceeds the miter limit a beveled join is used The miter limit is the ratio miter length line width Miter limits smaller than 1 are rounded up to...

Page 113: ... the previous line type pattern length and any unused portion of the pattern If there are parameters a pattern is selected as follows Patterns are described by the length of dashes and gaps as a percentage of the pattern length starting with adash 0 represents adot Patterns and their codes are code pattern 0 0 not a line only one point 1 0100 2 5050 3 7030 4 80 10 0 10 5 70 10 10 10 6 501010101010...

Page 114: ...can be interpreted in several ways depending of the state which is described using the following abbreviations pm polygon mode np out of polygon mode pu pen up pd pen down sy draw a symbol sn draw no symbol li linetypel 6 lo line type 0 state Pm np pu sy h lo nPpd SY10 nppd syli np pu sn lo h np pd sn lo nppdsnli action of PA stores the coordinates in the polygon buffer draws a symbol at each poin...

Page 115: ...on bits contained in coordinate encoded as base 64 or 32 3DorBD start PA coordinates 37 or B7 7 start base 32 encoding Pen number specifies the pen to be used 0 8 see SP Number of fraction bits from 26 to 26 When there am no parameters this command updates the carriage return point When there are parameters it draws lines by sending a shorter string of data than other commands since all parameters...

Page 116: ...al 1 ASCII decimal code 95 2 96 31 125 0 126 a2 1 ASCII decimal code 63 2 64 31 93 0 94 Data is transmitted with the least significant digit first so the last digit al can be recognized and used as a separator PG page eject This command is ignored PM polygon mode mode 0 mode 0 clear the polygon buffer and enter the polygon mode 1 close the current polygon or subpolygon and start a new subpolygon 2...

Page 117: ...re treated as relative PU pen up xl 1 2 2 xn ynl xl x coordinate of first point yl y coordinate of first point etc This command is the same as PA except that the pen up flag is set and no lines are drawn If there is no argument this is the only effect of the command The coordinates are interpreted as absolute ifthe command was not preceded by a PR command otherwise the coordinates are treated as r...

Page 118: ... and translates the plotter coordinate system to obtain the following results with respect to the picture frame angle 0 origin atlower left comer x axis horizontally to the right y axis vertically up angle 90 origin at lower right comer y axis horizontally to the left x axis vertically up angle 180 origin at upper right comer x axis horizontally to the left y axis vertically down angle 270 origin ...

Page 119: ...font When any font can be used SB 1 all fonts are handled as bit mapped fonts Commands FI and FN imply an SB command and override any previous setting SC scale xmin xmax ymin ymax type O left 50 bottom 50 xmin xfact ymin yfact type 2 I xmin ymin real xmax ymax real xfact yfact real type clamped integer 0 to 2 left clamped real 0 to 100 bottom clamped real 0 to 100 The meanings of and relationships...

Page 120: ...pl xfact ymin yp2 ypl yfact Without parameters this command eliminates scaling and sets the user coordinate system to the plotter coordinate system If there are less than 4 exactly 6 or more than 7 parameters this command is ignored If xmin xmax of if ymin ymax of if xfact or yfact 0 the command is ignored When appropriate the scaling defined by SC has priority over that obtained from the ratio si...

Page 121: ...s and in general can select only approximate values of positive parameters In addition only one parameters has effect the width for monospaced fonts and the height for proportional fonts SL slant tan slant angle IO tan slant angle clamped real the tangent of the angle be tween the center line of a character and the vertical This command modifies characters to be plotted by slanting their vertical ...

Page 122: ...amped integer 0 no screening optl opt2 ignored 1 shaded opt1 shading percentage between 0 white and 100 black opt2 ignored 2 user defined raster see RF opt1 index the pen for the black pixels is selected as follows opt2 0 black pen opt2 1 current pen 21 predefined opt1 fill type opt2 ignored Without parameters this command turns off screening If opt1 and oropt2 is missing the previous and appropri...

Page 123: ...resets the line type as identified by the parameter defined in the LT command With more parameters this command alters the pattern of the same index defined by the LT command A zero dash value yields a point If a dash is negative a gap is not positive the sum of all dashes and gaps is 0 or the index is 0 or greater than 8 the command is ignored WG wedge fill R start angle sweep angle chord angle 5...

Page 124: ...the optional RAM expansion To manage printer memory you can make a macro either temporary it disappears when you reset the printer orpermanent it disappears only when you turn off the printer You assign each macro an ID number when you first define it Use this Specify Macro ID command to specify in place of n the ID number of the macro to which you wish to refer ESC f n Y For example say you want ...

Page 125: ...urrent parameters and then restores them when the macro is finished Again when the macro is done the print position will be just where it was before you ran the macro Turn on automatic macro This option automatically runs the last specified macm on every page you print You can use this option to reproduce the same design on each page a logo or form design pernaps You can have more than one automat...

Page 126: ...00 LPRINT CHR 27 c18Oh72OOV 600 LPRINT CHR 27 c25Gn 700 LPRINT CHR 27 c2Pn 800 LPRINT CHR l2 900 LPRINT CHR 27 flX 1000 LPRINT CHR 27 f2X 1100 END Line 100 clears any existing macros then line 200 specifies that this will be macroID number 1 Line 300 starts downloading the macro Line 400 moves the print position to a spot 450 dots right and 1200dots down from the top left comer of the page Lines 5...

Page 127: ...rlier chapters first some printer management and page setup commands then we ll cover commands that move the print position and finally we ll print our document with our choice of font attributes EX 800 COMMANDS What do EX 800 commands look like Most commands in the EX 800 emulation look like this ES0 C or ESC C n in which C is the code for the particular command you want to send If the command in...

Page 128: ...r an cESC code you must enter whatever character occupies that position in the ASCII table We ll always use decimal numbers in our descriptions For example in EX 800 emulation you set the right margin to column 55 with this command ESC Q55 You would write this command in BASIC as 10 LPRINT CHR 27 Q CHR 55 That BASIC command sends the printer the symbol Q and whatever character happens to be in ASC...

Page 129: ...er press ONLINE on the front panel or send this command XON sometimes shown as DCl If the printer is already online when you send the XON command the printer will cancel any incomplete line of print Reset L The EX 800 emulation reset command returns the printer to its default initial parameters When you send this command at the end of aprint job the printer will reset its parameters only after pre...

Page 130: ... number of inches in length you want the page maximum 22 Note the print position at the moment you set page length will be your new top of page When you change page length the Star LaserPrinter 8lII puts the bottom margin back to its default value so you may want to reset it lop and bottom margins The EX 800 emulation provides for top and bottom margins in aunique way combining the top of page as ...

Page 131: ...text so it prints those skips 8 lines at the bottom of the first page plus 8 more lines at the top of the next page to make up the total perforation skip of 16 lines text 66 lines perforation skp 16iines If you change line spacing after giving this command you won t affect these margin settings However if you change page length you will have to set the perforation skip again To set SkipOver Perfor...

Page 132: ...xt for you your Star LaserPrinter 8111 can do thejob Justified text prints flush against one or both side margins on both the right and left sides of the page You turn on the centering or justification of text with the following com mand SC a n For n enter a number from the following table MODE left justification centering 1 right justification 2 both sides justified 3 Backspace and horizontal tab...

Page 133: ...so be thought of as the width of a prim column is set by the pitch Backspace commands When you send the printer a backspace control code it moves the print position left one space or with proportional spacing the width of the last character printed CBS The backspace code lets you print directly over the last character printed it does not delete that character This lets you create symbols not ordin...

Page 134: ... increment of l 2 16inch If the move puts the print position below the bottom margin a new page starts You move the print position davn the page with this command ESC Jn and up the page with this command ESC j n In both cases the n is the number of l 2 16inch increments you want to move maximum 255 Form feed The Star Laser Printer 8111 only prints a page when it receives a Form Feed control code I...

Page 135: ... feed Normal printing resumes with the next carriage return To turn on left to right printing for just one line this is the command ESC Moving horizontally from the left margin Two horizontal motion commands send the print position to a particular position on the line These commands are based on EX 800 dots Unfortu nately the EX 800 offers only 60 or 120 dots per inch rather than the Star LaserPri...

Page 136: ... must equal the number of increments you want to move For example to move right two and a half inches 300 l 20 inches you send this command ESC 44 1 because 44 1 x 256 300 To move left is a little trickier You first subtract your desired number of increments from 65536 which is 256 x256 Then you use the same formula nl n2 x 256 must equal that resulting number So to move left three 360 120 inches ...

Page 137: ...e move would go beyond the printable limit of the page To move to a horizontal tab stop send this command HT Vertical tabs Vertical tabs work much the same way When you send the Vertical Tab Move command the print position moves down to the next vertical tab stop No tabs are set when you first start EX 800 emulation To give the Set Vertical Tabs command send this Escape sequence ES0 B nl n2 n64 UL...

Page 138: ... n2 and so on are the line numbers where you want to set vertical tab stops again you can set tabs at any of up to 254 positions You can clear all the tabs in a channel by not following the channel number c with any stops but just the NUL To move the print position to tab stops in a channel send this command Esc c where c is the number of the channel with tab stops you want to use If that channel ...

Page 139: ... italics so you don t have to switch to a separate font to get them or character graphics so you don t have to switch to Proprinter emulation for IBM graphics To choose between access to italics or to character graphics send this command ES0 t n in which for n if you enter 0 zero you get italics which is the de fault or if you enter 1 one you get character graphics International characters Moreove...

Page 140: ...wn in the chart below ccluN mY us ASCII France e Y England Denmark1 Sweden Italy Spain I Japan NOmY Denmark II Spain II Latin America Because the EX 800 and Proprinter emulations are quite similar EX 800 emulation gives your software access to the same accented alphabet charac ters and graphics symbols as the Proprinter emulation 132 ...

Page 141: ...soyoucanonlyprinttheordinaryASCII characters in the lower half of the symbol set send this ESC To let your computer program control the eighth bit send this command SC Spacing When you combine proportional spacing with automatic justification you get text that looks like that in professionally typeset books Proportional spacing also looks good without justification A couple of notes though The pro...

Page 142: ...ives another offset com mand Pitch You can print at lo 12 or 16 6 characters per inch with your laser printer s internal fonts The EX 800 emulation default is lo pitch If you want a wider pitch you can put the printer offline for a second and select either 6 5 or 8 1 characters per inch on the front panel To select 12 pitch often called elite you send this command ES0 M After you give this command...

Page 143: ...or one line you send one of these commands SO or ESC SO To turn on and off extended print across more than one line send this command ESC W n If for n you enter an odd number you will start extended print if for n you enter an even number you will stop it and return to normal spacing You can also turn off extended print with the DC4 control code However neither of the last mentioned ways of turnin...

Page 144: ...ifferent ways offsetting either below the characters double strike or to the side emphasized To turn on bold print you send either of these two commands ESC E emphasized print or ES0 G double strike If you send the SC E command you may force the printer to select abold font depending on which font you ate using at the moment You can turn off the bold print again with these commands ESC F turn off ...

Page 145: ...erlining is turned off Master Select The Master Select command is a shortcut you can use to specify which font you want to print with Master Select lets you combine several commands in one half of all the font attributes with one fell swoop Master Select also cancels the features you do not select with it The only restriction is that you can t combine condensed or monospaced pitches with proportio...

Page 146: ...erscript mode and if you make n any odd number you get subscript mode You cancel subscript or superscript mode with this command ESC T How to cancel a line or delete a character When you re printing you sometimes send aline but then change your mind and don t want to print it after all The Cancel control code lets you erase from your printer s memory just the last line you sent If you cancel aline...

Page 147: ...half of the symbol set send this command SC 6 To cancel that setting and again restrict access to those reserved positions send ESC 7 To manage your program s access to the symbols stored in control code slots in the lower half of the symbol set send this command ES0 I n If you make n an odd number your program can access those user defined symbols But if you make n an even number you won t be abl...

Page 148: ...o graphics commands look like To print EX 800 graphics you have to make four decisions l What line spacing do you want to use l How many dots do you want per horizontal inch That is what density do you want l How wide is the page area on which you want to paint your graphics l What dot pattern will your data have Each EX 800 emulation graphics command you send does three things it turns on the gra...

Page 149: ...pically at 7 72 or 8 72 inch Then you send your graphics command and data Finally you reset line spacing and any other text settings as needed How do text settings affect graphics Neither extended print nor double strike bold work in graphics mode The DEL command doesn t work in graphics either And if you re using most significant bit settings for an older kind of computer graphics mode ignores th...

Page 150: ...print graphics at the same densities as computer screens or plottern The command for all four of those last options looks the same In fact you can use this single command for all graphics densities ESC m nl n2 The only difference between this and the other graphics commands is that you specify a particular graphics mode number That s the m in the last column of the table above If you don t use a v...

Page 151: ...mand for nine pin graphics All the graphics commands discussed so far involve eight dot lines but the EX 800 offers this command because its printhead actually has nine pins The EX 800 uses it to draw another line of dots and speed up the printing The nine pin graphics command however does not affect your Star LaserPrinter 8111 sspeed Unlike the eight dot commands this nine dot command needs two b...

Page 152: ...h but if d is an odd number the density will be 120 dots per inch The n2 in this command as with other graphics commands means the number of 256 column groups of data you are sending between 0 and 4 And nl is the number of leftover columns 0 to 255 Why can n2 indicate up to 4 groups when the limit is 3 with eight dot graphics Because you send twice asmany data bytes with nine dot graphics ...

Page 153: ... here as in earlier chapters PROPRINTER COMMANDS Why use the Proprinter emulation This chapter is really only for those people using software specifically designed for IBM printets You do rwrneed to use this Proprinter emulation mode if you have an IBM or IBM compatible computer It all depends on your software As you ve read in earlier chapters most popular software will run in LaserJet III mode o...

Page 154: ... printing ESC U l download character set ESC CONTROLLING THE PRINTER Identical printer control commands The following Proprinter commands are handled the same way in both EX 800 and Proprinter modes If you re not sure how they work see Controlling the Printer in chapter 5 Printer Online XON sometimes written DCl Beeper BEL Putting the printer offline The following printer control command is differ...

Page 155: ...nt print position as the page top send this command ESC 4 What if you need to move the top margin higher than its current setting Here s the trick put the printer offline and back on again then move the print position to your new top margin line and give this set top of page command again MOVING THE PRINT POSITION Identical print positioning commands The Proprinter commands in the following list a...

Page 156: ...and stored in memory with the ESC A command above by using the following command ESC 2 Note that the 2 in this command is the digit two not the ASCII symbol 2 If you have not sent a previous ESC A command this ES0 2 command sets the line spacing to the default setting of 6 lines per inch Special line feed This command produces a one time line feed in your choice of 11216inch increme nts It does no...

Page 157: ...TO CR parameter on the front panel s program menu Setting horizontal tabs You can set up to 28 tab stops at any column ranging from 1 to 137 To set tab stops send this command ESC D nl n2 cNUL Enter the column numbers as nl n2 and so on in ascending order Use the NUL character to end the command a column number less than the preceding one also terminates the command These settings change when you ...

Page 158: ...on normally works with one of two symbol sets called IBM Character Sets 1 and 2 Both are shown in Chapter 8 The differences betweenthem are slight Both contain the normal ASCII and international characters plus standard graphics characters used by many software programs The only important difference is that Character Set 2 has accented vowels and currency symbols instead of control codes in positi...

Page 159: ...ers together to produce one sum the number of characters in your data The nl represents single units and n2 represents 256 unit groups So the number of characters to be sent is nl n2 x 256 Font size and style identical commands The Proprinter offers not only emphasized and near letter quality print modes but also double wide and double high These can be used in any combination The following font s...

Page 160: ...tomatically get 12 point type when you specify ten pitch and IO point type when you specify twelve pitch If you want alarger or smaller font height you can select the height you want on the front panel Style stroke weight and typeface Italic print and boldface can be turned on or off through the front panel as well as through the commands described in chapter 5 The Proprinteremulation uses the Cou...

Page 161: ...n over score if n is 0 zero you turn off overscoring GRAPHICS Identical graphics commands IBM Proprinter emulation graphics are the same as the EX 800 mode graphics except that SC general graphics selection cESC reas sign graphics mode and ES0 nine pin graphics are not available The four commands below work exactly as described at the end of the last chapter Select Single Density Graphics Mode ES0...

Page 162: ...NOTES j e 154 ...

Page 163: ...l set tables We ve summarized all commands in ASCII order here You ll find them organized by function in chapters 4 through 6 The Star LaserPrinter s symbol sets have been included so that you can see exactly what characters are available to you Roman 8 includes standard ASCII and is the default for all emulations but Proprinter IBM Character Set 1 is the default for that one 155 ...

Page 164: ... cESC a n V Position vertical cursor in decipoints ESC d Cancel underlining cESC d n D Select underlining ESC f n S Save and recall cursor position ESC f n X Macro control cESC f n Y Specify macro ID cESC k n G Set line termination cESC k n H Horizontal Motion Index ESC k n S Select font pitch ESC n A Set paper size cESC I n C Vertical Motion Index cESC n D Set line spacing ESC n E Set top margin ...

Page 165: ...ta Select secondary font symbol set Select default secondary font Designate downloaded font as secondary Select secondary font stroke weight Select secondary font pitch Select secondary font spacing Select secondary font style Select secondary font typeface Select secondary font height Download font descriptor Select downloading compression mode Transfer raster graphics data Advanced vertical rast...

Page 166: ...dth of raster graphics 87 Specifies pixel height of raster graphics 87 Select raster graphics resolution 86 Select transparent opaque mode for 93 source images Select transparent opaque mode for patterns 93 Select fill pattern 93 Clear left and right margins 55 Half line feed 64 Reset the printer 52 Enable display function 79 Disable display function 79 Change emulation mode 30 Select orientation ...

Page 167: ...lize 103 input Pl and P2 103 input relative 103 input window 103 line attributes 104 label instruction 104 label origin 105 line type 105 plot absolute 106 pen down 106 polyline encoded 107 page eject 108 polygon mode 108 plot relative 109 pen up 109 pen width 109 fill rectangle absolute 109 raster fill 109 rotate 110 replot 110 fill rectangle relative 110 relative arc three point 111 select altem...

Page 168: ...C2 Cancel condensed print DC3 Set printer off line DC4 Cancel extended print CAN Cancel line DEL Delete last character ES0 SO Select extended print ESC SI Select condensed print cESC SP n Increase character spacing ESC n Select master print mode cESC Cancel MSB control ESC nln2 Move cursor to absolute dot position ESC mnl n2 Select graphics mode SC n Select cancel underlining SC c Select vertical ...

Page 169: ...l tab stops 129 ESC E Emphasized print 136 ES0 F Cancel emphasized print 136 ES0 G Double strike print 136 ESC H Cancel double strike print 136 ESC I n Select control codes or printable character 139 ESC J n Perform one n 216 inch line feed 126 ESC K nl n2 Select normal density graphics 140 ESC L nl n2 Select double density graphis 141 j3C M Select elite pitch 134 ESC N n Set bottom margin 122 ESC...

Page 170: ...l tab 148 SF Form feed 147 CR Carriage return 147 so Select extended print 151 SI Select condensed print 151 DCl Set printer on line 146 DC2 Select pica pitch 152 DC4 Cancel extended print 151 CAN Cancel line 147 ESC i II Select cancel underlining 151 ES0 0 Set line spacing to l 8 inch 147 ESC 1 Set line spacing to 7 72 inch 147 cEsc 2 Execute ESC A definition 148 ESC 3 n Set line spacing to n 216...

Page 171: ...nsity graphics Set bottom margin Clear bottom margin Set printer off line Restore default tab stops Select super subscript mode Cancel super subscript mode Select cancel extended print Select high speed double density graphics Select quadruple density graphics Change emulation mode Select orientation Select paper size Enable printing of all character codes Enable printing of next character Select ...

Page 172: ...be found by reading the entries at the top and left edges of the table For example the character A is in column 4 and row 1 so its hexadecimal character code is 41 This is equivalent 4 x 16 l 65 to decimal 65 the number in the inset Control codes recognized by this printer are indicated by abbreviations inside pointed brackets Sample ID Number Symbol Name Hexadecimal value OD IS0 60 Hexadecimal va...

Page 173: ...1 1 9 9 A HT EM 9 I I I I I a u 1 9 1 25 1 41 1 57 1 73 1 8 LF SUB I 1 rI jT2 0 1 8 1 c 1 _ IN 1 cESC t P 1 1 _ 1t 1 _ 1t 1 t J3 C 1 1 1 121 1 281 1 441 1 601 1 D l l l lu 1 1 13 1 291 1 451 y I 611 1 I 14 I 30 1 46 62 1 78 1 94 1110 1126 F CSI US F 1 y 77 z 1 P 79 1 1 P 1111 a 1127 165 ...

Page 174: ...ID 1 Jumber Symbol Name OB Line Draw ...

Page 175: ...ID Number Symbol Name OD IS0 60 Norwegian 0 1 0 NUL I 1 1 tOCl I 1 2 cDC2 1 I 3 xDC3 167 ...

Page 176: ...ID Number Symbol Name OE Roman Extension 0 12 3 4 5 6 7 xNUL 0 I jT6 1 1 a 1 A 1 A 1 P 1112 6 1 7 1 23 1 391 1 r 8 i 24 i SO i 561 i 72 i f 168 ...

Page 177: ...ID Number Symbol Name OF IS0 25 French 0 12 3 4 5 6 7 0 NUL 0 5 psi P 1 1 p 1112 8 9 9 I Yiy 1 1 I fi B VT SUB J 1 Z 1 j z 1122 ESC l 1 jTi K 1 k lit7 6 1123 169 ...

Page 178: ...ID Number Symbol Name HP German 0 12 3 4 5 6 7 n NUL n I D T 1 1 O 1 16 1 32 1 SE 1 I I I 17 I 33 1 49 1 f55 I7 ...

Page 179: ... Name 01 IS0 15 Italian SBb LAN 8 1 1 1 8 Hrji X hfizxfi 9 HT EM 1 1 pii g l y iEyfEi a LF SUB J Z j z 101 1 261 1 421 1 581 1 741 1 901 11061 1122 I I B C ID l 1 14 1 30 1 46 1 62 1 78 I 94 I110 1126 CSI us F 1 1 171 ...

Page 180: ...ID Number Symbol Name OK JIS ASCII 172 ...

Page 181: ...ID Number Symbol Name ON ECMA 94 Latin 1 ...

Page 182: ...ID Number Symbol Name ON ECMA 94 Latin 1 cont ...

Page 183: ...ID Number Symbol Name 00 OCR A ...

Page 184: ...ID Number Symbol Name OQ Math 8A 0 12 3 4 5 6 7 NUL n l t 1 31 1 191 1 35 1 511 1 671 11151 1 1 7 1 231 1 391 8 F I a 0 0 Ill 1127 176 ...

Page 185: ...ID Number Symbol Name OS IS0 11 Swedish 0 12 3 4 5 6 7 n tNUL O B P B p 6 1 1 7 BEL 1 1 1 7 1 G I W 1 g fi w 1119 1 I 177 ...

Page 186: ...er Symbol Name ou US ASCII 0 12 3 4 5 6 7 0 NUL 1112 1 L 1 18 I 3 oc3 I 1 1 3 1 c 1 s 1 c 1 s 1115 A oc4 A n a t 8 CBS CAN 1 1 fT 120 9 1 9 1 25 1 41 1 57 1 73 1 89 1105 1121 A LF SUB I 1 1 1 J pi Z 1 i z 178 ...

Page 187: ...ID k L_ i _ Number Symbol Name OY Bar Code 39 0 12 3 4 5 6 7 51 1 511 I 67 I a3 II iq 1 1 521 1 1 jiiz jiiz 1 441 1 601 1 761 1 921 11 ...

Page 188: ...ID Number Symbol Name 1D IS0 61 Norwegian 0 12 3 4 5 6 7 0 NUL 0 p I 1 1 pii 1 I 1 P 1112 1 OCl d l A O a_q i z I 101 I 261 I 421 I Sal I 741 I go 4 I 11061 r T CCP I I I I 180 ...

Page 189: ...ID Number Symbol Name I 1E IS0 UK 0 1 2 3 oc3 1 T E 1 3 I c s c s 1 TiT 1 jii oc4 S 4 D T d t 181 ...

Page 190: ...ID Number Symbol Name 1F IS0 69 French 0 12 3 4 5 6 7 4 oc4 1 1 1 4 1 D T dt 1 1 lloo 1116 1 101 1 261 1 421 1 11 1 27 1 43 1 59 1 75 1 s C FF 1 1 1 pii D F E F L 1 1 311 1 471 1 63 182 ...

Page 191: ...ymbol Name 1G IS0 21 German 1 3 4 5 6 7 lob 12 0 NUL I 1 1 0 1 0 8 CBS CAN pi 1 1 8 HjTXEhEXEi 9 CHT EM 1 1 g l y i y x LF SUB T 7 i __ 1 101 1 261 1 27 1 43 1 591 I 13 I2 so RS N E 1 1yT6 1 1 1 n lllo D 1126 183 ...

Page 192: ...R B 0 0 cNUL pl 1 E 2 E 3 Ts 4 T i 5 E 6 pi 7 cBEL F 8 CBS p 9 IiT E A LF I B VT I C FF 1 D CR 1 E so 1 F SI 1 1 2 I 116 OCl I 1 oc2 I 118 OC3 1r z oc4 j z20 x 121 122 I 123 7 P 112 1 q 113 r 114 w 119 3 X 120 Y 4 121 2 4 122 184 ...

Page 193: ...ID Number Symbol Name L _ k__ _ i L L _ 10 OCR B cont 8 9 A B C D E F ...

Page 194: ...ID Number Symbol Name 1Q Math 8B c 1 1 O 1 16 1 321 t 481 1 64 1 I 1 1 1 11 1 17 1 331 1 491 1 65 1 El I 971 A ...

Page 195: ...ID Number Symbol Name 1s HP Spanish 1 1116j RS 1 i N 1 1 n lllo I126 US F fi ...

Page 196: ...ID Number Symbol Name i 1U Legal ...

Page 197: ...ID Number Symbol Name 2K IS0 57 Chinese 8 9 C 1124 ...

Page 198: ...ID Number Symbol Name 2Q Pi Font A 1 2 IF 3 4 6 L lllE 190 ...

Page 199: ...mbol Name 2s IS0 17 Spanish o I 2 3 4 5 6 7 n NUL 07s p pE 1 1 01 1 16 132 148 I 1 1 Oc1 11 A Q a7q 1113 8 1 7 i G W g w pi 187 jiE 119 8 H X hl izX 19 I Y i 9 jiTl 1 1 B 1 24 1 4 3 1 56 9 1 1 9 1 25 1 41 1 5J i 73 1 8 I 1T 191 ...

Page 200: ... 331 1 491 651 riiij r _ 2 cDCZ 11 1 1 jTl 2 I B 1 R b r 1 1 liii 3 tDC3 1 1 j E 3 f2 l c 1 s 1 c 1 s liii I 1 1 m 3 I cl f T i 6 F jv 1 1 JO 1 CBS CAN I 1 1 8 1 H 1 X pii h liisi x liz cHT EMI T E so RS j E j zi30 1 N pi 1 n lllo fi F CSI us 0 1 I I 151 I 311 1 p 53 1 95 0 1111 1127 192 ...

Page 201: ... 1 1 11 I 331 1 49 2 I2 1 18 I 34 1 50 1 66 1 82 1 98 i14 3 cDC3 1 1 1 1 1 R 1 1 1115 I 1 I 1 DC4 1 1 1 1 0 1 1 1 1 1 1 6 1 22 1 38 1 54 1 JO I B6 1104 1118l I 8 gI 9 C 1 D E 1 1 301 1 461 1 621 IF 1 I 151 1 311 I 471 I 631 1 791 1 951 11111 11271 193 ...

Page 202: ... 3s IS0 10 Swedish 0 12 3 4 5 6 7 n NUL O P p 30 1 1112 1161 132 1481 164 1I 7 BEL 1 1 1 7 1 G pi W 1 g liiz w iiT l 3 CBS CAN I 0 Ll V h 0 0 9 cHT EM 1 1 1121 A B C D E F so cRS 1 f7rly z 1 N 1 1 n lllo jiz CSI us I 1 194 ...

Page 203: ... I 4 I I DCl I I I In I I I I A n165vIa197y 2 xDC2 9 2 B R b r 8 fi 9 HT EM 1 1 pi 9 1 I 1 Yiy pz 1105 1121 LF SUB T R 1 101 I 261 1 421 1 581 1 741 1 901 a 11061 1 111 i 271 1 431 1 fl r 751 r s E so RS I IO l 1 N pi 1 n jiE 1126 F cSI lJS 1 1 1 1 0 E 95 0 fi i 127 195 ...

Page 204: ...uguese 0 12 3 4 5 6 7 II NUL o P D m 116 1 32 1 48 1 64 1 80 1 96 1112 1 DCl l i 1 1 1 I A 1 Q pz a 1 q 1113 6 Id T I ESC I I 1 1 12 1 281 1 441 1 60 1 76 1 1 1 131 1 291 1 451 1 611 1 771 1 931 11091 1125 so RS r 14 1 30 F SI us 1 1 196 ...

Page 205: ... 85 Spanish L _ I 0 1 2 3 4 5 6 7 n NUL 1 O 1 1 4 1 32 1 48 2 HT EM 9 l 7 1 1 g l y iliEy LF SUB A pc 1 1 J Z 1 fi 1 j 1106 zE VT ESC t s 11 FF 12 CR 1 13 1 29 1 45 I cRS E so N n 1 j iiyTi 1 fTaq 4 liiill 126 F CSI CtJS 115 1 197 ...

Page 206: ...ol Name 8M Math 8 0 0 w NUL 0 12 3 4 5 6 7 1 I 1 1 17 I 33 I 49 1 65 1 81 I 97 1113 3 4 5 3 1 4 5 6 1 6 1 22 1 38 1 54 1 70 1 86 1102 1118 1 14 1 30 1 46 1 62 1 78 1 94 1110 1126 F CSI US 1 I pii 1 0 0 j iii 1127 198 ...

Page 207: ...ID i L _ Number Symbol Name 8M Math 8 cont 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 9 A I I ...

Page 208: ...ID Number Symbol Name f3Q IBM PC Set 0 12 3 4 5 6 7 ...

Page 209: ...ID Number Symbol Name 8Q IBM PC Set cont 8 9 A B C D E F ...

Page 210: ...7 0 p 1 1 01 1161 1 1 1 I P 1 1112 1 A 0 aTq 211 1 371 1 531 1 691 llDll 1117 I I I I I I 1 1 9 1 251 1 411 1 VT ESC I v r 1 I I I C D 1 131 1 291 1 451 1 611 1 771 1 E 1 14 30 1 46 1 62 1 78 1 94 1110 1126 F SI us IT ITi E0E lT01iiiviT7 IT 202 ...

Page 211: ...ID Number Symbol Name 8U Roman 8 b cont L L L L i L W I 203 ...

Page 212: ...ID Number Symbol Name 8Y Bar Code EAN UPC 204 ...

Page 213: ...L__ b _ _ _ _ ID Number Symbol Name 9Q IBM PC Extension 0 12 3 4 5 6 7 1 1 DC4 1A 205 ...

Page 214: ...1 i t ID Number Symbol Name 99 IBM PC Extension cont I 206 ...

Page 215: ...ID Number Symbol Name 1ou IBM PC US 7 P 112 lq 113 i r 114 s 115 4126 207 ...

Page 216: ...ID Number Symbol Name 1ou IBM PC US cont A I B E F 208 ...

Page 217: ...ID Number Symbol Name 1lQ ECMA 94 7 bit I 37t I 53 I 69 Iloli 1117 6 ...

Page 218: ...ID Number Symbol Name 11U IBM PC Denmark Norway 0 1 2 3 4 5 6 7 8 9 A 0 1 2 3 4 I I 5 6 I I m 109 93 n 94 110 7 1 P 112 q 113 210 ...

Page 219: ...ID Number Symbol Name _ 11u IBM PC Denmark No cont AIB c ID I 4193 f 209 T 194 lr 2ia s t IL 211 195 ...

Page 220: ...t k ID Number Symbol Name 12u PC 850 ...

Page 221: ... L L h _ L L ID Number Symbol Name 12u PC 850 cant I 8 g lAIB E F I 213 ...

Page 222: ...ID Number Symbol Name 15u Pi Font 214 ...

Page 223: ...e 126 HP LaserJet III mode 63 Proprinter mode 147 cartridge fonts 37 38 43 44 centering text EX 800 mode 124 Change Emulation superset command 29 32 channels vertical tabs in 130 character description commands HP LaserJet III mode 85 character graphics EX 800 mode 139 character parameter 14 character position commands HP LaserJet III mode 84 85 character sets Proprinter mode 150 See also symbol se...

Page 224: ... III emulation mode Proprinter emulation mode Epson EX 800 emulation mode See EX 800 emulation mode Escape sequences 8 49 51 combining 50 51 printing in HP LaserJet III mode 78 ETX ACK protocol 18 EX 800 emulation mode 19 20 28 119 144 font control commands 130 139 graphics commands 139 144 page formatting commands 122 125 printer control commands 121 print position commands 125 130 symbol sets 40...

Page 225: ...r mode 153 4m hexadecimal arithmetic 5 6 HEX DUMB parameter 21 high order bit 133 high speed double density graphics EX 800 mode 141 Proprinter mode 153 HMI 26 HP LaserJet III mode 58 horizontal motion commands EX 800 mode 124 horizontal motion index See HMI horizontal print position 58 60 61 horizontal tab commands EX 800 mode 128 129 Proprinter mode 148 149 HP LaserJet III emulation mode 19 49 1...

Page 226: ...7 Master Select command 137 138 memory management 46 47 MODE command 16 monospacing 28 35 most significant bit 133 MS DOS 10 16 47 IN1 networks 47 NEXT button 15 nine pin graphics 143 144 number of copies command HP LaserJet III mode 52 Number of Copies setting 20 lol offset commands EX 800 mode 134 ON LINE button 13 optional fonts 43 orientation See font orientation outline fonts 38 overscoring P...

Page 227: ... 125 130 HP LaserJet III mode 58 66 Proprinter mode 147 149 print spoolers 47 PROGRAM button 15 proportional spacing 28 35 HP LaserJet III mode 73 fonts control commands 150 153 graphics commands 153 page formatting commands 147 printer control commands 146 print position commands 147 148 symbol sets 40 unsupported commands 146 protocol 17 18 pushing print position HP LaserJet III mode 65 66 CQI q...

Page 228: ...9 EX 800 mode 136 HP LaserJet III mode 75 Proprinter mode 152 subscripts 39 EX 800 mode 138 Proprinter mode 151 superscripts 39 EX 800 mode 138 Proprinter mode 151 superset commands 29 32 symbol sets 28 39 41 70 EX 800 mode 131 HP LaserJet III mode 70 Proprinter mode 150 T tab commands EX 800 mode 124 HP LaserJet III mode 60 61 Proprinter mode 148 149 templates 42 TEST PREVIOUS button 13 Text Leng...

Page 229: ... _ El vertical motion index See VMI vertical print position 61 62 vertical tab commands EX 800 mode 129 VMI 26 HP LaserJet III mode 60 El wamiIlgAlarm 20 WYSIWYG 43 XON XOFF protocol 18 221 ...

Page 230: ......

Page 231: ...10170 Atm Product Manager European Market STAR MICRONICS DEUTSCHLAND GMBH WesterbachstraI3e 59 P O Box 940330 D 6000 Frankfurt Main 90 F R of Germany Attn Product Manager U K Market STAR MlCRONlCS U K LTD Star House Peregrine Business Park Gomm Road High Wycombe Bucks HP13 7DL U K Attn Product Manager French Market STAR MICRONICS FRANCE S A R L 25 rue Michael Faraday 78180 Montigny le Btetonneux A...

Page 232: ... ...

Reviews: