G92 disable persistence

More
24 Feb 2024 06:15 #294178 by An
G92 disable persistence was created by An
Hi everyone, 

Wondering what behaviour I could expect in axis when disable g 92 persistence is active? Would you expect to see the g92 axis value return to 0.00 when an m2 or m30 is encountered? Version 2.8.4

thanks
ant

Please Log in or Create an account to join the conversation.

More
24 Feb 2024 10:28 #294183 by Aciera
Replied by Aciera on topic G92 disable persistence
'G92 persistence' refers to Config-Startup, M2/M30 will not affect G92 offset values/state.

Please Log in or Create an account to join the conversation.

More
24 Feb 2024 10:44 #294185 by Aciera
Replied by Aciera on topic G92 disable persistence
Note, there are some bugs regarding 'G92' in the 'Active GCodes' list:
github.com/LinuxCNC/linuxcnc/issues/2743

Please Log in or Create an account to join the conversation.

More
24 Feb 2024 19:18 - 24 Feb 2024 19:19 #294235 by An
Replied by An on topic G92 disable persistence
Thanks for the reply Aciera. The reason I was asking re the program end was this (from 2.8 manual) - ‘Programmers that wish for Fanuc behavior, where G92 offsets are cleared at machine start and after a reset or program end, may disable G92 persistence by setting DISABLE_G92_PERSISTENCE
= 1 in the [RS274NGC] section of the .ini file. the 2.8 user manual ‘
Last edit: 24 Feb 2024 19:19 by An. Reason: Clarity

Please Log in or Create an account to join the conversation.

More
25 Feb 2024 12:21 #294357 by Aciera
Replied by Aciera on topic G92 disable persistence
Indeed, this is still in the current documentation for 2.9.x:
linuxcnc.org/docs/html/gcode/coordinates...ha:coordinate-system

However it does not seem to reflect the behavior observed, but I have not tested versions before 2.9. I somewhat doubt that it worked in 2.8.

Also beware of this bug:
github.com/LinuxCNC/linuxcnc/issues/2908
The following user(s) said Thank You: An

Please Log in or Create an account to join the conversation.

More
25 Feb 2024 13:26 #294359 by Mecanix
Replied by Mecanix on topic G92 disable persistence
Regardless whether it works, buggy or not, you have access to a sub and given full control for most machine state behaviors (G10 offsets incl). Much safer and easier to keep track of what's what and who's doing what that way. 

1. Create a file in your nc subroutines folder named "on_abort.ngc"
2. in your *.INI file, amend the RS274NGC section. 

INI file 
[RS274NGC]
SUBROUTINE_PATH = path_to_your/nc_subroutines
ON_ABORT_COMMAND = o <on_abort> call


on_abort.ngc example
o<on_abort> sub

    G59 (Bug fix. See: https://github.com/LinuxCNC/linuxcnc/issues/2745)
    G54 (origin offsets are set to the default)
    G18 (select XY plane)
    G90 (absolute)
    G94 (feed mode: units/minute)
    M48 (set feed and speed overrides)
    G40 (cutter compensation off)
    M5  (spindle off)
    G80 (cancel modal motion)
    M9  (mist and coolant off)

    o100 if [#1 eq 5]
        (machine on)
    o100 elseif [#1 eq 6]
        (machine off)
    o100 elseif [#1 eq 7]
        (estopped)
    o100 elseif [#1 eq 8]
        (msg, abort pressed)
    o100 else
        (DEBUG, [on_abort.ngc] error parameter is [%d#1])
    o100 endif

o<on_abort> endsub
m2
 

Please Log in or Create an account to join the conversation.

More
25 Feb 2024 14:09 #294362 by Aciera
Replied by Aciera on topic G92 disable persistence
Thanks for that example.
While that is a workaround for some of the shortfalls it does not come by default. Any new user would be caught totally by surprise. Even experienced users would not expect to be deceived by the DRO like this.

As a user I find it rather unimpressive that basic functionality like G92, G52 could be in such a state of disrepair (if indeed it ever worked properly).
The following user(s) said Thank You: Mecanix

Please Log in or Create an account to join the conversation.

More
25 Feb 2024 14:49 #294371 by Mecanix
Replied by Mecanix on topic G92 disable persistence
Devs are aware of it, Sigma1912 particularly. #2908

As long as we are all aware, in a meantime it's all good. For info that on_abort ain't a band-aid but a powerful option to gain full control on states' behavior rather. Quite reliable too, didn't miss any of my custom off/on init and close/aborts once (logic applied). Fun to know for certain in what state your tools are - recommend.

Please Log in or Create an account to join the conversation.

More
25 Feb 2024 15:05 #294374 by Aciera
Replied by Aciera on topic G92 disable persistence

Devs are aware of it, Sigma1912 particularly. #2908

Yes, he certainly is aware of it but unfortunately he does not know how to fix it.
I know for sure because that is my alter ego on GitHub

Please Log in or Create an account to join the conversation.

More
25 Feb 2024 15:10 #294377 by Mecanix
Replied by Mecanix on topic G92 disable persistence
wt... you're Sigma?

Please Log in or Create an account to join the conversation.

Time to create page: 0.228 seconds
Powered by Kunena Forum