winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.89k stars 763 forks source link

Feature request: Reset Z axis to another number than zero #556

Closed poisa closed 7 years ago

poisa commented 7 years ago

As shown in this YouTube video it is sometimes useful to reset your Z axis to some arbitrary dimension other than zero in order to prevent cutting through your spoilboard. So instead of telling your machine "hey, this is zero" while the bit touches the top of your work, you tell it "hey, this is 1 inch" when the bit is touching the spoilboard. This makes it very easy to ensure that your cutter will not go into your spoilboard.

I'd love to be able to do this with Universal G Code Sender.

jahnj0584 commented 7 years ago

You can already do this with a G54, gcode command, or simply jogging that 1" off your spoiler and using the existing button to reset it instead of the material.

On Dec 22, 2016 8:11 PM, "Julian Vidal" notifications@github.com wrote:

As shown in this YouTube video https://www.youtube.com/watch?v=Q-Q1o16Ux-I it is sometimes useful to reset your Z axis to some arbitrary dimension other than zero in order to prevent cutting through your spoilboard. So instead of telling your machine "hey, this is zero" while the bit touches the top of your work, you tell it "hey, this is 1 inch" when the bit is touching the spoilboard. This makes it very easy to ensure that your cutter will not go into your spoilboard.

I'd love to be able to do this with Universal G Code Sender.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/winder/Universal-G-Code-Sender/issues/556, or mute the thread https://github.com/notifications/unsubscribe-auth/AQlzDEKVLU8_z_uKBHSZjViFeu5w7HADks5rKxG7gaJpZM4LUfFw .

poisa commented 7 years ago

or simply jogging that 1" off your spoiler and using the existing button to reset it instead of the material.

Sometimes the easiest solutions are right in front of us. Thanks!

winder commented 7 years ago

@poisa thanks for the suggestion. I think right now I'd recommend a macro, I think what you want is something like G10 P0 L20 Z1. You can also try G10 P0 L20 Z{prompt|z-height} if you find yourself wanting to use different heights.