Advertisement
Guest User

Untitled

a guest
May 27th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. # Smoothieboard Spindle improvements
  2.  
  3.  
  4.  
  5. ## Modules
  6.  
  7. - **SpindleMaker**: loads the right spindle module depending on the config, deletes itself after thats done. (Like the ExtruderMaker)
  8. - **SpindleControl**: Baseclass for other spindles
  9. - **PWMSpindleControl**: For DC spindles that are directly driven by one of the MOSFET outputs (the old spindle module)
  10. - **AnalogSpindleControl**: For controlling a VFD driven spindle with an analog 0-10V signal. Some additional electronic is required to convert the 3.3V PWM signal into a 0-10V signal
  11. - **ModbusSpindleControl**: For controling a VFD via Modbus-RTU over RS485. This is for VFD's that can be controlled via Modbus telegrams. This is also used for VFD's that claim to support Modbus but use a crippled RS485 Modbus like protocol. Some additional electronic is required to translate RS232 3.3V into RS485.
  12.  
  13. ##Config
  14.  
  15. What a config for a certain spindle type should look like.
  16.  
  17. ### General config options
  18. ```
  19. spindle.enable true|false
  20. ```
  21. ### PWM spindle
  22. ```
  23. spindle.mode pwm
  24. spindle.pwm_pin 2.0|2.1|2.2|2.3|2.4|2.5 // Must be one of these pins because we need HW PWM
  25. spindle.pwm_period 1000
  26. spindle.feedback_pin 2.4 // Must be an interrupt capable pin (0.X | 2.X)
  27. spindle.pulses_per_rev 1
  28. spindle.default_rpm 5000
  29. spindle.control_P 0.0001
  30. spindle.control_I 0.0001
  31. spindle.control_D 0.0001
  32. spindle.control_smoothing 0.1
  33. ```
  34. ### Analog VFD spindle
  35. ```
  36. spindle.mode analog
  37. spindle.pwm_pin 2.0|2.1|2.2|2.3|2.4|2.5 // Must be one of these pins because we need HW PWM
  38. spindle.pwm_period 1000
  39. spindle.switch_on_pin 2.4 // Any free pin that can be used as an digital output pin
  40. ```
  41.  
  42. ### Modbus VFD spindle
  43. ```
  44. spindle.mode modbus
  45. spindle.type omron_mx2 | huanyang // VFD type (must be implemented)
  46. spindle.rx_pin 2.4 // Must be an interrupt capable pin (0.X | 2.X)
  47. spindle.tx_pin 2.6 // Any free pin that can be used as an digital output pin
  48. spindle.dir_pin 2.5 // Any free pin that can be used as an digital output pin
  49. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement