STO - RCL Size Error

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
coolepascal
Posts: 18
Joined: Tue Jun 09, 2020 11:21 am

STO - RCL Size Error

Post by coolepascal »

I'm fairly new to the DM42 (own a DM15 as well)
Tried some example programs but they often result in 'Size Error' no clue why.

Now suddenly i seem not to be able to Store or Recal numeric locations
Like

Code: Select all

25
STO 01
or equivalent

Code: Select all

25
RCL 01
Surely I'm doing something wrong, butr i could not find what.
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: STO - RCL Size Error

Post by grsbanks »

On the DM42 and the HP-42S, your numerical storage registers are part of the "REGS" matrix. If you delete that matrix or if it doesn't have enough elements to store the register you want to access (e.g. in your example STO 01, the matrix should have at least 2 elements, 00 and 01) then you get this error.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
coolepascal
Posts: 18
Joined: Tue Jun 09, 2020 11:21 am

Re: STO - RCL Size Error

Post by coolepascal »

To get further i resetted the calculator which (as you might expected) solved the issue.
I do not remember deleting a matrix but i'm a real noob on the machine.
If it happens again i'll check.
Thanks.
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: STO - RCL Size Error

Post by grsbanks »

You maybe didn't realize that it was a matrix but at some point you must have deleted the variable called "REGS".

Instead of resetting the calculator, you can recreate the variable by doing this:

Code: Select all

25 [ENTER] 1 [SHIFT] MATRIX NEW [STO] "REGS"
That creates a new matrix with room for 25 registers, which is the default on the HP-42S. Personally I tend to allocate room for 100 registers on the DM42 because there's plenty of room for them.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
Thomas Okken
Posts: 1102
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: STO - RCL Size Error

Post by Thomas Okken »

You can also use the SIZE function in the MODES menu; it will set the size of REGS to the desired number, and create REGS if it doesn't already exist. To set SIZE 25, type

[Shift] [+/-] [▼] [Σ+] [2] [5] [ENTER]
coolepascal
Posts: 18
Joined: Tue Jun 09, 2020 11:21 am

Re: STO - RCL Size Error

Post by coolepascal »

Thanks !
As i said i'm fairly new to this machine and apparently have missed this detail.
User avatar
48GX
Posts: 180
Joined: Wed May 20, 2020 4:37 am

Re: STO - RCL Size Error

Post by 48GX »

Thomas Okken wrote:
Wed Jun 24, 2020 9:41 pm
You can also use the SIZE function in the MODES menu; it will set the size of REGS to the desired number, and create REGS if it doesn't already exist. To set SIZE 25, type

[Shift] [+/-] [▼] [Σ+] [2] [5] [ENTER]
Thomas, is there a missing keystroke your operation? I just ran into this problem and want to set the size of REGS each time the program is run.
Waiting for SM to release DM42 hardware with one additional row of keys.
DM42, DB48X, DM32, HP42s, DM41X, HP35s, DM41L
Raising a next generation RPN/RPL user.
Thomas Okken
Posts: 1102
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: STO - RCL Size Error

Post by Thomas Okken »

No, there's nothing missing, that keystroke sequence is correct, and you should be able to use it in a program as well.
Why, what's the problem?
User avatar
48GX
Posts: 180
Joined: Wed May 20, 2020 4:37 am

Re: STO - RCL Size Error

Post by 48GX »

Shift +/- Down gives me a soft menu that has Size on it but you didn’t use it. You went for the Sum+ button. I guess I do t understand why pull up the menu and not use a menu item. What am I missing?
Waiting for SM to release DM42 hardware with one additional row of keys.
DM42, DB48X, DM32, HP42s, DM41X, HP35s, DM41L
Raising a next generation RPN/RPL user.
Thomas Okken
Posts: 1102
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: STO - RCL Size Error

Post by Thomas Okken »

Oh, I see... [Σ+] is the first menu key in Free42 and on the HP-42S, but on the DM42, you have to press the leftmost soft key instead, since the [Σ+] key executes the Σ+ function there, even if a menu is active.
Post Reply