Restore Config from EEPROM
4 years 4 months ago #29534517
by zshivers
Restore Config from EEPROM was created by zshivers
Is there a Microbasic command that can be used to restore all RAM configuration parameters back to their EEPROM values? I need what the EELD command provides (EELD is serial only, it seems).
Interestingly, there is already EES which does RAM>EEPROM. I'd like EEPROM>RAM.
Interestingly, there is already EES which does RAM>EEPROM. I'd like EEPROM>RAM.
Please Log in or Create an account to join the conversation.
- Gabriel_Isko
4 years 4 months ago - 4 years 4 months ago #29534519
by Gabriel_Isko
Replied by Gabriel_Isko on topic Restore Config from EEPROM
I don't know if there is anything that does exactly what you are asking for, but the first workaround that comes to mind is using %reset to reboot the controller. I will check to see if there is a command that can accomplish this without rebooting.
Please Log in or Create an account to join the conversation.
4 years 3 months ago #29534532
by zshivers
Replied by zshivers on topic Restore Config from EEPROM
%reset is a serial command, right?
Were you able to find anything?
Were you able to find anything?
Please Log in or Create an account to join the conversation.
- Gabriel_Isko
4 years 3 months ago #29534533
by Gabriel_Isko
Replied by Gabriel_Isko on topic Restore Config from EEPROM
%reset is a serial maintenance command.
Unforutnately there is no other way to reload the flash settings. You cannot call reset in microabassic either.
Unforutnately there is no other way to reload the flash settings. You cannot call reset in microabassic either.
Please Log in or Create an account to join the conversation.
4 years 3 months ago #29534534
by zshivers
Replied by zshivers on topic Restore Config from EEPROM
Thanks for your reply! I'll find another way.
Perhaps this could be added as a future feature? It seems less risky than the EESAV command, which is already available. And it would let you safely restore the config without having to save every config parameter you change into local microbasic variable.
To give you an idea of my use case - I created a homing sequence were I wanted to remove encoder limits and change the current triggering. A lower current trigger was required to minimize risk of damage during a homing operation. After the homing is complete, it is convenient to restore the original parameters from EEPROM instead of reading the changed parameters, storing them in variables and then restoring them manually. It would also be less error prone.
Perhaps this could be added as a future feature? It seems less risky than the EESAV command, which is already available. And it would let you safely restore the config without having to save every config parameter you change into local microbasic variable.
To give you an idea of my use case - I created a homing sequence were I wanted to remove encoder limits and change the current triggering. A lower current trigger was required to minimize risk of damage during a homing operation. After the homing is complete, it is convenient to restore the original parameters from EEPROM instead of reading the changed parameters, storing them in variables and then restoring them manually. It would also be less error prone.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds