Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- All from memory, pin names not checked
- (loadrt and addf stuff goes here)
- # This is the closed-loop speed part
- net spindle-cmd motion.spindle-speed-out-rps => pid.3.command
- net spindle-fb pid.3.feedback <= hm2_5i25.0.7i77.encoder.03.velocity
- net spindle-drive-command pid.3.out => hm2_5i25.0.7i77.0.analogout-03
- setp pid.3.Pgain 0
- setp pid.3.Igain 0
- setp pid.3.ff0 0.0013333
- net {whatever your enable signal is called} pid.3.enable
- # This is the stuff that allows spindle-coordinated motion
- net spindle-index motion.spindle-index-enable <=> hm2_5i25.0.7i77.00.encoder.03.index-enable
- net spindle-rotations hm2_5i25.0.7i77.00.encoder.03.position => motion.spindle-revs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement