• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

M950 K Value Explanation

Scheduled Pinned Locked Moved
CNC
3
11
446
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.
  • undefined
    Alijambo73
    last edited by Alijambo73 27 Aug 2024, 03:08

    I'm trying to configure a GRBL_SPD for makita routers and I can't get the speed to change. I'm wondering if some one could explain the k value or possibly tell me what I'm missing.

    I attached the wiring diagram for the GRBL controller.

    ConnectionDiagram_v4 (1).pdf

    my config for the spindle is :

    M950 R0 C"exp.heater6" Q1000 L10000:30000 ; Create spindle index 0, with PWM pin on heater 1 and 10000 RPM achieved at full PWM
    M563 P0 R0 S"Makita RT0701C" ; Create tool 1 with spindle 0 and call it "Spindle 1"
    M563 P1 S"NEJE A40640" ; Set tool 1 to be the laser
    M453 ; Set CNC mode

    I also uploaded my entire config g.

    code_text; Configuration file for Duet WiFi (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.2.3 on Tue Apr 20 2021 01:19:12 GMT-0600 (Mountain Daylight Time)
    ; Monkeyed with by SupraGuy because obviously I know better than the configuration tool, lol!
    ; General preferences
    G90 ; send absolute coordinates...
    ;M83 ; ...but relative extruder moves
    M550 P"LowRider3" ; set printer name
    ; Network
    M552 S1 ; enable network
    M586 P0 S1 ; enable HTTP
    M586 P1 S0 ; disable FTP
    M586 P2 S0 ; disable Telnet
    ; Drives
    M669 K0 ; set Cartesian kinematics
    M569 P0 S1 ; physical drive 0 (X) goes forwards
    M569 P1 S1 ; physical drive 1 (Y) goes forwards
    M569 P2 S0 ; physical drive 2 (Z) goes backwards
    M569 P3 S1 ; physical drive 3 (Y1) goes forwards
    M569 P4 S1 ; physical drive 4 (Z1) goes Forwards
    M584 X0 Y1:3 Z2:4 ;U3 ;V4 P3 ; set drive mapping: X on drive 0, Y on 1 and 3, Z on 2 and 4 U3=Y2 & V4=Z2
    M350 X16 Y16 Z16 U16 V16 I1 ; configure microstepping with interpolation
    M92 X100.00 Y100.00 Z400.00 ; set steps per mm
    M566 X60.00 Y60.00 Z60.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X12000.0 Y12000.0 Z3000.00 ; set maximum speeds (mm/min) 5 centimeters per second, lol
    M201 X1500.0 Y1500.0 Z60.00 ; set accelerations (mm/s^2)
    M906 X900 Y1000 Z1000 U900 V900 I75 ; set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout
    ; Axis Limits
    M208 X0 Y0 Z-30 S1 ; set axis minima
    M208 X1248 Y2470 Z72 S0 ; set axis maxima
    ; Endstops
    M574 X1 S1 P"^xstop" ; configure active-high endstop for low end on X via pin ^xstop
    M574 Y1 S1 P"^ystop+^e0stop" ; configure active-high endstop for low end on Y via pin ^ystop+^e0stop
    M574 Z2 S1 P"^zstop+^e1stop" ; configure active-high endstop for high end on Z via pin ^zstop+^e1stop
    ;M666 Y+2 ; move Y1 motor -1.5 from block to adjust for square
    ; Z-Probe
    M558 P5 C"!^zprobe.in" H5 F120 T6000 ; set Z probe type to switch and the dive height + speeds
    G31 P850 X0 Y0 Z13.95 ; set Z probe trigger value, offset and trigger height
    M557 X15:1015 Y115:1515 S100 ; define mesh grid
    ; Heaters
    M140 H-1 ; disable heated bed (overrides default heater mapping)
    M141 H-1
    M308 S2 Y"drivers" A"DRIVERS" ; configure sensor 2 as temperature warning and overheat flags on the TMC2660 on Duet
    M308 S3 Y"mcu-temp" A"MCU" ; configure sensor 3 as thermistor on pin e1temp for left stepper
    ; Spindle
    ;M950 H6 C"nil"
    ;M950 R0 C"exp.heater7" Q1000
    ;M42 P0 S01 ; set 50% PWM on GPIO port 0
    ;M950 R0 C"exp.heater6" Q1000 L10000:30000 ; Create spindle index 0, with PWM on e1heat pin PWM frequency is 1000Hz & full RPM is 12000
    ;M563 P0 R0 S"Makita RT0701C" ; Create tool 0 with Spindle 0 and call it "Makita RT0701C"
    ;M453
    ; Fans
    ;M950 F0 C"fan0" Q1000 ; create fan 0 on pin fan0 and set its frequency
    ;M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
    ;M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
    ;M106 P1 S1 H T45 ; set fan 1 value. Thermostatic control is turned on
    ;M950 F2 C"fan2" Q500 ; create fan 2 on pin fan2 and set its frequency
    ;M106 P2 H2:3 L0.15 X1 B0.3 T25:60 ; set fan 2 value. Thermostatic control is turned on
    ; Tools
    M950 R0 C"exp.heater6" Q1000 L10000:30000 ; Create spindle index 0, with PWM pin on heater 1 and 10000 RPM achieved at full PWM
    M563 P0 R0 S"Makita RT0701C" ; Create tool 1 with spindle 0 and call it "Spindle 1"
    M563 P1 S"NEJE A40640" ; Set tool 1 to be the laser
    M453 ; Set CNC mode
    ; Custom settings are not defined
    M671 X-125:1385 Y0:0 S12.5 ; Set the Z motor relative locations
    ;M575 P1 S1 B57600 ; Enable PanelDUE
    G54 ; Select Workspace Coordinate 1
    Thanks
    undefined 1 Reply Last reply 27 Aug 2024, 08:29 Reply Quote 0
    • undefined
      gloomyandy @Alijambo73
      last edited by 27 Aug 2024, 08:29

      @Alijambo73 How are you testing this? Are you sure that the grbl_spd is working with RRF? If not I'd suggest testing it by defining the pin as a standard PWM gpio pin and testing the interface by using M42 to set the pwm value.

      undefined 1 Reply Last reply 27 Aug 2024, 17:21 Reply Quote 0
      • undefined
        Alijambo73 @gloomyandy
        last edited by 27 Aug 2024, 17:21

        @gloomyandy I have the router conected and try adjusting the speed in the dwc. Would I add m42 below m950? Or are you suggesting using a different pin? Sorry it's been a while since I have had to mess with the config file.

        undefined 1 Reply Last reply 28 Aug 2024, 03:59 Reply Quote 0
        • undefined
          Alijambo73 @Alijambo73
          last edited by 28 Aug 2024, 03:59

          @Alijambo73 I tested it on the heater 6 pin on the expansion header and it worked as it should but its only 3v . I had it connected to the expansion breakout board on heater 6 pwm pin and it will respond but only between 3.5 and 4.2 volts. I'm thinking the expansion board might be faulty unless there is some config changes for the expansion board that I'm not aware of.

          undefined 1 Reply Last reply 28 Aug 2024, 10:11 Reply Quote 0
          • undefined
            droftarts administrators @Alijambo73
            last edited by 28 Aug 2024, 10:11

            @Alijambo73 On the EBoB, you need to invert the output. See https://docs.duet3d.com/Duet3D_hardware/Duet_2_family/Duet_Expansion_Breakout_Board#using-the-servo-headers

            Note that the output of the PWM pin is inverted, as it is on the Duex2 and Duex5 expansion board, so any connected servo should have the pin definition inverted. For example, in RRF 3, use:
            M950 S0 C"!exp.heater7"
            The '!' character in the definition inverts the signal.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            undefined 1 Reply Last reply 28 Aug 2024, 14:50 Reply Quote 0
            • undefined
              Alijambo73 @droftarts
              last edited by 28 Aug 2024, 14:50

              @droftarts I have tried it both ways with the same result.

              undefined 1 Reply Last reply 29 Aug 2024, 19:54 Reply Quote 0
              • undefined
                droftarts administrators @Alijambo73
                last edited by 29 Aug 2024, 19:54

                @Alijambo73 Have a good look over the board, looking for any solder bridges between pins, or poorly soldered connectors. To trace the lines for the heater 6 PWM, see the schematic here: https://github.com/Duet3D/Duet-2-Hardware/blob/master/Duet_Expansion/Expansion_Breakoutv1.1/ExpBreakoutv1.1_Schematic.pdf

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                undefined 1 Reply Last reply 30 Aug 2024, 02:12 Reply Quote 0
                • undefined
                  Alijambo73 @droftarts
                  last edited by Alijambo73 30 Aug 2024, 02:12

                  @droftarts I couldn't see anything and I ra n my meter over the pins to check for continuity. I attached a picture for a different set of eyes.
                  20240829_200321.jpg
                  Let me know what you think ot if I should give up and get a duet 3 6hc.

                  Thanks

                  undefined 1 Reply Last reply 30 Aug 2024, 07:18 Reply Quote 0
                  • undefined
                    droftarts administrators @Alijambo73
                    last edited by 30 Aug 2024, 07:18

                    @Alijambo73 I can’t see anything on that side of the board. Can you post a picture of the other side?

                    Does heater 7 pwm give the same output voltages? If so, I expect there’s a problem with the 74HCT chip.

                    Always happy to sell more Duet boards!

                    Ian

                    Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                    undefined 1 Reply Last reply 30 Aug 2024, 12:57 Reply Quote 0
                    • undefined
                      Alijambo73 @droftarts
                      last edited by Alijambo73 30 Aug 2024, 12:57

                      @droftarts it does give the same readings. Looks lime a new board is in the future.

                      undefined 1 Reply Last reply 30 Aug 2024, 13:45 Reply Quote 0
                      • undefined
                        droftarts administrators @Alijambo73
                        last edited by 30 Aug 2024, 13:45

                        @Alijambo73 I just realised your board says "Made in China" on the back, so this is very probably a clone board. You can get the genuine Duet board from Filastruder: https://www.filastruder.com/products/duet-expansion-board, with a much higher probability of it working correctly!

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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