G02 Code Example

INFINITY LOOP USING G02 CODE IN CNC MILLING WITH FANUC CONTROLLER


G02 Code is used to create a circular path in the program. In this program, we are gonna make an infinite loop. The radius of the circle is 20 mm. The diameter of the tool is 4mm. The offset is set in the middle of the workpiece.
Now, we did this job with the help of both G02 and G03 code in a milling machine.
free cnc programing course(click here)

free online cnc programming courses, g02 code infinite loop
G02 code with infinite loop


EXAMPLE:-

This is the code for the infinite loop with the use G02 Code.

G17G21G54G90G40G80
M06T01
M08
M03S1200
G00X0Y0Z5F10
G01Z-5
G03X40Y0R20
G03X0Y0R20
G02X-40Y0R20
G02X0Y0R20
G01Z10
G28Z0
G28X0Y0
M05
M09
M30

Example of G81 Code(click here)

EXPLANATION:

G-CODE DESCRIPTION
G17 X-Y PLANE SELECTED
G21 ALL DIMENSIONS ARE IN MILLIMETERS(mm)
G54 WORK CO-ORDINATE SYSTEM
G90 ABSOLUTE POSITIONING
M06 TOOL CHANGE
T01 TOOL NUMBER 1 SELECTED
M08 COOLANT ON
M03 SPINDLE ON CLOCKWISE
S1200 SPINDLE SPEED 1200 RPM
G00 RAPID LINEAR INTERPOLATION
F FEED
G01 LINEAR INTERPOLATION
G02 CLOCKWISE CIRCULAR ARC (R) RADIUS
G03 CLOCKWISE CIRCULAR ARC (R) RADIUS
G28 RETURN TO THE HOME POSITION OF WORKPIECE AND TOOL
M05 SPINDLE OFF
M09 COOLANT OFF
M30 PROGRAM END AND RESET

More to know about cnc programming (click here)
G02 Code Example G02 Code Example Reviewed by Avtar Jassal on October 23, 2018 Rating: 5

No comments:

Powered by Blogger.