EPSONSQ-2000 PrinterOperating Manual
IntroductionThe Epson SQ-2000 Ink Jet Printer gives you the versatility,speed, and graphics capability of a dot matrix printer, togetherwith print qua
The program explained here is an overly simplified plottingprogram. It is not efficient in its use of memory, nor is it very fast.In fact, the BASIC l
Line 250 starts a loop to calculate the points on the curve. SinceBASIC uses radian measure for angles, the value of ANGLE goesfrom 0 to just over 360
After the entire figure is created in the array in memory it issent to the printer. Since we are using a 24-dot graphics optionthe procedure is slight
The program uses three nested FOR-NEXT loops to print thegraphics image. The first loop starts in line 540. It steps throughthe horizontal rows of the
Individual Graphics Options CommandsAs previously mentioned, Epson printers are upward compati-ble. Therefore the SQ-2000 responds to commands that ar
Chapter 7Using the Hex Dump FeatureThe SQ-2000 has the ability to print the hexadecimal numberof each code that it receives, instead of interpreting t
Review the hex dump for missing codes or codes that havebeen changed or added to. Typical things to look for include: an<LF> (ASCII 0AH) added a
Chapter 8Programming HintsThe SQ-2000 printer can be used with many different compu-ters. However, almost all computers have some built-in quirksthat
Apple ComputersThe Apple II computers present two problems when usingthem with a printer like the SQ-2000. First, they can only sendseven bits of data
TRS-80 ComputersThe TRS-80 computers are not without their own set of quirks.The TRS-80 Model I computer, for instance, does not correctlysend ASCII d
About the ManualThis manual contains all the information you need to operatethe SQ-2000. In the first section, you’ll find the necessary detailsto get
The program uses a machine language printer driver routine(line 10), then tells the system where the new driver is located.When you RUN the program, a
2.Write a file on diskette and then use the DOS COPY commandwith the /B option to send it to the printer (i.e. COPYPRNTFILE/B PRN). Open the file for
There is another way of circumventing the ASCII 9. The OUTcommand sends information directly to the printer withoutgoing through the MBASIC operating
Appendix ASQ-2000 Command SummaryThis appendix gives a brief summary of the SQ-2000 com-mands (control codes). While this is a complete list of the co
Vertical Spacing CommandsFunction:Line feedFormat:Symbol<LF>Decimal10Hexadecimal 0ARemarks:Returns the print head to the left margin and advance
Vertical Spacing Commands (continued)Function:Select l/6-inch line spacingFormat:Symbol<ESC> “2”Decimal27 50Hexadecimal 1B 32Remarks:Sets the li
Vertical Spacing Commands (continued)Function:Form FeedFormat:Symbol<FF>Decimal12Hexadecimal 0CRemarks:Advances the paper to the top of the next
Vertical Spacing Commands (continued)Function:Cancel bottom marginFormat:ASCII<ESC>“0”Decimal27 79Hexadecimal 1B 4FRemarks:Sets the bottom margi
Vertical Spacing Commands (continued)Function:Select a vertical tab channelFormat:ASCII<ESC> “/” cDecimal2747 cHexadecimal 1B 2F cRemarks:This c
Horizontal Spacing CommandsFunction:Carriage returnFormat:ASCII<CR>Decimal13Hexadecimal ODRemarks:Returns the print head to the left margin. If
Chapter 110 steps to PrintingSetting up your SQ-2000 is simple and straightforward, even ifyou’ve never used a printer before. In this chapter, you’ll
Horizontal Spacing Commands (continued)Function:Horizontal tabFormat:ASCII<HT>Decimal9Hexadecimal 09Remarks:This code advances the print head to
Horizontal Spacing Commands (continued)Function:Absolute dot positionFormat:ASCII<ESC> “$” n1 n2Decimal2736 n1 n2Hexadecimal 1B 24 n1 n2Remarks:
Print Style CommandsFunction:Select print modeFormat:ASCII<ESC> "x” nDecimal27120 nHexadecimal 1B 78 nRemarks:Selects between the draft mod
Print Style Commands (continued)Function:Cancel elite width printFormat:ASCII<ESC>“P”Decimal27 80Hexadecimal 1B 50Remarks:Cancels elite width pr
Print Style Commands (continued)Function:One-line expanded width printFormat:ASCII<ESC> <SO>Decimal2714Hexadecimal 1B 0ERemarks:This comma
Print Style Commands (continued)Function:Select compressed width printFormat:ASCII<ESC> <SI>Decimal2715Hexadecimal 1BOFFunction:Cancel com
Print Style Commands (continued)Function:Cancel italic printFormat:ASCII<ESC> “5”Decimal2753Hexadecimal 1B 35Remarks:This command cancels italic
Character Set CommandsFunction:User-defined character set on/offFormat:ASCII<ESC> “%” nDecimal2737 nHexadecimal 1B25 nRemarks:This command eithe
Character Set Commands (continued)Function:Select international character setFormat:ASCII<ESC>“R” nDecimal2782 nHexadecimal 1B 52 nRemarks:Selec
Graphics CommandsFunction:Single-density dot graphicsFormat:ASCII<ESC>“K” n1 n2Decimal2775 n1 n2Hexadecimal 1B 4B n1 n2Remarks:datadatadataPrint
12Unpacking the printerPuttingon the paper feed knob3 Installing the ink cartridge4 Setting up the paper guide5Installing the inferface card4
Graphics Commands (continued)Function:High-speed, double-density dot graphicsFormat:ASCII<ESC>“Y" n1 n2dataDecimal2789 n1 n2dataHexadecimal
Graphics Commands (continued)Function:Selected density dot graphicsFormat:ASCII<ESC>“*" n1n2Decimal2742 n1 n2Hexadecimal 1B 2A n1 n2Remarks
Miscellaneous CommandsFunction:Delete lineFormat:ASCII<CAN>Decimal24Hexadecimal 18Remarks:Clears the current line from the printer’s data buffer
Miscellaneous Commands (continued)Function:Select printerFormat:ASCII<DCl>Decimal17Hexadecimal 11Remarks:Returns the SQ-2000 to an on-line state
Miscellaneous Commands (continued)Function:Clear eighth-bitFormat:ASCII<ESC> "="Decimal2761Hexadecimal 1B 3DRemarks:Sets the eighth da
Miscellaneous Commands (continued)Function:BackspaceFormat:ASCII<BS>Decimal8Hexadecimal8Remarks:Moves the print head one character to the left.
Miscellaneous Commands (continued)Function:Unidirectional printing on/offFormat:ASCII<ESC>“U” nDecimal2785 nHexadecimal 1B55 nRemarks:Selects un
Appendix BASCII Code Conversion ChartThis chart can be used to convert between the different namesfor ASCII codes. The codes from 0 to 32 have both de
DecimalHexadecimal332134223523362437253826392740284129422A432B442C452D462E472F4830493150325133523453355436553756385739583A593B603C613D623E633F64406541
Decimal Hexadecimal CharacterDecimal1277F<DEL>14412880<NUL>14512981<SOH>14613082<STX>14713183<ETX>14813284<EOT>149
6Connecting the printer7Customizing the printer8Loading the paper9Self-testing the printerABCDEFGHIJKLMNOPQRSTUVWXYZ[\]BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^CD
DecimalHexadecimal214D6215 D7216D8217D9218 DA219DB220DC221 DD222DE223 DF224E0225El226 E2227E3228 E4229 E5230E6231 E7232E8233E9234EACharacterVWxYz[\]^&
Appendix CWidths of theProportional CharactersThis table lists the widths of the SQ-2000’s proportional char-acters. The values given are in 360ths of
Total widthRight-spaceBodyLeft-spaceFigure C-l. Character Q and its widthsProportional (normal)c-2
Proportional (normal) (continued)C-3
Proportional (normal) (continued)C-4
Proportional (normal) (continued)C-5
Proportional (superscript/subscript)C-6
Proportional (superscript/subscript) (continued)C-7
Proportional (superscript/subscript) (continued)C-8
Appendix DSetting the DIP SwitchesThe SQ-2000 is provided with two sets, or panels, of dualin-line package (DIP) switches.When these switches are pres
Figure 1-1. Continuous paper feedingSelecting the Right LocationTo make sure you’ve picked a satisfactory location for yourSQ-2000, keep the following
Figure D-1. Location of column DIP switch panelThe second set of switches, consisting of two or more groups,is located on the interface card at the ba
Before You Change the Switch SettingsFor DIP switch changes to have effect, you must first turn offthe printer.Be sure to treat the switches gently. A
Table D-l. Column DIP switch setting for printing areaSwitchNumber of WidthSW-1 SW-2 SW-3 columns* (inch)Paper shape and sizeOFFOFF OFF6571/8OFFOFF ON
SW1-1Set this switch to OFF if you want to use the print buffer.This switch controls the 2K-byte print buffer. When it is OFFthe buffer is used. This
Interface DIP switch Panel 2The second interface DIP switch panel has eight switches thatselect print characteristics when the SQ-2000 is turned on. M
Table D-4. International character setsDraft QualityLetter QualityTable D-5. DIP switch settings for international charactersSW2-1SW2-2SW2-3CountyONON
SW2-4Set the form length with this switch. ON is 12 inches; OFF is11 inches.When a form feed character is sent by the computer, the papermoves to the
Appendix EUsing the Optional Tractor UnitWith the optional tractor unit, your printer can use continuouspaper with pin feed holes along the sides. The
Figure E-2. Continuous paper stacked behind printerInstalling the Tractor UnitTo install the removable tractor unit, first pull the printer’sfriction
Installing the Paper SeparatorNow assemble and install the paper separator as shown inFigure E-4, inserting the separator into the slots on the back o
Single-sheet paper guideManualFigure l-2. Printer parts1Unpacking the PrinterCarefully lift the SQ-2000 from the carton. Remove the protec-tive shippi
Figure E-S. Tractor release leversLoading Continuous PaperOnce you have installed the tractor and separator, the printeris ready to accept continuous
Figure E-6, Location of parts for tractor unitThe two wheels, or sprockets, on the tractor unit must bemoved to match the width of the paper you use.
Figure E-7. Feeding the paper into the printerNext, pull the paper up until the top is above the pin-feedholders. Fit the holes on the left side of th
Figure E-8. Top-of-page positionWhen you turn on your SQ-2000 it will remember this top-of-page position and will use it when any program tells it to
Appendix FSpecificationsPrintingPrinting method. . . . . . . . . . . . .On-demand ink-jet, with 24-nozzleprint headPrinting speed... . ...D
PrinterDimensions. . . . . . . . . . . . . . . . . . . .Height: 6.5 inches (165mm)11.7 inches (296mm) withsheet guide7.5 inches (188mm) withoptional t
INDEXAApple II computers 90eighth bit control90, A-21American Standard Code for Information Interchange (ASCII)codes, conversion 31, B-lApplications p
Cleaning 44,46Codecompatibility 31conversion, ASCII B-lproblems 89Column DIP switch panelD-l, D-3Column width F-lCommand codesformat A-lgraphics 70, A
D<DCl>. Select printer A-21<DC2>. Cancel compressed widthA-13<DC3>. Deselect printer A-20<DC4>. Cancel one-line expanded print
EEighth-bit controlcancel A-22clear A-22set A-21Elite print style A-10cancel 36, A-10Emphasized print A-13cancel A-13Environment, specifications for F
Figure 1-4. Installing the paper feed knob2Putting on the Paper Feed KnobSlip the paper feed knob into place as shown above, aligning theknob so that
<ESC> “Q”.Set right marginA-7<ESC> “R”.Select international character setA-16<ESC> “S”.Select superscripts or subscriptsA-14<ESC&
HHexdump 87Horizontal spacing commands A-17Horizontal tabs A-8absolute A-9problems 93<HT>. Horizontal tab A-8IIBM Personal Computer 92Indicators
Line spacingtypes F-ll/6-inch A-3l/8-inch A-2n/180-inch A-3n/60-inch A-2variable A-2Loading paper 16, E-4LQ-1500 User’s Manual A-lMMaintenance 43Margi
PPage lengthsetting D-6setting by inches A-4, D-6setting by lines A-4Paperabsorbency 18feeding E-lloading 15position E-lselection 18separator E-3test
Printerdriver 30interface card 7location 6MTBF F-2parts 7requirements 6self-test 17type 29Printingarea D-3continuous D-8dot-matrix 51line overflow A-2
RRepeat printing A-21Restrictions, draft style user-defined characters56, 60Master Select 36RAM 58, 61ROM 58, D-4SSelectingpaper 18printer location 6S
UUnderline control A-14Unidirectional printing A-24one-line A-23User-defined characters 53calculating data 53character matrix 54control of A-15copying
Using SQ-2000 Commands with BASICMaster Select CodesMost versions of BASIC use the LPRINT command and the CHR$(n) functionto send codes to the printer
Decimal Hexadecimal Abbreviation Control key000<NUL>101<SOH>202<STX>303<ETX>404<EOT>505<ENQ>6 06<ACK>707<
Figure 1-5. The ink cartridge3Installing the Ink CartridgeCaution:Under no circumstances should the power be switched ONwhen the ink cartridge has bee
EPSON AMERICA, INC.LIMITED WARRANTYEpson America, Inc. hereby warrants that it will repair or replace, at its option, anypart of the Epson product wit
Figure 1-6. Installing the single-sheet paperguide4Setting Up the Single-Sheet Paper GuideYou’ll use the single-sheet paper guide to feed individual s
FCC COMPLIANCE STATEMENTFOR AMERICAN USERSThis equipment generates and uses radio frequency energy and if notinstalled and used properly, that is, in
5Figure 1-7. Removing the protective plateInstalling the Interface CardIf your printer already has the interface card installed, go aheadto Step 6. (L
Figure l-9. Snapping the interface card into placeUse both thumbs as shown above to push the card into place.You should feel a slight resistance when
Figure l-10. Connecting the printer and computer6 Connecting the Printer to Your ComputerTo connect the SQ-2000 to your computer, you’ll need either a
olumnDIP switch panelInterface DIP switch panelFigure l-21. Locating the DIP switches7Customizing the PrinterThere are two DIP switch panels on the SQ
Figure l-12. Loading single-sheet paper8Loading Single-Sheet PaperBefore beginning the paper-loading procedure, plug in theSQ-2000 and turn it on.When
Now you’re ready to load paper.1. Press the ON LINE button. The ON LINE and READY lightsgo out, indicating that the printer is off-line-the power is o
ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'abcdefghBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'abcdefghiCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_'abcdefghijDEFGHIJKLMNOPQR
A Word About Selecting PaperWith an ink jet printer, paper absorbency is an important com-ponent for good print quality. Paper which is either too abs
Testing your paperTo test a supply of paper, take the top sheet from the packageand load it in the printer. Have your printer perform its self-testas
10Printing Your First DocumentNow you’re ready to print out your first document.Simply follow the normal procedure for your word processor.Additional
ContentsIntroduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEMO-----From:Don Donnison. PresidentTo:All employeesASyou all know,we have just entered anexcitingnewfield inthe sensingdeviceindustry,“Smart”infrare
Chapter 2OperationThis chapter covers the switches that control the operation ofthe SQ-2000, the panel indicators, and initialization sequences.Power
Figure 2-l. Power switch and control panelControl Panel ButtonsThe control panel buttons are on the front of the printer. Youshould familiarize yourse
FF (Form Feed) buttonThis button is effective only when the SQ-2000 is in the off-line state. When you press the FF button in the off-line state, thep
IndicatorsThe control panel has a number of lights that indicate the stateof the printer. The meanings of the indicators are as follows.Figure 2-3. Co
Paper-end detectorThe printer is equipped with a paper-end detector that warnsyou when the printer runs out of paper. When the printer detectsthat the
InitializationThe SQ-2000 is initialized (i.e., set to a fixed set of conditions) inthe following cases:l When you turn the power switch on.l (When yo
Chapter 3Using the SQ-2000This chapter tells you how to set up your word processor orother applications software to work with the SQ-2000. If you are
What type of interface Parallel or serial (this will depend on theare you using?interface board in the SQ-2000, yourcomputer, and the type of cable y
Computer-to-printer communicationsA computer and printer communicate by means of numberedcodes. If you press the letter A on the keyboard, it is trans
3Using the SQ-2000...Using the SQ-2000 with Word Processors...Using the SQ-2000 with other applicationprograms...
Control codesMost of the time you don’t give this code system a thought. Ifyou press A on the keyboard, the computer sends the code to theprinter and
Translating the ASCII codeYou may also find that different manuals and programs usedifferent terms for the same characters or functions. For example,y
3. Next type:20 LPRINT CHR$(27) "4" "ITALIC PRINTING";4. Now press RETURN, type RUN, and press RETURN again.The SQ-2000 prints:NOR
The “p” 1 in line 40 turns on the proportional printing, and the“p” 0 in line 50 turns it off.9. Next type:60 LPRINT CHR$(27) “E”“EMPHASIZED PRINTING”
This command would select italic proportional print. InBASIC, the same command would look like this:LPRINT CHR$(27) “!” CHR$(66);You can make up your
The Select Print Quality command will select either the letterquality or the draft set. The select print quality command lookslike this:<ESC> “x
Table 3-2. Draft pica print stylesPicaCompressedExpandedCompressedExpandedPrintMasterPrintMasterSelectPrintMasterSampleSelectSampleNumberSampleSampleM
Table 3-3. Draft elite print stylesRegularEmphasizedItalicRegularEmphasizedUnderlinedRegularEmphasizedItalic underlinedRegularEmphasizedElitePrintMast
Table 3-4. Letter quality pica print stylesPica CompressedExpandedCompressedExpandedPrintSampleMasterSelectNumberRegularEmphasizedItalicRegularEmphasi
Table 3-5. Letter quality elite print stylesEliteCompressedExpandedCompressedExpandedMasterPrintMasterMasterMasterSampleSelect SelectPrintSelectPrintN
6DotGraphics...How the SQ-2000 Prints Dot Graphics...Syntax of the Graphics Command...Using Hand-Calculated D
Chapter3Using the SQ-2000This chapter tells you how to set up your word processor orother applications software to work with the SQ-2000. If you arei
What type of interface Parallel or serial (this will depend on theare you using?interface board in the SQ-2000, yourcomputer, and the type of cable yo
Computer-to-printer communicationsA computer and printer communicate by means of numberedcodes. If you press the letter A on the keyboard, it is trans
Control codesMost of the time you don’t give this code system a thought. Ifyou press A on the keyboard, the computer sends the code to theprinter and
Translating the ASCII codeYou may also find that different manuals and programs usedifferent terms for the same characters or functions. For example,y
3. Next type:20 LPRINT CHR$(27) "4" "ITALIC PRINTING";4. Now press RETURN, type RUN, and press RETURN again.The SQ-2000 prints:NOR
The “p” 1 in line 40 turns on the proportional printing, and the“p” 0 in line 50 turns it off.9. Next type:60 LPRINT CHR$(27) “E”“EMPHASIZED PRINTING”
This command would select italic proportional print. InBASIC, the same command would look like this:LPRINT CHR$(27) “!” CHR$(66);You can make up your
The Select Print Quality command will select either the letterquality or the draft set. The select print quality command lookslike this:<ESC> “x
Table 3-2. Draft pica print stylesPicaCompressedExpandedCompressedExpandedPrintMasterMasterSelectPrint SelectPrintMasterSampleNumberSample NumberSamp
AppendixesASQ-2000 Command Summary...Vertical Spacing Commands...Horizontal Spacing Commands...Print Style Commands...
Table 3-3. Draft elite print stylesRegularEmphasizedItalicRegularEmphasizedUnderlinedRegularEmphasizedItalic underlinedRegularEmphasizedElitePrintMast
Table 3-4. Letter quality pica print stylesPica CompressedExpandedCompressedExpandedPrintSampleMasterSelectNumberRegularEmphasizedItalicRegularEmphasi
Table 3-5. Letter quality elite print stylesEliteCompressedExpandedCompressedExpandedMasterPrintMasterMasterMasterSampleSelect SelectPrintSelectPrintN
Chapter 4Printer Care and MaintenanceIn this chapter, you’ll learn about the self-cleaning feature andother operating aspects of the printer. There’s
How Automatic Print Head Cleaning WorksEach time you turn on the printer it goes through a briefcleaning cycle in which cleaning solvent is sprayed th
Figure 4-Z. Buttons for cleaning during printingThis time the print head did something different. It performedthe cleaning action, but first it stoppe
ton. This special cleaning also takes about two minutes.Be careful not to unplug the printer too quickly. As with theother extended cleaning cycle, th
Troubleshooting GuideProblemCheckPrinter will not operate atPrinter is not on-line withall after being turned on. computer.Print head will not moveor
Problem Possible Cause Check To Solve ItSee PageDots still missing afterDirty print head.l Do extended cleaning.45normal cleaning cycle.Ink cartridge
ProblemPossible CausePaper has ink stains orsplotches.Continuous paper feedsirregularly: tension onpaper is uneven.Paper setting method iswrong.Ink ha
Figures1-11-21-31-41-51-61-71-81-9Printer location...Printerparts...Interface card installedInstal
Chapter 5User-Defined CharactersWith the SQ-2000, it is possible to define and print charactersof your own design. This can be useful if you want to d
As the print head moves across the page, electrical impulsescause the appropriate nozzles to release ink against the the paper,causing a single dot to
Figure 5-2 shows two of the character matrixes with the dotsused to print the letter H. All of the SQ-2000’s characters arestored in thesame manner.Dr
Fig. 5-3. User-defined characterNext, you translate the dot pattern you’ve created on paper to anumeric format so you can send the information to the
MSBLSBMSBLSBMSBLSB 00011001 -25:D 01010101 - 85:D2 01010000 - 8O:D3MSB= Most significant bitLSB = Least significant bitFigure 5-4. Data bytes for-he
Note:The entire range of ASCII decimal codes (from 0 to 127) can beused for user-defined characters, but a caution is in order. Char-acters with ASCII
An example character definition should make this clear:10 ‘*** User-defined character: Capital A ***20 ’30 ‘Select draft40 LPRINT CHR$(27) “x’ CHR$(O)
Printing User-Defined CharactersIf you entered the example program above, you defined acapital A and placed it in the RAM location for ASCII decimal 6
Therefore, the SQ-2000 has a command which allows you tocopy all of the standard characters from ROM to the user-definedcharacter set. The command for
Table 5-1. User-defined character design gridsDraftLetter QualityProportionaldl(maximum)91537dO+d1+d2(maximum)1218Draft mode charactersAs you have see
6-66-76-8Map of 24-dot graphics...Data layout for 24-dot graphics...Eight-dot (top) and 24-dot (bottom) versions ofthe den
Unlike draft characters, there are no restrictions on which dotscan print. You can print a solid box of 360 (15x24) dots if youwish. This, coupled wit
Other considerationsKeep in mind that user-defined characters are stored in RAM,which is volatile in nature. Whenever the printer power is turnedoff,
230,240'Select download250 LPRINT CHR$(27) "%" CHR$(1);260'270 'Print character 50 times280FOR I=1 TO 50290LPRINT "=&quo
Figure 5-5. Character design grid for border charactersHere’s how the program works. Line 40 selects letter qualitycharacters; this will be the attrib
Characters that connect verticallyBecause the SQ-2000’s vertical spacing can be changed, youcan also create characters that connect vertically. All yo
410DATA0,0,0,0,0,0,0,0,24,0,0,0,0,0,60,0,0,0,0,0,24420DATA0,0,0,0,0,16,0,0,0,0,0,32,0,0,0,255,255,192430DATA0,0,0,255,252, 0, 0, 0, 0, 0, 0, 0, 0, 0,
Chapter 6Dot GraphicsThe SQ-2000 has all the dot graphics capabilities of the otherEpson printers as well as the ability to produce dot graphicsusing
When the SQ-2000 produces 8-dot graphics options, it printswith every third nozzle.Each byte of data received controls the nozzles for only onevertica
Assigned nozzlevaluesUsablenozzlesFigure 6-2. Values assigned to the print nozzlesIt is not a coincidence that the values that are assigned to thepins
Dots to printNozzle values128 - ¡¡64 - ¡32 - ¡16 - ¡ 8 - ¡4- ¡2 - ¡1 - ¡Sum of nozzle values73226255Figure 6-3. Value of thegraphics data byteSyntax o
Tables2-1 Messages of panel indicator lights...3-1Proportional print styles...3-2 Draft pica print styles...
The SQ-2000 uses the formula n1 + n2 X 256 to determine howmany bytes of graphics data to expect. To determine the values ofn1 and n2, given the numbe
Figure 6-4. Design sketch and sum of nozzle valuesWrite the assigned values of the nozzles next to your designand then total the values for each colum
To break the previous design (Figure 6-4) into three lines of8-dot graphics, triple the number of dots in each column andbreak the design into what wi
Now total the values for each column of dots. These totals arethe values that are sent to the printer as graphics data for theprint design. And here i
Lines 50 and 140 set a FOR-NEXT loop which will includeselecting the graphics option and printing the graphics data foreach of the three (8-bit) lines
Graphics data bytesFirst byteSecond byte Third bytePrint headMSB = Most significant bit LSB = Least significant bitFigure 6-6. Map of 24-dot graphics
Here is the BASIC program adapted for 24-dot graphics.10 WIDTH "LPT1:",25520 LPRINT CHR$(27) "*" CHR$(39) CHR$(42) CHR$(0);30 FOR
Figure 6-8 shows the design modified to take advantage of thehigher resolution of 24-dot graphics. Notice that the curves aresmoother and the edges ar
100 ' *** SQ-2000 Plotter Program: 5-Point Star ***110 '120' Initialize130 '140 DIM BUFFER%(360,45)150 FOR BIT = 0 TO 7 : DOT%(7 -
460 BUFFER% (COLUMN, ROW)= BUFFER% (COLUMN, ROW)OR DOT% (I)470NEXT COUNT480NEXT ANGLE490'500 ' Print curve510'520 OPEN "LPT:1"
Komentáře k této Příručce