CHR$(9) is a problem with some computers. Some BASICS convert CHR$(9) to a group of spaces that act like a sort of pseudo-tab.This is fine if the computer and the printer have the same tab settings, but it doesn’t allow us to use our own tab settings on SG-10/15. We can “outsmart” these computer by adding 128 to the ASCII value that we use. Instead of using CHR$(9), use CHR$( 137) for a tab command. Even this trick won’t work for Apple II computers, for they use CHR$(9) for something else entirely. Apple users can get some help in Appendix

J.

Now add the following line to your program to set different horizontal tabs:

15 LPRINT CHR$(27) "D" CHR$(7) CHR$(lb) CHR$(21) CHR$(@)

<ESC > “D” is the command to begin setting horizontal tabs. It must be followed by characters representing the positions that you want the tabs set. In our program we are setting tabs in columns 7, 14, and 21. The CHR$(O) at the end ends the string of tabs. In fact, any character that is not greater than the previous one will stop setting tabs. This means that you must put all your tab values in order, from least to greatest, or they won’t all get set. (It also means that a CHR$(l) is just as good as a CHR$(O) for ending a group of tabs; some computers have trouble sending

CHR$(O).)

When you run the program now it produces this:

one t. WC3three f out-

.--

-

-

--

-

The words are

now closer together,

but

still

evenly

spaced.

 

Turn your printer

off and on again to

reset

the

default

tabs.

.-

 

 

 

 

 

 

nA one-shot tab command

Suppose you need to move to a position across the page, but

 

you only

need to do it once. It doesn’t make much sense

to set

-.

up a tab to use only one time. There must be an easier way-and

 

of course

there is.

 

 

The solution is called a one-time tab and is < ESC > “b”

 

CHR$(n).

This command moves the print head y1columns

to the

-

right. It has the same effect as sending n spaces to the printer.

 

62

Page 70
Image 70
Star Micronics SG-15, SG-10 user manual Chr$O, When you run the program now it produces this

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.