Star Micronics XR-1500, XR-1000 user manual Lprint E$

Page 100

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

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

The row of car symbols in the next printed line is created by downloading two new character patterns, which are printed in place of the character “<” (character 60).

The final part of the program uses dot graphics to print an “SW” logo. The dot pattern of the logo was originally laid out on graph paper, then converted to the data in lines 4180 to 4490 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 four rows, each eight dots high and 65 dots wide. Lines 1830 to 1900 read the dot data into a string array variable named LOGO$. Line 1910 sets the line spacing to 8/72 inch so that the rows will connect vertically. The loop in lines 1920 to 2020 does the printing in four passes of the print head.

This program can also be run in IBM mode if you change a few of the lines as shown below to allow for differences in some of the commands. You will get a cylinder instead of a barrel effect, becuase the IBM mode does not have any command to micro-adjust the character spacing.

Modifications

for IBM mode:

 

 

 

 

1070

P$=CHR$(18)

'Pica pitch

 

 

1250

LPRINT

H$;E$;":";"Elite pitch

(12 CPI),"

 

 

1290

' LPRINT H$;E$;"M";"Condensed

elite pitch

(20 CPI),";

1420

LPRINT

CHR$(28);"Q";CHR$(47)

'Set right

margin

1460

LPRINT E$;"A";CHR$(I);E$; "2"; 'Set line spacing

1470

' LPRINT E$;"

";CHR$(I);

'Increase character

space

1510

LPRINT

E$;"A";CHR$(I);E$;"2";

'Set line spacing

1520

' LPRINT E$;"

";CHR$(I);

'Increase character

space

1570

' LPRINT E$;"

";CHR$(O);

'Normal character

space

1580

LPRINT

:LPRINT CHR$(28);"Q";CHR$(80)

 

 

1610

LPRINT

H$;CHR$(28);"4";"Italics";CHR$(28);"5";", 'I;

1910

LPRINT

E$;"A";CHR$(8);E$;"2";

'Set a/72"

line spacing

3030

LPRINT E$;"xO";CHR$(28);":";CHR$(O);CHR$(O);CHR$(O);

3150

LPRINT

CHR$(28); "&";CHR$(O);CHR$(6O);CHR$(60);

94

Image 100
Contents XR-1000 Above sto~emm~ applies only to printers marketed in the USA Congratulations Organization of this ManualDIP Switches Table of Contents Troubleshooting Maintenance Adjusting the Printing GAPReplacing the Print Head Front Panel Diagnostic Test Modes IBM Character SET #2UNPACKING, Setting UP and Connection ChapterUser’s manual Setting up Print head shield Connection DIP switch cover Loading Paper Cut-sheet paperFanfold paper continuous stationery Page Once the paper has been loaded Indicators Controls and IndicatorsControls Pitch Setting Pitch Pane/ LockQuiet Mode Font Panel LockForm feed Paper HandlingPaper parking Short tear-off function Test and Maintenance Settings Buffer CLEAR/RESETMicro Feed Setting UP the Memory Switches Iiii Command Menu Menu OptionsPrint Menu Paper MenuForms Menu Factory settings KNICourier DRW Offj WFIEmulations Numerical RepresentationCommand Codes and Escape Sequences Example command Both CESCCBS CodesFont style and character set control codes ESCSelect font Both Select character table BothBiIliIIy ValueSelect primary character set Both Select secondary character set BothSelect International Character Set Esc 06hPrint continuously from the Ail Characters Chart Print a single character from the Ail Character Chart IBM1Select/cancel Undefined control code area Standard ES0\ 1Bh5ChFont pitch control codes Set pica pitch printing Standard EscSet pica pitch printing 1Set elite pitch printing BothSet condensed print mode 1Cancel condensed print mode StandardSelect/cancel Proportional printing Both EscsiSpecial print mode control’codes 1Set or cancel pica proportional pitch1Select/cancel expanded printing Select one-line expanded printingCancel one-line expanded print Select Master print modeSelect print mode Select emphasized Print modeCancel emphasized print mode CESCF 1Bh46h 2770Cancel double-strike printing Both CEsc Select/cancel Underline BothSelect/cancel Overline Both 1Select double-strike printing BothCancel superscript/subscript Both Line space control codesSelect superscript/subscript Both Line feed BothSet line spacing to l/8 inch Both Set line spacing to 7/72 inch1Set line spacing to l/6 inch Standard 1Set line spacing to n/216 inch BothSet line spacing to W72 inch 1Define line spacing l/72 inch incrementsExecute ES&A definition One-time line feed in l/216 inch incrementsForm feed control codes Reverse one-time line feed in l/216 inch increments BothSet vertical print position in lines Both CEsc Form feedBoth tReverse feed to top of form Set page length in inchesSet page length in lines ESC Cnulb CIDMargins and vertical tab setting control codes Set top-of-form1Move to next vertical tab position Both 1Set vertical tab positions Both CEscSet VFU vertical tabs Select vertical form unit VFU channelSet relative vertical tab positions Cancel top and bottom margins Both Set top margin Both1Set bottom margin Both Set left and right margins BothHorizontal print position control codes Set left margin BothSet right margin Carriage return BothSet/cancel Automatic line feed Move to next horizontal tab1Set/clear Horizontal tabs Both ES6Restore tabs to default settings Set relative horizontal tab positions BothSet horizontal print position Both ESC CtP 1Bh 66h 30h 102Produce character space Standard 1Set iustification Mode BothSelect Next horizontal print position by dot Character control codes Move print head EscCopy standard ROM font into RAM CNUI2tandard1Define draft download characters Both 1Define draft download characters 27 61 cd 012~ 20 em Cal a2 cdl ... cdlll1st Select download/standard character set GraphicsCESC%n 1Bh25hn Select &dot normal density Both Redefine bit-image mode Double-density Both1Set MSB to Both Miscellaneous codesSet MSB to 1Cancel MSB control Both Cancel last character Standard1Select zero style Both Backspace BothCancel last line Both Set printer off-lineSet printer on line Both Deselect printer 10 carriage model onlyDisable paper-out detection Both Enable paper-out detection BothDeselect printer 15 carriage model only 1Sound buzzer BothEnable unidirectional printing for one line only Both Enable/disable Bidirectional printing BothExecute macro instruction Enable/disable large character printing Both Enable/disable double-height modeSelect character height, width, line spaclng Both ASF Automatic Sheet Feeder control Both Set/cancel Immediate modeCESC 1Bh 19h Ascii command sequences Select fontSelect/cancel Italic printBold prlnt Both Print BothSelect color printing with color option only Both Control ASFMemo Chapter OFF Troubleshooting and Maintenance TroubleshootingPower supply PrintingIf the print is faint, or uneven, check the following Check Paper feeding Check Check Adjusting the Printing GAP MaintenanceRibbon Replacement Now the cover turn the You now to Reusing printer Replacing the Print Head Print head bolts Short test mode Front Panel Diagnostic and Test ModesPage Text test mode Hexadecimal dump mode Lprint CHR$IBidirectional test/adjustment mode Repeat the process for all print modes Memo Installing Application Software with Your Printer ChapterCPI ProportionalSetting UP the Printer from the DOS Prompt Graphics Hard CopyProgramming Using Basic Sample programLprint LOGO$ROW=LOGO$ROW+CHR$GD How the program works Lprint E$ Swsi SW SW Patches necessary to use the Basic interpreter Color displayPrint pins Line spacing SpeedPrint direction UnidirectionalBit image dot-matrix Pacr width15model CopiesPower supply Weight 15 modelOptions 100 Character Sets ’l-igStandard Character SET #I XJh-lx-l 241 401 661 721 Eel I1041 120101I Standard Character SET #2 SET ##2 1108Rml Lliil 1361 m R168i IIBM Character SET #I Additional Character SET 1NTERNATlONAL Character Sets Denmark/NorwayMemo IDI Graphics direction Graphics dumpQuiet mode, 11,13,19 RAM usage Ribbon installation, 4 RS232 interfaceUnidirectional printing Unpacking Vertical pitch Zero style

XR-1000, XR-1500 specifications

Star Micronics has established itself as a leading provider of premium printing solutions, an assertion further bolstered by its innovative models, the XR-1000 and XR-1500. These thermal receipt printers are designed to meet the diverse needs of retail, hospitality, and various business environments, combining robust features, state-of-the-art technologies, and user-friendly characteristics.

The Star Micronics XR-1000 is engineered for high-performance printing, boasting a print speed of up to 200 mm per second. It ensures swift transaction processing, which is essential in high-volume retail settings. The XR-1500, an advanced counterpart, raises the bar with a higher print resolution, delivering crisp and clear receipts that enhance customer experience. Both models utilize direct thermal printing technology, eliminating the need for ink or toner and significantly reducing operational costs.

One of the standout features common to both models is their compact design, making them suitable for environments with limited space. Their lightweight structure also allows for easy relocation, which is beneficial for businesses with dynamic layouts. Furthermore, the printers are equipped with easy paper loading mechanisms that maximize efficiency and minimize downtime.

Connectivity options are another highlight of the XR-1000 and XR-1500. Both models support a variety of interfaces, including USB, Bluetooth, and Ethernet, allowing seamless integration with existing systems. This flexibility ensures that businesses can adapt to evolving technological requirements without significant overhauls.

Moreover, the XR-1000 and XR-1500 printers are compatible with various point-of-sale (POS) systems and software applications, providing reliable performance across different platforms. Their resilience is notable as well, featuring durable casing and components designed to withstand the rigors of daily use.

The models also incorporate advanced power-saving features, crucial for businesses looking to reduce energy costs without sacrificing performance. Their intuitive LED indicators provide real-time feedback, allowing users to quickly assess the status of the printer.

In summary, the Star Micronics XR-1000 and XR-1500 deliver a high-quality printing experience, characterized by speed, reliability, and flexibility. With their advanced technologies and thoughtful design, these printers stand out as optimal choices for businesses seeking efficiency and quality in their printing solutions. Whether in a bustling retail environment or a busy restaurant, it is clear that these printers offer the solutions that modern businesses need.