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

    Pay for config / json files for my corexy printer build.

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    11
    67
    5.6k
    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.
    • Phaedruxundefined
      Phaedrux Moderator @Stevo
      last edited by

      @stevo said in Pay for config / json files for my corexy printer build.:

      ; Endstops
      M574 X1 Y1 S0 ; Set active low and disabled endstops
      M574 Z1 S2 ; Define Z to use Probe. Home to Min.
      M558 P5 H5 F500 T4000 X0 Y0 Z1 ; Set Z probe type/mode 5. Not using on XY, but using it on Z.
      G31 P25 X0 Y-25.3 Z0.0 ; Z probe trigger value, offset in relation to nozzle. And trigger height
      ; Z-Probe
      M574 Z1 S2 ; Set endstops controlled by probe
      M307 H7 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
      M558 P9 H5 F100 T2000 ; Set Z probe type to bltouch and the dive height + speeds
      G31 X0 Y0 Z0 P25 ; Set Z probe trigger value, offset and trigger height
      M557 X220:220 Y-220:220 S20 ; Define mesh grid
      ; BLTouch - Heaters
      M307 H7 A-1 C-1 D-1 ; Disable the 7th Heater to free up PWM channel 5 on the Duex board.

      You've got a few commands duplicated there. You should probably clean those up to prevent future confusion.

      @stevo said in Pay for config / json files for my corexy printer build.:

      G1 X0 Y0 F6000 ; go to first bed probe point and home Z
      G30 ; home Z by probing the bed

      It would seem you are using 0,0 as bed center? Just checking.

      @stevo said in Pay for config / json files for my corexy printer build.:

      ; homez.g
      ; called to home the Z axis
      ;
      ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)
      G30 ; Do a single probe to home our Z axis
      G90 ; Make sure we are in absolute mode
      G1 Z10 F6000 ; Rapidly move the Z axis to Z=10.

      You may want to add a G1 X Y move before the G30 to place the probe in the same location as you do in homeall for consistency, unless you have different plans for using homez alone in certain situations. That's valid, but just be aware that G28 and G28 Z will give you very different results.

      @stevo said in Pay for config / json files for my corexy printer build.:

      ; BLTouch - Heaters
      M307 H7 A-1 C-1 D-1 ; Disable the 7th Heater to free up PWM channel 5 on the Duex board.

      @stevo said in Pay for config / json files for my corexy printer build.:

      ; deployprobe.g
      ; called to deploy a physical Z probe
      ;
      ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)
      M280 P3 S10 I1

      You're unbinding heater pin 7, but then you're targeting servo 3 in your deploy and retract commands. I think this is the reason the probe isn't doing anything. If you are actually using pin 7, then change the servo commands to be P7 instead of P3.

      Did you test the deploy and retract macros? What happens if you send M401 and M402? (should be deploy and retract)

      Use this procedure for safely testing your probe. https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe

      Z-Bot CoreXY Build | Thingiverse Profile

      Stevoundefined 1 Reply Last reply Reply Quote 0
      • Stevoundefined
        Stevo @Phaedrux
        last edited by

        @phaedrux Thank you for the help as always much appreciated!

        Will report back once I have sorted my mess out lol.

        1 Reply Last reply Reply Quote 0
        • Stevoundefined
          Stevo
          last edited by

          Evening all,
          Now have signs of life from the BL touch on hitting the home button the bed lowers 15mm the y axis then homes followed by the x axis homing and then the printhead moves to the middle of the machine and deploys the probe and upon touching the bed and retracting the table lowers 15mm again.
          Its a little hit and miss as sometimes when I turn the machine on the bl will just flash red and will not deploy at the z axis homing stage.
          If I actually deploy the prove manually after one of these instances but prior to powering the machine on everything seems to be ok ?

          ; Configuration file for Duet WiFi (firmware version 1.21)
          ; executed by the firmware on start-up
          ;
          ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)

          ; General preferences
          G90 ; Send absolute coordinates...
          M83 ; ...but relative extruder moves

          M669 K1 ; Select CoreXY mode

          ; Network
          M550 P"WILE E COYOTE" ; Set machine name
          M552 S1 ; Enable network
          ;*** Access point is configured manually via M587
          M586 P0 S1 ; Enable HTTP
          M586 P1 S0 ; Disable FTP
          M586 P2 S0 ; Disable Telnet

          ; Drives
          M569 P0 S1 ; Physical drive 0 goes forwards
          M569 P1 S1 ; Physical drive 1 goes forwards
          M569 P2 S0 ; Physical drive 2 goes backwards
          M569 P3 S1 ; Physical drive 3 goes forwards
          M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
          M92 X80.00 Y80.00 Z1600.00 E420.00 ; Set steps per mm
          M566 X900.00 Y900.00 Z30.00 E2400 ; Set maximum instantaneous speed changes (mm/min)
          M203 X6000.00 Y6000.00 Z144.00 E1200.00 ; Set maximum speeds (mm/min)
          M201 X500.00 Y500.00 Z20.00 E250.00 ; Set accelerations (mm/s^2)
          M906 X800.00 Y800.00 Z2000.00 E800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
          M84 S30 ; Set idle timeout

          ; Axis Limits
          M208 X-220 Y-220 Z0 S1 ; Set axis minima
          M208 X220 Y220 Z660 S0 ; Set axis maxima

          ; Endstops
          M574 X1 Y1 S0 ; Set active low and disabled endstops
          M574 Z1 S2 ; Define Z to use Probe. Home to Min.
          M558 P5 H5 F500 T4000 X0 Y0 Z1 ; Set Z probe type/mode 5. Not using on XY, but using it on Z.
          G31 P25 X0 Y-25.3 Z0.0 ; Z probe trigger value, offset in relation to nozzle. And trigger height adjustment

          ; Z-Probe
          M574 Z1 S2 ; Set endstops controlled by probe
          M307 H7 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
          M558 P9 H15 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
          G31 P500 X32 Y2 Z2.5 ; Set Z probe trigger value, offset and trigger height
          M557 X220:220 Y-220:220 S20 ; Define mesh grid

          ; Heaters
          M140 H-1 ; Disable heated bed
          M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
          M143 H1 S280 ; Set temperature limit for heater 1 to 280C

          ; Fans
          M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
          M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on

          ; Tools
          M563 P0 D0 H1 ; 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

          ; Automatic saving after power loss is not enabled

          ; Custom settings are not configured

          ; Miscellaneous
          T0 ; Select first tool

          ; homeall.g
          ; called to home all axes
          ;
          ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)
          G91 ; relative positioning
          G1 Z15 F6000 S2 ; lift Z relative to current position
          G1 S1 Y-445 F1800 ; move quickly to Y axis endstop and stop there (first pass)
          G1 Y5 F6000 ; go back a few mm
          G1 S1 Y-445 F360 ; move slowly to Y axis endstop once more (second pass)
          G1 S1 X-445 F1800 ; move quickly to X axis endstop and stop there (first pass)
          G1 X5 F6000 ; go back a few mm
          G1 S1 X-445 F360 ; move slowly to X axis endstop once more (second pass)
          G90 ; absolute positioning
          G1 X0 Y0 F6000 ; go to first bed probe point and home Z
          G30 ; home Z by probing the bed

          ; Uncomment the following lines to lift Z after probing
          ;G91 ; relative positioning
          ;G1 S2 Z15 F100 ; lift Z relative to current position
          ;G90 ; absolute positioning

          ; homex.g
          ; called to home the X axis
          ;
          ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)
          G91 ; relative positioning
          G1 Z15 F6000 S2 ; lift Z relative to current position
          G1 S1 X-445 F1800 ; move quickly to X axis endstop and stop there (first pass)
          G1 X5 F6000 ; go back a few mm
          G1 S1 X-445 F360 ; move slowly to X axis endstop once more (second pass)
          G1 Z-15 F6000 S2 ; lower Z again
          G90 ; absolute positioning

          ; homey.g
          ; called to home the Y axis
          ;
          ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)
          G91 ; relative positioning
          G1 Z15 F6000 S2 ; lift Z relative to current position
          G1 S1 Y-445 F1800 ; move quickly to Y axis endstop and stop there (first pass)
          G1 Y5 F6000 ; go back a few mm
          G1 S1 Y-445 F360 ; move slowly to Y axis endstop once more (second pass)
          G1 Z-15 F6000 S2 ; lower Z again
          G90 ; absolute positioning

          ; homez.g
          ; called to home the Z axis
          ;
          ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)
          G91 ; relative positioning
          G1 Z15 F6000 S2 ; lift Z relative to current position
          G90 ; absolute positioning
          G1 X0 Y0 F6000 ; go to first probe point
          G30 ; home Z by probing the bed

          ; Uncomment the following lines to lift Z after probing
          ;G91 ; relative positioning
          ;G1 S2 Z15 F100 ; lift Z relative to current position
          ;G90 ; absolute positioning

          Phaedruxundefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by

            Some people add a command to reset the BLTouch out of an error state, before using it for probing. You can add this command in homez.g and homeall.g (before the G30 command), and if you wish in bed.g. It's an M280 command but I forget the details. You may need a short G4 delay command after it, to make sure that the reset happens before the firmware tries to deploy the probe.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator @Stevo
              last edited by

              @stevo said in Pay for config / json files for my corexy printer build.:

              when I turn the machine on the bl will just flash red and will not deploy at the z axis homing stage.

              Try adding this to the end of your config.g to clear any BLTouch errors and retract the pin just in case.

              ; BLTOUCH PREP
              ;
              G4 S1
              M280 P7 S160 I1 		; Alarm Release and Push-Pin UP just in case it's in alarm and deployed
              G4 S1
              M402				; Retract probe just in case it's down
              

              M558 P5 H5 F500 T4000 X0 Y0 Z1
              G31 P25 X0 Y-25.3 Z0.0 ;

              You've still got some probe settings duplicated in the endstops and zprobe section.

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • Stevoundefined
                Stevo
                last edited by

                Thank you that's done the trick !

                1 Reply Last reply Reply Quote 0
                • Stevoundefined
                  Stevo
                  last edited by Stevo

                  Evening all,

                  Just wanted to ask when the printer has finished its task how / where do I ask it to lower the bed and come back to the homing corner minima on x and y to cool print head down bearing in mind my origin is the centre of the build plate.

                  M104 S0 ;Turn off extruder heater
                  G91 ;Relative positioning
                  G1 Z 10 E-5 F300 ; Lower bed by 10mm and retract filament by 5mm
                  G1 S1 Y-150 X-150 F500 ;Move nozzle 150mm home direction out of the way of finished print.
                  M84 ;Motors off
                  G90 ;Absolute positioning

                  1 Reply Last reply Reply Quote 0
                  • zaptaundefined
                    zapta
                    last edited by

                    Does this help? https://forum.duet3d.com/topic/6760/stop-g

                    Stevoundefined 1 Reply Last reply Reply Quote 0
                    • Stevoundefined
                      Stevo @zapta
                      last edited by

                      @zapta thank you !

                      1 Reply Last reply Reply Quote 0
                      • Stevoundefined
                        Stevo
                        last edited by

                        Evening all just wondered if one of you kind folk could cast an eye over my config file to see if it could be improved in any way please speeds and placement of codes within the file.

                        As always your comments greatly received

                        ; Configuration file for Duet WiFi (firmware version 1.21)
                        ; executed by the firmware on start-up
                        ;
                        ; generated by RepRapFirmware Configuration Tool v2 on Tue Jul 23 2019 21:10:42 GMT+0100 (BST)

                        ; General preferences
                        G90 ; Send absolute coordinates...
                        M83 ; ...but relative extruder moves

                        M669 K1 ; Select CoreXY mode

                        ; Network
                        M550 P"CORE XY" ; Set machine name
                        M552 S1 ; Enable network
                        ;*** Access point is configured manually via M587
                        M586 P0 S1 ; Enable HTTP
                        M586 P1 S0 ; Disable FTP
                        M586 P2 S0 ; Disable Telnet

                        ; Drives
                        M569 P0 S1 ; Physical drive 0 goes forwards
                        M569 P1 S1 ; Physical drive 1 goes forwards
                        M569 P2 S0 ; Physical drive 2 goes backwards
                        M569 P3 S1 ; Physical drive 3 goes forwards
                        M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
                        M92 X80.00 Y80.00 Z1600.00 E415.00 ; Set steps per mm
                        M566 X900.00 Y900.00 Z30.00 E2400 ; Set maximum instantaneous speed changes (mm/min)
                        M203 X6000.00 Y6000.00 Z144.00 E1200.00 ; Set maximum speeds (mm/min)
                        M201 X500.00 Y500.00 Z20.00 E250.00 ; Set accelerations (mm/s^2)
                        M906 X800.00 Y800.00 Z2000.00 E800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
                        M84 S30 ; Set idle timeout

                        ; Axis Limits
                        M208 X-220 Y-220 Z0 S1 ; Set axis minima
                        M208 X220 Y220 Z660 S0 ; Set axis maxima

                        ; Endstops
                        M574 X1 Y1 S0 ; Set active low and disabled endstops
                        M574 Z1 S2 ; Define Z to use Probe. Home to Min.
                        M558 P5 H5 F500 T4000 X0 Y0 Z1 ; Set Z probe type/mode 5. Not using on XY, but using it on Z.
                        G31 P25 X2 Y32 Z0.0 ; Z probe trigger value, offset in relation to nozzle. And trigger height adjustment

                        ; BLTOUCH PREP
                        G4 S1
                        M280 P7 S160 I1 ; Alarm Release and Push-Pin UP just in case it's in alarm and deployed
                        G4 S1
                        M402 ; Retract probe just in case it's down

                        ; Z-Probe
                        M574 Z1 S2 ; Set endstops controlled by probe
                        M307 H7 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
                        M558 P9 H15 F120 T6000 ; Set Z probe type to bltouch and the dive height + speeds
                        G31 P500 X32 Y2 Z0.96 ; Set Z probe trigger value, offset and trigger height
                        M557 X220:220 Y-220:220 S20 ; Define mesh grid

                        ; Heaters
                        M140 H-1 ; Disable heated bed
                        M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
                        M143 H1 S280 ; Set temperature limit for heater 1 to 280C

                        ; Fans
                        M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
                        M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on

                        ; Tools
                        M563 P0 D0 H1 ; 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

                        ; BLTOUCH PREP
                        G4 S1
                        M280 P7 S160 I1 ; Alarm Release and Push-Pin UP just in case it's in alarm and deployed
                        G4 S1
                        M402 ; Retract probe just in case it's down

                        ; Automatic saving after power loss is not enabled

                        ; Custom settings are not configured

                        ; Miscellaneous
                        T0 ; Select first tool

                        deckingmanundefined 1 Reply Last reply Reply Quote 0
                        • deckingmanundefined
                          deckingman @Stevo
                          last edited by

                          @stevo If I was being really pedantic I'd say that you have disabled thermostatic mode for your part cooling fan (M106 P0 H-1) which is fine, but the comment after says "Thermostatic control is turned on" (should say "off").

                          But I'm not feeling pedantic so I won't make that comment.

                          Seriously, nothing leaps out as being obviously amiss. I think you are at the stage of playing around with things to see if the end result looks any better or can be printed faster without degrading quality. One good thing about Duet is that you can play around with things "one the fly".

                          If you want, you can give your heaters and fans names for example such as "Hot end" rather than the default "heater 1" (M305 "S") or "Part fan" rather than "fan 0" (M106 "C").

                          You could try firmware retraction (G10 /G11). It won't work any better than your slicer but you can play around with it "on the fly" which is a far easier way to tune the retraction settings.

                          You could also play around with pressure advance (M572).

                          Ian
                          https://somei3deas.wordpress.com/
                          https://www.youtube.com/@deckingman

                          1 Reply Last reply Reply Quote 0
                          • Stevoundefined
                            Stevo
                            last edited by

                            Thank you for the input always appreciated !

                            1 Reply Last reply Reply Quote 0
                            • Stevoundefined
                              Stevo
                              last edited by Stevo

                              I have been tinkering with the driver speed settings in the config file only would this have any effect on the bltouch operation as when the x and y axis has homed and the head moves to the centre the bed raises a little before the bltouch has lowered the pin then changes its mind and lowers the bed.
                              The bltouch then flashes red

                              1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined
                                Phaedrux Moderator
                                last edited by

                                You can add a bit of a pause delay to the probe movements with M558 R0.5. This gives the BLTouch a half second chance to settle before starting to probe.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 0
                                • Stevoundefined
                                  Stevo
                                  last edited by

                                  Afternoon everyone,
                                  I wonder if I could seek some clarification please Part cooling fan and hot end fan operate as they should during the print apart from the part cooling fan not turning off when the print has finished which I'm guessing I need to add a line to my S3D end code this is what I have in the config g file .

                                  ; Fans
                                  M106 P0 S0 I0 F500 H-1 ; Part cooling fan
                                  M106 P1 S1 I0 F500 H1 T35 ; Hot end fan set to come on and off at 35

                                  and S3D end code.

                                  G91 ; relative positioning
                                  M104 S0 ; extruder heater off
                                  G1 E-1 F300 ; retract the filament
                                  G1 Z15 F1000 S2 ; lift Z relative to current position
                                  G1 S1 Y-445 F1800 ; move quickly to Y axis endstop and stop there (first pass)
                                  G1 Y5 F1000 ; go back a few mm
                                  G1 S1 Y-445 F360 ; move slowly to Y axis endstop once more (second pass)
                                  G1 S1 X-445 F1800 ; move quickly to X axis endstop and stop there (first pass)
                                  G1 X5 F1000 ; go back a few mm
                                  G1 S1 X-445 F360 ; move slowly to X axis endstop once more (second pass)
                                  G90 ; absolute positioning
                                  M84 ;steppers off
                                  G90 ;absolute positioning

                                  deckingmanundefined 1 Reply Last reply Reply Quote 0
                                  • deckingmanundefined
                                    deckingman @Stevo
                                    last edited by

                                    @stevo Add "M106 S0" to your end gcode.

                                    Ian
                                    https://somei3deas.wordpress.com/
                                    https://www.youtube.com/@deckingman

                                    1 Reply Last reply Reply Quote 0
                                    • Stevoundefined
                                      Stevo
                                      last edited by

                                      Thank you

                                      1 Reply Last reply Reply Quote 0
                                      • Stevoundefined
                                        Stevo
                                        last edited by

                                        Just wanted to thank all those that have and continue to help me on my build thought I would share a pic of last nights print.
                                        Still trying to get my head around the intricacies of S3D some good and some bad lol

                                        0_1566853627643_11039EFC-0459-4D7D-A7D6-B7B59173115B.jpeg

                                        zaptaundefined deckingmanundefined 2 Replies Last reply Reply Quote 2
                                        • Phaedruxundefined
                                          Phaedrux Moderator
                                          last edited by

                                          Looking good.

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          1 Reply Last reply Reply Quote 0
                                          • zaptaundefined
                                            zapta @Stevo
                                            last edited by

                                            @stevo, looks very good. Maybe now you can help me achieving similar print quality 😉

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