Oki 80 Series Manual Download Page 48

3 – 18 Programming

If you want to print subscript characters (characters appearing below the
normal print line), use the ESC S1 command before entering the characters.
To return to printing on the normal print line, use the ESC T command.

Superscript and subscript characters are printed in normal characters.

10 LPRINT “This is ”;
20 LPRINT CHR$(27);“S”;CHR$(0);“superscript”
30 LPRINT CHR$(27);“T”;“This is ”;
40 LPRINT CHR$(27);“S”;CHR$(1);“subscript”
50 LPRINT CHR$(27);“T”;“This is back to normal.”

This is 

superscript

This is 

subscript

This is back to normal

Enhanced and Emphasized Printing

ASCII

Decimal

Hexadecimal

ESC E

27 69

1B 45

ESC  F

27 70

1B 46

ESC G

27 71

1B 47

ESC H

27 72

1B 48

Summary of Contents for 80 Series

Page 1: ...mberthatifyoubuyanyotherribbonyourwarrantymaybe invalidated Purchasing inferior ribbons really does not make sense They do not last as long What is more they are prone to shredding which can cause dam...

Page 2: ...uttons Levers and Indicators 2 1 Paper Loading 2 6 Rear Feed Paper Loading 2 6 Bottom Feed Paper Loading 2 7 Loading Single Sheets 2 9 Chapter 3 Programming 3 1 Basic Programming 3 3 If you have a Sof...

Page 3: ...responsibilityfortheresultsoferrorsbeyonditscontrol OKIalsocannot guarantee that changes in software and equipment made by other manufacturers andreferredtointhisbook willnotaffecttheapplicability of...

Page 4: ...ire coloured GREEN AND YELLOW must be connected to the terminal in the plug marked with the letter E or by the safety earth symbol or coloured GREEN or GREEN AND YELLOW The wire coloured BROWN must be...

Page 5: ...need These items include 1 Do not plug in your printer until the following steps have been completed 2 Remove the access cover by inserting your hand in the top cover slot see figure below and liftin...

Page 6: ...traint that keeps the print head in place Column indicator bar Print head Carriage shipping restraint 4 Gently slide the print head to the middle of the printer or to the left hand side so that it is...

Page 7: ...henlower the top of the cartridge where the plastic ribbon shield is located over the print head The tabs on both sides of the cartridge should align perfectly with the inserts on the print head plate...

Page 8: ...sides of the print head and lift up 7 Thethree positionblueleverlocatedtotheleftoftheribboncartridge is used to adjust the print head gap for single or multi part paper When single part paper or two...

Page 9: ...a self test to make sure your new printer is working correctly Insert a piece of computer paper with sprocket holes or a single sheet of typing paper into the printer as you would insert it in a typew...

Page 10: ...er a Insertthethreetabsintheedgeoftheaccesscoverintotheholes on the top front edge of the printer b Lower the access cover on to the printer 12 Grasp the paper and pull it through the opening in the a...

Page 11: ...FEED button 17 The following test pattern will be printed beginning with a printer revision number that is followed by a rolling character pattern LINE FEED FORM FEED TOF SET SELECT ALARM POWER PITCH...

Page 12: ...ter the printer has shown that it is functioning correctly it is ready to be connected to your computer using an interface cable If you do not have one see your computer dealer or if you have the equi...

Page 13: ...interface cable to connect your computer to your printer Before you connect the cable make sure both printer and computer power is OFF Connecting a Parallel Interface 1 Insert the 36 pin plug into th...

Page 14: ...ninthe printer 5 Type LPRINT EVERYTHING S OKAY andthenruntheprogram 6 Your printer should print this at 10 characters per inch Note If the printer did not print make sure you entered the program corre...

Page 15: ...Setting Up 1 11 If it is overprinted make a small adjustment to the printer switch settings so that a line feed is automatically inserted at the end of a line See Page 1 12 for details...

Page 16: ...mall cover on the top of the printer They allow the selection of a specific language and to make the printer meet the requirements of your computer This section describes the switches and their factor...

Page 17: ...12 Danish 2 OFF ON OFF ON OFF 12 Dutch ON ON OFF ON OFF 12 Swedish 2 OFF OFF ON ON OFF 12 Swedish 3 ON OFF ON ON OFF 12 Swedish 4 OFF ON ON ON OFF 12 Turkish ON ON ON ON OFF 12 Swiss 1 OFF OFF OFF OF...

Page 18: ...document by setting it to the ON position Switch7selectstheslashedorunslashedzerofont Theslashedzerofont should be chosen when it is important to distinguish between a zero and a capital O The switch...

Page 19: ...Setting Up 1 15 Optional Accessories Roll paper stand Tractor feed unit Access cover Acoustic cover Tractor feed option kit...

Page 20: ...1 16 Setting Up Front sheet support Cut sheetfeederunit Front sheet guide Paper test lever Left paper guide Rear sheet support Cut Sheet Feeder RS 232C serial board Interface Equipment...

Page 21: ...ected POWER Indicator Indicates that the printer power is turned ON SELECT Button Pressing this button after the printer power is ON places the printer in deselect mode In this mode the computer canno...

Page 22: ...down the SELECT and LINE FEED buttons will generate a rolling ASCII character display Pressing the SELECT button stops this test A sample is shown below TOF SET Button To set the first line position o...

Page 23: ...ton NLQ Near Letter Quality print can be selected with this button by holding it down whilst switching on the printer supply ALARM Indicator Lights when paper runs out unless the alarm disablecommandh...

Page 24: ...2 4 Operating Your Printer...

Page 25: ...ality selected NLQ Utility or High Speed Draft The levers on the printer allow you to adjust the paper PAPER LOCK Open slide forwards for inserting paper and adjusting paper and when using tractor fed...

Page 26: ...nce between the sprocket pins at the ends of the platen to correspond to the holes in the paper See Page 2 16 for full details Fan fold paper can be fed from the rear of the printer or if a slotted pr...

Page 27: ...per Loading 1 Placetheprinteronaslottedprinterstand carefullyaligningtheslot in the stand with the opening in the base of the printer 2 Place the box of paper under the printer stand 3 Remove the acce...

Page 28: ...ting Your Printer 6 Slide the paper up until it appears in front of the platen 7 Lower the column indicator bar 8 Use the platen knob to advance the paper to the first printing line 9 Replace the acce...

Page 29: ...accessories before using the paper separator Operation 1 Place the paper release lever in its closed rear position 2 Switch the printer OFF LINE press the SELECT switch 3 Close the paper bail lever To...

Page 30: ...he cut sheet guide until it reaches the pinch roller Be sure to keep the paper inside the platen ends otherwise the built in sprocket pins will tear it 7 Open the paper bail lever by pulling it toward...

Page 31: ...ial printing features First here are the available printing options Carriage Return If your computer does not automatically add a carriage return at the end of a line you may add one to your program U...

Page 32: ...racters in a bolder type commonly used for titles and subtitles Underlining Underlines a word or group of words Character Sets Choose from two different character sets IBM character set one or two is...

Page 33: ...osoft s BASIC programming language the principles are similar for other languages The examples demonstratehowtoselectafewofyourprinter sspecialfeaturesandtry them Later the features are explained in d...

Page 34: ...n write a program this way LPRINT CHR 79 CHR 75 CHR 73 This is obviously a tedious way to write but you need to understand the concept when you want to use certain commands Keep in mind that there is...

Page 35: ...am This is what you should get ASCII code SO is non printable so you must use the decimal or hexadecimal form of the command within a CHR statement Nothing in quotes will work Like most commands that...

Page 36: ...printing 10 characters per inch you have to put in CHR 20 like this 10 LPRINT HELLO 20LPRINTCHR 14 HELLO CHR 20 ___HELLOAGAIN Note _ means space That is what you should get To avoid any unpleasant sur...

Page 37: ...going to be using from a list called a menu Several software packagesactuallylistnamesofprintersonthemenu sothatallyouneed to do is select the IBM Graphic printer from that list the software package...

Page 38: ...PRINT before each command Not all versions of BASIC are the same 3 Press RUN then RETURN or CR 4 Without turning the printer off enter your software package Whatyouhavejusttypedcausesthecomputertosend...

Page 39: ...ing commands command is A variation of the same CHR 27 CHR 49 command is CHR H1B CHR H31 Carriage return and line feed ASCII Decimal Hexadecimal CR 13 0D Carriage return tells the printer to print the...

Page 40: ...r when power is first switched ON To eliminate the tab settings use the ESC D 0 command Horizontal Tabbing ASCII Decimal Hexadecimal HT 9 09 Advances to the next tab position which occurs every 8th ch...

Page 41: ...spacing in multiples of 1 72 or 1 126 inch This affects space between lines only not the height of the characters ASCII Decimal Hexadecimal ESC 0 27 48 1B 30 The ESC 0 command sets line spacing to 1 8...

Page 42: ...outointerruptthesetlinespacingandreset thelinespacingforasinglelinetoamultipleof1 216inch Youcanselect a maximum space setting of 255 216 inches which is the equivalent of a 1 39 216 inches line space...

Page 43: ...ing ASCII Decimal Hexadecimal ESC C n in lines 27 67 1 127 1B 43 01 7F ESC C NUL n in inches 27 67 0 1 22 1B 43 00 01 16 The printer page length set is user selectable in either inch or line increment...

Page 44: ...lue between 1 and 127 the printer automatically advances to the top margin of the next page when there is only 1 inch left at the bottomofapage Thiscommandisignoredifthevalueofnismorethan page length...

Page 45: ...line as an SO command TheDC4commandcancelsdoublewidthprintingbeforethe endofaline Thisenablesyoutoemphasizespecificwordsorcharacters withinasingleline andtoautomaticallyreturntoyourpreselectedtype siz...

Page 46: ...5 CHR 14 Double condensed Underlining ASCII Decimal Hexadecimal ESC 1 27 45 49 1B 2D 31 n odd ESC 27 45 48 1B 2D 30 n even Use the ESC command to start underlining a word or group of words Use the ESC...

Page 47: ...t underlined but this is underlined This line is not underlined Superscript and Subscript ASCII Decimal Hexadecimal ESC S 0 27 83 48 1B 53 30 ESC S 1 27 83 49 1B 53 31 ESC T 27 84 1B 54 If you want to...

Page 48: ...rscript and subscript characters are printed in normal characters 10 LPRINT This is 20 LPRINT CHR 27 S CHR 0 superscript 30 LPRINT CHR 27 T This is 40 LPRINT CHR 27 S CHR 1 subscript 50 LPRINT CHR 27...

Page 49: ...a bolder image for titles subtitles or emphasizing word s within a document To return to the normal character set from emphasized mode enter the ESC F command To return to the normal character set fr...

Page 50: ...INT command it inserts a sheet of paper and startsprinting EachtimetheprinterreceivestheCut SheetFeederinsert command it ejects the printed sheet then inserts a new sheet Use the Cut Sheet Feeder ejec...

Page 51: ...images will be printed without distortion If you have IBM DOS you can use a software package or BASIC commands such as CIRCLE LINE and DRAW to create an image on the display screen your software or BA...

Page 52: ...r which dots to print in each column First we discuss each part separately then put them together There are four modes of bit image graphics available with the IBM compatibleMICROLINE Theydifferinhori...

Page 53: ...print on that row in the next column ESC Z 27 90 1B 5A hex Quadruple Density 240 x 72 DPI Max dots line 1920 This mode prints dot columns that overlap by about 3 4 dot width It can print only every o...

Page 54: ...rinter how many columns to print For ease of reference call these numbers n1 and n2 To find the value of these numbers determine how many columns you want to print then divide it by 256 The value of n...

Page 55: ...and n2 very easy MOD divides two numbers and returns the integer remainder FIX removes the fractional portion of a numeric expression without rounding it off See your BASIC Manual for details Using th...

Page 56: ...aphics keep in mind that the columns will overlap and remember any restrictions that may apply Then divide the image into strips of eight rows Each row will be programmed as a separate LPRINT statemen...

Page 57: ...C1 etc then the complete statement looks like this LPRINT CHR 27 CHR 75 CHR 144 CHR 1 CHR C1 CHR C2 CHR C400 column data col 1 col 400 The format is the same for all density modes the only differences...

Page 58: ...nes As drawn on graph paper they look like this Step 1 Begin with LPRINT and the start graphics code for single density graphics 10 LPRINT CHR 27 CHR 75 Step 2 Count the columns in the image There are...

Page 59: ...2 CHR 144 CHR 32 CHR 64 CHR 128 Step 4 Now run the program The result should look like this If it does not check your arithmetic and typing then try again Now go back and change the start graphics cod...

Page 60: ...R 89 CHR 11 CHR 0 CHR 1 CHR 2 CHR 4 CHR 9 CHR 18 CHR 36 CHR 72 CHR 144 CHR 32 CHR 64 CHR 128 Aside from printing speed there should be no difference because the pattern does not include adjacent dots...

Page 61: ...A word of explanation about line 20 The IBM Personal Computer is set for a maximum line length of 80 characters so it adds a Carriage Return and Line Feed after the 80th character Because the data for...

Page 62: ...image coded in the last section 05 SAMPLE 3 10 LPRINT TEXT PRINTING CHR 27 CHR 75 CHR 11 CHR 0 CHR 1 CHR 2 CHR 4 CHR 9 CHR 18 CHR 36 CHR 72 CHR 144 CHR 32 CHR 64 CHR 128 TEXT PRINTING AGAIN Here is t...

Page 63: ...ment to be repeated four times Here is the result Notice that there is a space between each pair of lines This is because the standard distance from the top of one line to the top of the next is 1 6 i...

Page 64: ...REM MAXIMUM POSSIBLE COMBINATIONS 30 LPRINT CHR 27 CHR 65 CHR 8 35 LPRINT CHR 27 CHR 50 40 FOR J 1 TO 4 45 LPRINT CHR 27 CHR 75 CHR NDOTS MOD 256 CHR FIX NDOTS 256 50 REM START GRAPHICS 256 COLUMNS 5...

Page 65: ...ty modes Double density normal speed ESC Y and quadruple density ESC Z skip at least one dot position between dots on the same horizontal row The printer will not print a dot placed closer than this H...

Page 66: ...I 100 DATA 2 4 8 16 32 This method makes it easier to check and modify your data Using a variable such as NDOTS helps to make sure the amount of data in the program matches the number of columns you...

Page 67: ...low enter the ESC 8 command If you want to be signaled by the printer when paper is low or out this is the default setting use the ESC 8 command Near Letter Quality Mode ASCII Decimal Hexadecimal ESC...

Page 68: ...ill automatically print in utility mode In this mode the printer prints bidirectionally This printing method increases the printer s speed so it prints 200 characters per second HSD Mode ASCII Decimal...

Page 69: ...width SO 14 0E Turns off double width DC4 20 14 before end of line Turns double width ESC W 1 27 87 49 1B 57 31 on permanently Turns double width ESC W 0 27 87 48 1B 57 30 off permanently Clear Buffer...

Page 70: ...then advances paper to the top of the next page Graphics Prints data in single density ESC K 27 75 1B 4B bit image graphics mode 60 x 72 DPI Prints data in half speed ESC L 27 76 1B 4C double density...

Page 71: ...r Out Alarm Paper indicator lights ESC 9 27 57 1B 39 whenever paper is low or out Printer will not respond to ESC 8 27 56 1B 38 a paper out condition Printer will continue printing even if paper is ou...

Page 72: ...5 E F G H I J K L M N Z Y U V W X e f g h i u v w x y z j k l m n o BS HT LF FF CR SO SI ESC VT CAN 9 10 12 13 14 15 7 8 2 5 6 9 8 7 6 5 E F G H I J K L M N Z Y U V W X e f g h i u v w x y z j k l m...

Page 73: ...1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F SP DC1 DC2 DC3 DC4 BS CAN HT LF VT FF CR SO SI 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N P Q R S T U V W X Y Z a b c d e f g h i j k...

Page 74: ...rd characters 9 x 17 NLQ 9 x 9 UTL 7 x 9 HSD Characters per line 80 standard size 132 condensed size 3 Media Number of sheets Original 3 copies Paper feed Top with paper separator Top with optional cu...

Page 75: ...densation Storage Temperature 40 to 70 C Humidity 5 to 95 RH without condensation 7 Electrical Requirements Voltage 230 VAC 6 14 240 VAC 10 Frequency 50 60 Hz 2 8 Noise Level 58 dBA 9 Physical Specifi...

Page 76: ...86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 1...

Reviews: