From the course: G-Code Programming for CNC Foundations
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
G28: Return to machine zero position - G-Code Tutorial
From the course: G-Code Programming for CNC Foundations
G28: Return to machine zero position
- The return to home command is the G28. And you can call the G28 to send your machine back to the machine home position. You can also add an X, a Y, or a Z value to automatically make the machine go to an intermediate position before returning to home. Let me show you how it works. So, first off, we need to make sure we're using an incremental mode, so we're using a G91 mode with that G28. Now, we can call the G91, then the G28, and then a X, a Y, and a Z, now notice these are all zero, that means it's not going to go anywhere before heading home. So it's already there, so it's just going to go ahead and just head back to home. Now, if you wanted to add something like a Z of 4.0, it's going to go to an intermediate position that happens to be four inches above where it currently is. You could also add X moves or Y moves or wherever you happen to want to move that machine prior to heading back to the machine home position. Now, most of the time, people will be doing that if they had…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
G00: Rapid moves5m 44s
-
G01: Feed moves4m 17s
-
G02 and G03: Circular interpolation8m 11s
-
G04: Dwell3m 39s
-
G17, G18, and G19: Plane selection3m 7s
-
G20 and G21: Unit system selection1m 55s
-
G28: Return to machine zero position4m 52s
-
G53: Machine coordinate system selection5m 2s
-
G41, G42, and G40: Cutter compensation7m 44s
-
G81, G82, and G80: Drilling canned cycle6m 16s
-
G83: Peck drilling cycle6m 8s
-
G84: Tapping4m 10s
-
-
-
-