Programmable Calculator Programming Instructions Table of Contents

Programmable Calculator Programming Instructions Table of Contents

1151 PROGRAMMABLE CALCULATOR PROGRAMMING INSTRUCTIONS TABLE OF CONTENTS INTRODUCTION. • . • . • • . • . • . • . • • . • • . • • • . • . • . • 1 GENERAL.. • . • . • • • • • • . • . • . • . • • • . • • • • • • • . • • • • . • 1 Interchange Key . • • • . • . • . • . • • . • • • . • • . • • • . • . • • . 1 Learn Key . • • • . • . • • • . • • • . • . • . • . • . • . • . • . • . • • 1 Auto Key . • • • • • • • . • • . • . • • • • • . • . • . • . • • . • . • . • . 2 Progr am Reset Key. • . • • . • . • . • • . • . • . • • • • • . • . • . 2 Looping. • . • • • • • . • • . • . • . • . • • • . • . • • • • . • . • 3 Decimalization and Overcapacity. • . • • • . • • • . • . • • • . • • 4 Program Steps • • • • • . • . • • • . • . • . • • . • • • • . 4 BASIC PROGRM1MING. • • . • • • . • . • . • . • • • . • . • . • . • 5 Simple Programming. • . • . • . • . • • • • . • • . • . • . • • • . • . • . 5 Stack Constant • . • . • . • . • • . • . • . • . • . • .. • . • . • 5 Payroll Application. • . • . • . • . • . • . • . • . • . • . 6 Two Totals in the Stack • . • . • . • • • . • . • . • . • . • • • . • . • • . • 7 Cost/Sell Quotations . • . • • • • . • . • • • . • • • • • . • • • • . • 8 MULTIPLE AND ITERATIVE PROGRAMS. • . • . • • • . • . • 9 Looping at a Stop Command. • • . • . • • • • • • . • . • • . • . • • • 9 Invoicing. • . • . • . • • . • . • . • . • . • • . • . • . • • • • . • .. 11 Iterati ve Programs. • • . • . • • . • . • • . • . • • . • .• 12 Compound Interest. • • • . • . • • • . • . • . • . • • • . • . • . • . • . •. 13 Square Root. • • . • • • . • . • • . • • . • • . • . • • . • . • • . .. 14 Iterative Programs - General. • . • • . • . • . • . • . • • • . • . •. 16 SPECIAL TECHNIQUES. • • . • • . • . • • . • . • . • . •• 17 General. • . • • • . • • . • • • . • . • . • . • . • • • . • . .. 17 Number Generation. • • . • . • • . • • • • . • • • • • . • • • . • • • . .. 17 Round-off in Division. • • . • • . • • • . • . • • • • . • • • . • . .. 17 Comparison Tests. • . • . • . • • • • . • . • . •. 18 Sequence Skipping. • . • . • . • . • . • . • . • . • . • . • . • • • •• 19 Published by Friden Sales Promotion Department, Rochester, New York INTRODUCTION Welcome to the world of "customized cal­ 1151 Operating Instructions, three applica­ culators·. The Friden* 1151 Programmable tion manuals are available: SP 9495, Statis­ Calculator can be customized to your indi­ tics, SP 9496, Finance, and SP 9497, Sci­ vidual calculating requirements. The 1151 ence and Engineering. These booklets des­ benefit that makes this possible is Program cribe solutions to many problems for which Learning. the 1151 is particularly suited. In this manual, 1151 Programming In­ 1\1 anual operation of the 1151 is covered structions, a working knowledge of the in detail in SP 9474, 1151 Operating In­ manual operation of the 1151 is assumed. structions. That manual also contains basic Let's start by discussing the 1151 keys that information about the Program Learning are particularly important to Program capabilities of the 1151. In addition to the Learning. GENERAL THE INTERCHANGE KEY Divide Equals Interchange The INTEHC HANGE key interchanges the Duplicate contents of the bottom two registers in the To Memory stack. Some calculations require that the From Memory divisor in a division problem be calculated Print before the dividend. This often results in Stop the divisor being contained in R2 with the dividend in HI. The I:\TEHCHANGE key The manual functions, Clear, Clear Stack, allows us to eXChange the contents of Rl and Stack Read-Out cannot be programmed. and R2, thus placing the divisor in HI so that we may properly divide. Added benefits These commands are self-explanatory, ex­ of this powerful key are that a constant can cept, perhaps, for two: Print and Stop. You be retained in the stack, or that two totals must instruct the 1151 as to which answers can be carried in the stack. Examples are to be printed on the tape during auto­ given in this manual are Payroll and matic operation by de pre s sin g F LHST Cost/Sell Quotations. Nl\IBH/PHINT when they occur in HI. When programming an application, ask yourself at each step if you want the contents of Rl to THE LEAHN KEY print on the tape during automatic operation. DepreSSion of the LEAH)\; key places the A Stop Command in a program sequence 1151 into a learning condition. Until the automatically stops automatic operation. It LEARN key is restored to its original is placed in a program whenever a manual pOSition by depressing the PHOGHAIII HE­ keyboard entry is made while the 1151 is SET key, the 1151 will learn in sequence learning an application. Stop Comm ands are the functions required to perform the de­ used for three reasons: sired calculation. 1. To allow for manual entries of variable The following commands are programmable: numbers into the program. Plus 2. To allow for manual calculations, the Minus answer, or answers, to which to be Times Equals used in the program. *A Trademark of THE SINGER COMPANY 1 3. To separate a portion of a program Clear from the remainder of the program Clear Stack instructions. Stack Read-Out The functions Clear and Clear Stack can be The first reason for using a Stop Command accomplished through special program­ is most important. What use would there ming. For example: be for programming if you could not use the learned program with a different set of variables? To Clear HI: 1. DUP The second reason for using a Stop Com­ 2. - (0 in RI) mand is important particularly when an application requires more than 30 program steps. Normally, the Stop Command would To Clear Stack: be the first step in the program so that the first part of the application could be done 1. DUP manually and the program entered to com­ 2. plete the problem. Though it takes a little 3. x= more programming finesse, we could design 4. x= (0 in RI, R2, R3, R4) our program so that we have a Stop Com­ mand somewhere in the middle of a sequence of instructions for such manual calculations. The function Stack Read-Out can be accom­ plished only by destroying the contents of 2 of the 5 registers in the calculator. The third function of a Stop Command points up the greatest advantage that the 1151 has over any other programmable THE AUTO KEY calculator to date: the capability of storing several programs at one time, to be used At any point where a manual entry must be indi vidually or in combination, at the option made in an established program, the num­ of the operator! An example of such a ber is indexed on the keyboard and entered program is SP 9541, Coefficient of Linear into the calculator by depressing the AUTa Correlation. Three programs in one are key. The 1151 will then continue with the used. The operator uses the first ana automatic program using the new number. second programs to obtain the sum of x, When the AUTO key is depressed, the num­ the sum of x2, and the xy values. Then the ber indexed on the keyboard is printed on operator uses only the first program to the tape and identified by the symbol "F". compute the sum of y and the sum of y2. Finally, the operator uses only the third THE PROGRAl\] RESET KEY program to calculate the square root of the value obtained by a manual calculation done Depression of the PROGRAM RESET key at the Stop Command between the second cycles the 1151 program memory back to and third programs! Let's face it. Multiple­ the first step in the calculating procedure. part programs can be very complicated to If the first step in the learned program was devise. But they do not have to be compli­ a manual keyboard entry (Stop Command), cated to use! the 1151 will stop, ready to accept a new manual entry. If the first step in the pro­ gram is not a manual entry, the 1151 will As stated on page 1, there are three man­ automatically carry out all the steps up to ual 1151 functions that cannot be program­ the first point where a manual entry is to med. be made and then stop. 2 LOOPING The third reason for a Stop Command brings up the topic of "manual looping". A manual A sequence of instructions learned by the loop may be accomplished at any Stop Com­ 1151 forms what may be referred to as a mand in a program by depressing the "loop". The diagram, below, illustrates PROGRAM RESET key. This will return, this: or "loop", the 1151 to the first step in the program sequence. The diagram below, illustrates this operation. TO DUP MEMORY PHiKT X= -'- = = + DUP FHOM ~lE~10RY + X= DUP FHO~l ~lEMORY FHOM ~lnl0HY + ..,- = + FRO~l ME110RY Notice that in the hypothetical sequence shown, we have two Stop Commands. He­ member what was stated preViously about the uses for a Stop Command: This ability to perform a manual loop allows us to re-use, indefinitely, the first portion 1. To allow for manual calculations. of a program, avoiding the remaining in­ 2. To allow for manual entries. structions. The 1151 is the only desk-top 3. To separate a portion of a program programmable calculator that offers this from the remainder of the program. program flexibility. 3 DECIMALIZATION AND OVERCAPACITY PROGRAMMING STEPS The position of the Answer Decimal is The 1151 will learn any sequence of up to immaterial when programming the 1151. 30 steps of programmable instructions. Each programmable command counts as one step. Remember that if while the 1151 If the operator is using a learned program is learning a sequence: and inadvertently has set the Answer Dec­ imal in the wrong position or incorrectly 1. A number is indexed and the FIRST enters a variable, it is possible that an NMBR/ PRINT key depressed,

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    24 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us