Programming WP34s
|
10-12-2017, 01:53 PM
(This post was last modified: 10-12-2017 02:01 PM by Dieter.)
Post: #5
|
|||
|
|||
RE: Programming WP34s
(10-12-2017 04:21 AM)Matthias D. Wrote: Thanks, Yes, sure. Please read the answers again, that's perfectly normal and the way the 34s behaves. If the program reaches a RTN or END it does not stop there (!). It stops and resets the program pointer to the point where it was before the program was started. I know this looks strange if you are familiar with other (HP) calculators, and I don't like this either, but that's the way it is. Among other peculiarities of the 34s. The only way to make a program stop at its current position is R/S (or PROMPT). So you may add a R/S before the END. But pressing R/S once more after the program had ended will then proceed to the END and stop ...and reset the program pointer again to step 005 or 007 or whereever you left it last time – because that's what happens at and END or RTN command. You may try this for a better understanding: 1. Enter the program, quit program mode with P/R 2. GTO .005 3. P/R shows step 005 with TAN. Press P/R again to quit program mode. 4. 1 XEQ"SPD" 5. Program immediately stops with "1" in the display 6. P/R shows step 005 with TAN again. 7. Quit program mode again with P/R 8. Press g RTN, program pointer now is set to first step, BEG appears. 9. 1 XEQ"SPD" 10. Program immediately stops with "1" in the display 11. P/R shows step 001 with LBL"SPD" You can now rerun the program with R/S as often as you like. When it stops it is always reset to step 001 because that's where it was (due to the RTN) before you started the program. This means: if you want to run a program several times by simply pressing R/S you have to position the program pointer to its start before the first run. Either by a GTO"SPD" or with a simple RTN (if the program is the first in memory). This way, when the program stops due to a RTN or END, it will automatically be reset to its start. BTW I do not understand what the program is supposed to do. It puts a 1 in X and does some calculations after which the result is exactly 1 again. Then this 1 is compared to a value in Y. This value must have been entered before by the user because the program does not change Y. So if you enter any number ≤1 before the program is run, it will stop immediately. Enter anything >1 and it will loop forever and never stop. Dieter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Programming WP34s - Matthias D. - 10-09-2017, 04:58 AM
RE: Programming WP34s - Dieter - 10-09-2017, 06:23 AM
RE: Programming WP34s - Nigel (UK) - 10-09-2017, 11:34 AM
RE: Programming WP34s - Matthias D. - 10-12-2017, 04:21 AM
RE: Programming WP34s - Dieter - 10-12-2017 01:53 PM
RE: Programming WP34s - Matthias D. - 10-12-2017, 09:04 PM
RE: Programming WP34s - Matthias D. - 10-13-2017, 07:00 AM
RE: Programming WP34s - Dieter - 10-13-2017, 06:42 PM
|
User(s) browsing this thread: 3 Guest(s)