blob: 5024b87a1565e2e4a4174d5d01f6990bd19e2563 (
plain)
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
|
%
( ########## )
( ####Z0#### )
( X0########## )
( Y0 )
#1 = 6 ( Werkzeug Durchmesser )
#10 = 60 ( Werkstücklänge in X )
#11 = 15 ( Werkstücklänge in Y )
#12 = 0.0 ( Zustellung in Z )
#20 = 150 ( Vorschub )
#2 = [#1 / 2]
#3 = [#1 * 75 / 100]
G17 G40 G49 G80 G90 G94 G61 G21
G54
O1 if [ #12 ne 0 ]
G0 Z2
O1 else
G0 Z0
O1 endif
G0 X[0 - #2 - 1] Y[0 - #2 + #3]
G0 Z[0 - #12] F#20
M1
#99 = 0
#100 = [#11 + 1]
O2 while [#99 lt #100]
G0 Y[#99 - #2 + #3]
G1 X[#10 + #2 + 1]
#99 = [#99 + #3]
O3 if [#99 ge #100]
O1 break
O3 endif
G0 Y[#99 - #2 + #3]
G1 X[0 - #2 - 1]
#99 = [#99 + #3]
O2 endwhile
O4 if [ #12 ne 0 ]
G0 Z10
O4 endif
M30
%
vim: syntax=rs274ngc ts=4
|