klemmbuegel_schraubklemme.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. from pync import *
  2. f=100
  3. G54() - G64(0.05) - S(1000) - F(100) - M3
  4. def kontur():
  5. G0(X=5+5, Y=50, Z=-16)
  6. d = 10
  7. while not equal(d, 9.5):
  8. G41_1(D=d) - G1(X=0, Y=50) - F(f)
  9. G1(X=0, Y=15)
  10. G3(X=15, Y=0, I=15, J=0)
  11. G1(X=88, Y=0)
  12. G40() - G1(X=88, Y=5+5)
  13. G0(X=5+5, Y=50)
  14. d = max(d - 0.5, 9.5)
  15. def fase():
  16. G0(X=-(5+5), Y=50, Z=-2.5)
  17. d = 2.5
  18. G42_1(D=d) - G1(X=0, Y=50) - F(f)
  19. G1(X=0, Y=15)
  20. G2(X=-15, Y=0, I=-15, J=0)
  21. G1(X=-88, Y=0)
  22. G40() - G1(X=-88, Y=5+5)
  23. G0(X=-(5+5), Y=50)
  24. def aussenradius():
  25. G0(X=-10, Y=-33, Z=-16)
  26. d = 10.5
  27. while not equal(d, 10):
  28. G41_1(D=d) - G1(X=0, Y=-30) - F(f)
  29. G2(X=30, Y=0, I=30, J=0)
  30. G1(X=63)
  31. G40() - G1(X=68, Y=10)
  32. G0(X=10)
  33. G0(X=-10, Y=-10)
  34. G0(Y=-33)
  35. d = max(d - 0.25, 10)
  36. def aussenfase():
  37. G0(X=10, Y=-33, Z=-2.5)
  38. d = 2.5
  39. G42_1(D=d) - G1(X=0, Y=-30) - F(f)
  40. G3(X=-30, Y=0, I=-30, J=0)
  41. G1(X=-63)
  42. G40() - G1(X=-68, Y=10)
  43. G0(X=-10)
  44. G0(X=10, Y=-10)
  45. G0(Y=-33)
  46. def spitzenradius():
  47. # r = 7
  48. r = 5
  49. G0(X=-7.5-r, Y=0, Z=-16)
  50. while 1:
  51. G1(X=-7.5-r, Y=0) - F(f)
  52. G2(X=7.5+r, Y=0, I=7.5+r, J=0)
  53. G1(X=7.5+2+r, Y=0)
  54. G3(X=-7.5-2-r, Y=0, I=-7.5-2-r, J=0) - F(50000)
  55. if equal(r, 5):
  56. break
  57. r = max(r - 0.25, 5)
  58. def spitzenfase():
  59. # r = 1.25
  60. r = 1.35
  61. G0(Y=7.5+r, X=0, Z=-2.5)
  62. G1(Y=7.5+r, X=0) - F(f)
  63. G2(Y=-7.5-r, X=0, J=-7.5-r, I=0)
  64. G1(Y=-7.5-2-r, X=0)
  65. G3(Y=7.5+2+r, X=0, J=7.5+2+r, I=0) - F(50000)