Skip to content

fix(interp): reset G52/G92 offsets on prog_stop when DISABLE_G92_PERSISTENCE=1#4098

Open
Sigma1912 wants to merge 1 commit into
LinuxCNC:masterfrom
Sigma1912:fix_g52_g92_reset_on_m2
Open

fix(interp): reset G52/G92 offsets on prog_stop when DISABLE_G92_PERSISTENCE=1#4098
Sigma1912 wants to merge 1 commit into
LinuxCNC:masterfrom
Sigma1912:fix_g52_g92_reset_on_m2

Conversation

@Sigma1912
Copy link
Copy Markdown
Contributor

@Sigma1912 Sigma1912 commented Jun 1, 2026

This fixes #4096

The current code only resets the parameter values to zero but does not actually reset the applied G92 offset values.

  • Adds canonical command to actually reset applied G92/G52 offset on M2,M30,M99 with [RS274NGC] 'DISABLE_G92_PERSISTENCE = 1'
  • Updates INI documentation on DISABLE_G92_PERSISTENCE to reflect and agree with 'GCODE' documentation
  • Modify the 'g92-offset-persistence' test to account for the added 'SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)'
  • Change type to 'bool' rather than 'int'

@Sigma1912 Sigma1912 marked this pull request as draft June 1, 2026 08:52
@Sigma1912 Sigma1912 force-pushed the fix_g52_g92_reset_on_m2 branch from eb25871 to af6cdf8 Compare June 1, 2026 09:05
@Sigma1912 Sigma1912 marked this pull request as ready for review June 1, 2026 12:12
@Sigma1912 Sigma1912 force-pushed the fix_g52_g92_reset_on_m2 branch 3 times, most recently from 4dd8afd to 96bb95a Compare June 1, 2026 13:15
@Sigma1912 Sigma1912 marked this pull request as draft June 1, 2026 16:23
…ISTENCE=1

This fixes LinuxCNC#4096

- Adds canonical command to actually reset applied G92/G52 offset on M2,M30 with [RS274NGC] 'DISABLE_G92_PERSISTENCE = 1'
- Updates INI documentation on DISABLE_G92_PERSISTENCE to reflect new behavior and agree with 'GCODE' documentation
- Modify the 'g92-offset-persistence' test to account for the added 'SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)'
- Change type to 'bool' rather than 'int'
@Sigma1912 Sigma1912 force-pushed the fix_g52_g92_reset_on_m2 branch from 96bb95a to 7e9c891 Compare June 1, 2026 16:42
@Sigma1912 Sigma1912 marked this pull request as ready for review June 1, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(interp): G52,G92 is not reset on M2,M30 regardless of DISABLE_G92_PERSISTENCE setting

1 participant