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.
Modal functions - G-Code Tutorial
From the course: G-Code Programming for CNC Foundations
Modal functions
- [Narrator] In this movie, we're going to be talking about modal functions or modal commands. Now a modal function is something that stays on in the controller until you turn it off or select something else. Let me give you a couple of examples. The first one is going to be feed and rapid moves. Now, if you call up a G0, which is a rapid move, you can then just call out X, Y, and Z commands after that, you don't have to put that G0 command on every single line. If then you switch over to a G1 command, which is a feed move, you can then just call out again X, Y, Z, A, B, and C moves all you want until you're done making feed moves. Now you can easily switch back to a G0 command or some other command and the control will automatically adjust. And again, the CNC machine will stay in that command sequence until you tell it some other G code. Here's another example, work offsets. If you select a G54 or 55, 56, 57, 58, 59, any one of those, they will stay active until you select a…
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.