The form feed (CHR$(J2)) 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 SG-lo/15 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 SG- 10/l 5 that are not 11 inches high. That’s no problem, because you can tell SG-lo/15 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

1Mode

1Control code

 

Setthepagelengthtonlines STAR

<ESC >

“c”

CHR!f@)

 

IBM

< ESC >

“C” CHR!$(n)

Setthe page lengthton inches

STAR

< ESC >

“c” CHR!$(O)CHR!$(n)

 

IBM

-=cESC >

“c”

CHR!iXO)CHR!%j

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

18 'Demo variable form lengths.

20 LPRINT CHR$(27) "C" CHR$(Q) CHR$(7) ; 'Form length 7

inches.- 341LPRINT "Pay to the order of:"

441LPRINT CHRS(12) ; 'Form feed.

50 LPRINT "Pay to the order of:"

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 SG-15, SG-10 user manual Changing the page Length

SG-10, SG-15 specifications

Star Micronics is a renowned name in the printing industry, widely respected for producing high-quality printing solutions. Among its impressive lineup, the SG-15 and SG-10 series stand out as versatile and powerful solutions, designed to cater to various business needs, especially in the realm of point-of-sale (POS) printing.

The SG-15 and SG-10 models are thermal printers that offer rapid printing speeds, which are critical in high-demand environments such as retail and hospitality. One of the main features of these printers is their compact design, making them easy to fit into various workspace setups without sacrificing performance. Users benefit from lightweight models that do not take up excessive counter space.

Another significant characteristic of these printers is their exceptional print quality. With a resolution of 203 dpi (dots per inch), the SG-15 and SG-10 produce crisp, clear receipts and labels, enhancing customer communication and satisfaction. This high-quality output is complemented by the printers' ability to handle a variety of media, including thermal paper and labels, making them versatile tools for different printing tasks.

Connectivity options are abundant with these models, as they support multiple interfaces, including USB, Ethernet, and Bluetooth. This flexibility allows businesses to integrate the printers seamlessly into existing systems, thus optimizing workflow efficiency. The versatility in connectivity also facilitates mobile printing solutions, enabling businesses to engage customers in real-time.

Durability is another hallmark of the SG-15 and SG-10 series. Built to withstand the rigors of busy environments, these printers feature robust construction that reduces the likelihood of breakdowns or maintenance issues. The long-term reliability not only ensures consistent performance but also contributes to reduced operational costs.

Moreover, the user-friendly design of the SG-15 and SG-10 makes them accessible for staff at all levels. Easy-to-navigate controls and intuitive setup processes minimize training time and enhance operational efficiency. Additionally, these printers come equipped with energy-efficient components, promoting sustainability in business practices.

In summary, the Star Micronics SG-15 and SG-10 thermal printers embody a blend of speed, quality, connectivity, durability, and ease of use. They are tailored to meet the diverse needs of modern businesses, making them an excellent choice for any organization looking to improve its printing solutions. With features that prioritize performance and user experience, these printers are a valuable addition to any POS system.