270 '

280 'Subrout:ine to draw a line from Xl,Yl tt 0 X2,Y2.

290 '

 

 

300

XL = X2 - Xl

: YL = Y2 - Yl

310

NX = ABS(XL*LXFAC) : NY = ABS(YL*LYFAC)

320

IF NX < NY THEN NX = NY

 

330

NS% = INT(NX+l)

 

 

340

DX = XL/NS%

: DY = YL/NS%

350

FOR 1% = 1 TO NS%

 

 

360

Xl = Xl + DX

:Yl=Y

+ DY

370

GOSUB 400

 

 

380

NEXT 1%

 

 

390

RETURN

 

 

408 ’

410'Subroutine to plot a point at Xl,Yl.

42Q

430XX = Xl * LXFAC : YY = Yl ;kLYFAC

440COL% = INT(XX) + 1

450ROW% = INT(YY/6)

460XIT% = INT(YY - ROW% ik6) + 1

470BIT%(COL%,ROW%) = BIT%(COL%,ROW%) OR MASK%(XIT%)

480RETURN

600 ’

61Q ' Subroutine to plot a circle.

624)'

630 RAD = 9

640 xl = 19

: Yl = 10

650 FOR ANG% = 0 TO 360 STEP 10

660

RANG = ANG%"6.28/360

670

X2 = RAD"COS(RANG)+lQ : y2 = Rm"S IN(RANG)+10

680 GOSUB 270

 

690

NEXT ANG%

 

700

RETURN

 

If you are using with the IBM mode, change the following lines to the program given above.

160 LPRINT CHR$(27) "A" CHR$(6) CHR$(27) "2" 250 LPRINT CHR$(27) "A" CHR$(l2) CHR$(27) "2"

nHow the program works

In the program above, we’ve created an array called BIT%, which is dimensioned in line 50. You’ll note that instead of using numeric constants to dimension the array, we used the variables MAXCOL% and MAXROW%. This way, if your computer has enough memory and you want to plot a larger image, all

112

Page 120
Image 120
Star Micronics SG-15, SG-10 user manual 408 ’, 600 ’

SG-10, SG-15 specifications

Star Micronics is a renowned name in the printing industry, widely respected for producing high-quality printing solutions. Among its impressive lineup, the SG-15 and SG-10 series stand out as versatile and powerful solutions, designed to cater to various business needs, especially in the realm of point-of-sale (POS) printing.

The SG-15 and SG-10 models are thermal printers that offer rapid printing speeds, which are critical in high-demand environments such as retail and hospitality. One of the main features of these printers is their compact design, making them easy to fit into various workspace setups without sacrificing performance. Users benefit from lightweight models that do not take up excessive counter space.

Another significant characteristic of these printers is their exceptional print quality. With a resolution of 203 dpi (dots per inch), the SG-15 and SG-10 produce crisp, clear receipts and labels, enhancing customer communication and satisfaction. This high-quality output is complemented by the printers' ability to handle a variety of media, including thermal paper and labels, making them versatile tools for different printing tasks.

Connectivity options are abundant with these models, as they support multiple interfaces, including USB, Ethernet, and Bluetooth. This flexibility allows businesses to integrate the printers seamlessly into existing systems, thus optimizing workflow efficiency. The versatility in connectivity also facilitates mobile printing solutions, enabling businesses to engage customers in real-time.

Durability is another hallmark of the SG-15 and SG-10 series. Built to withstand the rigors of busy environments, these printers feature robust construction that reduces the likelihood of breakdowns or maintenance issues. The long-term reliability not only ensures consistent performance but also contributes to reduced operational costs.

Moreover, the user-friendly design of the SG-15 and SG-10 makes them accessible for staff at all levels. Easy-to-navigate controls and intuitive setup processes minimize training time and enhance operational efficiency. Additionally, these printers come equipped with energy-efficient components, promoting sustainability in business practices.

In summary, the Star Micronics SG-15 and SG-10 thermal printers embody a blend of speed, quality, connectivity, durability, and ease of use. They are tailored to meet the diverse needs of modern businesses, making them an excellent choice for any organization looking to improve its printing solutions. With features that prioritize performance and user experience, these printers are a valuable addition to any POS system.