How the program works

This program begins by assigning a number of printer commands to BASIC string variables (lines 1000 to 1090). You can find most of these commands near the beginning of chapter 4.

The WIDTH “LPTl :” 255 statement in line 1110 means infinite line width. It prevents the IBM-PC from inserting unwanted carriage returns and line feeds in graphics data.

Actual printing begins in line 1120. Using the preassigned commands, the program prints samples of its different font styles, including a line showing all styles in italics, followed by samples of the print pitches, then some double and quadruple-sized printing.

Next comes the central attraction of the program: a line of text printed fourteen times in expanding and contracting loops to give a barrel effect. The work is done by four printer commands: a command setting the right margin (line 1460); a centering command (line 1480); a command to vary the line spacing (lines 1500 and 1550); and a command to micro-adjust the space between characters (lines 1510 and 1560).

Next the program returns to normal spacing and gives a demonstration of the printer’s word-processing abilities: bold printing, underlining, subscripts, etc.

The row of telephone symbols in the next printed line is created by down- loading two new character patterns, which are printed in place of the character “<“ (character 60). Details can be found in Chapter 5.

The final part of the program uses dot graphics to print an “M&W” logo. The dot pattern of the logo was originally laid out on graph paper, then converted to the data in lines 2570 to 4030 with the help of a calculator. Each number represents eight vertical dots. (See “Graphics commands” in Chapter 4 for details.)

The pattern is printed in three rows, each twenty-four dots high and 240 dots wide. Line 1990 sets the line spacing to 8/60 inch so that the rows will connect vertically. The loop in lines 2000 to 2080 does the printing in three passes of the print head.

94

Page 102
Image 102
Star Micronics LC24-15 user manual How the program works

LC24-15 specifications

Star Micronics LC24-15 is a robust and versatile impact dot matrix printer designed specifically for applications that require high-volume printing with reliability and efficiency. This printer is particularly well-suited for environments such as retail, manufacturing, and logistics, where printing invoices, tickets, and reports is a routine task.

One of the key features of the LC24-15 is its high-speed printing capability. It offers a print speed of up to 550 characters per second, allowing businesses to process large quantities of documents quickly. This efficiency is supported by its 24-pin print head, which delivers crisp and clear text and graphics, making it an excellent choice for applications requiring sharp output.

The LC24-15 supports a variety of paper sizes and types, accommodating multi-part forms and labels effortlessly. It can print on multiple copies simultaneously, making it ideal for creating invoices or shipping documents where duplicates are necessary. The printer's reliable paper handling is complemented by a built-in automatic paper loading system that simplifies the changeover between different paper types.

In terms of connectivity, the LC24-15 offers several ports, including parallel, serial, and USB interfaces, ensuring compatibility with various systems and devices. This flexibility allows businesses to integrate the printer into their existing workflow seamlessly. Additionally, the LC24-15 is designed with user-friendly features, such as easy controls, which facilitate quick setup and operation, reducing downtime and enhancing productivity.

Further enhancing its versatility, the LC24-15 incorporates advanced technologies such as a high-durability ribbon that extends the life of the consumables, thereby lowering operating costs. The printer's energy-efficient design also ensures lower power consumption compared to traditional printers, making it an eco-friendly choice for businesses looking to reduce their environmental impact.

Overall, the Star Micronics LC24-15 stands out in its category with a blend of speed, reliability, and user-friendliness. Whether for point of sale purposes or industrial applications, it provides the necessary features and performance that businesses demand in high-volume printing environments, making it a trusted choice for many organizations.