The resulting file should be sent to the printer using the COPY command, eg:

A>COPY LQ.DAT PRN

prior to printing document files. Of course, this command can also be included in a batch file.

PROGRAMMING USING BASIC

As discussed earlier, a version of BASIC is usually supplied with PC- compatible machines. With this BASIC, characters are sent to the printer using the LPRINT command, and control codes are defined using the CHR$O function.

Sample program

The following lines of BASIC give examples of how the printer may be driven from within your own programs:

1000

' Set control codes

'Escapecode

1010

E$=CHR$(27)

1020

D$=E$+"xO"

'Draft quality

1030 L$=E$+"xl"

'Letterquality

1040 F$=E$+"k"

'Selectfont

1050 C$=F$+CHR$(Z)+L$

'SelectCourier

1060 H$=CHR$(V)

'Horizontaltab

1070 P$=E$+"P"

'Pica pitch

1080

' Start printing

 

1090 WIDTH "LPT1:",255

1100 LPRINT E$;"D";CHR$(3);CHR$(27);CHR$(O); 1110 LPRINT C$;"Font settings:"

1120 LPRINT H$;D$;"Draftcharacters,";L$;

1130 LPRINT H$;F$;CHR$(O);"TMSROMN characters," 1140 LPRINT H$;F$;CHR$(l);"TW-Lightcharacters,"; 1150 LPRINT H$;F$;CHR$(2);"Couriercharacters," 1160 LPRINT H$;F$;CHR$(3);"Prestigecharacters,"; 1170 LPRINT H$;F$;CHR$(4);"Scriptcharacters," 1180 LPRINT H$;F$;CHR$(S);"OCR-Bcharacters,"; 1190 LPRINT H$;F$;CHR$(~);"OCRTAcharacters," 1200 LPRINT H$;F$;CHR$(7);"Letter-Gothic,";

1210 LPRINT H$;F$;CHR$(8);"Blippocharacters,"

1220 LPRINT H$;F$;CHR$(V);"Oratorcharacters,";

1230 LPRINT H$;F$;CHR$(lO);"Helvetcharacters,"

1240 LPRINT H$;F$;CHR$(ll);"Optimocharacters,";

1250 LPRINT H$;F$;CHR$(12);"Cinemacharacters,"

1260 LPRINT H$;F$;CHR$(l3);"CODE39";

1270 LPRINT C$;" (CODE 39 characters),"

1280 LPRINT H$;F$;CHR$(14);"Greekcharacters," 1290 LPRINT H$;F$;CHR$(ZO);"SLQTMS ROMN and "; 1300 LPRINT F$;CHR$(21);"SLQTW-Light characters"

Page 104
Image 104
Star Micronics XB24-10, XB24-15 user manual Programming Using Basic, Sample program

XB24-15, XB24-10 specifications

Star Micronics, a leader in the manufacturing of point-of-sale (POS) peripherals, has greatly enhanced the user experience with their XB24-10 and XB24-15 models. Known for their robust functionality and reliability, these printers are specifically designed to meet the demands of modern retail and hospitality environments.

The XB24-10 and XB24-15 models boast a high-speed printing capability, reaching up to 300mm per second. This speed is complemented by a print resolution of 203 DPI, ensuring crisp and clear receipts, labels, and tickets. Users can expect high-quality output at any time, significantly improving workflow efficiency.

Both models support various printing methods and media types, including thermal paper, which eliminates the need for ink, reducing overall costs and maintenance. The printers are equipped with advanced sensor technology that not only detects paper jams but also ensures the correct alignment of paper for precise printing. This feature minimizes downtime and maximizes productivity.

Connectivity is a significant highlight of the XB24-10 and XB24-15. They come with multiple interface options, including USB, Ethernet, and Bluetooth, facilitating seamless integration with existing systems. This versatility allows businesses to adapt and scale their setup as necessary, ensuring compatibility with most POS systems available in the market.

Another key characteristic of these printers is their compact design, which makes them ideal for environments with limited space. Despite their small footprint, they do not compromise on performance or functionality. The durable construction of the XB24-10 and XB24-15 ensures longevity, making them a reliable choice for businesses that value dependability.

In addition to their physical features, Star Micronics has incorporated advanced technologies to enhance user experience. These include easy-to-use features such as an intuitive control panel and straightforward paper loading processes. Additionally, the printers support various customization options, allowing businesses to tailor output formats according to their specific requirements.

Overall, the Star Micronics XB24-10 and XB24-15 models are an excellent choice for organizations looking for efficient, dependable, and versatile printing solutions. With their high-speed performance, reliable connectivity, and compact design, these printers stand out as ideal options for any modern retail or hospitality setup. Their combination of advanced features and user-friendly operation exemplifies Star Micronics’ commitment to delivering top-tier products tailored to the needs of their customers.