August 23 2022
Drilling
****** THIS DOCUMENT IS UNDER CONSTRUCTION, THIS IS FOR THE NEW RELEASE 4.x ******
Introduction
Ultimate CNC (4.x) has implemented an easy and customizable drilling system. The drill need setting, and it is applied when you create a Drill from SimpleCAD or Scripts.
SimpleCAD has a drilling system based on XY coordinates. If you want to create a more complex way to drill, you can customize it from Scripts.
In the "Drilling" settings screen you can set 3 modes for drilling, it depends on your hardware, so you can use / configure the next templates.
- Basic
- On this template you can configure speed of spindle, dwell, and feedrate used for Z (drill)
- Dwell
- On this template you can configure speed of spindle, dwell, and feedrate used for Z (drill), and Dwell for z in max. depth
- Customized
- This options is completely open: allow you to add / remove G-code to drill. So, you can specify M3/M4, etc...
Next tags can be customized:
- G_SPEED
- Speed spindle, rpm
- G_DWELL
- Dwell in seconds, spindle
- G_Z_FEEDRATE
- Feedrate, Z for drill
- G_DRILL_DWELL
- Dwell in seconds, Z on depth
- G_Z_DEPTH
- Don't modify or remove this tag
- G_Z_UP
- Don't modify or remove this tag
The previous mechanism G-code will be deprecated and probably will be removed (G81, ...). We recommend use the new mechanism, is more easy, and flexible.
G-code G81: Drilling Cycle
The tool positions itself at the top of the hole. The tool feeds to the specified Z position at the programmed feed rate. The tool retracts in rapid mode to either the previous Z position or the R plane.
G81 X1 Y0 Z-0.5 R1 L4
Values:
- X: The X location of the first hole.
- Y: The Y location of the first hole.
- Z: The depth of the first hole (absolute).
- R: Retract.
- F: Feedrate. If nothing is input, then the last used feed rate will be used.
- L: Number of times to repeat.
Sample Code:
- G90 G0 X0 Y0 Z0
- G01 F10 X0 G4 P0.1
- G91 G81 X1 Y0 Z-0.5 R1 L4
- X0 Y1 R0 L3
- X-1 Y0 L3
- X0 Y-1 L2
- G80
- G90 G0 X0
- Y0
- Z0
- M2
G-code G82: Drilling Cycle, Dwell
G82 X1 Y0 Z-0.5 R1 L4 P1
Values:
- X: The X location of the first hole.
- Y: The Y location of the first hole.
- Z: The depth of the first hole (absolute).
- R: Retract.
- F: Feedrate. If nothing is input, then the last used feed rate will be used.
- L: Number of times to repeat.
- P: Dwell, number of seconds