CNC_D-SUB_PROGRAM.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. This is a D-sub socket cutting program. Author: William Hilton
  2. Use a 1/8 inch diameter HSS (high speed steel) mill that can drill holes. The tool's cutting depth should be slightly > 9mm. The metal to be cut is high carbon steel. Feed Rate = RPM * CHIPSIZE * NUM OF BLADES (Gracias Doug!) Use lowest belt, with dial at slightly below 4.
  3. Edit the program to cut different connector types:
  4. 25-pin: 47 15-pin: 33.75 9-pin: 25
  5. START MM 01 // Use millimeters, program ID 01
  6. TD= 3.175 // Tool diameter: 1/8 in = 3.175 mm
  7. FR XY =03.7 // Divided the suggested feedrate by two, because tool was flexing.
  8. FR Z =01.2 // Feedrate based on 1 cutting edge, instead of 4, then slightly reduced.
  9. SETUP >zcxyu // Allow user to position tool above 1st hole.
  10. REPEAT 02 // Second traverse gets the edges better
  11. GOfX 0.000 // Go to 1st hole
  12. GOfY 0.000 //
  13. GO Z- 6.000 // Drill 1st hole
  14. Z>C // Raise tool
  15. CALL SUB 10 // Cut left side...
  16. ZERO AT // (Set origin to right hole)
  17. X 47.000 // * Change depending on connector *
  18. Y 0.000 //
  19. CALL SUB 11 // ...Cut right side...
  20. ZERO AT // (Reset origin to left hole)
  21. X- 47.000 // * Change depending on connector *
  22. Y 0.000 //
  23. GO X 6.920 // ...And return to Point 1.
  24. Y 3.410 //
  25. Z>C // Raise tool
  26. GOfX 47.000 // Go to 2nd hole * Change depending on connector *
  27. Y 0.000 //
  28. GO Z -6.000 // Drill 2nd hole
  29. Z>C // Raise tool
  30. REPEAT END //
  31. END NEW PART //
  32. SUB 10 // Left Side (located on line 050)
  33. GO X 6.920 // Point 1
  34. Y 3.410 //
  35. GO Z- 9.000 // Insert tool
  36. ARC // Point 2
  37. XC= 6.920 //
  38. YC= 1.500 //
  39. a= 101.470 //
  40. GO X 5.740 // Point 3
  41. Y- 2.280 //
  42. ARC // Point 4
  43. XC= 7.120 //
  44. YC=- 2.000 //
  45. a= 79.530 //
  46. SUB RETURN //
  47. SUB 11 // Right Side (located on line 100)
  48. GO X- 7.120 // Point 5
  49. Y- 3.410 //
  50. ARC // Point 6
  51. XC=- 7.120 //
  52. YC=- 2.000 //
  53. a= 79.530 //
  54. GO X- 5.050 // Point 7
  55. Y 1.120 //
  56. ARC // Point 8
  57. XC=- 6.920 //
  58. YC= 1.500 //
  59. a= 101.470 //
  60. SUB RETURN //