Star Micronics NX-2400 user manual ‘Cancel

Page 47

1000

' Set control codes

 

 

 

1010

E$=CHR$(27)

'Escape code

1020

D$=E$+"xO"

'Draft quality

1030

L$=E$+"xl"

'Letter quality

1040

C$=E$+"kO"+L$

lCourler-chara&ers

1050

P$=ES+"k2"+LS

'Prestlqe characters

1060

Oj=E~+"k3"+L$

'Orator-characters

1070

S$=E$+"k4"+L$

'Script characters

1080

H$=CHR$(9)

'Horizontal tab

1090

PI$=E$+"P"

'Pica pitch

1100

' Start printing

 

 

 

1110

WIDTH

"LPT1:",255

 

 

 

1120

LPRINT

ES:"D":CHRS(3):CHRS(24):CHRS(O);

1130

LPRINT

C$;"Type styles a&i@' ..

1140

LPRINT H$;D$;"Draft characters,";

1150

LPRINT

H$;C$;"Courier characters,"

1160

LPRINT

H$;P$;"Prestige characters,";

1170

LPRINT

H$;O$;"Orator characters,"

1180

LPRINT H$;SQ;"Script characters,"

1190

LPRINT

E$;"4";

'Select Italics

1200

LPRINT

H$;D$;"and ";C$;"italics ";P$;"for "

1210

LPRINT

O$;"all ";S$;"styles."

1220

LPRINT

E$;"5"

'Cancel italics

1230

LPRINT

C$;"Prlnt pitches are:"

1240

LPRINT

H$;PI$;"Plca pitch (10 CPI),";

1250

LPRINT

H$;E$;"M";"Elite pitch (12 CPI),"

1260

LPRINT

H$;E$;"g ";"Semi-condensed pitch (15 CPI),";

1270

LPRINT

H$;PI$;

'Select condensed print

1280

LPRINT

CHR$(lS);

1290

LPRINT

"Condensed pica pitch

(17 CPI),"

1300

LPRINT

H$;E$;"M";"Condensed

elite pitch (20 CPI),";

1310

LPRINT CHR$(lB)

‘Cancel

condensed print

1320

LPRINT

HQ;E$;"pl";

'Select proportional spacing

1330

LPRINT

PI$; "Normal proportional, ";

1340

LPRINT

H$;CHR$(lS);"and condensed proportional.";

1350

LPRINT

CHR$(le);

'Cancel proportional spacing

1360

LPRINT E$;"pO"

1370

LPRINT

 

 

 

 

1380

LPRINT

H$;E$:"wl";"Double-height,";ES;"w0"

1390

LPRINT

H$;E$;"Wl";"Double wldth,";E$;"WO"

1400

LPRINT

H$;CHR$(28);"E";CHRS(2);"Triple width,";

1410

LPRINT

CHR$(28);"E";CHR$(O)

 

1420

LPRINT

H$;E$;"h";CHR$(l);"Double-sized,"

1430

LPRINT

H$;E$;t'h";CHR$(2);'vQuad-sized.";

1440

LPRINT

E$;"h";CHR$(O)

 

 

1450

LPRINT

:LPRINT :LPRINT

 

 

1460

LPRINT

E$;vvQ'U;CHR$(47)'Set right margin

1470

LPRINT

C$;"Various line and character spacings:"

1480

LPRINT

E$;"al"

'Center text

1490

FOR I=1 TO 7

 

 

 

1500

LPRINT

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

'Set line spacing

lSl0 LPRINT

ES;” ";CHR$(I);

'Increase character space

1520 LPRINT

"THE SPACINGS ARE CHANGED"

1530

NEXT I

 

 

 

 

1540 FOR I=7 TO 1 STEP -1

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

39

Image 47
Contents NX-2400 Page HOW to USE this Manual Features of the Printer Quad-sized Tableofcontents With DOS and Basic Download Character Generator Chapter Platen Remove the top cover Setting UPInstall the ribbon cartridge Replace the top cower Install the optional IC cardMount the paper guide Connect the printer to the computerFigure l-7.Mounting the paper guide for single sheets Semiautomatic loadingManual loading Loading and Parking Fanfold Forms 11. Closing the sprocket covers Paper parking Short se/f test Paper unparkingInterface test Long se/f testAdjusting the Printing GAP International character set Print style and pitch selection Page Page OFF Control Panel OPERAllONS Paper Feed switch On Line switchSty/e/Pitch switch Quiet Mode switchSh0ff test paffern On Line switch POWER-UP FunctionsLprint CHR$I Next B8 B9 Switch combination functions of control panel Switch Combination FunctionsTop Of fOff?L Style/Pitch Page Memo Installing Your Software Using WE PR//vERPrinter Command optionsUsing Your Software Setting the DIP SwitchesType sty/e and pitch selection Printercommands Memo HARD-COPYING the Screen MS-DOS and PC-DOS Using the Printer with DOS and BasicName of list device PRN Programming the Printer with DOS CommandsNew file Acopy LQELITE.DAT PRN Aprint README.DOC Programming the Printer with Basic‘Cancel Lprint the Spacings are Changed Next H How the program works IBM Lprint ES= cHR$ocHR$6ocHR$6o Replacing the Ribbon Cleaning the PrinterReplacing the ribbon cartrlctge Replacing the Print HeadConnector cover Fligure 5-2. Replacing the print head Replacing the Battery in the RAM Card If line spacing is twice as wide as expected TroubleshootingIf printing is faint, incomplete, or unclear If a// text is printed on the same lineIf you have problems with horizontal tabulation If you have problems with graphicsIf you have problems with download characters Interface and Emulation Switches and fndicatorsPrinting Mechanism Dot Matrix Size Character SetsType Sty/es and Pitches Paper SpecificationsDimensions and Weight Option Electrical SpecificationsInterface Signals Environmental RequirementsSignal Pin No Name Memo Select draft quality characters Font Control CommandsSelect Italic Characters Select LQ charactersSelect LQ type Style Select ornament characterStart Underlining Select Upright CharactersDouble-strike Printing Stop Overlining Cancel Superscript Or subscriptStop Underlining Start OverliningSelect Character set #2 Select Standard characterSelect IBM character set Select character set #7Select normal zero Enable printing of all character codesEnable printing of a// character codes on next character Select s/ash zeroHigh-density elite pitch Pica pitchElite pitch High-speed elite pitchExpanded printing Cancel condensed printingCancel expanded printing Condensed printingSelect fixed spacing Select master print modeCaucel one-line expanded printing Se/ect proportional spacingReturn to normal Height Increase character SpacingSelect double or quadruple size Print double-height charactersSelect character height, width, and line spacing Select Character WidthSet line spacing to 718 inch Vertical Position CommandsSelect character type and print pitch Set line spacing to 7160 or 7172 inchSet line spacing to n/360 inch Set line spacing to 716 inchSet base unit for line spacing Set line spacing to n/780 or n/216 inchExecute ESC a Select forward feed modeSelect reverse feed mode Define line spacing to n/72 inchSet top of page at current position Perform one n/180-inch or n/2164nch line feedPerform one n/780-inch reverse line feed Feed paper n linesSet bottom margin Cancel top and bottom marginsSet page length to n inches Set top marginSet vertical tab stops every n lines Disable paper-out detectorEnable paper-out detector Set vertical tab stopsSet right margin Select Vertical Tab channelVertical tab Set left marginSet automatic Line feed Cancel automatic line feedSet left and right margins Carriage returnRight justify BackspaceLeff justify Center textHorizontal tab Reset all tab stopsSet horizontal tab stops Set horizontal tab stop every n columnsAbsolute horizontal tab in columns Relative horizontal TabRelative horizontal tab in inches Absolute horizontal tab in inchesPrint 8-bit double-density, double-speed graphics Graphics CommandsPrint 8-bit single-density graphics Print 8-bit double-density graphicsPrint M-bit hex-density graphics Select graphics modeDownload Character Convert graphics densityCopy standard characters from ROM into RAM Select download character set Define DownloadMSB Other Printer Control CommandsDelete Last character Sent ROMLast Line Cancel Quiet PrintRepeat data Quiet PrintStop printing Cancel Immediate PrintSet printer off-line Set printer on-lineManual feed PrintingUnidirectional printing One-line unidirectional printingSet print start position on ASF Reset printerEject Paper Memo Norma/ character AppendixCDOWNLOADSemi-condensed Proportional Super/subscript character Iiao 1600 2440 If ST=5 then CLS Goto 3480 Character Sets Standard Character SET I7’Pj-iii-j IBM Character SET #2 Page IBM CH Aracter SET #I Additional Character SET SfR International Character SetsIndex 111 Lol107 Command Summary ESC ESC p ESC p0 ESC p.‘ 111