Home
commodore - computerarchive.org - computer files preserving archive
Contents
1. k A Friendly Introduction to Your MPS 802 Dot Matrix Printer E E E i 2 ANA sl i LE E 2 j i 3 N S LEM I pi In CNA y CM EU T LE 8 F a ig A i i 1 a1 ii a s P ay Mis i AETI i i 4 amp Boma Vh un Wr MARE 1 sas TET i r A ds P INFORMATION TO USER WARNING THIS EQUIPMENT HAS BEEN CERTIFIED TO COMPLY WITH THE LIMITS FOR A CLASS B COMPUTING DEVICE PURSUANT TO SUB PART J OF PART 15 OF FCC RULES ONLY PERIPHERALS COMPUTER INPUT OUTPUT DEVICES TERMINALS PRINTERS ETC CERTIFIED TO COMPLY WITH THE CLASS B LIMITS MAY BE ATTACHED TO THIS COMPUTER OPERATION WITH NON CERTIFIED PERIPHERALS IS LIKELY TO RESULT IN INTERFERENCE TO RADIO AND TV RECEPTION THIS EQUIPMENT GENERATES AND USES RADIO FREQUENCY ENERGY AND IF NOT INSTALLED PROPERLY THAT IS IN STRICT ACCORDANCE WITH THE MANUFACTURER S INSTRUCTIONS MAY CAUSE INTER FERENCE TO RADIO AND TELEVISION RECEPTION IT HAS BEEN TYPE TESTED AND FOUND TO COMPLY WITH THE LIMITS FOR A CLASS B COMPUTING DEVICE IN ACCORDANCE WITH THE SPECIFICATIONS IN SUBPART J OF PART 15 OF FCC RULES WHICH ARE DESIGNED TO PROVIDE REASONABLE PROTECTION AGAINST SUCH INTERFERENCE IN A RESIDENTIAL INSTALLATION HOWEVER THERE IS NO GUAR ANTEE THAT INTERFERENCE WILL NOT OCCUR
2. 2 Internal Microprocessor System TEN 2 Specifications eR SOE SEATS Ta 2 UNPACKING YOUR PRINTER lt Section 2 PREPARING TO USE YOUR PRINTER 4 CONNECTING THE PRINTER TO YOUR COMPUTER 6 INSTALLING THE PAPER Awan he geben td cree eee ajos 6 PERFORMING THE POWER ON 6 PERFORMING THE PRINT HEAD TEST 7 Section 3 USING YOUR PRINTER 8 SPECIAL PRINTER ASSOCIATED COMMANDS 9 The OPEN Command 9 The CMD Command 9 The PRINT Command eee ree ee eee 10 The CLOSE Command 10 PRINTING IN THE DIRECT MODE EEE 11 PRINTING UNDER PROGRAM CONTROL 11 FORMAT CONTROL eu eM e opa Ss ae 15 Printing Data Exactly as Received saz 0 16 Printing Data According to a Previously Defined Format sa 1 16 Storing the Formatting Data sa 2 17 The Formatting Characters 18 es NUITIBEIC eed e E UA C SU RO
3. 34 MIXED FORMAT 35 FORMATTING WITH LITERALS 36 Section 1 GENERAL INFORMATION The FRICTION SPROCKET FEED MPS 802 Printer adds a great deal of versitility and convenience to the use of your Commodore Computer While this manual contains all the information you need to check out connect and operate your printer you should also refer to other Commodore manuals to get the most out of your computer system DESCRIPTION The MPS 802 printer is designed to operate through software control It prints upper and lower case alphabetic characters numeric characters and all the graphic charac ters available on your Commodore computer and even a custom user defined charact er In addition your printer has considerable formatting capability owing to its in ternal microprocessor system Printing Characteristics Your printer employs a dot matrix print head The wire heavy duty jeweled head has a life expectancy of 50 million characters If a print head malfunction should occur ob tain authorized technical assistance Failure to do this may void warranty Interface Your printer is designed to connect directly into your computer through the Serial Port 6 pins However you can connect your printer to as many 4 VIC disk drives by daisy chaining Daisy chaining means connecting 1 peripheral to your computer and plugging addi
4. IS A TEST Results in THIS IS A TEST Printing Data According to a Previously Defined Format sa 1 A secondary address of 1 invokes the formatting features of your printer The data to be printed is arrayed according to a previously specified format using sa 2 If you should transmit a string of data when sa 1 is in effect and there is no formatting data in the printer s memory then the data string is printed exactly as it is received When formatting string data from the computer a skip CHR 29 must be sent to delimit the end of a string being edited to a field Leading blanks are stripped off a string therefore to print a blank alpha field you must transmit a shifted blank CHR 160 The alpha field is then right padded with blanks as shown below Example 10 OPEN 2 4 2 20 OPEN 1 4 1 30 PRINT 2 AAA AAA AAA 40 PRINT 1 29 CHR 160 29 DEF 50 CLOSE 2 CLOSE 1 Results in ABC DEF Note The data to be printed for any formatted line must be sent with only one PRINT command 16 Storing the Formatting Data sa 2 Perhaps the most significant feature of your printer is its ability to format data Picture formatting generates a simple one to one correspondence between the column posi tion of the print line and the symbol that is to appear there Formatting lets you left or right justify columns of data or align numeric data on its decimal point position Example 10
5. MOD EMCS B01 9 eC E 3 2 Sven color x idis ue Tw X o es sE Up mns printedeper page gt d E Prints 38 char pers per second i m Perfect for d 5 Serial port nterf muNTER gLOTTER E 4 MODEL 15209 ko 3 gt suk z k f Four color printer plotter for all graphic ds 4 ae Print bar graphs gheate pie chants plot time graphs TUAE 0 Ss ee High quality printing in a variety pf styles and sizes DE 5 Great for graphic artists 3 Eg i dE re dr cw 1 SAUTOMODEM onvenience of automatic ansering and dialing t ae ines power of telecomayting services ES your phone into 3 telecomputi aqp 7 5 nehork x T a n Ad Qe x commodore COMPUTER Printed i in Japan t at o See PEPE P wwe 2
6. MODEL 1526 PRINTER CHARACTER SET 4 PRINT 4 PRINT 4 4 AS 4 BS 4 CS 4 DS 4 ES 4 FS 4 GS 4 HS 12 Here is an explanation of each statement in the program Line No 10 20 30 40 50 60 90 60 70 80 90 100 190 100 110 120 190 200 NOTE The use of a Cursor Down to set to lowercase and Cursor Up to reset to uppercase enables you to use upper and lowercase letters on the same line Explanation Opens the printer as a file for printing Sets A equal toa ping all the unshifted characters from the keyboard Sets B equal to a string containing all the shifted characters from the keyboard Sets C equal to the set of ali unshifted characters in reverse field The character between the quotes is entered by pressing E Sets D equal to the set of all shifted characters in reverse field Each time a PRINT statement is encountered as in lines 120 190 a riage Return is executed unless a semicolon is placed at the end of the preceding PRINT statement Therefore each string as in lines 160 190 must begin with a Cursor Down to reset the printer to lowercase Sets E toa Cursor DOR Bu A The character between the quotes is entered by pressing E Sets F to a Cursor Down plus B Sets G to a Cursor Down plus C Sets H to a Cursor Down plus D PRINT 4 tells the computer to print to device 4 in this case the printer CHR 14
7. d Now plug the printer s power cord into a AC wall outlet However do turn the equipment on yet INSTALLING THE PAPER The tractor feed printer accepts standard fan folded pin feed paper You can purchase this paper from your local Commodore dealer The paper drive in this printer may be adjusted to accept varying widths of paper This is done by sliding the pin feed mechanism to the desired position Depress the paper feed button in the upper right hand top panel to advance the paper after it is loaded To remove the paper open the feed mechanism retainers and pull the paper out PLATEN Figure 5 Paper Path CAUTION DO NOT FEED PAPER BACKWARDS Figure 6 Inserting Paper Into MPS 802 PERFORMING THE POWER ON TEST You are now ready to proceed with the power on part of the checkout 1 Turn on the AC power to your cornputer and verify that is is working correctly 2 To turn on the power to the printer press the rocker switch at the side of the printer so that the white dot is visible In response to the application of AC power the printer s microprocessor should move the print head all the way to the right then to its home position at the far left If this does not happen and that s highly unlikely turn off both machines check all cor nections and try again If you still get no response contact your Commodore dealer PERFORMING THE PRINT HEAD TEST You can test the print head and
8. I I SQR I I f 1 3 100 NEXT I 110 PRINT 4 CHRS 19 120 CLOSE 4 CLOSE 3 CLOSE 2 CLOSE 1 Enabling the Printer Diagnostic Messages sa 4 When a secondary address of 4 is transmitted the printer s diagnostic messages ap pear whenever an error occurs When a formatting error occurs a message is printed the format is dumped and a pointer is located at the offending field If a secondary ad dress of 4 has NOT been transmitted then once an error occurs data characters are dumped directly to the print line even if the last command was to format data Example Example PE C 10 OPEN 4 4 4 PRINT 4 CLOSE 4 20 OPEN 25 4 25 30 PRINT 25 40 CLOSE 25 50 OPEN 1 4 CMD1 LIST READY Whether or not diagnostic messages are enabled overflow of numeric fields is always indicated by fields filled with asterisks This is a nonfatal error as in other cases the secondary address option is reset to zero and all data retrieved by the printer is printed exactly as received 21 Diagnostic Messages PEL PE C PE M PEE PE F PE T Lines per page out of range An attempt was made to set the lines per page to a value outside the range 13 lt linesperpage 128 via print to SA 3 The command is ignored and the previous length remains in force Bad command You gave the printer an invalid SA outside the range The command is ignored Data format mismatch You gave the non nu
9. OPEN 2 4 2 20 1 4 1 30 PRINT 2 99 40 PRINT 1 05 50 CLOSE 2 CLOSE 1 Results in 05 The commands in the example above transfer formatting data to the printer s internal memory for future print editing use Once completed READY and the blinking cursor appear on the screen The Formatting Characters Specification of a format is accomplished by a set of formatting characters which when joined define the rules of formatting data for the printer format interpreter The formatting characters may be grouped into three classes Numeric 9 Z S Alpha A Skip Blank Fields are specified by combining these formatting characters Up to 79 characters are accepted in a format string Excess overflow characters are printed onto the next print line Table 2 contains formatting examples 17 Numeric 9 Specifies a digit position in a numeric field If there is no digit to print in this position then a blank is substituted Z Also specifies a digit position in a numeric field Unlike the 9 this character forces a O to be printed if there is no digit available for this position This is desirable if leading zeroes are required in a numeric field if one is specified then the field is treated as a dollar amount with a fixed sign posi tion as follows 123 1234 00 If all digit positions to the left of the decimal point are then the number is printed asa floating dollar sign right justified befor
10. increases the width of the printed character to twice its original size This line prints the title of the program in enhanced characters Prints three Carriage Returns on the printer Prints each of the strings constructed in lines 20 through 90 on the printer Closes the printer channel NOTE Printing a listing from within a program terminates the program Therefore LIST should be placed at the end of the program 13 To execute this program simply type RUN This is the result 1 EF ITER SET 0123456789 lt RABCDEF GH JKLMNOPQGRSTLVIJERYZE Ite fa _ 8 indi A Tl LA LS Boos dba bibs EA Jac a TIEN maU RAS y Sa I Fg e E EA def3gh ij lmnoparstuvsuxyzt Jte A per t amp disi qos i JEL ee ISSN Now close the channel and the file type PRINT 4 CLOSE 4 14 FORMAT CONTROL Through the printer s format control option you can control the interpretation of data sent to the printer The format control option allows you to print numbers in columns set the number of lines per page and perform other useful formatting tasks To imple ment the format control option you use the third parameter of the OPEN command OPEN fn dn sa As before is the logical file number dn is the device number also known as the primary address and sa is the secondary address It is in the secondary address posi tion
11. line to the printer you must always precede a CLOSE command with PRINT in order to pro perly close the file Example Right Wrong j OPEN 5 4 PRINT 5 HELLO THERE CLOSE 5 OPEN 5 4 OPEN 5 4 CMD 5 HELLO THERE not CMD 5 HELLO THERE PRINT 5 CLOSE 5 CLOSE 5 OPEN 5 4 OPEN 5 4 CMD 5 HELLO THERE not CMD 5 HELLO THERE PRINT 5 HELLO THERE PRINT 5 HELLO THERE CLOSE 5 PRINT 5 CLOSE 5 OPEN 5 4 OPEN 5 4 PRINT 5 HELLO THERE not PRINT 5 HELLO THERE CMD 5 HELLO THERE CMD 5 HELLO THERE PRINT 5 CLOSE 5 CLOSE 5 Armed with these thumbnail descriptions of what the printer related commands do you now proceed to the next part of this section which tells you how to use these commands to control your printer You can find more detailed information about these commands in your computer User Manual 10 PRINTING IN THE DIRECT MODE The direct mode of communication allows you to enter printing commands at the keyboard The following example shows the entire direct mode listing process of a short program Example The screen displays The printer prints Comments You open the file and ij OPEN 3 4 give it a fn of 3 The 4 OPEN 3 4 READY makes the file available to the printer CMD 3 CMD 3 The printer is listening The program is printed LIST LIST on the printer The printer is listening Use the PRINT PRINT 3 command to unlisten READY the printer You clo
12. 02 PET COMPUTER 795 00 50 10 OPEN 1 4 20 OPEN 2 4 1 30 OPEN 3 4 2 40 OPEN 4 4 4 50 PRINT 4 REM ENABLE ERROR DIAGNOSTICS 60 F z 2222Z AAAAAAAAAAAAAAAAAAAA 99 999 70 PRINT 43 F 80 A 2 90 BS PET COMPUTER 100 C 795 110 D 50 120 PRINT 2 A BS CHRS 29 C D 130 CLOSE 1 CLOSE 2 CLOSE 3 CLOSE 4 35 FORMATTING WITH LITERALS In the example below literal characters within a format line are created by preceding each literal character with the reverse on symbol 10 OPEN 1 4 20 OPEN 2 4 2 30 OPEN 3 4 1 40 5 858 1013 Kd zz GRAY 5555 ED El 22 999 8 50 PRINT 2 FS 60 FOR I 1 TO 10 X 10 RND 1 Y 1000 RND 1 Z 8 RND 1 70 PRINT43 X Y Z NEXT 80 CLOSE1 CLOSE2 CLOSE3 READY 04 502 03 756 Ik 08 582 08 813 84 4 7 08 268 It 04 38670 00 969 03 272 07 298 Ir 03 292 09 234 IK 04 382 03 268 06 76 B3 9B1 Ik O7 732 01 361 lk 07 643 03 354 36 y i E ets te 5 y A H 2 to 4 gt i 3 3 y i d gt 3 gt ca o i 2 D i a 5 B 2 2 1 3 i E ic t r gS B 2 E S 2 d 55 cs gt E i E f ma i s 5 COMMODORE SALES CENTERS Commodore Business Machines Inc 1200 Wilson Drive Westch
13. 20 00 25 00 30 00 35 00 40 00 45 00 50 00 10 OPEN 20 OPEN 30 OPEN 40 OPEN 1 25000 2 50000 3 75000 5 00000 6 25000 7 50000 8 75000 10 00000 11 25000 12 50000 REM ENABLE ERROR DIAGNOSTICS S999 99999 999 70 PRINT PRINT 3 80 FOR I 1 TO 10 90 PRINT 2 10 I 2 5 I 4 3 I 100 NEXT 110 CLOSE 1 CLOSE 2 CLOSE 3 CLOSE 4 33 FIXED AND FLOATING FIELDS In fixed dollar fields the dollar sign is printed in the leftmost position and leading unused digit positions are printed as blanks In floating dollar fields the is printed immediately to the left of the most significant figure or decimal point Unused digit fields to the left of the are printed blank 66 29 6 62 S 6629 66 45 83 4 58 4583 45 32 86 3 28 3286 32 53 33 5 33 5333 53 74 91 7 49 7491 74 7 79 77 779 07 97 51 9 75 9751 97 27 03 2 70 2703 27 15 28 1 52 1528 15 49 95 4 99 4995 49 10 OPEN 1 20 OPEN 2 30 OPEN 3 40 OPEN 4 50 PRINT 60 FS 99 99 55 99 99999 99 70 PRINT 3 FS 80 FORI 1 TO 10 85 X RND 1 90 PRINT42 X 100 X 10 X 10000 X 100 NEXT 110 CLOSE1 CLOSE2 CLOSE3 CLOSE4 READY 34 MIXED FORMAT FIELD TYPES Shown below are an integer with leading zeros alpha field floating dollar and an in teger with zero suppressed In line 120 CHR 29 skip is used as a terminator for the alpha field so that it is format ted correctly 000
14. 3 0004 0005 0003 0004 0005 0006 0004 0005 0006 0007 0005 0006 0007 0008 0006 0007 0008 0009 0007 0008 0009 0010 0008 0009 0010 0011 0009 0010 0011 0012 0010 0011 0012 0013 10 1 4 20 2 4 1 30 3 4 2 40 4 4 4 50 PRINT 4 REM ENABLE ERROR DIAGNOSTICS 60 F SZZZZ S2222 2222 2222 70 PRINT 43 F 80 FOR I 1 TO 10 90 PRINT 2 1 I 1 I 2 I 3 100 NEXT 110 CLOSE 1 CLOSE 2 CLOSE 3 CLOSE 4 31 SIGNED NUMBERS As shown below a trailing sign when specified in a format statement either prints a blank for a positive number or a minus for a negative number This m is sometimes desired by accountants A leading sign always prints a plus or a minus for the sign of the number If no sign is specified in the format then no sign is printed This works essentially like an absolute value on the number 10 OPEN 1 20 OPEN 2 30 OPEN 3 40 OPEN 4 50 PRINT REM ENABLE ERROR DIAGNOSTICS 60 F 999 5999 999 70 PRINT 3 FS 80 PRINT 2 1 1 1 90 CLOSE 1 CLOSE 2 CLOSE 3 CLOSE 4 4 4 1 4 2 4 4 4 32 DECIMAL FRACTION SPECIFICATION When the right hand side of the decimal point in a format statement has more digits of precision specified than contained in the formatted data the remaining digit positions are filled with zeroes If the reverse is true then the formatted number is truncated 5 00 10 00 15 00
15. 34 65 65 54 34 O 0 TOTALS The DATA statement in your program will read DATA 28 34 65 65 54 34 0 0 The program shown in the printout in the next example writes the Commodore logo ten times It creates a string with the CHR value of the column totals and passes the string to the printer with sa 5 To achieve upper and lowercase characters use the CRSR Up Cursor Up for uppercase characters and CRSR Down Cursor Down for lowercase characters e Example 10 DATA 28 34 65 65 54 34 0 0 20 OPEN 5 4 5 30 FOR I 1 TO 8 READ A AS AS CHRS A NEXT 40 PRINT 5 50 OPEN 4 4 60 FOR I 1 TO 10 70 PRINT 4 CHR 14 CHR 254 am EJUSINESS 80 NEXT 90 CLOSE 5 100 CLOSE 4 The following is a description of the program shown above 23 Line No 20 Open 5 4 5 AA to the printer what function you want ex ecuted A secondary address of 5 indicates that you want something stored in the printer s custom character buf fer The device number the printer s The logical file number 30 The FOR NEXT loop contained in this line reads the data contained in line 10 and constructs a string A A contains the necessary informa tion to print the Commodore logo 40 Stores A in printer memory 50 Opens the print file for printing 60 80 Prints the Commodore logo and Commodore Business Machines ten times PRINT 4 Prints to the printer CHRS 14 Prints enhanced characters 254 Prints the programme
16. 46 Carriage return CHR 13 Carriage return with no line feed CHR 141 Line feed CHR 10 NA Cursor Uppercase CHR 145 Up Lowercase CHRS 17 i Down S Cursor Skip space CHRS 29 Right Quote CHRS 34 E Quote The Carriage Return If you attempt to print more than 80 characters on a line a Carriage Return with Line Feed will be forced and the overflow characters will be printed on the next line If you transmit a Shift Carriage Return 8D a Carriage Return without Line Feed is ex ecuted This allows overprinting on a line A Carriage Return turns off reverse field character enhance and the quote mode Quotation Marks If an odd number of quotation marks have been transmitted control characters are made visible This can be particularly useful when you are making a listing of a BASIC program containing cursor control characters in quotation marks 28 APPENDIX The programs in this appendix illustrate the many formatting capabilities of your printer The first program is completely annotated In the following programs new con cepts are commented upon SIMPLE STRING FORMATTING This program opens four files to perform four different tasks It prints three iines the format string the unformatted data string and the formatted data string Here is a printout from the program ABC AB AB AB AB 10 OPEN 1 4 20 OPEN 2 4 30 OPEN 3 4 40 OPEN 4 4 50 PRINT 4 R
17. C Tee y as e Tamus E Dundee 18 Alpha String Data 19 SKIP Bla k anc paces as pos 20 Literals in Format Strings 20 Setting the Number of Lines PerPage sa 3 21 Enabling the Printer Diagnostic Messages 4 21 Defining a Programmable Character sa 5 23 Setting Spacing Between 6 25 Selecting Upper Lowercase saz7 TEM SEM 25 Suppressing Diagnostic Message Printing sa 9 26 Resetting the Printer sa 10 26 SPECIAL CHARACTER FUNCTIONS 26 Enhanced Characters 26 A UAE OBS SCR SARE ROA 27 Specifying Individual Upper and Lowercase Characters 27 Reversing a Field usos eee ati e a s ittak ow Ee boo 27 The Carriage Return 28 Quotation Marks toda da 28 APPENDIX SIMPLE STRING FORMATTING 29 LEADING ZEROES FORCED aa road aos 31 SIGNED NUMBERS 32 DECIMAL FRACTION SPECIFICATION 33 FIXED AND FLOATING FIELDS
18. EM ENABLE ERROR DIAGNOSTICS 60 AA REM FORMAT STRING 70 REM STRING TO BE FORMATTED 80 PRINT 1 AS 90 PRINT 1 100 PRINT 3 A 110 CS CHRS 29 120 PRINT 2 BSCSBSCSBSCSBS 130 CLOSE 1 CLOSE 2 CLOSE 3 CLOSE 4 1 2 4 29 An analysis of the program will help you understand how it works Line No Explanation 10 40 Four logical files are opened to the printer so that the data in the com 50 60 70 80 90 100 110 120 130 puter s memory can be used in four different ways Logical Secondary File No Address Usage 1 0 default Print data exactly as transmitted 2 1 Format data before it is printed 3 2 Transmit the formar string 4 4 Enable format error diagnostic messages to be printed if any Enables error messages if any Defines the format string Defines the data string Prints the format string Prints the unformatted data string Transmits the format string to the printer s memory Sets C equal to the format character for skip a space Prints the formatted data string 4 times Closes the files 30 LEADING ZEROES FORCED This program prints ten rows of numbers each row beginning with a number one higher than the preceding row In line 60 the formatting statement which is prepared for in line 30 and transmitted in line 70 specifies leading zeroes in all fields and plus signs in the first two fields 0001 0002 0003 0004 0002 000
19. IN A PARTICULAR INSTALLATION IF THIS EQUIPMENT DOES CAUSE INTERFERENCE TO RADIO OR TELEVISION RECEPTION WHICH CAN BE DETERMINED BY TURNING THE EQUIPMENT OFF AND ON THE USER IS ENCOURAGED TO TRY TO CORRECT THE INTERFERENCE BY ONE OR MORE OF THE FOLLOWING MEASURES e REORIENT THE RECEIVING ANTENNA e RELOCATE THE COMPUTER WITH RESPECT TO THE RECEIVER e MOVE THE COMPUTER AWAY FROM THE RECEIVER e PLUG THE COMPUTER INTO A DIFFERENT OUTLET SO THAT COMPUTER AND RECEIVER ARE ON DIFFERENT BRANCH CIRCUITS IF NECESSARY THE USER SHOULD CONSULT THE DEALER OR AN EXPERIENCED RADIO TELEVISION TECHNICIAN FOR ADDITIONAL SUGGESTIONS THE USER MAY FIND THE FOLLOWING BOOKLET PRE PARED BY THE FEDERAL COMMUNICATIONS COMMISSION HELPFUL HOW TO IDENTIFY AND RESOLVE RADIO TV INTERFERENCE PROBLEMS THIS BOOKLET IS AVAILABLE FROM THE U S GVERN MENT PRINTING OFFIC WASHINGTON D C 2402 STOCK NO 004 000 003454 PART NO 320970 COMMODORE MPS SO2 DOT MATRIX PRINTER USER S GUIDE _ A Friendly Introduction to Your MPS 802 Dot Matrix Printer commodore COMPUTER 1984 Commodore Electronics Ltd Table Of Contents Page No Section 1 GENERAL INFORMATION 1 DESCRIPTION tue uu SARS E edid ree 1 Printing Characteristics 1 Interface ass ss 1 Paper Feed Mechanisms
20. JALMNOPGRSTUVIXY2E 1 8 m J G lj eri i Tab tU 2123456789 lt gt ABCDEFGH I JKLMNOPORSTUVWXYZC N 2 8 J G iFa rm Lr 0183456789 lt ABCDEF GH JKLMNOPQRSTUVWX YZI 3 1 J G p t5 7 Section 3 USING YOUR PRINTER Your printer does much more than just give you clean fast copy Since it has its own in ternal microprocessor system it is very versatile In this section you will learn how to use your printer to print out listings program results and graphic displays You will learn how to use it to format data and enhance character size You will even be able to create your own custom characters Before you attempt to use your printer make sure you know how to do the following 1 Operate your Commodore computer 2 Do elementary programming in BASIC 3 Write files to and from a peripheral device such as the DATASSETTE recorder or the Commodore Floppy Disk Drive 4 Open and close files You should refer to your computer User Manual for this information This section uses these conventions to indicate cerain actions or requirements Example Description dn Italicized lowercase letters in a syntax indicate that you should enter something a variable in place of the letters Brackets indicate optional usage NOTE The commands described in this manual apply specifically to use with the printer Certain commands may follow a slightly different g
21. d character the Commodore logo Cursor Up Sets the printer to uppercase Cursor Down Sets the printer to lowercase 90 100 Closes the two files opened by the program After typing RUN you get this result Commodore Business Machines Commodore Bus iness Mach ines Commodore Business Machines Commodore Bus iness Machines Commodore Bus iness Machines Commodore Business Machines Commodore Gus iness Machines Commodore Bus iness Machines commodore Business Mach ines Commodore Bus iness Mach ines QQ QQ Q AR NOTE Multiple programmable characters in the same line can only be made by overprinting The programmable character cannot be changed when a line wraps around to the next line 24 Setting Spacing Between Lines sa 6 A secondary address assignment of 6 controls the number of steps between suc cessive lines of print There are 144 steps per inch so a declared value lt 127 of 18 pro duces eight lines per inch A declared value of 72 produces lines spaced one inch apart The default value is 24 which produces the standard 6 lines per inch Example 10 OPEN 4 4 20 OPEN 6 4 6 30 FOR I 1 TO 127 STEP 4 40 PRINT 46 CHRS I 50 PRINT 4 HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH 60 NEXT Selecting Upper Lower Case sa 7 Secondary address 7 is used to print data exactly as received It is similar to SAO ex cept that all unshifted characters are printed in lower case and all shifted or capital characters are p
22. e the most significant digit S When preceding a numeric field the sign of the number 4 or is to be printed in this fixed column position Defines the position of the decimal point and is printed literally in this position Specifies a trailing sign If the number is positive a blank is printed A numeric field cannot have both S and When this is the csse only the S will be honored Here are some examples of format fields a Field width and decimal position specified 99 Two digit integer with no sign 99 999 Five digit real type with 3 positions to right of decimal b Dollar sign insertion 99 99 Fixed dollar sign 99 Floating dollar sign C Leading zeros forced 2227 No decimal 22 99 Decimal d S Trailing minus 999 Blank is printed if number is positive e Signed numbers 99 or always printed Table 2 Formatting Examples Table 2 contains more examples of sample data format fields and the resultant editing FORMAT FIELD AAAAA AAAAA 9999 99 99 99 99 99 99 99 99 S 99 99 2277 22 999 227 99 999 99 99 99 5 999 2 999 2 999 ABCDEFG 99 99 77 77 _ 77 77 77 7 EDITED RESULT ABC ABCDE 99 99 77 00 77 00 77 00 77 00 4 77 00 0077 77 000 077 00 77 00 00 015 0 015 0 015 The printer software handles up to ten significant figures and an exponent range 99 on numb
23. either by over printing graphic characters or by inserting literal characters in a format string as shown below The only limitation on literal characters in format strings is that they cannot be printed in the reverse field mode They are also restricted to the same character set in which data is currently being printed Example 10 OPEN 2 4 2 20 OPEN 1 4 1 30 PRINT 42 GES E E Z GE A AAAAA EM a cn 2 EDB 32 AS 35 FOR 1 1 TO 10 AS AS CHRS 64 1 40 PRINT 1 ASCHRS 29 ASCHRS 29 ASCHRS 29 50 NEXT 60 CLOSE 2 CLOSE 1 Results in A AB AB AB ABC ABC ABCD ABCD ABCD ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE 20 Setting the Number of Lines Per Page sa 3 his special secondary address allows you to vary the number of printed lines per dos order for this Daging option to take effect you must turn paging on with is special paging character CHR 147 described on page 27 When paging is on and the paging seconday address is not implemented the default number of lines per page is 66 including three blank lines at the top of the page and three blank lines at the bottom of the page Example 50 A z 999 9999 99 99999999 99 99999999 55 PRINT 2 60 PRINT 3 CHR 60 70 PRINT 4 CHR 147 80 FOR I 1 TO 99 90 PRINT 1 I
24. eneral form or produce different results from those described here when they are used for the computer or other peripheral devices Con sult the appropriate manual for the exact usage of these commands in other contexts DATASSETTE is a trademark of Commodore Electronics Ltd PRINTER ASSOCIATED COMMANDS The OPEN Command The syntax of the OPEN command is OPEN fn dn sa This command sets correspondence between a file number and a physical device The or logical file may be any number you choose to assign to your file from 1 to 255 It doesn t matter which number you choose as long as you remain consistent throughout your set of commands The dn or device number also known as the primary address refers to the device to which you wish to send the file In the case of the printer the number must be 4 since that is the number assigned to it at the factory NOTE If you want to change a printer device number you can have it changed by an authorized Commodore technician See your Com modore dealer about this You might want to have a printer s device number changed if you have two printers attached to your computer You need to refer to each of them individually hence the need to change one of the device numbers Thesa or secondary address is used to specify a particular printer function Secondary addresses are thoroughly discussed in the section entitled FORMAT CONTROL The CMD Command The syn
25. ers passed as data to be formatted Exponential numbers must be normalized such that O X 10 Alpha String Data The letter A represents one position of an alpha field Within the field leading blanks are truncated the field is left justified and it is padded to the right with blanks Shifted blanks CHR 160 are not deleted if in the leading positions Example Results in 10 OPEN 2 4 2 20 OPEN 1 4 1 30 PRINT 2 A AA AAA 40 PRINT 1 CBM CHRS 29 CBM CHRS 29 CBM 50 CLOSE 2 CLOSE 1 C CB CBM Skip Blank Simply use blanks where spaces are required Example 10 OPEN 2 4 2 20 OPEN 1 4 1 30 PRINT 2 AAA AAA 40 PRINT 1 PET CHRS 29 PET CHRS 29 PET 50 CLOSE 2 CLOSE 1 Results in PET PET To right justify integers define an alpha string the length of the longest integer Then blank fill the left of the integer data string and right justify the number within that string Literals in Format Strings Literals are characters that are to be printed exactly as they exit in the printer s memory rather than being used to format other data Literals are flagged by preceding each literal in the format string with a reverse field ON character One use of literal is to create a special form at the same time you are printing data This is done by using the special graphics character to form vertical horizontal or other lines between the fields You can create a form while printing data
26. ester PA 19380 U S A Commodore Business Machines Ltd 3370 Pharmacy Avenue Agincourt Ontario MIW 2K4 Canada Commodore Business Machines UK Ltd 675 Ajax Avenue Trading Estate Slough Berks SL1 4BG England Commodore Bueromashinen GmbH Lyonerstrasse 38 PO BOX 710126 Frankfult 6000 West Germany Commodore ltaliana S R L Via Conservatoria 22 Milano 20122 Italy Commodore information Center 5 Onion Road Lane Cove 2066 NSW Australia Commodore Computer B V Marksingel 264811 N V Breda Postlrus 720 480 3aS Breda Netherlands Commodore AG Schweiz Aeschenvorstadt 57 4010 Basel Switzerland TA we ter er AAA A 2 a NE M Y 1 w f i 1 j 4 Z LH Ly he gt Pe T4 27907 gt ae x nr y f T gt ADA s DISK Saves onda mm ame os Ls dem 3 double density double sided disket PE interface AES MODEL 2031LP i of memory per single side disk 2 E A m p 3 Hugggd and stylish housing A RA JEEE interface gt duh n cS a Aw gt RRINTERS 21 6 a T ae S AE ges MODEL MPS 807 i E ie ee E High quality dot matrix posing A iab A A 80 column pri Dis gt di 3 Prints 50 chaff amp cters per second T Serial pont interface _ e 3
27. he code CHR 147 or the keyboard en try shown in Table 3 Otherwise printing is continuous The paging function provides for 66 lines per page including three blank lines at the top of the page and three blank lines at the bottom The number of lines per page may be altered by using the secon dary address 3 option When paging is in effect the paging off character performs a top of form function Specifying Individual Upper and Lowercase Characters The printer default character set is ASCII Graphics when power is first turned on to the printer Though it is not possible to display both graphics and lowercase simultaneous ly on the video display screen the printer does allow shifting between character sets on the same line This function is analogous to the letters figures shift on a Teletype Example 10 OPEN 4 4 20 PRINT 4 lt CRSR UP C CRSR DOWN OMMODORE Results in Commodore Reversing a Field This function inverts the dot matrix to produce the effect of white on black see Table 3 DO NOT use this mode of printing for more than five consecutive lines since extend ed printing in this mode will damage the print head Example 10 OPFN 5 4 20 PRINT 5 AM COMMODORE 30 CLOSE 5 Results in Lnd uL Lim 27 TABLE 3 Special Control Character Summary Printer function ASCII Keyboard Enhance CHR 14 Unenhanced CHR 129 Paging on 147 Paging off CHR 19 RVS ON CHR 18 RVS OFF CHR 1
28. meric data print ina numeric field The first character printed after the error message is the of fending character Exponent error The numeric data given to the printer to print in a numeric field had an invalid exponent The expected form of an exponential number is n nnnn ee or ee The expression must contain a plus or minus sign with a two digit exponent Bad format The data that was sent to SA 2 either contains illegal format ting characters or unrecognizable syntax Terminator error The SA changed before a terminator was detected A ter minator is defined as a carriage return chr 13 a line feed chr 10 or a carriage return line feed sequence Communication with the current SA must be terminated with a terminator before attempting to talk to another SA 22 Defining a Programmable Character sa 5 A secondary address of 5 allows you to create a custom character of your own This programmable character is initialized with this secondary address Suppose you wanted to program the special symbol in Commodore Business Machines logo which is Cx commodore Lay out a 8x8 matrix the same matrix as is on the print head To the left of the matrix write the binary bit value of each line Use dots one per square to create your character Then add up the binary bits indicated by your dots in each column These totals are used in the DATA statement in your program Example 28
29. ractor holes 7 5 0 5 X 2 sprocket margins Pin to pin distance 5 longitudinally 9 5 laterally 5 32 diameter UNPACKING YOUR PRINTER Before you unpack your printer inspect the shipping carton for signs of damage If it appears to be damaged be especially careful when you inspect its contents DON T throw away any of the packaging material until you have located all the contents of the carton The package should contain 1 5 Commodore Printer Model MPS 802 2 Serial Cable 3 4 User s Manual Warranty card Printer ribbon cartridge If any of these is missing or damaged notify your Commodore dealer immediately Section 2 PREPARING TO USE YOUR PRINTER Before starting to use your printer you should make sure that it is in working condition This proceudre includes checking for obstructions in the path of the print head or paper feed and making sure that the printer ribbon is properly in place Follow this pro cedure 1 Lift the plastic cover gently to expose print head and mechanism 2 Carefully remove any foreign material that may have fallen into the mechanism 3 Remove the ribbon cartridge from its box and turn the plastic knob counterclockwise so the ribbon is tight 4 Hold the ribbon cartridge with the plastic knob at the top left side then set it on the two side frames of the printer mechanism with tilting the cartridge so the two front hooks on the side frames be engaged with
30. rinted in upper case Example 30 OPEN 4 4 7 40 PRINT 4 MODEL 1526 PRINTER 50 CLOSE 4 Results in model 1526 printer 25 Suppress Diagnostic Message Printing sa 9 To turn off the diagnostic message printing send a secondary address of 9 Example PE M COMMODORE COMMODORE 10 OPEN 4 4 4 PRINT 4 CLOSE 4 10 OPEN 4 4 4 PRINT 4 CLOSE 4 20 OPEN 2 4 2 15 OPEN 9 4 9 PRINT 9 CLOSE 9 30 OPEN 1 4 1 20 OPEN 2 4 2 40 PRINT 42 3 30 OPER 1 4 1 50 PRINT 1 COMMODORE 40 PRINT 2 9 60 CLOSE 2 CLOSE 1 50 PRINT 1 COMMODORE 60 CLOSE 2 CLOSE 1 Resetting the Printer sa 10 To reset the printer send a secondary address of 10 Example 10 OPEN 10 4 10 20 PRINT 410 30 CLOSE 10 SPECIAL CHARACTER FUNCTIONS Special control characters can be used to change the mode of printing within a single line Tabie 3 contains a summary of the special control characters The table is follow ed by a brief description of each function Enhanced Characters You can print any character double its width While characters are normally printed 8 row by 8 column matrix enhanced characters appear in a 8 row by 16 column matrix The example below shows how already enhanced characters can be further enhanced Example 10 OPEN 4 4 20 PRINT 4 H CHRS 14 E CHRS 14 L CHRS 14 L CHRS 14 0 30 CLOSE 4 Results in 8 A 26 Paging Paging must be turned on in your program with t
31. se the file so that CLOSE 3 CLOSE 3 ifn can be used for READY something else PRINTING UNDER PROGRAM CONTROL As we have seen you can control the printer directly from the keyboard You can also control the printer from within a BASIC program In the example below this short BASIC program is placed in the computer s memory It could have been placed there from the keyboard a cassette tape or a floppy disk 10 OPEN A 20 PRINTA THIS PROGRAM ILLUSTRATES PROGRAM CONTROL 30 CLOSE T IU Fi REMEMBER THIS The LIST command within a program terminates pro gram execution Then when you are finished running a program you must type the PRINT command to close the channel Then type the CLOSE command to close the file 11 The following example shows a BASIC program that takes advantage of some of your printer s special features The program directs the printer to generate the following e An enhanced heading You will find more about this feature on page 33 e The entire printer character set Two special character functions are used in the program the OFF RVS key and the CRSR Down Cursor Down key You may find out more about these starting on page 26 A printout of a program you place in your computer s memory looks like this 10 OPEN 4 4 20 FORI 32 TO 95 sAS AS CHRS I NEXT 30 FOR I 160 TO 223 BS BS CHRS NEXT 40 C ED Ma as Ds 853 AR B5 22 0 100 PRINT 4 CHRS 14
32. tax of this command is CMD CMD transfers output from the screen to the printer The must be the same as in the OPEN statement with which it is associated Unlike a PRINT command the line or bus to the receiving device is left open The line or bus to the receiving device in this case the printer is said to be listening If you follow a CMD command with a PRINT or a LIST command the output is directed to the printer instead of the screen e The PRINT Command The syntax of the PRINT command is PRINT ifn data PRINT works just like PRINT except that it directs output to the printer instead of the video screen After printing the designated data the line or bus to the printer is said to be unlistened Therefore if you have used the CMD command it is necessary to follow it with a PRINT command in order to unlisten the connection between the printer and the computer NOTE In standard Commodore BASIC the PRINT command can be ab breviated as a question mark You may not do this with PRINT 4 It must always be typed out as PRINT 4 The CLOSE Command The syntax of this command is CLOSE Ifn You should always close a file after printing to it You may not exceed ten open files so you should make a habit of closing files when you are finished with them This way you will always have the maximum number of files available for use Remember when using the CMD command since CMD does not unlisten the
33. that you enter the desired parameter You can enter any of the eleven secondary addresses in your OPEN command These are 0 Print data exactly as received in Upper Graphics case 1 Print data according to a previously defined format Store the formatting data Set the number of lines per page to be printed Enable the printer format diagnostic messages Define a programmable character Set spacing between lines Print data exactly as received in Upper Lower case O Q N Suppress diagnostic message printing 10 Reset printer After the appropriate OPEN statement has been transmitted a PRINT statement is required to transmit the secondary address information to the specified device in this case your printer Remember that it is possible to have as many as ten files open simultaneously This allows you to perform several formatting functions at one time on the data in the com puter s memory There are examples of the formatting capabilities described in this section in the Appendix 15 Printing Data Exactly As Received sa 0 This secondary address is the default value Whether or not you include it in your OPEN statement the printer prints data exactly as received Up to 80 characters are printed on each line and if the next character is nota Carriage Return a Carriage Return is performed automatically and the overflow characters are printed on the next line Example 10 OPEN 5 4 20 PRINT 5
34. the ribbon cartridge as well after you have inserted the paper NEVER al ow any printing to occur when there is no paper in the printer To do so may result in damage to the print head To perform this test simply turn on the printer wh le pressing the paper feed button Turn power off to end the test INS7A CO 01234567881 4 gt 27 ABCDEFGH I JKLMNOPGRSTUVLXYZE NITH J WB MY rana 19 575 2 0 123456789 lt gt 7 ABCDEFGH I JKLMNOPQRSTUVUXYZCN 11 G lar 8 785 C0x 01834567891 4 gt 70ABCDEFGH I JKLMNOPQRSTUVWXYZI 1 ll Iba 4 amp 1 01283456789 74 gt 2 ABCDEFGH I JKLMNOPGRSTUVWXYZE N21 Hl P IF Ita rcl X amp C amp 4 90123456789174 2288 BCDEFGHIJKLMNOPGRSTUVUXY2U N 21 J iP l a amp Cot 801234567891 7 gt ABCOEFGH I JKLMNOPGRSTUVUXYZC N 11 la JR react I 8 701234567891 lt gt 7 ABCDEFGH I JKLMNOPQGRSTUVWXYZE N 11 8 _ B Wiran mil lt 2 8123456789 lt 208BCDEFGHIJKLMNOPGRSTUVUAXYZU 1748 rl ES dat 123456789 lt gt ABCDEFGH IJKLMNOPOGRSTUVUKYZE N 1 8 R l 1 01234536789 lt gt ABCDEFGH JKLMNOPQRSTUVUXYZC N 21 8 J r t 01234567891 4 gt ABCOEFGH JKLMNOPGRSTUVWXYZE 11 411 0183456789 4 gt RABCDEFGH I JKLMNOPQRS TUVLXYZC 1 lm J laa 1111 h 70123456709 lt gt ABCDEFGH I
35. tional peripherals into the Serial Port of the last item connected For more information about Serial Port specifications please refer to the Serial Bus Sec tion in your Programmer s Reference Guide Paper Feed Mechanism The MPS 802 Printer has a FRICTION SPROCKET feed mechanism that uses sprocket holes to hold the paper edges This model is especially useful for printing business forms See Figure 1 Normal paper without sprocket holes can be used too Internal Microprocessor System Your printer contains a microprocessor system that resets and executes a diagnostic and initialization sequence when you turn on the power In addition it contains a ran dom access memory RAM in which you can store formatting data Because your printer is an intelligent peripheral it uses none of your computer s memory Specifications Table 1 shows the specifications for the MPS 802 Printer TABLE 1 Model 1526 Printer Specifications _ Printing Method Serial Impact Dot Matrix Print Rate 45 Ipm with 80 columns printed 78 Ipm with 40 columns printed 124 Ipm with 20 columns printed Print Direction Bi directional Column Capacity 80 Character Font lina Spacing Character Size Copies Ribbon Type Ribbon Life Ribbon Cartridge Paper Width Forms Lines per minute 8X8 Programmable 0 094 high 0 08 wide 3 including original Cartridge 1 2 X 10 characters Commodore P N 613160550 4 5 to 10 including t
36. two catches on both left and right sides of bottom of cartridge then steer down while pressing the ribbon side so the two side tabs of cartridge are positioned into the slots on the side frames of the printer mechanism 5 Turn the plastic knob on cartridge in the direction of the arrow to take up the slack in the ribbon Continue to turn the knob until the ribbon slips into front of printer head by itself Figure 2A The Ribbon Cartridge 6 Replace the plastic cover 7 Insert the wire paper holder in the two holes in the rear of the cabinet as shown in figure 2B e Figure 2B Wire Paper Holder 4 5 CONNECTING THE PRINTER TO YOUR COMPUTER To connect your printer to your Commodore computer please follow the instructions in the order listed below a Make sure that both your computer and printer are turned OFF b Connect one end of the 6 pin DIN cable to either of the two connector sockets located in the back of your printer at the lower left This cable is keyed so that you cannot plug the cable in the wrong way This means that the pins should be position ed so that a slight pressure will insert the cable properly You should nct have to force these pins in and doing so could damage your cable c Connect the other end of the cable to your computer in the Serial Port Connector located in the back of your computer Make sure that you are keying the pins pro perly into the connector with 6 holes
Download Pdf Manuals
Related Search
Related Contents
Home Decorators Collection 15282 Installation Guide Airless - WAGNER Hunter 53249 Instructions / Assembly 第3章 プロジェクトの内容 - JICA報告書PDF版(JICA Report PDF) Canon Prima AS-1 User's Manual Nightblade MI Series TZ-LS200PA Sauna Technical Note #9-01 Copyright © All rights reserved.
Failed to retrieve file