Learn the basics of G-code programming. Learn how to cut real-world objects on a CNC machine using G-code routines.
Overview
Syllabus
Introduction
- Welcome
- How to use the exercise files
- Understand work coordinate systems
- Absolute and incremental commands: G90 and G91
- Understand tool offsets
- Modal functions
- Safety block
- Safety checks
- G-code editors and simulators
- Programming resources
- G00: Rapid moves
- G01: Feed moves
- G02 and G03: Circular interpolation
- G04: Dwell
- G17, G18, and G19: Plane selection
- G20 and G21: Unit system selection
- G28: Return to machine zero position
- G53: Machine coordinate system selection
- G41, G42, and G40: Cutter compensation
- G81, G82, and G80: Drilling canned cycle
- G83: Peck drilling cycle
- G84: Tapping
- M00: Program stop
- M01: Optional stop
- M03, M04, and M05: Spindle on and off
- M06: Tool change
- M08: Coolant
- Write a sample program
- Review the program code
- Next steps
Taught by
Gabriel Corbett