Page 1 of 1
G52 Question
Posted: Sun Nov 19, 2023 11:38 pm
by RJS100
I have been entering G52 commands via MDI to offset the local coordinate system. I use it mostly to shift the Z axis so I can trial run g-code prior to actually running it (an air run). Is there a way to view how much offset has been applied to a given axis without verifying the value of your last G52 command?
Thanks... Richard
Re: G52 Question
Posted: Mon Nov 20, 2023 1:58 pm
by cncsnw
Not anywhere easy.
Arguably, there is no reason the G52 offsets could not be in a table somewhere: maybe a fourth option on the "WCS Table" menu below Part Setup; but for now, they are not.
1) You can make a report, open the report*.txt file from within the report*.zip file, and look in the "job file" listing:
Code: Select all
Job file
Last job file: c:\cncm\ncfiles\spindlebenchtest.cnc
Part count: 0 Edge Finder Diameter: 0.0000
PID Collection Axis: 1 Density: 1 Extension:
Move Commands: 1
2
3
4
5
WCS: #3 X axis Y axis Z axis N axis N axis N axis N axis N axis
G52 Shift Distance: 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Home State: Set Set Set Set Set Set Set Set
2) You can cancel the offset (G52 Z0), and see by how much the DRO position changes.
3) You can do some arithmetic: look at the current local (WCS) position of the axis; add the WCS offset value for the current WCS; and, for Z, add any active tool height (H) offset value. Compare the result to the current Machine Coordinates position of the axis. The difference is the G52 offset.
Re: G52 Question
Posted: Mon Nov 20, 2023 3:58 pm
by RJS100
Thanks so much for your thoughts. For simplicity, I will continue entering G52 Z0 when in doubt. I just thought maybe I was missing something.
Best... Richard
Re: G52 Question
Posted: Thu Nov 23, 2023 1:19 pm
by Sword
I use G52 offsets often as well, and also forget to clear it from time to time. I made a button that clears it for all axes, but it would be nice to have some means of indication or capturing a system variable to verify if it is active or not.
Some time ago I requested as a new feature if G52 could be included in the 'Active G-Code' line, for a quick reference, but it didn't make it in yet. A parameter or setting in the Wizard to clear any G52 offset upon restart could be another option.
Re: G52 Question
Posted: Thu Nov 23, 2023 2:27 pm
by cncsnw
A parameter or setting in the Wizard to clear any G52 offset upon restart could be another option.
You could just add "G52 X0 Y0 Z0" to your cncm.hom file. Done.
Re: G52 Question
Posted: Thu Nov 23, 2023 3:24 pm
by Sword
cncsnw wrote: ↑Thu Nov 23, 2023 2:27 pm
You could just add "G52 X0 Y0 Z0" to your cncm.hom file. Done.
That is true.
Would still be nice to have a visual in the active g-code line though.
Re: G52 Question
Posted: Fri Nov 24, 2023 1:16 am
by RJS100
I like the idea of adding to the home file.. Thanks!
Re: G52 Question
Posted: Thu Nov 30, 2023 4:11 pm
by cnckeith
cncsnw wrote: ↑Mon Nov 20, 2023 1:58 pm
Not anywhere easy.
Arguably, there is no reason the G52 offsets could not be in a table somewhere: maybe a fourth option on the "WCS Table" menu below Part Setup;
i added this idea to the to do list
Re: G52 Question
Posted: Thu Nov 30, 2023 8:27 pm
by ShawnM
Sword wrote: ↑Thu Nov 23, 2023 3:24 pm
Would still be nice to have a visual in the active g-code line though.
I like this idea so you could easily see it at a glance while running.
Re: G52 Question
Posted: Fri Dec 01, 2023 2:18 pm
by RJS100
Thanks for adding to the todo list. That is something I look at all the time.