G-Code Programming for CNC Foundations
2h 13mBeginner2018-04-02
Authors

Gabriel Corbett
Product Designer, Instructor, and Speaker
Course details
G-Code is the code that controls CNC machining centers, CNC lathes, CNC routers, and most 3D printers. This course teaches the fundamentals of G-Code to the programmers, engineers, and designers that need to write, read, and edit it. It also takes you to the Haas factory floor to see how the code works on a real HAAS VF3 SS machining center. Instructor Gabriel Corbett reviews the most popular G-codes for movement, positioning, selection, drilling, and tapping, as well as M-codes for tool changes, spindle starting and stopping, and control of coolant. At the end of the course, Gabriel machines a complete part at the HAAS factory on a high-speed CNC machining center. The G-code routines used include advanced adaptive contouring routines for outside roughing, pocketing, drilling, tapping, and so much more.
Learning objectives
CNC concepts
G-code editor and simulator software
G-codes: G00-G84
M-codes: M00-M09
Writing a sample program in G-Code
Learning objectives
CNC concepts
G-code editor and simulator software
G-codes: G00-G84
M-codes: M00-M09
Writing a sample program in G-Code
Skills covered
G-CodeCNC and CAMAutodeskFoundationsProduct and Manufacturing
Concepts
0. Introduction
- 01 - Welcome
- 02 - How to use the exercise files
1. CNC Concepts
- 03 - Understand work coordinate systems
- 04 - Absolute and incremental commands - G90 and G91
- 05 - Understand tool offsets
- 06 - Modal functions
- 07 - Safety block
- 08 - Safety checks
- 09 - G-code editors and simulators
- 10 - Programming resources
2. G-Codes
- 11 - G00 - Rapid moves
- 12 - G01 - Feed moves
- 13 - G02 and G03 - Circular interpolation
- 14 - G04 - Dwell
- 15 - G17, G18, and G19 - Plane selection
- 16 - G20 and G21 - Unit system selection
- 17 - G28 - Return to machine zero position
- 18 - G53 - Machine coordinate system selection
- 19 - G41, G42, and G40 - Cutter compensation
- 20 - G81, G82, and G80 - Drilling canned cycle
- 21 - G83 - Peck drilling cycle
- 22 - G84 - Tapping
3. M-Codes
- 23 - M00 - Program stop
- 24 - M01 - Optional stop
- 25 - M03, M04, and M05 - Spindle on and off
- 26 - M06 - Tool change
- 27 - M08 - Coolant
4. Sample Programs
- 28 - Write a sample program
- 29 - Review the program code
Conclusion
- 30 - Next steps