Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    fixed speed spindle config

    CNC
    2
    2
    96
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PCR
      PCR last edited by

      Hello,

      what would be the config for using a fixed speed spindle to turn on with M3?

      M950 R0 C"!exp.heater3"; Create spindle index 0
      M563 P0 S"Kress" R0
      

      ?

      the spinde is siwtched on by a relay.

      Best

      T3P3Tony 1 Reply Last reply Reply Quote 0
      • T3P3Tony
        T3P3Tony administrators @PCR last edited by

        @pcr From RRF3.3 M950 assigns 1, 2 or 3 pins to a spindle as described in the documentation:

        When using M950 to create a spindle (from RRF 3.3) use the following format:

        M950 R0 C"pwm_pin+forward_pin+reverse_pin" Qfff Laa:bb

        • C can have 1, 2 or 3 pins. The first pin defined is a pwm capable pin to set the spindle speed. If a second pin is defined it is used as spindle on/of, if three pins are defined then the second pin is spindle forward and the third is spindle reverse.
        • "fff" is the PWM frequency as usual
        • "Laa:bb" sets the RPM range as "aa" to "bb". "Lbb" just sets the max RPM to "bb". Default RPM values are 60 min 10000 max

        So the command as you have it would end up using that pin in PWM mode which you don't want with a relay.

        Please try the following:

        M950 R0 C"null+!exp.heater3";
        

        This is untested by me but I hope that will assign a null pin for PWM and just us the heater 3 pin for on/off. Please test it, and especially test that M5 works as well as M3.

        www.duet3d.com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA