Oki 80 Series warranty For I = 1 to Ndots Read C Lprint CHR$C Next, Cancel Function

Page 66

To simplify typing the column data, you can enter the values in a DATA statement, then use a READ statement in a loop to print it. Here is a model:

.

.

.

30 LPRINT CHR$(27);CHR$(75);CHR$(NDOTS MOD 256); CHR$(FIX(NDOTS/256);

40FOR I = 1 TO NDOTS

50READ C

60LPRINT CHR$(C):

70NEXT I

.

.

.

100DATA 2, 4, 8, 16, 32...........

This method makes it easier to check and modify your data. Using a variable such as NDOTS helps to make sure the amount of data in the program matches the number of columns you have specified.

Cancel Function

ASCII

Decimal

Hexadecimal

CAN

24

18

 

 

 

The cancel code clears the printer buffer. All control codes remain in effect until you give a specific command to change them or turn the printer off, with the exception of SO (double-width), which is cancelled.

3 – 36 Programming

Image 66
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 feedHorizontal Tabulation Horizontal TabbingLprint TAB Lprint CHR$9TAB Again Line Spacing Fine Line Spacing Length Setting TopForm Feed Skip Over PerforationChanging Character Size Size Command Maximum Characters per line Underlining Superscript and Subscript This is back to normal Enhanced and Emphasized PrintingLprint CHR$27CHR$71ENHANCED Lprint CHR$27CHR$69EMPHASIZEDENHANCED/EMPHASIZED 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 CombinationsNdots Combining Text and GraphicsLprint Text Printing CHR$27CHR$75 Printing Multiline Graphics Next JREM Maximum Possible Combinations Reminders HintsCancel Function For I = 1 to Ndots Read C Lprint CHR$C NextNear Letter Quality Mode Line FeedPaper Out 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