In this video tutorial by the @GCode Tutor, Marc Cronin talks about basic movements of a CNC machine using Gcode.
Basic movements commands, such as G00 (rapid travel) or G01 (linear interpolation), are typically used to communicate to the machine where to move the cutter along the X, Y, or Zaxis, and how quick the movement should be.
Unlike incremental movements, which are calculated based on the current position of the tool, basic movements (or absolute movements) are determined based on a Cartesian Coordinate System where the datum position is the center of the system (X0;Y0;Z0)
Here's a simple example using G00 and G01:
G00 X0.0 Y0.0;
Z10.0 M08;
G01 Y160.0 F100;
X200.0;
The first line in the example above is telling the machine to position the cutter in the datum position (X0.0 Y0.0) as quickly as possible (G00).
Now with the cutter in position, the second line tells the machine to lower the tool by 10mm along the Zaxis and turn on the coolant (M08). (NOTE: we could repeat the G00 code at the beginning of the line but it's not necessary since the command is still active from the line above.
Once the cutter is in position we can tell the machine to start cutting on a straight line using the G01 command. In the example, the command is telling the machine to cut along the Yaxis for 160mm from the datum position at a 100mm/min feed rate (F100.0)
Last, on the fourth line, the command is telling the machine to take a straight cut along the Xaxis for 200mm. As mentioned above, we don’t need to repeat the G01 command of the feed rate, since both commands are already active from the line above.
To learn more about the subject or expand your Gcode knowledge visit Gcodetutor.com (https://rb.gy/7yzqfn).
Stay tuned for more machining videos!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Recommended CNC programming books:
Fanuc CNC Custom Macros https://amzn.to/370yX0P
CNC Programming Handbook https://amzn.to/2MPxT9g
CNC Programming Techniques https://amzn.to/3aTS4el
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Practical Machinist is the largest and most engaged #metalworking community across the web. With more than 160,000 registered members and 250,000+ social media followers, Practical Machinist is the easiest way to learn new techniques, get answers quickly, and discuss common challenges with your peers. Visit Practical Machinist today to join the community and start connecting with your peers.
Become a Practical Machinist member (https://www.practicalmachinist.com/)
Like us on Facebook ( / practicalmachinist )
Follow us on Instagram ( / practicalmachinist )
Follow us on Twitter ( / prac_machinist )
Connect with us on LinkedIn ( / practicalmachinist )
#Gcode #CNCmachining #metalworking