Skip to content

Add G81 and G83 drilling cycles#14225

Open
estechnical wants to merge 31 commits intoMarlinFirmware:bugfix-2.1.xfrom
estechnical:add-G81G83
Open

Add G81 and G83 drilling cycles#14225
estechnical wants to merge 31 commits intoMarlinFirmware:bugfix-2.1.xfrom
estechnical:add-G81G83

Conversation

@estechnical
Copy link

Requirements

This PR aims to add G81 and G83 drilling cycles for better compatibility with many CAM packages.

Description

Since many low cost CNC machines use Marlin as a controller, it makes a lot of sense to properly support common operations which are generated by CAM programs.

Not ready for use, I am opening this PR early for discussion.

Benefits

G81 and G83 drilling cycles are commonly generated by cam programs and drilling is much faster than milling a round hole, when an appropriate sized tool is available.

@estechnical
Copy link
Author

estechnical commented Jun 5, 2019

I have been try this out and it performs as expected in my early testing.

Example command: G81 X10 Y10 Z-5 R2

The function is as follows:

  • rapid move to X and Y position
  • if R is specified, rapid move Z to specified retract position
  • move Z to specified Z depth at G1 feed speed
  • rapid move Z to original height or R height if specified

I have not yet made this observe G0/G1 feed speeds.

@thinkyhead
Copy link
Member

Rebased, squashed, and augmented. To get this into your working copy, use the Git Console and execute the following commands:

git fetch origin
git checkout add-G81G83
git reset --hard origin/add-G81G83

There is still a lot of work to be done before this will be able to do proper drilling cycles with L repeat, relative mode, and so on. But for a single basic drilling cycle, this sparse implementation should work fine.

@boelle
Copy link
Contributor

boelle commented Nov 14, 2019

this one has also been collecting dust for a while? @thinkyhead

@FNeo31
Copy link

FNeo31 commented Nov 26, 2019

If you want use what I share on:

[FR] Add Drilling canned cycles to Marlin 2.0 #14448

@FNeo31
Copy link

FNeo31 commented Nov 26, 2019

If you need some support say something, I don't finish this but it's working (on old version) isn't modal yet, I didn't had time to spend on to because it's functional I removed the modal of post-processor on my CAM software. After put the 5axis working I'll fix this to work in modal way

@FNeo31
Copy link

FNeo31 commented Nov 30, 2019

I have the drilling cycle's ready to implement but for now like I said before without modal option for now.
I add G81(drilling), G82(dwell) and G83(pecking)
How can I merge that?

@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 2 times, most recently from 9c35a5b to 3dc49fd Compare December 2, 2019 02:53
@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 2 times, most recently from 6a1a2d4 to 022b6b9 Compare January 5, 2020 07:54
@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 2 times, most recently from c2ddf65 to f606d16 Compare January 15, 2020 03:50
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 2 times, most recently from 9c65146 to 4f65466 Compare January 26, 2024 00:13
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 37d77d6 to aa44542 Compare September 28, 2024 01:10
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 4354891 to efa1758 Compare March 28, 2025 01:57
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 3791e7d to 6ea4a16 Compare June 2, 2025 21:51
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 52532da to 06c6c47 Compare November 20, 2025 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants