grblHAL / core

grblHAL core code and master Wiki
Other
304 stars 73 forks source link

Tool table offsets are not persistent over power cycle #494

Open karoria opened 2 months ago

karoria commented 2 months ago

Hi @terjeio I just checked with my new build that tool table offsets (of Z that is only written) are not saved persistently over power cycle(I get it by "$#" command). Is there any setting or compile time option I am missing? Further, is there any command/variable to read particular tool's Z offset? Regards, Ravi

karoria commented 2 months ago

Hi @terjeio Can u reproduce this in your system? I use teensy 4.1 with custom board map.

terjeio commented 2 months ago

I cannot reproduce this, neither wih flash or EEPROM storage. What is your N_TOOLS config?

karoria commented 2 months ago

N_TOOLS is 6. I am using 5 axis configuration.

terjeio commented 2 months ago

N_TOOLS is 6. I am using 5 axis configuration.

Works for me, only tested using flash storage. Settings and offsets are kept over a power cycle?

Further, is there any command/variable to read particular tool's Z offset?

The only way is to apply it and calculate the change in position. Add an inbuilt G65 macro to read it?

karoria commented 2 months ago

It looks like the tool table offsets given by G10L10P1Z10 command are not persistent over power cycle while G10L1P1Z10 are persistent over power cycle. Can you check it? Which method do you recommend to save only Z offsets?

terjeio commented 2 months ago

L10 (and L11) does not store the changes, this could be incorrect behaviour though. The LinuxCNC documentation is, IMO, ambiguous in that the L1 documentation excplicitly states that the tool table is written out but L10 (and L11) does not do so. Somebody that runs LinuxCNC can check?