nControl codes

SG-lo/15 uses many of the non-printing ASCII codes for control codes. These codes perform a function rather than printing a character. Let’s try an easy one right now:

NEW

10 LPRINT CHR$(7)

RUN

Where did that noise come from? That’s SG-10/15’s bell. We will learn more about it in Chapter 8. We just wanted to illustrate a code that causes SG-lo/15 to perform a function.

W The escape code

There’s one ASCII code that we are going to be using more than all the rest. This is ASCII 27, which is called escape. In BASIC it is CHR$(27). With all of SG- lO/ 15’s advanced features, there weren’t enough single ASCII codes to access all of them. So escape is used to start sequences of control codes that open a wider range of functions to us.

While you must call this code CHR$(27) in BASIC, we are going to refer to it as < ESC > in this book. This will make it much easier to recognize when we use it.

A typical escape code sequence starts with < ESC > which is followed by one or more CHR$ codes. As an example, the escape code sequence to turn on emphasized print is:

<ESC> CHRS(69)

In a program, this would look like this:

NEW

10 LPRINT CHR$(27) CHR$(69);

20 LPRINT "TESTING"

RUN

Try this program. It will print the word TESTING in em- phasized print.

..

-

-

Page 40
Image 40
Star Micronics SG-15, SG-10 user manual A program, this would look like 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.