PWM settings

Home Forums TinyG TinyG Support PWM settings

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11037
    LTECH
    Member

    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

    #11038
    Zootalaws
    Member

    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 reply was modified 6 years, 2 months ago by Zootalaws.
    #11040
    cmcgrath5035
    Moderator
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.