Star Micronics Delta user manual Ascii

Page 32

20

Delta User’s Manual

10)Since hex needs 16 digits, it uses the numbers 0 through 9 and then it uses the letters A through F for digits. The ASCII code for the letter “A” is 41 in HEX.

Of course, most of the time we don’t even need to think about this code system. Our computers are smart enough to know that when we press the “A” key on our keyboard we want to print the letter “A”. The computer takes care of all the rest.

But there are a number of ASCII codes that don’t have keys on the keyboard. The most important of these codes are the codes that have ASCII values below 32. These codes control many of Delta’s functions. Even though there aren’t keys for these codes, most keyboards can send these codes. It’s done by holding down

the “control” key (many times marked CTRL) and simultaneously - pressing a letter key. The particular letter key that is pressed deter- mines what code is sent. Control and A sends ASCII code 1, con-

trol and B sends ASCII code 2, and so on. Because of the way they are created, these codes are often referred to as “control-A” etc.

So there are four common ways of referring to the same set of codes: the character or name of the code, the decimal ASCII value, the hexadecimal ASCII value, and the “control-” value.

For example, the code that causes Delta to advance the paper one line is ASCII 10 (decimal). This code is commonly referred to by all the following names:

line feed

-

its name

(LF)

 

-

the abbreviation of its name

ASCII

10

-

its decimal value

ASCII

OAH

-

its hex value (the H signifies hex)

CHR$(lO)

-

the way it’s used in BASIC

control-J

-

the way you send it from a keyboard.

There’s a chart in Appendix M that shows these side-by-side so that you can convert back and forth.

The reason that we are telling you all this about ASCII codes is that people are not very consistent about how they describe ASCII codes. We are going to help you use Delta with commercial software, but we don’t know what its documentation is going to call the various codes. So if you know all the different things that the codes might be called it will be easier to figure out what it is trying to tell you.

Now, armed with the knowledge of what to look for, you can delve into the manuals of your commercial software and dig out the secrets of how to send “control codes” to your printer. When

Image 32
Contents Delta User’s Manual @Copyright 1983 Star Micronics, Inc Special Message to the New Owner Delta User’s Manual Table of Contents Creating Your Own Characters Special Features Delta PrinterFormatting Your Output Getting It All Together Maintenance Appendix F Atari 400/800 Computers Appendix D TRS-60 ComputersAppendix E Osborne, Kaypro and CP/M Computers Appendix DIP Switch Settings Appendix Character Style ChartsAppendix Commodore VIC-20 Computers AppendixConsumer Response 309 DIP Switch Quick Reference Warranty Inside Back Cover Command Quick ReferenceDelta User’s Manual Serial busy protocols XONlXOFF Protocol ACK protocol IndexTables Xii Delta User’s Manual Closer Look Paper separator and paper guide used with roll paper Roll paper holder and holder shaft used only with rollPage Parallel interface connector the place where you hook Paper Selection and LoadingLoading single sheets Delta User’s Manual Loading roll paper Delta User’s Manual Closer Look Loading sprocket-feed paperOpen the tractor covers to expose the sprocket teeth Bottom feeding Delta-15 Figure I-10.Delta ready to run with sprocket-feed paperDelta User’s Manual Ribbon Installation Self-Test Closer Look Delta User’s Manual Getting Started With Delta Using Commercial Sojtware Getting Started With Delta First, some terminologyAscii Using Delta with SuperCalc Using Delta with word processorsPage Using this book without learning Basic Getting Started With DeltaEstablishing communications ListOPEN4,4 CMD4 List PRINT#4 CLOSE4 NEW Lprint Testing RUN NEWNEW LPRINTCHR$7 RUN CHR$ functionNEW LPRINTCHR$27CHR$52 2$3LPRINT Testing RUN Escape CodeSome problem codes ESC$=CHR$27 l@ LPRINTESC$Delta User’s Manual Printing Text With Delta ChapterPrint pitch Commands @ Lprint this is Elite Pitch PrintingLprint Condensedis the Narrowestpitch Lprint NOW WE are Back to Pica Pitch PrintingLPRINTCHR$27W CHR$@NOW Were Back to Normal Expanded printI s H153Print Commands LPRINTCHR$14EXPANDEDELITE PitchLprint NOW WE are Back to Unexpandedpica Printing Making Delta print darkerPrint EmDhasis a Commands Lprint this is DOUBLE-STRIKEPRINTINGItalic Commands Italic printingUnderJining Superscripts and subscriptsMixing modes Superscript Subscript commandsNEW Lprint Thisline Uses Build Instructionset LPRINTRESET.ALL$ Lprintelites Elite LPRINTPICA$ Pica LPRINTRESET.ALL$ ReturnREGULAR.HEADING$= STRING$27,*+ Regular ReturnItalics = False LPRINTROMAN$ Repeatwith ItalicsIf Pica = False then LPRINTFOUR.DOT$ GOTO3590 If ENLARGED= True then LprintHere is the chart it produces Control Code FunctionPage Delta User’s Manual Line Spacing and Forms Control Changing Line Spacing This is what you will get Line spacing Commands Run the program again. Now the results will look like thisNEW Lprint Linenumber Moving down the page without a carriage returnForms Controls Form feedForm length commands Changing the Page LengthTop and bottom margin commands Lprint PAY to the OrderLineSpacingandFormsControl51 Summary Control codeESC Delta User’s Manual Formatting Your Output NEW Lprint ONECHR$9TWOCHR$9THREE CHR$9 Four One-shot tab command Left and right margin commands5B END 13@ Lprint ReturnLPRINTCHR$27P CHR$l@ CHR$Z@CHR$@ One-shot vertical tab command Control Code FunctionLChapter Now hear thisBell commands Initializing DeltaSome Miscellaneous commands Putting Delta to sleepPrinting to the bottom of the sheet Unidirectional printingPrinting Direction Lprint LprintNext NEW Lprint Backspacedoes not Lprint I===WORK Lprint Deletedoes notLprint Work Backspace and deleteBlock graphics characters and special symbols Eighth Bit controls3pl Lprint I II=11CHR$ICHR$9 4pI Next I Lprint Next J Macro control code International Character set commandsInternational character sets Macro instruction Commands Startdefinition Macro Lprint CHR$18 PicaOFF Regularprint END MacroFunction Bell Disable bell Enable bell Reset Off-lineOn-line Control codeDelta User’s Manual Creating Your Own Characters Dot Matrix Printing 000 0 eeeS&fee Defining Your Own Characters Rule I Download characters are seven dots highRule 2 Dots cannot overlap 8WRONG Add up each column of dotsCreating YourOwn Characters Download character definition command Assigning a value to your characterCharacter designs for the four card suits Next M Figure Y-10. The attribute byte n2 for our heart characterPrinting Download Characters LPRINTCHR$27CHR$36CHR$@ DEFINTA-Z Read X LPRINTCHR$X Next JNext Lprint Return DECKCARD=X Next Card ReturnLPRINTSUIT$SUIT Download Character dejfinition commands Proportkmal Characters12@ Lprint CHR$BITS 138 Next Only Difference Is the way They Are Accessed Creating Your Own Characters Lprint DEF.DOWN.CHAR$ NUMERAL.BOT$NUM= CHR$ASCII+ 2 + CHR$ASCII+ Mixing Print Modes with Download Characters Utility Program Gosub 950RETURN Gosub 660 Return REM **** Display Menu for Edit Mode Summary