@radiomodell said in [3.01-RC10][Duet6HC] Spindle pwm 10-90%:
Thank you for your answers!!!
As dc42 sayed, it is no good idea to run spindle from config.g
I have no intentions to run spindle from config.g. It was only a suggestion to set pwm output to some minimum % in config.g and then spindle would have been controlled later by g-code (by turning on digital outputs, and setting new values for pwm).
Escon 50/5 is Maxxon Brand? If yes, did you try ESCON -Studio software to reconfigure board not to raise an error under 10% PWM when spindle is switched off?
I used EPOS-Studio to configure similar motion control devices. Each I/O was freely configurable.
Yes! I have used ESCON-Studio software to configure spindle, but I can't seem to find where to disable error if pwm is under 10%? Although, by later examination I think this error is reset upon setting enable signal high. Not sure 100%.
If you want to follow your solution,I would try to define "out9" as standard I/O pin, eg. P0, and assign a PWM value with M42 command.
Ok. I would have to modify post-processor for this, but not a big deal.
From my experience in CNC-Mode this is used for DWC Tool display only.
Yes. This was the original intention for this line, to be able to see spindle rpm on DWC.
M453 S0 C"out6+out7" T0 ; set machine to CNC mode with out6 for CW and out7 for CCW spindle signal
A M3 S255 command would output 100% PWM signal at "out6" , a M4 S127 commad 50% at "out7" simultaniously setting "out6" to 0%.
Ok, I have misunderstood g-code explanation completely on this one. Thank you for clarification.
Thank you again for clarification!
Best regards!