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
G52 Question
Moderator: cnckeith
Re: G52 Question
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:
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.
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
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.
-
- Posts: 252
- Joined: Tue Oct 20, 2020 8:41 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Arizona
Re: G52 Question
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
Best... Richard
-
- Posts: 594
- Joined: Fri Nov 30, 2018 1:04 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Thorp WI
Re: G52 Question
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.
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.
Scott
Re: G52 Question
You could just add "G52 X0 Y0 Z0" to your cncm.hom file. Done.A parameter or setting in the Wizard to clear any G52 offset upon restart could be another option.
-
- Posts: 594
- Joined: Fri Nov 30, 2018 1:04 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Thorp WI
Re: G52 Question
That is true.

Would still be nice to have a visual in the active g-code line though.
Scott
-
- Posts: 252
- Joined: Tue Oct 20, 2020 8:41 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Arizona
Re: G52 Question
I like the idea of adding to the home file.. Thanks!