Value of current location in machine coordinates?
- JetForMe
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 305
- Thank you received: 16
24 Oct 2020 00:31 - 24 Oct 2020 00:40 #187054
by JetForMe
Value of current location in machine coordinates? was created by JetForMe
For my toolsetter routines, I'd like to know the value of the current position on the Z-axis in machine coordinates (I know the position of my toolsetter in machine coordinates).
I don't see a way to get this via numbered or named parameters. I don't really want to have to figure out by determining which coordinate system is currently in use and then doing the math, that seems really clunky.
Is there a way?
I suppose I can run my probing routines with G53 on each lineā¦NOPE, can't do that with G38.
Oh, I may have found my answer after more searching: forum.linuxcnc.org/20-g-code/27055-machi...m-g-code-hal-support
I don't see a way to get this via numbered or named parameters. I don't really want to have to figure out by determining which coordinate system is currently in use and then doing the math, that seems really clunky.
Is there a way?
I suppose I can run my probing routines with G53 on each lineā¦NOPE, can't do that with G38.
Oh, I may have found my answer after more searching: forum.linuxcnc.org/20-g-code/27055-machi...m-g-code-hal-support
Last edit: 24 Oct 2020 00:40 by JetForMe.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
24 Oct 2020 16:39 #187115
by Todd Zuercher
Replied by Todd Zuercher on topic Value of current location in machine coordinates?
You can look up the machine coordinate offset 5221-5390 and add/subtract that from your G53 coordinates to get the position you need. And if you need to look up what machine coordinate system is active there is a parameter for that as well.
Please Log in or Create an account to join the conversation.
Time to create page: 0.065 seconds