G-Code tutorial - Avoiding Obstacles Using G98 and G99 Codes

Practical Machinist
Practical Machinist
4.3 هزار بار بازدید - 3 سال پیش - In this G-code tutorial, the
In this G-code tutorial, the ‪@GCodeTutor‬ Marc Cronin explains how to avoid obstacles, such as clamps, using G98 and G99 codes.

Not all parts can be held in a vise. Sometimes, the best way you keep your part locked to the table is by using a clamp.
Depending on the features of your part, that clamp might turn out to be an obstacle for your tool and when that happens, you will want to make sure that you take that into account while you are programming your machining cycle, or the results might be a broken tool or worse.

A typical example of this situation is a part that features multiple holes like the one shown in the video.
When the clamp is positioned between two holes, you'll need to make sure that the tool retracts enough to avoid the clamp, and the best way to do it is by using the G98 and G99 commands within our drilling cycle (G81).

By adding G98 to the drilling cycle, the program will tell the machine to retract to a safe position while the tool is moving between two holes to avoid the obstacle in the middle. Once the collision is avoided, you can add the G99 command to go back to the original Z value written in the first line of the drilling cycle.

To learn more about canned cycles or improve your CNC programming skills, 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 300,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 (Facebook: PracticalMachinist)
Follow us on Instagram (Instagram: practicalmachinist)
Follow us on Twitter (Twitter: prac_machinist)
Connect with us on LinkedIn (LinkedIn: practical-machinist)

#Gcode #CNCprogramming #machining
3 سال پیش در تاریخ 1399/12/20 منتشر شده است.
4,390 بـار بازدید شده
... بیشتر