adapter_schleifscheibe.py 401 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env python3
  2. #
  3. # Adapter Schleifscheibe
  4. #
  5. from pync import *
  6. TOLR = 0.01
  7. ZFEED = 1000
  8. XYFEED = 5000
  9. XYFEED2 = 1000
  10. TD = 6 # Tool D
  11. TR = TD / 2.0
  12. G64(TOLR)
  13. G0(z=5)
  14. S(2000) | M3 | F(XYFEED)
  15. di=12.8
  16. ri=di/2.0
  17. da=32.0
  18. ra=da/2.0
  19. t=-17.0
  20. G0(x=ri-TR, y=0, z=1)
  21. G1(z=t)
  22. G2(x=ri-TR, y=0, i=-(ri-TR), j=0)
  23. G0(z=1)
  24. G0(x=ra+TR, y=0)
  25. G1(z=t)
  26. G3(x=ra+TR, y=0, i=-(ra+TR), j=0)
  27. G0(z=5)
  28. M0() | M5