Hello Guest it is March 29, 2024, 02:44:01 AM

Author Topic: G10 L20 or setting DROs to zero from G-code  (Read 9235 times)

0 Members and 1 Guest are viewing this topic.

Re: G10 L20 or setting DROs to zero from G-code
« Reply #10 on: October 10, 2017, 02:09:29 AM »
Hi Tweakie,

yes you did and I believe you and appreciate that but since Rich volunteered I thought maybe he had something to add/contribute but I seem to have difficulty in getting through to him with my original question.

wbr Kusti

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: G10 L20 or setting DROs to zero from G-code
« Reply #11 on: October 10, 2017, 02:27:06 AM »
My apologies.

Tweakie.
PEACE

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: G10 L20 or setting DROs to zero from G-code
« Reply #12 on: October 10, 2017, 08:59:39 AM »
Quote
I thought maybe RICH had something to add/contribute


My apologies  for attempting to help you and will not waste your time with any more replies from me.

My answer to your questions are as follows:

Quote
I would like to set DROs to zero (or any other value) from G-code without touching the G54/G92 offsets

Simplisticaly can't do it.

Quote
how can I do the equivalent of pressing the ZERO button with G-code?

Simplisticaly  can't do it.


NOTE: Your configuration and  active coordinate system has an influence on  what the Zero button will do and what is shown in the DRO.

RICH  
Re: G10 L20 or setting DROs to zero from G-code
« Reply #13 on: October 10, 2017, 09:28:35 AM »
Thanks Rich,

I do not understand why the annoyed tone in your response.
I think I've been courteous  and not a bit disrespectful towards any one.
Sorry about my lack of communication skills, English is not my native language.

And thank you very much for the confirmation that this cannot be done with G-code,
this is what Tweakie's answer implied and what I guessed from lot of reading
and googling. Just wanted to know if I had missed anything.

Fair point that ZERO button can do different things, I just used that as an example
to explain (poorly it seems) what it was I wanted to know.

Thanks again, Kusti


« Last Edit: October 10, 2017, 09:36:31 AM by nyholku »

Offline Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: G10 L20 or setting DROs to zero from G-code
« Reply #14 on: January 02, 2018, 06:27:46 PM »
Depending on what you need to do with the DRO set to zero you could look at the G52 command that sets a Local zero point as an offset from the current fixture point.

So you can move to any position, read the current location using the #vars and then use them to set the G52.

E.g.

G00 X100. Y50. Z25.
G52 X#5001 Y#5002 (Make current point zero)
(do your local work)
G52 X0 Y0 (cancel local offset)
G00 Z25.
M30

Your G54 and G92 are left unchanged but you can work at zero.

Without engineers the world stops
Re: G10 L20 or setting DROs to zero from G-code
« Reply #15 on: January 03, 2018, 02:57:58 AM »
Thanks, that was a new idea to me!