Star Micronics NB-15 user manual Next

Page 74

66

Table 6-7

One-time horzontal tabs

Function

Control cde

One-time horizontal tab of n spaces

Absolute horizontal tab Relative horizontal tab

(ESC) “f” 0 CHR$(n)

(ESC) “$” CHR$(nl) CHR$(nZ)

(ESC) “\” CHR$(nl) CHR$(nZ:

The first command in Table 6-7 moves the print head n col- umns to the right. It has the same effect as sending n spaces to the printer.

-

The absolute horizontal tab command moves the print head to - a specified position on the page. The position that you want the

print head to move to (measured from the left margin) is specified by the values of nl and nZ in l/60-inch units using the formula nl + n2 X 256.

Try this program to see how this works.

10 ’ Demo of absolute horizontal tabs

20 FOR I=60 TO 70 STEP 2

30 LPRINT I ; “+++tt” ;

40LPRINT CHR$(27);“$“;CHR$(I);CHR$(O);

50LPRINT “Horizontal tab.”

60NEXT I

70END

In this program, the print head is positioned before the “H” in “Horizontal” is printed.

60 +++++ Horizontal tab.

62 +++++ Horizontal tab.

64 +++++ Horizontal tab.

66 +++++ Horizontal tab.

68 +++++ Horizontal tab.

70 +++++ Horizontal tab.

The relative horizontal tab command can move the print head right from the current position. The formula for calculating how much the print head moves is the same as in the absolute horizontal tab command. However, the units by which the print head actually moves vary with the print style you are using. Table 6-8 shows the various options.

Image 74
Contents USER’S MANUAli Tatement Special Message to the New Owner Table of Contents Chapter Controlling with Basic CHR$Chapter Special Features of the Printer Functions of the Connector Signals Appendix G Serial Interface Specifications TRS-80 BasicSetting UP Your Printer Page Tion and movement for both removing and replacing the cover Page Print head Printer Slide the I/F board into the slot Page Getting to Know Your Printer Page Page Page Selecting and Loading Paper ‘igure 2-4. Raise the paper guide for loading single sheets You can insert a sheet of paper by using the release lever To align paper that is not in straight Sprocket cover You can raise While trrnirrgon the power Self-test DIP switch 2-2 on Efgh!jklmnopqr¶tuvwxyz~ ?lSS&‘ TOF During normal operation Connecting the Printer Page Memo Using Commercial Software Page Ascii Using Your Printer with Word Processors Page Memo Controlling With Basic PR#O ListNEW Lprint Testing RUN ESC W Lprint CHR$27WCHR$l Lprint CHR$27WCHR$49 Lprint CHRS27Wl Memo Printing Text Lprint CHR$27 xl ESC Lprint Overlined OFF ESCLprint Undelined Boldface on Escso When you run this program you should get this Demonstration Condensed Here’s what you should get from this program OFF Elite mint Summary notes Memo Formatting Text This is what you will get This Line Spacing is SET to Run the program again. Now the results will look like this Here is what your printer will produce Line Number Lprint CHRS12IOI ESCNCHR$n Lprint this is LINE1 Next This is Line Return TWO Three Four ONE This command sets the horizontal tab to every eight columns Next Try thisprogram tosee how this works Lprint CHR$11 First TAB Lprint CHR$llFIFTH TAB CHR$O Lprint 2ND TAB of CHANNEL’ Memo Special Features Printer Lprint CHR$7 ESCVCHR$O Here is what this program will print Lprint CHR$27il Printing direction commands Function Control code Next Lprint Lprint Eighth bit controls Next J 129 LPRINTCHR$27 LPRINTCHR$27= Lprintlprint Double This is Double Sized Printing Next Lprint Lprint CHR$IPage Creating Your OWN Characters Print Matrix Defining Your OWN Characters Usethisgridoronesimilartoittodefineyourown draftcharacters Wrong 128 Assigningavalueofcharacterspace Characterdesignsforthetwographsymbols Page Read MM LPRINTCHR$MM Next M Next N Lprint LPRINTCHR$I Next Lprint Lprint CHR$I NextLprint LPRINTGERMANYCHR$9 Lprintscales Data 1, 9, 2, 31,253,64, 32, 1,128,80 Read MM Lprint CHR$MM Next MMO+ml +m2 105 106