LinuxCNC parameter persistence

Help for setting up and using
Post Reply
daedelus
Site Admin
Posts: 388
Joined: Tue Oct 01, 2013 1:41 pm
Location: London, UK
Contact:

LinuxCNC parameter persistence

Post by daedelus »

I have made a bit of a mistake the other day following our discussion of LinuxCNC parameter persistence and I read the LinuxCNC manual wrong.

The quote I am referring to is:
The range of persistent parameters may change as development progresses. This range is currently 5161- 5390. It is defined in the _required_parameters array in file the src/emc/rs274ngc/interp_array.cc .
After finding this, I changed the code for AutoLeveller to store probed values in the parameters starting from #5161 so they could remain stored after a restart. Whilst it is true that these values are persisted, these values are system values and should not be written to. I have therefore changed it back to use parameters starting from #500 for storing the probed values. These values are not persisted but are 'user' variables, not 'system' variables, which are safe to use.

If you do want to persist probed values, you should add the values starting from 500 to the array quoted above (about 200 values should do it) but then this means editing the code which is not ideal.

Anyway, I just wanted to let you know the situation.
http://www.autoleveller.co.uk/. Software to probe and adjust a GCode file for PCB's or any probe-able surface.

http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.

-James
booski
Posts: 51
Joined: Sat Oct 19, 2013 4:46 pm

Re: LinuxCNC parameter persistence

Post by booski »

Cheers for letting us know James,
I've not gotten round to testing whether the values are stored inbetween cuts (rather than between sessions) but will do eventually.
I shall also try adding the persistent values to the array file.
For quality electronic components, visit my store on eBay UK!

Boos Bits - http://stores.ebay.co.uk/Booski-Bits
Post Reply