CNC_California_Subs.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. START MM 02 // Use millimeters. Program ID 01 is taken by the D-SUB program I think.
  2. TD= 3.175 // Tool diameter: 1/8 in = 3.175 mm
  3. FR XY =03.7 // Divided the suggested feedrate by two, because tool was flexing.
  4. FR Z =01.2 // Feedrate based on 1 cutting edge, instead of 4, then slightly reduced.
  5. SETUP >zcxyu // Allow user to position tool above bottom-left corner.
  6. Z>C // Raise tool
  7. GOfX 8.500 // Point 1 of Figure 1
  8. GOfY 121.000 //
  9. GO Z- 9.000 // Insert tool
  10. GO X 8.000 // Point 2
  11. Y 119.000 //
  12. GO X 9.000 // Point 3
  13. Y 110.500 //
  14. GO X 6.500 // Point 4
  15. Y 100.500 //
  16. GO X 12.500 // Point 5
  17. Y 92.500 //
  18. GO X 13.500 // Point 6
  19. Y 83.500 //
  20. GO X 25.000 // Point 7
  21. Y 70.500 //
  22. GO X 25.500 // Point 8
  23. Y 64.300 //
  24. GO X 28.000 // Point 9
  25. Y 60.500 //
  26. GO X 30.000 // Point 10
  27. Y 60.500 //
  28. GO X 32.000 // Point 11
  29. Y 57.500 //
  30. GO X 30.000 // Point 12
  31. Y 55.000 //
  32. GO X 31.000 // Point 13
  33. Y 51.500 //
  34. GO X 43.500 // Point 14
  35. Y 31.000 //
  36. GO X 53.000 // Point 15
  37. Y 30.000 //
  38. GO X 63.000 // Point 16
  39. Y 25.500 //
  40. GO X 74.000 // Point 17
  41. Y 16.000 //
  42. GO X 76.500 // Point 18
  43. Y 9.000 //
  44. GO X 100.000 // Point 19
  45. Y 11.000 //
  46. GO X 99.500 // Point 20
  47. Y 21.000 //
  48. GO X 103.500 // Point 21
  49. Y 28.000 //
  50. GO X 99.000 // Point 22
  51. Y 36.000 //
  52. GO X 47.500 // Point 23
  53. Y 83.500 //
  54. GO X 47.500 // Point 24
  55. Y 121.000 //
  56. GO X 8.500 // Return to Point 1
  57. Y 121.000 //
  58. Z>C // Raise tool
  59. CALL SUB 111 //
  60. Z>C // Raise tool
  61. CALL SUB 222
  62. Z>C // Raise tool
  63. CALL SUB 33
  64. Z>C // Raise tool
  65. GOfX 0.000 // Return home
  66. GOfY 0.000 //
  67. GO Z- 9.000 // Insert tool
  68. GO X 144.000 // Point 2 of border
  69. GO Y 126.000 // Point 3 of border
  70. GO X 0.000 // Point 4 of border
  71. GO Y 0.000 // Return home.
  72. Z>C // Raise tool
  73. END NEW PART //
  74. SUB 111
  75. GOfX 78.000 // Point 1 of Figure 2
  76. GOfY 103.500 //
  77. GO Z- 9.000 // Insert tool
  78. GO Y 73.000 // Point 2
  79. GO Y 89.000 // Point 3
  80. GO X 98.000 // Point 4
  81. GO Y 103.500 // Point 5
  82. GO Y 73.000 // Point 6
  83. SUB RETURN
  84. SUB 222
  85. GOfX 110.000 // Point 1 of Figure 3
  86. GO Z- 9.000 // Insert tool
  87. GO Y 85.000 // Point 2 of Figure 3
  88. Z>C // Raise tool
  89. GOfY 92.000 // Point 3
  90. GO Z- 9.000 // Insert tool
  91. SUB RETURN
  92. SUB 33
  93. GOfX 124.500 // Point 1 of Figure 4
  94. GOfY 73.000 //
  95. GO Z- 9.000 // Insert tool
  96. Z>C // Raise tool
  97. GOfY 79.000 // Point 2 of Figure 4
  98. GO Z- 9.000 // Insert tool
  99. GO Y 100.000 // Point 3 of Figure 4
  100. SUB RETURN