Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. demonlibra
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 24
    • Best 3
    • Controversial 0
    • Groups 0

    demonlibra

    @demonlibra

    4
    Reputation
    5
    Profile views
    24
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    demonlibra Unfollow Follow

    Best posts made by demonlibra

    • RE: Stallguard detection not working
      1. It is useless doing two pass for homing with sensorless because this type not accurate.
      2. You must using StealthChop mode for drivers TMC2209.
      3. You must calculate and set special M915 Hnn for your speed. Hnn working like a filter.
        Set big value Hnn and drivers will determine noise.
        Set low value Hnn and drivers will not determine stall.
      4. If motor 1.8 degree, try H90 and speed F1200.

      My file homeall.g

      ; homeall.g
      ; called to home all axes
      
      M17                     ; Enable all stepper motors
      G4 S1                   ; Wait 1 second
      
      ;HOMING Z
      M150 X2 R200 U0 B0 S3   ; Change LedLight of the screen to blue
      G91                     ; relative positioning
      M913 Z60                ; set 60% motor current for safety before move
      G1 H2 Z-1 F300          ; lift Z relative to current position
      G1 H1 Z160 F600         ; move Z up until the endstop is triggered
      G1 H2 Z-3 F300          ; lift Z relative to current position
      G1 H1 Z3.5 F75          ; move Z up until the endstop is triggered
      M400                    ; Wait for current moves to finish
      M913 Z100               ; set 100% motor current for motor Z
      
      
      ;PREPARING HOMING X and Y
      G4 S1                   ; Wait 1 second
      M569 P0 D3 V40          ; Change from SpreadCycle to StealthChop at low speed for X axis
      M569 P1 D3 V40          ; Change from SpreadCycle to StealthChop at low speed for Y axis
      M913 X30 Y30            ; Decrease motors current to 30%
      M566 X1 Y1              ; Decrease Jerk mm/min
      M201 X300 Y300          ; Decrease Accelerations mm/sec^2
      G91                     ; Relative positioning
      M915 X Y H90 S45 F0 R0  ; Configure motor stall detection for 20 mm/sec
      
      ;HOMING X
      G1 H1 X5 F600           ; Move X axis from left stop
      G4 P100                 ; Wait 100 msec
      G1 H1 X-154 F1200       ; Move X axis to left stop at 20 mm/sec
      G4 P100                 ; Wait 100 msec
      G1 X10 F600             ; Move X axis from left stop
      M400
      
      ;HOMING Y
      G1 H1 Y5 F600           ; Move Y axis from left stop
      G4 P100                 ; Wait 100 msec
      G1 H1 Y-159 F1200       ; Move Y axis to left stop at 20 mm/sec
      G4 P100                 ; Wait 100 msec
      G1 Y10 F600             ; Move Y axis from left stop
      M400                    ; Wait for current moves to finish
      
      M913 X100 Y100          ; Return motors current to 100%
      M566 X900 Y900          ; Return Jerk to 15 mm/min
      M201 X1500 Y1500        ; Return Accelerations 1500 mm/sec^2
      G90                     ; Absolute positioning
      M400                    ; Wait for current moves to finish
      
      ;HOMING X and Y manual without limit switches
      ;M150 X2 R0 U0 B200 S3    ; Change LedLight of the screen to blue
      ;M18 X Y                  ; Switch off motor X and Y
      ;M300 P500                ; Beep
      ;M291 P"Move head X0 Y0" R"HOMING X Y" S2 ; Show message on the screen
      ;M17                      ; Switch on all motors
      ;G92 X0 Y0                ; Set current position X=0 Y=0
      
      posted in Duet Hardware and wiring
      demonlibraundefined
      demonlibra
    • RE: 12864 command M701 S"nnn"

      created folder "/menu/filaments"

      created files pla, abs, petg with content

      M701 S"PLA"
      
      M701 S"ABS"
      

      ...

      Working fine.

      posted in General Discussion
      demonlibraundefined
      demonlibra
    • RE: Slowing in line with part no extrusion

      Looks like the problem resolved in 3.4 beta

      posted in General Discussion
      demonlibraundefined
      demonlibra

    Latest posts made by demonlibra

    • RE: Redirect output from any command to file

      @owend Loging work fine. Thank you.

         var counter=var.register_start
         M929 P"tmcregisters.txt" S3
         while var.counter<=var.register_end
            M569.2 P{var.driver_number} R{var.counter}
            set var.counter=var.counter+1
            G4 P200
         M929 S0
      
      2022-06-12 10:00:12 [info] Event logging started at level debug
      2022-06-12 10:00:12 [info] Running: Duet 3 Mini5plus WiFi: 3.4.1rc1 (2022-05-03 09:34:52)
      2022-06-12 10:00:12 [debug] Register 0x00 value 0x000001c0
      2022-06-12 10:00:12 [debug] Register 0x01 value 0x00000001
      2022-06-12 10:00:13 [debug] Register 0x02 value 0x0000000a
      2022-06-12 10:00:13 [debug] Register 0x03 value 0x00000000
      2022-06-12 10:00:13 [debug] Register 0x04 value 0x00000000
      2022-06-12 10:00:14 [debug] Register 0x05 value 0x0000000e
      2022-06-12 10:00:14 [debug] Register 0x06 value 0x21000040
      2022-06-12 10:00:14 [debug] Register 0x07 value 0x0000000e
      2022-06-12 10:00:15 [debug] Register 0x08 value 0x00000000
      2022-06-12 10:00:15 [debug] Register 0x09 value 0x00000000
      2022-06-12 10:00:15 [debug] Register 0x0a value 0x00000000
      2022-06-12 10:00:15 [info] Event logging stopped
      
      posted in Gcode meta commands
      demonlibraundefined
      demonlibra
    • Redirect output from any command to file

      Starting with firmware 3.4 the output from an echo command can be redirected to a file.
      Is it possible to redirect output from any command to file or get last output from object model?

      E.g. I write code to get state of TMC registers and want to save result to file.

      var driver_number=0              ; Driver number
      
      var register_start=0             ; Start (0 ... 127)
      var register_end=127             ; Finish (0 ... 127
      
      G4 S3
      if (var.register_end<=127) & (var.register_start>=0) & (var.register_end>=var.register_start)
      
         var counter=var.register_start
      
         while var.counter<=var.register_end
            M569.2 P{var.driver_number} R{var.counter}
            set var.counter=var.counter+1
            G4 P200
      
      posted in Gcode meta commands
      demonlibraundefined
      demonlibra
    • RE: How to tune/calibrate heater feedforward?

      @phaedrux said in How to tune/calibrate heater feedforward?:

      @demonlibra said in How to tune/calibrate heater feedforward?:

      What length of filament is enougth for this test?

      How much filament does it take at max flow to impact the thermistor reading?

      Aluminum V6, heater 40 W, nozzle 0.4 mm, maximum flowrate around 10 mm3/sec.

      posted in Tuning and tweaking
      demonlibraundefined
      demonlibra
    • RE: How to tune/calibrate heater feedforward?

      What length of filament is enougth for this test?

      posted in Tuning and tweaking
      demonlibraundefined
      demonlibra
    • RE: Report Thermistor resistance

      Also very interesting
      How to get values from ADC?

      posted in Using Duet Controllers
      demonlibraundefined
      demonlibra
    • RE: execute Stop fan when temperature is lower than 45
      M308 S1 P"temp1" Y"thermistor" A"HotEnd" T100000 B3950 ; configure sensor 1 as thermistor on pin temp1
      M950 F1 C"out5" Q50                          ; create fan 1 on pin out5 and set its frequency
      M106 P1 C"HOTEND" S1.0 H1 T50                ; set fan 1 value. Thermostatic control is turned on
      

      H1 - Enable thermostatic mode and select sensor monitored. Relates to the sensor number(s) created by M308.
      T50 - Set thermostatic mode trigger temperature 50C.

      https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m106-fan-on

      posted in Gcode meta commands
      demonlibraundefined
      demonlibra
    • RE: Stallguard detection not working

      @del87 said in Stallguard detection not working:

      What is the repeatability of sensorless parking with your parameters?

      I dont look to the sensorless homing like to the preciese type of homing.

      posted in Duet Hardware and wiring
      demonlibraundefined
      demonlibra
    • RE: Stallguard detection not working
      1. It is useless doing two pass for homing with sensorless because this type not accurate.
      2. You must using StealthChop mode for drivers TMC2209.
      3. You must calculate and set special M915 Hnn for your speed. Hnn working like a filter.
        Set big value Hnn and drivers will determine noise.
        Set low value Hnn and drivers will not determine stall.
      4. If motor 1.8 degree, try H90 and speed F1200.

      My file homeall.g

      ; homeall.g
      ; called to home all axes
      
      M17                     ; Enable all stepper motors
      G4 S1                   ; Wait 1 second
      
      ;HOMING Z
      M150 X2 R200 U0 B0 S3   ; Change LedLight of the screen to blue
      G91                     ; relative positioning
      M913 Z60                ; set 60% motor current for safety before move
      G1 H2 Z-1 F300          ; lift Z relative to current position
      G1 H1 Z160 F600         ; move Z up until the endstop is triggered
      G1 H2 Z-3 F300          ; lift Z relative to current position
      G1 H1 Z3.5 F75          ; move Z up until the endstop is triggered
      M400                    ; Wait for current moves to finish
      M913 Z100               ; set 100% motor current for motor Z
      
      
      ;PREPARING HOMING X and Y
      G4 S1                   ; Wait 1 second
      M569 P0 D3 V40          ; Change from SpreadCycle to StealthChop at low speed for X axis
      M569 P1 D3 V40          ; Change from SpreadCycle to StealthChop at low speed for Y axis
      M913 X30 Y30            ; Decrease motors current to 30%
      M566 X1 Y1              ; Decrease Jerk mm/min
      M201 X300 Y300          ; Decrease Accelerations mm/sec^2
      G91                     ; Relative positioning
      M915 X Y H90 S45 F0 R0  ; Configure motor stall detection for 20 mm/sec
      
      ;HOMING X
      G1 H1 X5 F600           ; Move X axis from left stop
      G4 P100                 ; Wait 100 msec
      G1 H1 X-154 F1200       ; Move X axis to left stop at 20 mm/sec
      G4 P100                 ; Wait 100 msec
      G1 X10 F600             ; Move X axis from left stop
      M400
      
      ;HOMING Y
      G1 H1 Y5 F600           ; Move Y axis from left stop
      G4 P100                 ; Wait 100 msec
      G1 H1 Y-159 F1200       ; Move Y axis to left stop at 20 mm/sec
      G4 P100                 ; Wait 100 msec
      G1 Y10 F600             ; Move Y axis from left stop
      M400                    ; Wait for current moves to finish
      
      M913 X100 Y100          ; Return motors current to 100%
      M566 X900 Y900          ; Return Jerk to 15 mm/min
      M201 X1500 Y1500        ; Return Accelerations 1500 mm/sec^2
      G90                     ; Absolute positioning
      M400                    ; Wait for current moves to finish
      
      ;HOMING X and Y manual without limit switches
      ;M150 X2 R0 U0 B200 S3    ; Change LedLight of the screen to blue
      ;M18 X Y                  ; Switch off motor X and Y
      ;M300 P500                ; Beep
      ;M291 P"Move head X0 Y0" R"HOMING X Y" S2 ; Show message on the screen
      ;M17                      ; Switch on all motors
      ;G92 X0 Y0                ; Set current position X=0 Y=0
      
      posted in Duet Hardware and wiring
      demonlibraundefined
      demonlibra
    • RE: Slowing in line with part no extrusion

      Looks like the problem resolved in 3.4 beta

      posted in General Discussion
      demonlibraundefined
      demonlibra
    • RE: sensorless homing with S4 option behaves same as S3 in 3.4 b7

      I strongly recommend that you remove the belt from pulleys before tuning.

      I run this program and changing parameters while excecuting:

      global counter=0
      
      M569 P0 D3 V20     ; tpwmthrs 40 (117.2 mm/sec)
      M569 P1 D3 V20     ; tpwmthrs 40 (117.2 mm/sec)
      M906 X1000 Y1000   ; Current mA
      M913 X35 Y35       ; Current %
      M566 X1 Y1         ; Jerk mm/min
      M201 X300 Y300     ; Accelerations mm/sec^2
      
      M220 S20           ; Set speed factor override percentage
      M915 X Y S0 H95 F0 R1
      
      ;G28
      G92 X0 Y0
      
      G0 X20 Y20
      while true
        if global.counter=10
          echo "10 pass"
          set global.counter=0
      	
        G4 S3
        G1 X145 F6000
        G1 X10 F6000
        M400
        set global.counter=global.counter+1
      

      You must be sure that using StealChop mode for TMC2209. Check speed for switch between StealthChop to SpreadCycle mode.
      Decrease motor current to 30-35%. But not too less or you will get errors "Error: short-to-ground reported by driver(s) 0"
      Use speed 20-30 mm/sec. Less is better but if you set too low speed stall will not detect.

      Theoretical Hnn = <speed> / <length perimeter pulley > x <motor steps per one rotate> x 0.95
      For speed 20 mm/sec, motor 1.8, pulley GT2-20
      H = 20 / 40 x 200 x 0.95 = 95
      You will get false signals if set too low Hnn or not get signals at all if set Hnn to high.

      While excecuting change parameters Snn in command M915.

      Look to the console. Increase S if you get false messages.
      Or decrease S if you touch the pulley but do not get message to console.

      Toch the rotating pulley on the motor and find minimum Snn.

      https://youtu.be/OI_uVmXZqaI

      posted in Beta Firmware
      demonlibraundefined
      demonlibra