So when do you use graphics and when do you use download characters? Practically anything you can do with graphics you can do with download characters, and vice versa. A clever pro-

grammer could actually plot a mathematical curve using download characters or use strings of graphics data as user- defined characters. But why do it the hard way? There are several instances when dot graphics is clearly the best way to ap- proach the problem:

•If the graphics image to be printed is wider than 11 dots or higher than 8 dots.

@Ifan image is to be printed just one time, as opposed to a frequently used “text” character.

*If you want higher resolution (this printer can print as many as 240 dots per inch in dot graphics mode; text mode, which includes download characters, prints 60 dots per inch .)

USING THE DOT GRAPHICS COMMANDS

The command to print normal density (60 dots per inch horizontal; 72 dots per inch vertical) dot graphics uses this for- mat:

(ESC,)“*“CHR$(O) nl n2 ml m2 ...

Just like many of the other codes you have learned, the com- mand starts with an escape sequence ((ES,>“*” in this case). This is followed by CHR$(O), which specifies normal density (the other densities are described later in this chapter). But unlike the other codes there can be any number of graphics data bytes following the command. That’s where nl and n2 come in; they are used to tell the printer how many bytes of graphics data to expect.

m Specifying the number of columns of dots

To figure the values of nl and n2, you’ll need to figure out how wide your graphics image will be (remember that there are 60 columns of dots per inch in normal density). Then comes the fun part: converting one number (the number of columns of dots) into two! Why is it necessary to use two numbers to tell the printer the number of graphics codes to expect? Because the

Page 109
Image 109
Star Micronics NX-10 user manual Using the DOT Graphics Commands

NX-10 specifications

The Star Micronics NX-10 is a cutting-edge receipt printer designed for modern business environments. Known for its sleek design and outstanding performance, the NX-10 is ideal for retail, hospitality, and other service-oriented industries. One of its standout features is its fast printing speed, capable of producing receipts at an impressive rate of 300 mm per second. This speed ensures that customers do not have to wait long, enhancing service efficiency and customer satisfaction.

One of the key technologies integrated into the NX-10 is its advanced connectivity options. The printer supports multiple interfaces, including USB, Ethernet, and Bluetooth, allowing seamless integration with various devices such as tablets, smartphones, and POS systems. This flexibility is particularly beneficial in mobile and cloud-based applications, enabling businesses to adapt to their operational needs easily.

The NX-10 also features innovative paper-saving capabilities, including an automatic paper cutter that minimizes waste and reduces operation costs. The printer utilizes a high-quality thermal printing mechanism that ensures crisp, clear text and graphics, making it perfect for producing promotional receipts or tickets alongside regular transaction printouts.

Another notable characteristic of the Star Micronics NX-10 is its robust construction, built to withstand the demands of high-volume printing environments. The printer is designed for easy maintenance with a straightforward drop-in paper loading system that reduces downtime and increases productivity.

The intuitive design of the NX-10 includes a user-friendly interface, which makes it easy for staff to operate without extensive training. Built-in LED indicators provide useful information about printer status, ensuring users are informed at all times.

With a compact footprint, the NX-10 can be easily integrated into any workspace without taking up too much counter space. Its diverse compatibility with major operating systems, including Windows, iOS, and Android, further emphasizes its versatility, making it an ideal choice for various business scenarios.

In summary, the Star Micronics NX-10 is a state-of-the-art receipt printer combining speed, connectivity, and durability. Its advanced features and technology make it a valuable asset for businesses looking to enhance their operations and deliver exceptional customer experiences.