Oki 80 Series warranty Reminders, Hints

Page 65

Reminders

1.Make sure you have entered column data for the same number of columns as specified by n1 and n2 in your LPRINT statement. If you enter too much or too little data, the results will be garbled.

2.You can print no more than the maximum number of columns for your graphics density mode. If more data is contained in the LPRINT statement, the excess will simply be ignored.

3.Observe the limitations on dot placement in these graphics density modes:

Double density, normal speed (ESC Y) and quadruple density (ESC Z) skip at least one dot position between dots on the same horizontal row. The printer will not print a dot placed closer than this.

Hints

The ways you can use features of BASIC to program graphics are limited only by your imagination and your programming experience. In this section we summarize the tricks used in the examples and suggest a few new ones.

MOD and FIX can be very helpful in calculating the number of columns of graphics data.

You can use the type of FOR-NEXT loop shown in sample 2 in some cases where the dot pattern can be described by a mathematical function; a straight line or a sine wave, for example.

Programming 3 – 35

Image 65
Contents Page Contents Special Note Green and Yellow Earth Blue Neutral Brown Live Setting Up Your Printer Carriage shipping restraint Setting Up 1 Setting Up Paper guides Important The printer must be earthed at all times Line feed Select button Select indicator Setting Up Connecting a Parallel Interface Connecting to your computerLprint this is Line ONE Lprint and this is Line TWO Setting Up 1 Setting the internal DIP switches Language Switch Number Length Inches Changing the DIP-switch settings Optional Accessories Setting Up Operating Your Printer Buttons, levers and indicatorsOperating Your Printer Release and then press the TOF SET button to Operating Your Printer Paper Lock AdjustmentRelease Lever Paper GAPRear Feed Paper Loading Paper loadingBottom Feed Paper Loading Operating Your Printer Operation Loading single sheetsLine mark Cut sheet guide Programming Programming Lprint WHO YOU Gonna CALL? Basic ProgrammingLprint Lprint CHR$49Lprint Hello Lprint CHR$14 Hello Lprinthello 20LPRINTCHR$14HELLOCHR$20HELLOAGAIN If you have a Software Package Programming Carriage return and line feed Programming the printerLprint TAB Lprint CHR$9TAB Again Horizontal TabulationHorizontal Tabbing Line Spacing Fine Line Spacing Top Length SettingChanging Character Size Form FeedSkip Over Perforation Size Command Maximum Characters per line Underlining Superscript and Subscript Enhanced and Emphasized Printing This is back to normalENHANCED/EMPHASIZED Lprint CHR$27CHR$71ENHANCEDLprint CHR$27CHR$69EMPHASIZED Cut Sheet Feeder Character SetsScreen Dumps Bit Image GraphicsProgramming Bit Image Graphics ESC K Number of Columns ESC K ExampleGraphics Data Maximum Graphics Columns Per LineColumn Position Values Putting it Together Programming 3 Programming Ndots = 256 ‘MAXIMUM Possible Combinations REM Sample Lprint Text Printing CHR$27CHR$75 Ndots Combining Text and Graphics Next J Printing Multiline GraphicsREM Maximum Possible Combinations Hints RemindersFor I = 1 to Ndots Read C Lprint CHR$C Next Cancel FunctionPaper Out Near Letter Quality ModeLine Feed HSD Mode Utility ModeProgramming Commands Form Feed Print Mode Standard Code Table selected by ESC Character SetsBlock Graphics 8-Bit Code Table selected by ESC Specifications Electrical Requirements B C D E F Hexadecimal Conversion Table