Advertisement
Guest User

Untitled

a guest
Sep 26th, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #<x-length> = 4.0 ; x axis length
  2. #<y-length> = 4.0 ; y axis length
  3. #<radius> = 0.250 ; corner radius
  4. #<kerf> = 0.03125 ; kerf width
  5. #<peirce> = 0.080 ; peirce height
  6. #<delay> = 0.020 ; peirce delay
  7. #<height> = 0.060 ; cut height
  8. #<leadin> = 0.125 ; leadin radius
  9. #<side> = 0 ; outside = 0, inside > 0
  10. #<feed> = 135 ; cut feed rate
  11.  
  12. G20 (units: inches)
  13. G40 (cancel cutter comp)
  14. G90 (absolute mode)
  15. G64 P0.005 (continuous mode + path tolerance)
  16. F#<feed> (set feed rate)
  17. G92 X0 Y0 (set current position to X0 Y0)
  18.  
  19. o110 if [#<side> EQ 0]
  20. G41
  21. #<lead-dir> = 3
  22. #<corner-dir> = 2
  23. o110 else
  24. G42
  25. o110 endif
  26.  
  27. G1 X-#<leadin> Y[[#<y-length> / 2] - #<leadin>]
  28. ; o<touchoff> call [#<peirce>] [#<delay>] [#<height>] (Touchoff and start cutting)
  29. G#<lead-dir> X0.0 Y[#<y-length> / 2] I0.0 J#<leadin>
  30. G1 X0.0 Y[#<y-length> - #<radius>]
  31. G#<corner-dir> X[#<radius>] Y[#<y-length>] I[#<radius>] J0.0
  32. G1 X[#<x-length> - #<radius>] Y[#<y-length>]
  33. G#<corner-dir> X[#<x-length>] Y[#<y-length> - #<radius>] I0.0 J-[#<radius>]
  34. G1 X[#<x-length>] Y[#<radius>]
  35. G#<corner-dir> X[#<x-length> - #<radius>] Y0.0 I-[#<radius>] J0.0
  36. G1 X[#<radius>] Y0.0
  37. G#<corner-dir> X0.0 Y[#<radius>] I0.0 J[#<radius>]
  38. G1 X0.0 Y[#<y-length> / 2]
  39. M5 ; turn off torch
  40. G53 G0 Z0.0
  41. G40 G92.1
  42. M2
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement