CNC - simple G code drill operation into soft plastic

3 years ago
91

This video shows a basic drill operation using a few lines of G code.
The spindle was manually adjusted into position using Chilipeppr software before starting the operation.
I found it fairly quick to program just automate 1 drill operation then go the the next location and stop. If nothing went wrong, just click the run button again to start the next hole..

Here is G-code with additional spindle automation and lots of comments:
(Drill holes and go to next position to prepare for next hole.)
(Drill bit size #23, 20-55 RPM. Soft plastic)
(Only drill ? holes at a time to allow clearing of shavings)
(Set bit about 1/4" above work piece)
G20
M03 (SPINDLE ON clockwise)
G04 P5.0(Wait for spindle to ramp up)

G91 G01 F20 Z-0.50 (Drill hole - G91 is incremental mode, G01=move at feedrate F, G00 is move at max rate)
G91 G00 Z0.50 (raise drill out of material)

G91 G00 X1.00 (Go to hole 2 location 1" on x axis)
(repeat as needed for more holes)
(End of drilling)

M05 (stop spindle)
M02 (end program)

Loading comments...