Guest User

Nowforever

a guest
Jan 30th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #vfd -
  2. #----------------------------------------------
  3. # renamed nowforever_vfd.py to /usr/bin/vfd and made it executable
  4. # Modified serial params in component to match vfd
  5. # P0-000 2 - use serial for control
  6. # P0-002 6 - use serial for freq. select
  7. # P0-007 400 - Max freq allowed, 24k for these
  8. # Hal component clips at 24k anyway
  9. # P0-008 100 - Min Freq. Mine came as 0. The spindles are not
  10. # happy running lower than this
  11. # P0-055 1 - Modbus slave address
  12. # P0-56 2 - 9600. (4 for 38.4k)
  13. # P0-57 0 - 8N1
  14. #----------------------------------------------
  15. # renamed nowforever_vfd.py to /usr/bin/vfd and made it executable
  16. #----------------------------------------------
  17. loadusr -W vfd
  18.  
  19. #Run command to VFD
  20. net spindle-on motion.spindle-on => vfd.spdvfd.run
  21.  
  22. #Fwd command
  23. net spindle-fwd motion.spindle-forward => vfd.spdvfd.forward
  24.  
  25. #Speed to send to VFD
  26. net spindle-speed-cmd motion.spindle-speed-out => vfd.spdvfd.rpmset
  27.  
  28. #Get spindle speed back from VFD - Not sure it is real
  29. net spindle-speed-in motion.spindle-speed-in <= vfd.spdvfd.outrpm
  30.  
  31. #Create at_speed pin
  32. net spindle-at-speed motion.spindle-at-speed <= vfd.spdvfd.atfreq
  33.  
  34. # Try the yoocnc probe
  35. net touch-probe parport.0.pin-15-in-not => motion.probe-input
Advertisement
Add Comment
Please, Sign In to add comment