This job involves milling all the necessary holes on a blank wooden drum shell (a musical instrument) to accommodate drum lugs, air vents, and other attachments. The provided example specifically demonstrates milling the attachment points for the legs of a bass drum.
We use milling instead of drilling to avoid issues like splintering, especially with delicate woods like mahogany, which will splinter without proper backing. Milling also allows us to handle various hole sizes using a single milling bit, eliminating the need to switch tools multiple times during the process. Each bit of attachment hardware has hole patterns from 2 to 6 holes.
The code I'm using is what we're currently using with Mach4, and successfully running for 10 years. We're about to pull off the old controller and put on a Centroid controller. We have about 600 different drum patterns and G-code job files. Since wooden drums dimensions are not particularly accurate our automation probes the drum to make sure it's reasonably close it then launches the drilling job and uses the results of the probe to accurately place the holes. Which is why you'll see Pythagorean theorem and some Euclidean geometry in the gcode that's calculating the position, and why the numbers cannot be hard coded and offsets set manually in the machine.
My C# automation of Centroid is almost done but I wasn't prepared for the differences in GCode, I assumed GCode worked pretty much the same from machine to machine. I'm a programmer and my GCode experience is only with the automation and processing of the shells for our custom drum line. The initial GCode was provided by someone using CAD/Cam software that created the GCode. I just adapted it into my drum design software that I wrote.
G10 Issues
Moderator: cnckeith
-
- Posts: 33
- Joined: Fri Nov 22, 2024 4:25 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: B4107B77A373-0905248481
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: G10 Issues
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3445
- Joined: Thu Sep 23, 2021 3:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 6433DB0446C1-08115074
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Germany
Re: G10 Issues
G92 X1 Y0 Z0 ; Sets the current position to the absolute position specified.
That should be the same like
G10 L2 P1 X1 Y0 Z0
in mach4 assuming the current WCS is G54
#150–#159 are nonvolatile user variables Floating-point value
#100–#149 volatile user variables that can be used in one job
Related reading in the mill manual:
11.2.16 #, = – User or System Variable Reference
IMHO with some adjustments in your g-code that will work like before.
Uwe
That should be the same like
G10 L2 P1 X1 Y0 Z0
in mach4 assuming the current WCS is G54
#150–#159 are nonvolatile user variables Floating-point value
#100–#149 volatile user variables that can be used in one job
Related reading in the mill manual:
11.2.16 #, = – User or System Variable Reference
IMHO with some adjustments in your g-code that will work like before.
Uwe
1 user liked this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
(Note: Liking will "up vote" a post in the search results helping others find good information faster)