49

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 ad- just the top of form position. When you turn the printer back on the page length will reset to its normal setting (usually 11 in- ches).

TOP AND BOTTOM MARGINS

Many programs that you use a printer don’t keep track of where they are printing on the page. This causes a problem when you get to the bottom of a page because these programs just keep on printing, right over the perforation. This makes it very hard to read, especially if a line happens to fall right on the perforation. And if you separate the pages then you are really in trouble.

Of course your printer has a solution to this predicament. This printer can keep track of the position on the page, and advance the paper so that you won’t print too near the perforation. There are two commands to do this. One controls the space at the top of the page and the other controls the space at the bottom of the page. The control codes are given in the following table.

Table

4-5

Top and bottom margin commands

Function

Control code

Set top margin to n lines

(ESC)“r”CHR$(n)

Set bottom margin to n lines

(ESC )“N”CHR$(n)

Cancel top and bottom margins

(ESC)“O”

In both cases the value of n tells your printer how many lines to skip, although there is a slight difference in the usage. When

you set the top margin with (ESC)“r”CHR$(n), the value of n tells the printer what line to start printing on. When you set the

bottom margin with (ESC)“N”CHR$(n), the value of n tells the printer how many blank lines should be left at the bottom of the

page.

Let’s try a simple application to see how these margins work. Enter this program, which will print 150 lines without top and bottom margins.

Page 56
Image 56
Star Micronics NX-10 user manual TOP and Bottom Margins

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.