Usefull codes used in the generated gcode.
Set millimeters with G21 Start spindle clockwise with M3 setting the speed. Set the start position with G92 specifying the cordinates, move to start position with G0 rapid or G1 for cutting speed.
To draw a circle we need to position the cutting bit on the circumference of the circle, we then set the I and J positions which are the distance from the center of the circle.
I is the distance from arc start-point to arc-center-point in the X-axis. J is the distance from arc start-point to arc-center-point in the Y-axis
Job setup
Initially setup job in millimeters, start the spindle no speed because wee manually set the speed. Set the current position then move to the first cutting position.
|
G21
M3 S0.0000
G92 X0 Y0 Z5
G0 X5.0 Y5.0 Z5.0000
|
Cut first circle 0.1mm at a time
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 |
;;Draw circle cutting down 0.1mm at a time.
G1 X0.0 Y0.0 Z5.0000
G1 X5.0 Y5.0 Z3.0000
G2 X5.0 Y5.0 Z3.0000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.9000
G2 X5.0 Y5.0 Z2.9000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.8000
G2 X5.0 Y5.0 Z2.8000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.7000
G2 X5.0 Y5.0 Z2.7000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.6000
G2 X5.0 Y5.0 Z2.6000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.5000
G2 X5.0 Y5.0 Z2.5000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.4000
G2 X5.0 Y5.0 Z2.4000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.3000
G2 X5.0 Y5.0 Z2.3000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2.2000
G2 X5.0 Y5.0 Z2.2000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z2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.00
G1 X5.0 Y5.0 Z0.3000
G2 X5.0 Y5.0 Z0.3000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z0.2000
G2 X5.0 Y5.0 Z0.2000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z0.1000
G2 X5.0 Y5.0 Z0.1000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z0.0000
G2 X5.0 Y5.0 Z0.0000 I2.5 J2.5 F12000.00
G1 X5.0 Y5.0 Z5.0000
|
Cut second circle 0.2mm at a time
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 |
;;Draw circle cutting down 0.2mm at a time.
G1 X0.0 Y0.0 Z5.0000
G1 X-5.0 Y5.0 Z3.0000
G2 X-5.0 Y5.0 Z3.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z2.8000
G2 X-5.0 Y5.0 Z2.8000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z2.6000
G2 X-5.0 Y5.0 Z2.6000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z2.4000
G2 X-5.0 Y5.0 Z2.4000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z2.2000
G2 X-5.0 Y5.0 Z2.2000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z2.0000
G2 X-5.0 Y5.0 Z2.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z1.8000
G2 X-5.0 Y5.0 Z1.8000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z1.6000
G2 X-5.0 Y5.0 Z1.6000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z1.4000
G2 X-5.0 Y5.0 Z1.4000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z1.2000
G2 X-5.0 Y5.0 Z1.2000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z1.0000
G2 X-5.0 Y5.0 Z1.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z0.8000
G2 X-5.0 Y5.0 Z0.8000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z0.6000
G2 X-5.0 Y5.0 Z0.6000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z0.4000
G2 X-5.0 Y5.0 Z0.4000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z0.2000
G2 X-5.0 Y5.0 Z0.2000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z0.0000
G2 X-5.0 Y5.0 Z0.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y5.0 Z5.0000
|
Cut second circle 0.3mm at a time
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 |
;;Draw circle cutting down 0.3mm at a time.
G1 X0.0 Y0.0 Z5.0000
G1 X-5.0 Y-5.0 Z3.0000
G2 X-5.0 Y-5.0 Z3.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z2.7000
G2 X-5.0 Y-5.0 Z2.7000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z2.4000
G2 X-5.0 Y-5.0 Z2.4000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z2.1000
G2 X-5.0 Y-5.0 Z2.1000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z2.0000
G2 X-5.0 Y-5.0 Z2.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z1.7000
G2 X-5.0 Y-5.0 Z1.7000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z1.4000
G2 X-5.0 Y-5.0 Z1.4000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z1.1000
G2 X-5.0 Y-5.0 Z1.1000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z1.0000
G2 X-5.0 Y-5.0 Z1.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z0.7000
G2 X-5.0 Y-5.0 Z0.7000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z0.4000
G2 X-5.0 Y-5.0 Z0.4000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z0.1000
G2 X-5.0 Y-5.0 Z0.1000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z0.0000
G2 X-5.0 Y-5.0 Z0.0000 I2.5 J2.5 F12000.00
G1 X-5.0 Y-5.0 Z5.0000
|
Cut second circle 0.4mm at a time
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 |
;;Draw circle cutting down 0.4mm at a time.
G1 X0.0 Y0.0 Z5.0000
G1 X5.0 Y-5.0 Z3.0000
G2 X5.0 Y-5.0 Z3.0000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z2.6000
G2 X5.0 Y-5.0 Z2.6000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z2.2000
G2 X5.0 Y-5.0 Z2.2000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z2.0000
G2 X5.0 Y-5.0 Z2.0000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z1.6000
G2 X5.0 Y-5.0 Z1.6000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z1.2000
G2 X5.0 Y-5.0 Z1.2000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z1.0000
G2 X5.0 Y-5.0 Z1.0000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z0.6000
G2 X5.0 Y-5.0 Z0.6000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z0.2000
G2 X5.0 Y-5.0 Z0.2000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z0.0000
G2 X5.0 Y-5.0 Z0.0000 I2.5 J2.5 F12000.00
G1 X5.0 Y-5.0 Z5.0000
|