Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

MR-C3024 Memory

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
7 postsPage 1 of 1
7 postsPage 1 of 1

MR-C3024 Memory

Post by Humanoido » Thu Jan 18, 2007 9:42 pm

Post by Humanoido
Thu Jan 18, 2007 9:42 pm

Is there an easy way to determine the amount of remaining free memory after loading in a template?

Apparently RoboBasic has no PRINT MEM function that early Basic languages had. RoboBasic does have a way to PEEK the data from the MR-C3024 RAM and ROMPEEK to read data from the controller's external EEPROM RAM. Since the ATMEL ATMEGA has been around for some time, is there a routine to determine remaining memory after a program is loaded in? or how to do it?

Humanoido
Is there an easy way to determine the amount of remaining free memory after loading in a template?

Apparently RoboBasic has no PRINT MEM function that early Basic languages had. RoboBasic does have a way to PEEK the data from the MR-C3024 RAM and ROMPEEK to read data from the controller's external EEPROM RAM. Since the ATMEL ATMEGA has been around for some time, is there a routine to determine remaining memory after a program is loaded in? or how to do it?

Humanoido
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Easy

Post by Gman » Fri Jan 19, 2007 3:30 am

Post by Gman
Fri Jan 19, 2007 3:30 am

Load your program to the Robonova

In RoboBasic select 'Controller' --> 'Controller Information'

A small window will show information including how much memory your program occupies.

Hope this helps
Load your program to the Robonova

In RoboBasic select 'Controller' --> 'Controller Information'

A small window will show information including how much memory your program occupies.

Hope this helps
Gman
Robot Builder
Robot Builder
User avatar
Posts: 15
Joined: Fri Jun 30, 2006 1:00 am
Location: Canada

Post by Humanoido » Fri Jan 19, 2007 5:55 am

Post by Humanoido
Fri Jan 19, 2007 5:55 am

Thanks Gman! That's very helpful, and interesting. My modded template is only 18.6K and with 64K total memory initially available, RN could hold 18 similar sized templates! That's a lot of code! This template is 1894 lines of code, so 18 tempates would equate to about 34,000 lines of total code. Not bad!

BTW, integer basic is not bad. In the 70s, there was a Tiny Basic by Tom Pittman which was very popular on microcomputers with the RCACDP1802MPU. It ran very efficient and was a compact code. There were numerous articles and tutorials on creating various mathematical functions, including floating point. Many of those documents are still posted on the web, including the original tutorial for Tiny Basic.

Don't worry too much though, about reinventing the wheel, so to speak. Thousands of years ago, the Chinese experimented with gunpowder and made black powder rockets. While on tour at the National Palace Museum in the Republic of China, I saw an exact replica model of that original rocket. Surprising, it looked almost identical to the twin solid rocket boosters on NASAs Space Shuttle which are comprised of, you guessed it, black powder.

Thanks again, Gman.

Humanoido
Thanks Gman! That's very helpful, and interesting. My modded template is only 18.6K and with 64K total memory initially available, RN could hold 18 similar sized templates! That's a lot of code! This template is 1894 lines of code, so 18 tempates would equate to about 34,000 lines of total code. Not bad!

BTW, integer basic is not bad. In the 70s, there was a Tiny Basic by Tom Pittman which was very popular on microcomputers with the RCACDP1802MPU. It ran very efficient and was a compact code. There were numerous articles and tutorials on creating various mathematical functions, including floating point. Many of those documents are still posted on the web, including the original tutorial for Tiny Basic.

Don't worry too much though, about reinventing the wheel, so to speak. Thousands of years ago, the Chinese experimented with gunpowder and made black powder rockets. While on tour at the National Palace Museum in the Republic of China, I saw an exact replica model of that original rocket. Surprising, it looked almost identical to the twin solid rocket boosters on NASAs Space Shuttle which are comprised of, you guessed it, black powder.

Thanks again, Gman.

Humanoido
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Post by TheGuru » Fri Jan 19, 2007 10:46 am

Post by TheGuru
Fri Jan 19, 2007 10:46 am

My modded template is only 18.6K and with 64K total memory initially available, RN could hold 18 similar sized templates! That's a lot of code! This template is 1894 lines of code, so 18 tempates would equate to about 34,000 lines of total code. Not bad!


Humanoido, not one to dampen your enthusiasm but I have to take issue with your maths here. If you've found a way to cram 335K(18*18.6k) into 64K of space I'd like to know how you'd do it?

The actual approximate figures are 3.4x your current template and just over 6500 code lines.

Mark
My modded template is only 18.6K and with 64K total memory initially available, RN could hold 18 similar sized templates! That's a lot of code! This template is 1894 lines of code, so 18 tempates would equate to about 34,000 lines of total code. Not bad!


Humanoido, not one to dampen your enthusiasm but I have to take issue with your maths here. If you've found a way to cram 335K(18*18.6k) into 64K of space I'd like to know how you'd do it?

The actual approximate figures are 3.4x your current template and just over 6500 code lines.

Mark
Never criticise a man until you've walked a mile in his shoes ... then you can say what you want cos he's a mile away and you have his shoes ;o)
TheGuru
Robot Builder
Robot Builder
User avatar
Posts: 10
Joined: Sun Dec 17, 2006 1:00 am
Location: Coventry, UK

Post by Humanoido » Sat Jan 20, 2007 5:11 am

Post by Humanoido
Sat Jan 20, 2007 5:11 am

Oops, this kind of math only works at 4 am when the brain is half asleep, but really, only 6,500 lines of code available - that's a real damper! I had alotted 10,000 for motion control, 15,000 for AI, and 5,000 for sensor management. What will I do now? How many more RN's will I need to link together?! 8O ... thnxs for the correction! Humanoido
Oops, this kind of math only works at 4 am when the brain is half asleep, but really, only 6,500 lines of code available - that's a real damper! I had alotted 10,000 for motion control, 15,000 for AI, and 5,000 for sensor management. What will I do now? How many more RN's will I need to link together?! 8O ... thnxs for the correction! Humanoido
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Post by Humanoido » Sat Jan 20, 2007 5:15 am

Post by Humanoido
Sat Jan 20, 2007 5:15 am

<<DUPLICATE POST REMOVED>>
<<DUPLICATE POST REMOVED>>
Last edited by Humanoido on Sun Jan 21, 2007 12:40 am, edited 1 time in total.
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Post by DirtyRoboto » Sat Jan 20, 2007 2:36 pm

Post by DirtyRoboto
Sat Jan 20, 2007 2:36 pm

Sorry, My bad!
Sorry, My bad!
DirtyRoboto
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 412
Joined: Tue Sep 19, 2006 1:00 am
Location: London


7 postsPage 1 of 1
7 postsPage 1 of 1