[FeatureRequest]: Forward Run / Reverse Run support for Spindles in M950
#1016
Labels
enhancement
Additional functionality, performance or other feature request
M950
#1016
Is your feature request related to a problem? Please describe.
Currently,
M950 R0
with 3 pins defined treats the first as PWM speed output, the second as 'spindle on/off' and the third as 'spindle direction'. That means when the spindle is on, the second pin is always active and the state of pin 3 changes based on the direction.This works for VFD's where there is a Spindle ON input and a Spindle DIR input, but there are quite a lot of VFD's (mine included, Innovance MD200-NC, Delta VFD's follow this pattern too) where this isn't the case - they use separate inputs for Forward RUN / Reverse RUN.
If you configure a Forward RUN / Reverse RUN VFD and connect it to RRF's Enable / Direction pins then the spindle will only start in forward run mode, and when you turn OFF the spindle after switching to reverse mode then the spindle may start in reverse, depending on how the VFD is setup (with 0 RPM input they may run at a low default frequency).
If both forward and reverse run are active at the same time then the spindle will not move.
Describe the solution you propose.
The code change to enable the existing pins as Forward / Reverse RUN rather than ENA / DIR is simple (without configuration):
But it would be great if this could be integrated into the
M950
command as an option, allowing support for VFD's that take this style of inputs.Describe alternatives you've considered
No response
Provide any additional context or information.
Discussion on duet forum
The text was updated successfully, but these errors were encountered: