Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. job= CNC.build 'plate' do
  2. @safe_z= 2
  3. @tool_dia= (1.0/8)*25.4 # 1/8" end mill
  4. @doc= 0.2
  5. @feedrate= 1000
  6. @laser= false
  7.  
  8. # size of plate
  9. w = 100.0
  10. l = 25.0
  11.  
  12. m3 s:10000
  13. g4 p:2
  14.  
  15. # center of plate
  16. moveto x: w/2, y: l/2
  17.  
  18. # two 5mm holes 20mm apart either side of center
  19. moveby x: -10
  20. hole diameter: 5, depth: 4, feedrate: 800
  21. moveby x: 20
  22. hole diameter: 5, depth: 4, feedrate: 800
  23. # cutout plate
  24. moveto x: 0, y: 0
  25. rectangle width: w, length: l, depth: 0.9
  26.  
  27. m5
  28. # m123 1, 2, 3
  29. # m321 a:1, b:2, c:3
  30. end
  31.  
  32. #job.export('t.nc')
  33. job.export
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement