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

Bl-Touch self extended

Scheduled Pinned Locked Moved
General Discussion
4
32
1.3k
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
    Heartleander81
    last edited by 20 Dec 2020, 06:27

    ; Configuration file for Duet 3 (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Wed Aug 26 2020 16:14:58 GMT+0200 (Mitteleuropäische Sommerzeit)
    ; General preferences
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"Duet3" ; set printer name
    M912 P0 S-5 ; sstzt CPU Temp korrektur
    M669 K1 ;switch to core X/Y mode
    ; Drives
    M569 P0.0 S0 V30 D3 ; X physical drive 0.0 goes forwards
    M569 P0.1 S0 V30 D3 ; Y physical drive 0.1 goes forwards
    M569 P0.2 S1 V30 D3 ; Z1 physical drive 0.2 goes forwards
    M569 P0.3 S1 V30 D3 ; Z2 physical drive 0.3 goes forwards
    M569 P0.4 S1 V30 D3 ; Z3 physical drive 0.4 goes forwards
    M569 P0.5 S0 V30 D3 ; E physical drive 0.5 goes backwards
    M584 X0.0 Y0.1 Z0.2:0.3:0.4 E0.5 ; set drive mapping
    M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z800.00 E419.00 ; set steps per mm
    M566 X1000.00 Y1000.00 Z300.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
    M203 X18000.00 Y18000.00 Z600.00 E3000.00 ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z200.00 E450.00 ; set accelerations (mm/s^2)
    M906 X800 Y800 Z900 E800 I30 ; set motor currents (mA) and motor idle factor in per cent
    M84 S120 ; Set idle timeout
    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; set axis minima
    M208 X300 Y300 Z295 S0 ; set axis maxima
    ; Endstops
    M574 X1 S1 P"io2.in" ; configure active-high endstop for low end on X via pin io2.in
    M574 Y1 S1 P"io1.in" ; configure active-high endstop for low end on Y via pin io1.in
    M574 Z1 S2
    ; Z-Probe
    M950 S0 C"io7.out" ; create servo pin 0 for BLTouch
    M558 P9 C"^io7.in" H5 F400 T5000 ; set Z probe type to bltouch and the dive height + speeds
    G31 P500 X38.884 Y-6.578 Z2.21 ; set Z probe trigger value, offset and trigger height
    M557 X40:260 Y40:260 S40 ; define mesh grid
    M671 X-33.985:142.224:318.433 Y-16.206:312.004:-16.206 S50 ;Z lift Point Position
    ; Heaters
    M308 S0 A"Bett" P"temp0" Y"thermistor" T100000 B4100 ; configure sensor 0 as thermistor on pin temp0
    M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0
    M307 H0 A176.1 C1192.2 D31.2 S1.0 V24.3 B0 ; disable bang-bang mode for the bed heater and set PWM limit
    M140 H0 ; qmap heated bed to heater 0
    M143 H0 S120 ; set temperature limit for heater 0 to 120C
    M308 S1 A"Hotend" P"temp1" Y"thermistor" T100000 B4395 ; configure sensor 1 as thermistor on pin temp1
    M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1
    M307 H1 B0 S0.80 ; disable bang-bang mode for heater and set PWM limit
    M308 S2 A"Elektro" P"temp3" Y"thermistor" T100000 B4100 ; configure sensor 1 as thermistor on pin temp1
    M141 H2
    M308 S3 Y"drivers" A"Stepper" ; configure sensor 3 as temperature warning and overheat flags on the TMC2660 on Duet
    M308 S4 Y"mcu-temp" A"MCU" ; configure sensor 4 as thermistor on pin e1temp
    ; Fans
    M950 F1 C"out7" Q500 ; create fan 1 on pin out7 and set its frequency
    M106 P1 C"Hotend" S1 H1 T50 ; set fan 1 name and value. Thermostatic control is turned on
    M950 F0 C"out4" Q1000 ; create fan 0 on pin out4 and set its frequency
    M106 P0 C"Bauteil1" S0 H-1 ; set fan 0 name and value. Thermostatic control is turned off
    M950 F2 C"out9" Q500 ; create Light on pin out9 and set its frequency
    M106 P2 C"Licht" S0 H-1
    M950 F3 C"out8" Q500 ; create fan 3 on pin out8 and set its frequency
    M106 P3 H3:4 T33 ; set fan 3 value
    ; Tools
    M563 P0 S"Hotend" D0 H1 F0 ; define tool 0
    G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
    G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C
    ; Custom settings are not defined
    M564 S1 H0
    T0
    ; Miscellaneous
    ;M575 P1 S1 B57600 ; enable support for PanelDue
    M501 ; load saved parameters from non-volatile memory
    M911 S21 R22 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
    ; homeall file for use with dc42 Duet firmware on CoreXY printers
    ; This file assumes the endstop switches are at the low end of each axis.
    ; Reverse the X and Y movement for high-end switches.
    ; Adjust the bed upper and lower limits in config.g (M208 commands) to get the correct homing positions
    T0
    G91 ; relative mode
    G1 Z5 F400
    G1 H1 X-240 Y-240 F6000 ; course home X or Y
    G1 H1 X-240 ; course home X
    G1 H1 Y-240 ; course home Y
    G1 X4 Y4 F6000 ; move away from the endstops
    G1 H1 X-10 ; fine home X
    G1 H1 Y-10 ; fine home Y
    G90 ; back to absolute mode
    ; The following code assumes you are using a Z probe to do Z homing.
    ; Adjust the XY coordinates in the following to place the Z probe over a suitable spot,
    ; preferably near the centre of the bed if your Z probe supports that
    G1 X112 Y156.8 F6000
    G30
    ; This file leaves the head at the zprobe trigger height so that you can slip a piece of paper under it and then do G0 Z0 to check the height.
    ; If you prefer to send the printer to X0Y0Z0, un-comment the following lines
    ;G1 X0 Y0 F6000
    ;G1 Z5 F400
    M98 P"config.g"
    Warning: M307: Heater 0 appears to be over-powered. If left on at full power, its temperature is predicted to reach 201C
    Warning: M307: Heater 0 appears to be over-powered. If left on at full power, its temperature is predicted to reach 201C
    1 Reply Last reply Reply Quote 0
    • undefined
      Heartleander81 @Phaedrux
      last edited by Heartleander81 20 Dec 2020, 06:28

      @Phaedrux ok I hope that help.

      When I measure from ground to white I have 3.3V when retracted, <20mV when extended. DWC always says "not stopped"
      If I measure 5V pin to ground I have 4.94V.

      1 Reply Last reply Reply Quote 0
      • undefined
        Heartleander81
        last edited by Heartleander81 20 Dec 2020, 06:40

        Startcode

        T0
        G32 ; True Bed Leveling und Meshbedleveling
        G29 S1 P"heightmap.csv" ; Load Mesh
        G1 X5 Y5 Z15 F6000 ; Move the platform down 15mm
        ;M117 Prime the extruder
        G92 E0 ; reset extruder
        G1 E3 F200 ; Extrude 3mm
        ;M117 Purge Extruder
        G92 E0 ; reset extruder
        G1 Z1 F1000 ; move z up to prevent scratching of surface
        G1 X10 Y10 Z0.3 F5000 ; move to start-line position
        G1 X10 Y200 E15 F1500 ; draw 1st line
        G1 X10.8 Y200 F5000 ; move to side a little
        G1 X11.6 Y2 E30 F1500 ; draw 2nd line
        G1 Z17 F3000 ; Move Bed 17mm down
        G1 E15 F300 ; Extrude 15mm
        G92 E0 ; reset extruder
        G4 S5 ; Wait 5 second

        Endcode

        M104 S0
        M140 S0
        M107
        G92 E1
        G1 E-1 F300 ;Retract the filament
        G1 X5 Y300 Z290 F6000
        undefined 1 Reply Last reply 20 Dec 2020, 14:20 Reply Quote 0
        • undefined
          BDubs @Heartleander81
          last edited by 20 Dec 2020, 14:20

          @Heartleander81 I was just reading the BLT documentation the other day and it mentioned it being susceptible to noise from the hotbend heater wires (guessing 12/24v pwm stepping on the BLT 3.3/5v signal) Wondering if this is your issue...

          Of course I can't find it now to link...

          undefined 1 Reply Last reply 20 Dec 2020, 15:20 Reply Quote 0
          • undefined
            Heartleander81 @BDubs
            last edited by 20 Dec 2020, 15:20

            @BDubs That would be an explanation. Was the fault on the board or was it from the cables? is the best way to shield the Bl-Touch?

            undefined 1 Reply Last reply 20 Dec 2020, 15:57 Reply Quote 0
            • undefined
              BDubs @Heartleander81
              last edited by 20 Dec 2020, 15:57

              @Heartleander81 said in Bl-Touch self extended:

              @BDubs That would be an explanation. Was the fault on the board or was it from the cables? is the best way to shield the Bl-Touch?

              Still can't find it...arrg...

              They mentioned turning off the nozzle heater (to effectively kill the PWM signal) when probing to prevent it from being susceptible to noise.

              In terms of shielding, I'd try using shielded cable and be sure to properly connect the ground/drain to your chassis in such a way as to avoid a ground loop.

              1 Reply Last reply Reply Quote 0
              • undefined
                Phaedrux Moderator
                last edited by 20 Dec 2020, 16:53

                M558 B1 will turn off the heaters during the probing move.

                https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M558_Set_Z_probe_type

                @Heartleander81 said in Bl-Touch self extended:

                DWC always says "not stopped"

                Where are you seeing not stopped?
                How are you testing the BLTouch?

                If you send M401 and M402 does the pin deploy and retract?
                If you send G30 does the pin deploy and start to move the z axis?
                Does triggering the pin by hand stop movement?

                Z-Bot CoreXY Build | Thingiverse Profile

                undefined 1 Reply Last reply 20 Dec 2020, 17:16 Reply Quote 0
                • undefined
                  Heartleander81 @Phaedrux
                  last edited by 20 Dec 2020, 17:16

                  @Heartleander81 said in Bl-Touch self extended:

                  DWC always says "not stopped"

                  Where are you seeing not stopped?
                  How are you testing the BLTouch?

                  If you send M401 and M402 does the pin deploy and retract?
                  If you send G30 does the pin deploy and start to move the z axis?
                  Does triggering the pin by hand stop movement?

                  On the DWC ore with M119 Z not stopped and Z-Probe not stopped

                  M401 and M402 do the deploy and retract.
                  G30 do it all. Deploy and start when i push the pin axes stop.

                  But why deploy the pin when I print ore after print deploy and retract from self?

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Phaedrux Moderator
                    last edited by 20 Dec 2020, 17:37

                    Ok, so the BLTouch is otherwise working correctly, it's just occasionally deploying the pin when it doesn't?

                    Interference on the servo wire could be possible. Can you separate the BLtouch wires from the rest in the bundle?

                    Z-Bot CoreXY Build | Thingiverse Profile

                    undefined 2 Replies Last reply 20 Dec 2020, 17:47 Reply Quote 0
                    • undefined
                      Heartleander81 @Phaedrux
                      last edited by 20 Dec 2020, 17:47

                      @Phaedrux I can test it. But take some time. 2-4h. When my child is go to bed, i have more time.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Heartleander81 @Phaedrux
                        last edited by 21 Dec 2020, 16:25

                        @Phaedrux
                        First print and the pin doun't come out. I think that was it.

                        20201221_075845.jpg

                        undefined 1 Reply Last reply 21 Dec 2020, 17:52 Reply Quote 0
                        • undefined
                          Phaedrux Moderator @Heartleander81
                          last edited by 21 Dec 2020, 17:52

                          @Heartleander81 said in Bl-Touch self extended:

                          I think that was it.

                          So it's working now?

                          Z-Bot CoreXY Build | Thingiverse Profile

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