Oki 80 Series warranty Basic Programming, Lprint WHO YOU Gonna CALL?

Page 33

The printer will not do certain things unless you specifically tell it to. You instruct the printer to change the way it prints by sending special codes through your computer. When you write a program, you include the codes for printing features you want in your program. In BASIC, for example, include them in an LPRINT statement.

Basic Programming

If you are familiar with programming, skip this section and go straight to the control codes.

Although we wrote our examples in Microsoft’s BASIC programming language, the principles are similar for other languages. The examples demonstrate how to select a few of your printer’s special features and try them. Later the features are explained in detail.

An LPRINT statement, or print statement, tells the computer to send information to the printer. Take a minute to check your BASIC manual to find out what form this takes in your version of BASIC.

Make sure your printer is ready to print (ribbon in, paper loaded, power ON, SEL indicator lit) and experiment a little with the print commands.

Type the following one-line program:

LPRINT “WHO YOU GONNA CALL?”

2.Press RUN, then RETURN or CR.

3.The printer will then print:

WHO YOU GONNA CALL?

Programming 3 – 3

Image 33
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 sheets Line 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 printerHorizontal Tabulation Horizontal TabbingLprint TAB Lprint CHR$9TAB Again Line Spacing Fine Line Spacing Top Length SettingForm Feed Skip Over PerforationChanging Character Size Size Command Maximum Characters per line Underlining Superscript and Subscript Enhanced and Emphasized Printing This is back to normalLprint CHR$27CHR$71ENHANCED Lprint CHR$27CHR$69EMPHASIZEDENHANCED/EMPHASIZED 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 SampleNdots Combining Text and GraphicsLprint Text Printing CHR$27CHR$75 Next J Printing Multiline GraphicsREM Maximum Possible Combinations Hints RemindersFor I = 1 to Ndots Read C Lprint CHR$C Next Cancel FunctionNear Letter Quality Mode Line FeedPaper Out 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