Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. loadrt or2 names=or2_0
  2. loadrt comp names=comp_x,comp_y,comp_z
  3.  
  4. net Xhomeswpos => comp_x.in0
  5. net Yhomeswpos => comp_y.in0
  6. net Zhomeswpos => comp_z.in0
  7.  
  8. sets Xhomeswpos 1
  9. sets Yhomeswpos .5
  10. sets Zhomeswpos 2
  11.  
  12. net Xpos => comp_x.in1
  13. net Ypos => comp_y.in1
  14. net Zpos => comp_z.in1
  15.  
  16. setp comp_x.hyst .02
  17. setp comp_y.hyst .02
  18. setp comp_z.hyst .02
  19.  
  20. net Xhomesw <= comp_x.out => axis.0.home-sw-in
  21. net Yhomesw <= comp_y.out => axis.1.home-sw-in
  22. net Zhomesw <= comp_z.out => axis.2.home-sw-in
  23.  
  24. net Xhomesw => or2_0.in0
  25. net Zhomesw => or2_0.in1
  26. net XZhomesw or2_0.out => axis.0.home-sw-in axis.2.home-sw-in
  27.  
  28. addf comp_x servo-thread
  29. addf comp_y servo-thread
  30. addf comp_z servo-thread
  31.  
  32. addf or2_0 servo-thread
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement