123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- %
- ( ########## )
- ( ####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
|