Line 40 changes the line spacing. The command (ESC)“A” CHR$(n) changes the line spacing to n/72 of an inch. The loop that is started in line 20 increases the value of n (the variable I in this program) each time it is executed. So the line spacing in- creases as the program continues. Line 30 just shortcuts the loop when I= 13, since BASIC won’t let us send CHR$(13) without adding an unwanted CHR$(lO) to it. Finally, the (ESC) “2” in line 80 resets the line spacing to 6 lines per inch. This is a shortcut that is the same as (ESC)“A”CHR$(12).

When you run this program with the DIP switch l-6 off (IBM mode), you cannot get the printout as shown above.

The (ESC) “A” CHR$(n) command in IBM mode only defines the line spacing as n/72 of an inch; the (ESC) “2” command changes the line spacing to the amount defined by the previous (ESC) “A”.

So: you need to change the following lines to the previous pro- gram as shown below for the IBM mode:

40LPRINT CHR$(27>;"A";CHR$(I);CHR$(27);w2';

80LPRINT CHR$(27); "A";CHR$(12);CHR$(27);"2"

You may wonder why they picked l/72 of an inch as the incre- ment for the line spacing command. There’s a good reason: the dots that the printer makes are l/72 inch apart. So this means that you can vary the line spacing in increments as fine as one

dot - unless you want finer spacing, like one third dot spac- ing.

The (ESC)“3”CHR$(n) command sets the line spacing in in- crements of l/216 inch. Change line 40 in your program so it is like this:

40 LPRINT CHR$(27);"3";CHR$(I);

. and run the program again. Now the results will look like this:

Page 51
Image 51
Star Micronics NX-10 user manual Lprint CHR$27ACHR$ICHR$27w2

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.