pcb_jogkeys.py 772 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/usr/bin/env python
  2. """
  3. #
  4. # CNC-control
  5. # Jogkeys PCB drilling PYNC program
  6. #
  7. # Copyright (C) 2011 Michael Buesch <mb@bues.ch>
  8. #
  9. """
  10. from pync import *
  11. DEPTH = 0.3
  12. FEED = 80
  13. G0(Z=5)
  14. S(15000) -M3
  15. def d(X, Y):
  16. G0(X=X, Y=Y, Z=5)
  17. G0(Z=0.5)
  18. G1(Z=-DEPTH) -F(FEED)
  19. G0(Z=5)
  20. d(1.38, 10.06)
  21. d(3.67, 10.06)
  22. d(8.75, 10.06)
  23. d(13.83, 7.52)
  24. d(22.48, 8.83)
  25. d(19.94, 13.88)
  26. d(19.94, 16.17)
  27. d(19.94, 21.25)
  28. d(22.48, 26.33)
  29. d(25.02, 26.33)
  30. d(27.56, 28.62)
  31. d(27.56, 21.25)
  32. d(27.56, 16.17)
  33. d(27.56, 11.12)
  34. d(25.02, 8.83)
  35. d(31.38, 10.06)
  36. d(33.67, 7.52)
  37. d(38.75, 10.06)
  38. d(43.83, 10.06)
  39. d(46.12, 2.44)
  40. d(43.83, 2.44)
  41. d(38.75, 2.44)
  42. d(33.67, 4.98)
  43. d(27.56, 3.75)
  44. d(27.56, -1.33)
  45. d(19.94, -3.62)
  46. d(19.94, -1.33)
  47. d(19.94, 3.75)
  48. d(16.12, 2.44)
  49. d(13.83, 4.98)
  50. d(8.75, 2.44)
  51. d(3.67, 2.44)