PWM settings

From the original Synthetos forum (2011–2025)

Started by LTECH on in TinyG Support. 2 replies, last activity Jul 7, 2018.

#

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

#

The frequency setting is to set the speed at which you communicate with your pwm controlled device.

You set it once to suit your device and shouldn’t need to set it again. Your spindle controller docs will tell you.

To chang the speed issue M3 S10000 to turn on at 10000RPM, M3 S5000 at 5000RPM, etc. M5 to turn off.

This may help: https://github.com/synthetos/TinyG/issues/121

This topic is from the original forum (July 2018). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.