Star Micronics SB-15 user manual Changing the page Length

Models: SB-15

1 128
Download 128 pages 39.39 Kb
Page 64
Image 64

I.- !:

The form feed (CHR$( 12)) in line 50 caused the printer to move to the top of a new page before printing the last two lines.

A note to TRS-80 users: CHR$(12) is a problem code for the TRS-80. To send a form feed command to SD-lo/l 5 you must add 128 to it making it CHR$(140). Use CHR$( 140) where we use CHR$(12) in these programs.

CHANGING THE PAGE LENGTH

You may have some computer forms that you wish to use with SD-lo/l 5 that are not 11 inches high. That’s no problem, because you can tell SD-lo/l 5 how high the forms are that you are using. There are two commands for doing this, shown in this table:

 

Table

6-3

 

 

Form

length

commands

 

 

Function

Mode

Control code

 

Set the page length to n lines

STAR

<ESC>

“C” CHR$@)

 

IBM

<ESC>

“c”

CHR!$(n)

Set the page length to n inches

STAR

< ESC >

“c”

CHR$(O) CHR!$(n)

 

IBM

< ESC >

“c”

CHR$(O) CHR$(n)

.-

-

-

-

-

-

-

_-

-

Let’s set up a 7 inch high form length, which is typical of many computer checks. The following program will do it.

10 'Demo variable form lengths.

241LPRINT CHR$(27) "C" CHR$(@) CHR$(7) ; 'Form length inches.

34)LPRINT "Pay to the order of:”

40 LPRINT CHR$(12) ; 'Form feed.

50 LPRINT "Pay to the order of:"

-

7

-

-

This program should print “Pay to the order of:” twice, and

--

 

they should be 7 inches apart. Line 20 sets the form length to 7

..

inches. After line 30 prints, line 40 sends a form feed advance

 

the paper

to the

top of

the next

form.

Line 50 then

prints

its

-

message.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

After you have run this program, turn off the printer and adjust

-

the top of

form

position.

When

you

turn the printer

back

on

the page length will be reset to its normal setting (usually 11

 

inches).

 

 

 

 

 

 

 

-

56

Page 64
Image 64
Star Micronics SB-15 user manual Changing the page Length