Dear TinyG Community,
Where can I find more information / values for the PWM settings?
I have to change the spindle speed between G-code commands.
I sent $ p1 and got the actual values of PWM:
[p1frq] PWM frequency 100 Hz
[p1csl] pwm cw speed lo 1000 RPM
[p1csh] pwm cw speed hi 2000 RPM
[p1cpl] pwm cw phase lo 0.125 [0..1]
[p1cph] pwm cw phase hi 0.200 [0..1]
[p1wsl] pwm ccw speed lo 1000 RPM
[p1wsh] pwm ccw speed hi 2000 RPM
[p1wpl] pwm ccw phase lo 0.125 [0..1]
[p1wph] pwm ccw phase hi 0.200 [0..1]
[p1pof] PWM phase from 0.100 [0..1]
But I’m not sure how to change the values …
Does it mean when G-code “M4 S1000” is sent, the cw-phase changes too low and is 12.5% (t1 / T, duty cycle) of 100 Hz length?
If I send “$ p1cpl = 0.75” is it then 75% of 100Hz?
I’m sorry, but I’m not really familiar with pulse width modulation
greetings
Kai