Advertisement
Guest User

Untitled

a guest
Mar 6th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. All from memory, pin names not checked
  2. (loadrt and addf stuff goes here)
  3.  
  4. # This is the closed-loop speed part
  5.  
  6. net spindle-cmd motion.spindle-speed-out-rps => pid.3.command
  7. net spindle-fb pid.3.feedback <= hm2_5i25.0.7i77.encoder.03.velocity
  8. net spindle-drive-command pid.3.out => hm2_5i25.0.7i77.0.analogout-03
  9. setp pid.3.Pgain 0
  10. setp pid.3.Igain 0
  11. setp pid.3.ff0 0.0013333
  12. net {whatever your enable signal is called} pid.3.enable
  13.  
  14. # This is the stuff that allows spindle-coordinated motion
  15. net spindle-index motion.spindle-index-enable <=> hm2_5i25.0.7i77.00.encoder.03.index-enable
  16. net spindle-rotations hm2_5i25.0.7i77.00.encoder.03.position => motion.spindle-revs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement