Oki 80 Series warranty Ndots, Combining Text and Graphics, Lprint Text Printing CHR$27CHR$75

Page 62

You can vary the length of the graphics line by changing the value of

NDOTS.

Try changing the density in this program and see what happens. Save this program; you will need it later.

Combining Text and Graphics

You can mix normal text printing and graphics on the same line. Here is an example using the image coded in the last section:

05 ‘SAMPLE 3

10LPRINT “TEXT PRINTING ”;CHR$(27);CHR$(75);

CHR$(11);CHR$(0);CHR$(1);CHR$(2);CHR$(4);CHR$(9); CHR$(18);CHR$(36);CHR$(72);CHR$(144);CHR$(32); CHR$(64);CHR$(128); “ TEXT PRINTING AGAIN”

Here is the result:

The printer prints normally until it receives the start graphics code. It then prints the number of graphics columns specified by n1 and n2 and automatically returns to normal printing.

Note: Be careful to enter the amount of graphics data you told the printer to expect; otherwise the results will be garbled

3 – 32 Programming

Image 62
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 to your computer Connecting a Parallel InterfaceLprint 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 Buttons, levers and indicators Operating Your PrinterOperating Your Printer Release and then press the TOF SET button to Operating Your Printer Release Lever AdjustmentPaper Lock Paper GAPPaper loading Rear Feed Paper LoadingBottom Feed Paper Loading Operating Your Printer Loading single sheets OperationLine mark Cut sheet guide Programming Programming Basic Programming Lprint WHO YOU Gonna CALL?Lprint CHR$49 LprintLprint Hello Lprint CHR$14 Hello Lprinthello 20LPRINTCHR$14HELLOCHR$20HELLOAGAIN If you have a Software Package Programming Programming the printer Carriage return and line feedLprint TAB Lprint CHR$9TAB Again Horizontal TabulationHorizontal Tabbing Line Spacing Fine Line Spacing Length Setting TopChanging Character Size Form FeedSkip Over Perforation Size Command Maximum Characters per line Underlining Superscript and Subscript This is back to normal Enhanced and Emphasized PrintingENHANCED/EMPHASIZED Lprint CHR$27CHR$71ENHANCEDLprint CHR$27CHR$69EMPHASIZED Character Sets Cut Sheet FeederBit Image Graphics Screen DumpsProgramming Bit Image Graphics ESC K Number of Columns Example ESC KMaximum Graphics Columns Per Line Graphics DataColumn Position Values Putting it Together Programming 3 Programming REM Sample Ndots = 256 ‘MAXIMUM Possible CombinationsLprint Text Printing CHR$27CHR$75 NdotsCombining Text and Graphics Printing Multiline Graphics Next JREM Maximum Possible Combinations Reminders HintsCancel Function For I = 1 to Ndots Read C Lprint CHR$C NextPaper Out Near Letter Quality ModeLine Feed Utility Mode HSD ModeProgramming Commands Form Feed Print Mode Character Sets Standard Code Table selected by ESCBlock Graphics 8-Bit Code Table selected by ESC Specifications Electrical Requirements Hexadecimal Conversion Table B C D E F