Advertisement
Guest User

Untitled

a guest
May 26th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. o110 sub (move sequence)
  2. #<_x1> = #1
  3. #<_y1> = #2
  4. #<_x2> = #3
  5. #<_y2> = #4
  6.  
  7. (bump applicator)
  8. G0 y[#<_y_refill>] z[#<_z_up>] a90
  9. G0 x[#<_x_refill_start>] y[#<_y_refill>] z[#<_z_refill>] a90
  10. G1 x[#<_x_refill_end>] y[#<_y_refill>] z[#<_z_refill>] a90 F300
  11. G0 x0 y[#<_y_refill>] z[#<_z_up>] a90
  12.  
  13. (calculate stroke direction)
  14. o111 if [#<_x1> EQ [#<_x2>]]
  15. #<_a_angle> = #<_a_north>
  16. o111 else
  17. #<_a_angle> = #<_a_east>
  18. o111 endif
  19.  
  20. (do smoothed move)
  21. G64 P100.0
  22. g0 x[#<_x1>] y[#<_y1>] z[#<_z_up>] a[#<_a_angle>]
  23. g1 x[#<_x1>] y[#<_y1>] z[#<_z_down>] a[#<_a_angle>] F20000
  24. g1 x[#<_x2>] y[#<_y2>] z[#<_z_down>] a[#<_a_angle>] F20000
  25. g1 x[#<_x2>] y[#<_y2>] z[#<_z_up>] a[#<_a_angle>] F20000
  26.  
  27.  
  28. o110 endsub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement