On Thu, 9 May 2024 at 18:55, Todd Zuercher via Emc-users <
emc-users@lists.sourceforge.net> wrote:

> I would like to create a few persistent global named parameters.
>

Hmmm....

You can make numbered parameters persistent simply by adding them to the
.vars file.

 So one way would be to run a subroutine in STARTUP_G_CODES which transfers
persistent numerical parameters into named ones.
But that leaves the storage of them unsolved.

I did something like you describe with a Python HAL component a while ago.
Maybe this can be modified to do the trick for you?

https://forum.linuxcnc.org/38-general-linuxcnc-questions/50010-stmbl-pseudo-absolute-resolver-behaviour#280386

It basically loads some values from a file at startup, then saves the
values to file at shutdown.
https://forum.linuxcnc.org/38-general-linuxcnc-questions/50010-stmbl-pseudo-absolute-resolver-behaviour#280386

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to