Advertisement
Guest User

Untitled

a guest
Nov 14th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #Smoothing of spindle rps factor.
  2. setp lowpass.0.gain 0.01
  3.  
  4. #scale rps to rpm
  5. setp scale.0.gain 60
  6.  
  7. setp encoder.0.position-scale 1.000000
  8. setp encoder.0.counter-mode 1
  9.  
  10. # use interpolated postion because of 1 ppr
  11. net spindle-position encoder.0.position-interpolated => motion.spindle-revs
  12.  
  13. #hooking the low pass in for spindle velocity smoothing (remarked out original line)
  14. # net spindle-velocity encoder.0.velocity => motion.spindle-speed-in
  15. net spindle-velocity encoder.0.velocity lowpass.0.in
  16. net spindle-velfiltered lowpass.0.out scale.0.in motion.spindle-speed-in
  17. #pin for rpm to pyvcp panel
  18. net spindle-rpm-filtered scale.0.out
  19.  
  20. net spindle-index-enable encoder.0.index-enable <=> motion.spindle-index-enable
  21.  
  22. #hook index to a also..
  23. net spindle-index <= parport.0.pin-11-in
  24. net spindle-index encoder.0.phase-A
  25. #net spindle-phase-b encoder.0.phase-B
  26. net spindle-index encoder.0.phase-Z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement