pcb_softkeys.py 646 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/usr/bin/env python
  2. """
  3. #
  4. # CNC-control
  5. # Softkeys 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(19.94, 8.83)
  25. d(27.56, 11.12)
  26. d(27.56, 8.83)
  27. d(31.38, 10.06)
  28. d(33.67, 7.52)
  29. d(38.75, 10.06)
  30. d(43.83, 10.06)
  31. d(46.12, 2.44)
  32. d(43.83, 2.44)
  33. d(38.75, 2.44)
  34. d(33.67, 4.98)
  35. d(27.56, 3.75)
  36. d(25.02, -1.33)
  37. d(22.48, -1.33)
  38. d(19.94, -3.62)
  39. d(19.94, 3.75)
  40. d(16.12, 2.44)
  41. d(13.83, 4.98)
  42. d(8.75, 2.44)
  43. d(3.67, 2.44)