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

    I could use some help

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    11
    682
    63.5k
    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.
    • A Former User?
      A Former User @droftarts
      last edited by droftarts

      @droftarts

      ; Configuration file for Duet 3 Mini 5+ (firmware version 3.3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.10 on Fri Jun 24 2022 09:54:50 GMT-0700 (Pacific Daylight Time)
      
      ; General preferences
      M575 P1 S1 B57600                                  ; enable support for PanelDue
      G90                                                ; send absolute coordinates...
      M83                                                ; ...but relative extruder moves
      M550 P"Frankenstein's Cinderella"                  ; set printer name
      
      ; Network
      M552 S1                                            ; enable network
      M586 P0 S1                                         ; enable HTTP
      M586 P1 S0                                         ; disable FTP
      M586 P2 S0                                         ; disable Telnet
      
      ; Drives
      M569 P0.0 S1                                       ; physical drive 0.0 goes forwards
      M569 P0.1 S0                                       ; physical drive 0.1 goes backwards
      M569 P0.2 S0                                       ; physical drive 0.2 goes backwards
      M569 P0.3 S1                                       ; physical drive 0.3 goes forwards
      M584 X0.0 Y0.1 Z0.2 E0.3                           ; set drive mapping
      M350 X32 Y32 Z32 E32 I1                            ; configure microstepping with interpolation
      M92 X80.00 Y80.00 Z4000.00 E420.00                 ; set steps per mm
      M566 X900.00 Y900.00 Z60.00 E120.00                ; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00 Z600.00 E1200.00            ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z200.00 E250.00               ; set accelerations (mm/s^2)
      M906 X600 Y600 Z600 E600 I30                       ; set motor currents (mA) and motor idle factor in per cent
      M84 S30                                            ; Set idle timeout
      
      ; Axis Limits
      M208 X0 Y0 Z0 S1                                   ; set axis minima
      M208 X220 Y220 Z240 S0                             ; set axis maxima
      
      ; Endstops
      M574 X1 S1 P"io5.in"                               ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io5.in
      M574 Y1 S1 P"io6.in"                               ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io6.in
      M574 Z1 S2                                         ; configure Z-probe endstop for low end on Z
      
      ; Z-Probe
      M950 S0 C"io3.out"                                 ; create servo pin 0 for BLTouch
      M558 P9 C"io3.in" H5 F120 T3600                    ; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X-42 Y-16 Z2.5                            ; set Z probe trigger value, offset and trigger height
      M557 X5:190 Y5:215 S10                             ; define mesh grid
      
      ; Heaters
      M308 S0 P"temp0" Y"thermistor" T100000 B4092       ; 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 B0 S1.00                                   ; disable bang-bang mode for the bed heater and set PWM limit
      M140 H0                                            ; map heated bed to heater 0
      M143 H0 S33                                        ; set temperature limit for heater 0 to 33C
      M308 S1 P"temp1" Y"thermistor" T100000 B4092       ; 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 S1.00                                   ; disable bang-bang mode for heater  and set PWM limit
      M143 H1 S100                                       ; set temperature limit for heater 1 to 100C
      
      ; Fans
      M950 F0 C"out3" Q500                               ; create fan 0 on pin out3 and set its frequency
      M106 P0 S1 H-1                                     ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"out4" Q500                               ; create fan 1 on pin out4 and set its frequency
      M106 P1 S1 H1 T45                                  ; set fan 1 value. Thermostatic control is turned on
      
      ; 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
      M575 P1 S1 B57600
      
      ; Miscellaneous
      M501                                               ; load saved parameters from non-volatile memory
      M911 S21 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
      
      
      
      A Former User? droftartsundefined 2 Replies Last reply Reply Quote 0
      • A Former User?
        A Former User @A Former User
        last edited by droftarts

        @mac

        ; homex.g
        ; called to home the X axis
        ;
        ; generated by RepRapFirmware Configuration Tool v3.3.10 on Fri Jun 24 2022 09:54:50 GMT-0700 (Pacific Daylight Time)
        G91               ; relative positioning
        G1 H2 Z5 F3600    ; lift Z relative to current position
        G1 H1 X-225 F1800 ; move quickly to X axis endstop and stop there (first pass)
        G1 H2 X5 F3600    ; go back a few mm
        G1 H1 X-225 F360  ; move slowly to X axis endstop once more (second pass)
        G1 H2 Z-5 F3600   ; lower Z again
        G90               ; absolute positioning
        
        
        
        A Former User? 1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @A Former User
          last edited by droftarts

          @mac

          ; homey.g
          ; called to home the Y axis
          ;
          ; generated by RepRapFirmware Configuration Tool v3.3.10 on Fri Jun 24 2022 09:54:50 GMT-0700 (Pacific Daylight Time)
          G91               ; relative positioning
          G1 H2 Z5 F3600    ; lift Z relative to current position
          G1 H1 Y-225 F1800 ; move quickly to Y axis endstop and stop there (first pass)
          G1 H2 Y5 F3600    ; go back a few mm
          G1 H1 Y-225 F360  ; move slowly to Y axis endstop once more (second pass)
          G1 H2 Z-5 F3600   ; lower Z again
          G90               ; absolute positioning
          
          
          
          A Former User? 1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User @A Former User
            last edited by droftarts

            @mac

            ; homeall.g
            ; called to home all axes
            ;
            ; generated by RepRapFirmware Configuration Tool v3.3.10 on Fri Jun 24 2022 09:54:50 GMT-0700 (Pacific Daylight Time)
            G91                     ; relative positioning
            G1 H2 Z5 F3600          ; lift Z relative to current position
            G1 H1 X-225 Y-225 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
            G1 H2 X5 Y5 F3600       ; go back a few mm
            G1 H1 X-225 Y-225 F360  ; move slowly to X and Y axis endstops once more (second pass)
            G90                     ; absolute positioning
            G1 X47 Y21 F3600        ; 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 Z5 F60              ; lift Z relative to current position
            ;G90                    ; absolute positioning
            
            
            
            
            A Former User? droftartsundefined 3 Replies Last reply Reply Quote 0
            • A Former User?
              A Former User @A Former User
              last edited by

              @droftarts I wish I knew how you were doing that.

              1 Reply Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @A Former User
                last edited by droftarts

                @mac When you are posting text in code blocks, the three backticks that mark the beginning and end of the code need to go on a line on their own. I've edited your posts to fix this.

                eg

                a16f771d-c9c3-41a3-bc02-7953d6a82781-image.png

                I wish I knew how you were doing that.

                I'm an admin, I can do ANYTHING!

                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

                A Former User? 2 Replies Last reply Reply Quote 2
                • A Former User?
                  A Former User @droftarts
                  last edited by

                  @droftarts thank you so much, I'm going to try to learn how to do that.

                  1 Reply Last reply Reply Quote 0
                  • A Former User?
                    A Former User @A Former User
                    last edited by

                    @droftarts X-255? Y-255? my bed's 220 by 220! where is this coming from?

                    alankilianundefined 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @droftarts
                      last edited by

                      @droftarts not anything, my friend, but you can do amazing things, that's for sure.

                      I used to build houses. that was amazing until I had my accident.

                      1 Reply Last reply Reply Quote 0
                      • alankilianundefined
                        alankilian @A Former User
                        last edited by

                        @mac said in I could use some help:

                        X-255? Y-255? my bed's 220 by 220! where is this coming from?

                        It's -225 not -255

                        Your bed is 220, so you need to move slightly MORE then 220 to make sure you've hit the endstop in case it's way at the other end of the travel.

                        So your bed is 220, move -225 and you will always hit the home switch.

                        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                        A Former User? 2 Replies Last reply Reply Quote 0
                        • droftartsundefined
                          droftarts administrators @A Former User
                          last edited by droftarts

                          @mac Assuming you don't want to rewire the machine, or turn it around, the first thing you need to do is define the endstops as 'high end' or 'maximum' endstops. Change the following two M574 lines from X1 to X2 and Y1 to Y2:

                          ; Endstops
                          M574 X1 S1 P"io5.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io5.in
                          M574 Y1 S1 P"io6.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io6.in

                          Now when the nozzle homes against the endstops, it will set X and Y to the maximum value set by M208, rather than the minimum:

                          ; Axis Limits
                          M208 X0 Y0 Z0 S1 ; set axis minima
                          M208 X220 Y220 Z240 S0 ; set axis maxima

                          But at the moment, your homing files will make the X and Y axis move towards the LOW end, rather than the HIGH end, so we need to flip these. In homex.g you currently have:

                          G1 H1 X-225 F1800 ; move quickly to X axis endstop and stop there (first pass)
                          G1 H2 X5 F3600 ; go back a few mm
                          G1 H1 X-225 F360 ; move slowly to X axis endstop once more (second pass)

                          These need to change to:

                          G1 H1 X225 F1800 ; move quickly to X axis endstop and stop there (first pass)
                          G1 H2 X-5 F3600    ; go back a few mm
                          G1 H1 X225 F360  ; move slowly to X axis endstop once more (second pass)
                          

                          So that the X carriage goes to the maximum end of the axis, hits the X homing switch, backs off 5mm, then moves to touch it again.

                          You need to make the same changes to homey.g and homeall.g.

                          If you need to adjust where X0 Y0 is, you change the bed area in the M208 commands. Do the above first, and if you need more help with this part, let me know.

                          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

                          A Former User? fcwiltundefined 5 Replies Last reply Reply Quote 0
                          • A Former User?
                            A Former User @droftarts
                            last edited by droftarts

                            @droftarts

                            6/24/2022, 2:08:29 PM	M208 X-8;200 Y0;202 ; set axis limits
                            Error: M208: X axis maximum must be greater than minimum
                            
                            droftartsundefined 1 Reply Last reply Reply Quote 0
                            • droftartsundefined
                              droftarts administrators @A Former User
                              last edited by

                              @mac it should be a colon : between values, not a semicolon ;

                              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
                              • A Former User?
                                A Former User @alankilian
                                last edited by

                                @alankilian thanks, man, childhood dyslexia strikes again

                                1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User @droftarts
                                  last edited by A Former User

                                  @droftarts okay, so, now we're talking hard-core editing of the actual config files, correct? Versus using RRF to "edit" them, correct?

                                  So I'm guessing I can just "look" at the files, and high light what I want to change, or delete, and hit ENTER, and that will make the change, then "SAVE" and that will save the whole file with the changes?

                                  And the changed file will become the instructions used? (There's no reloading that needs to happen?)

                                  A little confirmation (or correction), will go a long ways right about now.

                                  Mark

                                  droftartsundefined 1 Reply Last reply Reply Quote 0
                                  • droftartsundefined
                                    droftarts administrators @A Former User
                                    last edited by droftarts

                                    @mac Yes, you can edit the files in DWC. Sorry, I should have made that clear. Make sure you make a backup, as any changes will only exist on the SD card.

                                    Alternatively, now that you know you have maximum endstops on X and Y, you could go back to the Configuration tool and change it there.

                                    Did you know you can load the config.json file from a previously created configuration back into the Configuration Tool, and all the settings you made previously will be applied? That can help if you have a lot of changes to do.

                                    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

                                    A Former User? 2 Replies Last reply Reply Quote 0
                                    • A Former User?
                                      A Former User @alankilian
                                      last edited by

                                      @alankilian nice clarification, Alan Killian

                                      1 Reply Last reply Reply Quote 0
                                      • A Former User?
                                        A Former User @droftarts
                                        last edited by

                                        @droftarts I did not! but I think that's how i'll approach this humongous job-a-rooney.

                                        Mark

                                        A Former User? 1 Reply Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @A Former User
                                          last edited by

                                          @mac actually, that's what I've been doing all along (the line says / shows Square, config.json GRAPHIC with SQUARE with ARROW in it edit via config tool.

                                          That's what I'm assuming your referring to.

                                          Let's get started!

                                          Mark

                                          1 Reply Last reply Reply Quote 0
                                          • A Former User?
                                            A Former User @droftarts
                                            last edited by

                                            @droftarts so really, the only problem was the Endstop locations for x and y were low end when they should have been set to High end.

                                            Once again, getting high wins the day!

                                            Mark

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