Following is a cnc program exmaple code for cnc milling machine.
This cnc example code illustrates the usage of CNC Absolute Programming G90 G-Code and Incremental Programming G91 G-Code, as well as the usage of Circular Interpolation G-Code (G02/G03).
This cnc program draws (machines) cnc mill Arc with R as well as Arc with I.
CNC Absolute Programming G90 Example Code
Mill Circular Interpolation G02 G03 with R
G92 X200 Y40 Z0 G90 G03 X140 Y100 R60 F300 G02 X120 Y60 R50
Mill Circular Interpolation G02 G03 with I
G92 X200 Y40 Z0 G90 G03 X140 Y100 I-60 F300 G02 X120 Y60 I-50
CNC Incremental Programming G91 Example Code
Mill Circular Interpolation G02 G03 with R
G91 G03 X-60 Y60 R60 F300 G02 X-20 Y-40 R50
Mill Circular Interpolation G02 G03 with I
G91 G03 X-60 Y60 I-60 F300 G02 X-20 Y-40 I-50