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

    Weird Behavior Duet 3 / RRF 3.2

    Scheduled Pinned Locked Moved
    General Discussion
    6
    21
    1.0k
    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.
    • beachtecundefined
      beachtec @fcwilt
      last edited by beachtec

      @fcwilt

      I put the other things back in... hopefully I did not create an new error! 🙂

      
      ; Jubilee CoreXY ToolChanging Printer - Config File
      ; Duet 3 hardware, 6HC Main board plus 2 tool boards 
      ; 
      
      ; Name and Identification
      ; Printer name is now set on the R Pi. 
      
      ; Networking
      ;;;M552 P192.168.1.2 S1               	; Use Ethernet with a static IP
      ;;;M553 P255.255.255.0                	; Netmask
      ;;;M554 192.168.1.3                  	; Gateway
      M586 P1 S0                              ; Disable FTP
      M586 P2 S0                              ; Disable Telnet
      
      ; Debugging
      M111 S0                                 ; Debug off
      M929 P"eventlog.txt" S1                 ; Start logging to file eventlog.txt
      
      ; General Preferences
      M555 P2                           		; Set Marlin-style output
      G21                                		; Set dimensions to millimetres
      G90                            	    	; Send absolute coordinates...
      M83                              		; ...but relative extruder moves
      
      ; Kinematics
      M669 K1                     			; CoreXY mode
      
      ; Leadscrew locations (really, kinematic coupling locations) extracted from CAD model assuming back right build plate corner is (0, 0)
      M671 X300:5:152.5 Y316:316:-14 S10 	; Front Left: (300, 316) | Front Right: (5, 316) | Back: (-14, 152.5)
      
      
      ; Axis to driver mapping
      M569 P0 S0 D2                  			; Drive 0 direction | X stepper
      M569 P1 S0 D2                 	 		; Drive 1 direction | Y Stepper
      M569 P2 S0                  			; Drive 2 direction | U Tool Changer Lock
      M569 P3 S0 D2                 			; Drive 3 direction | Front Left Z
      M569 P4 S0 D2                 			; Drive 4 direction | Front Right Z
      M569 P5 S0 D2                 			; Drive 5 direction | Back Z
      M569 P20.0 S0 D2						; set tool 0 extruder direction on Hermera Toolboards
      M569 P21.0 S0 D2						; set tool 1 extruder direction on Hermera Toolboards
      
      M584 X0 Y1 U2 Z3:4:5        			; X and Y for CoreXY.  U for toolchanger lock. Z has three drivers for kinematic bed suspension. 
      M584 E0:1:20.0:21.0 					; Set Hermera extruder drives up on Hermera Tool boards 
      
      ; Axis and motor configuration
      M350 X16 Y16 I1                   		; Set 16x microstepping for axes. Use interpolation.
      M350 U4 I1                        		; Set 4x for toolchanger lock. Use interpolation.
      M350 Z16 I1                     		; Set 16x microstepping for axes. Use interpolation.
      M350 E16:16 I1
      
      ; Motor Configurations
      M906 X2500 Y2500 Z1000 E1250 I30        ; Motor currents (mA) and Idle percentage
      M906 U900 I60                           ; Motor currents (mA) and Idle percentage
      M201 X600 Y600 Z10 E1000 U1000          ; Accelerations (mm/s^2)
      M203 X25000 Y25000 Z400 E4000 U10000   	; Maximum speeds (mm/min)
      M566 X700 Y700 Z2 E3000 U200          	; Maximum jerk speeds mm/minute
      
      ;M92 X200 Y200                          ; Steps/mm for X,Y with 16 tooth pulleys (preferred). 
      M92 X160 Y160                           ; Steps/mm for X,Y with 20 tooth pulleys. 
      M92 Z3200				                ; Steps/mm for Z - TR8*4 / 0.9 deg stepper
      M92 U11.429                             ; Steps/mm for tool lock geared motor. 
      M92 E837				               	; Extruder - 0.9 deg/step
      
      ; Endstops and probes
      
      M574 X1 S1 P"io1.in"                    ; Set homing switch configuration X1 = low-end, S1 = active-high (NC)
      M574 Y1 S1 P"io2.in"                    ; Set homing switch configuration Y1 = low-end, S1 = active-high (NC)
      M574 U1 S1 P"io3.in"                    ; Set homing switch configuration U1 = low-end, S1 = active-high (NC)
      ;M574 Z1 S1 P"!io4.in"                  ; Set homing switch configuration Z1 = low-end,  S1 = active-high (NC).  This is used for tool probing, not actual Z height.
      
      M558 K0 P5 C"io4.in" H8 A5 T6000 S0.02  ; Z probe - Set the height of the bed when homing G28.  Combined with content of bed.g as invoked by G32, levels bed. Also used for Mesh. 
                                            	; P5 = Switch, NC
                                           	; C  = Input Connector
      					; Hn = dive height
      					; A bigger dive height prevents a situation where the bed is out of alignment by more than the dive height
      					; on any corner, which can crash the hot-end into the bed while moving the head in XY.
      					; Probing speed and travel speed are similarly reduced in case the Z probe isn't connected properly (or
      					; disconnects later after moving to a point) giving the user more time to stop.
                                             	; An = Number of times to probe each point. 
                                            	; Tnnn = Travel speed between probe points. 
                                            	; Snnn = Tolerance when probing multiple times. Two readings inside this window and we move on. 
      ;M558 K1 P5 C"!io4.in"              	; create probe #1 for use with M585, active low
      
      
      ; Set axis software limits and min/max switch-triggering positions. Adjust such that (0,0) lies at the lower left corner of the build plate.
      M208 X-5:305 Y-10:365 Z-0.5:220
      M208 U0:180
      
      ; Temperature sensors
      M308 S0 P"0.temp0" Y"thermistor" T10000 B3984 A"Bed" 		; Bed sensor
      M308 S1 P"20.temp0" Y"thermistor" T100000 B4725 C7.06e-8	; Hemera sensors and heaters
      M308 S2 P"21.temp0" Y"thermistor" T100000 B4725 C7.06e-8	; Hemera sensors and heaters
      
      ; Heaters
      M950 H0 C"0.out0" T0           							; Bed.  H = Heater 0, C is output for heater itself, T = Temperature sensor (defined above)
      M950 H1 C"20.out0" T1									; Hemera sensors and heaters
      M950 H2 C"21.out0" T2									; Hemera sensors and heaters
      
      ; Further setup for bed
      M143 H0 S130                                           	; set temperature limit for heater 0 to 130C
      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
      
      ; Default heater model
      ;;;;M307 H0 A270.7 C90.4 D6.7 B0 S1.0          			; Default Bed Heater Parameters, before tuning / if config-override.g is missing
      ; Calibration 28 Oct 2019
      ;Heater 0 model: gain 139.6, time constant 252.2, dead time 0.7, max PWM 1.00, calibration voltage 24.5, mode PID
      ;Computed PID parameters for setpoint change: P468.8, I35.594,  D225.7
      ;Computed PID parameters for     load change: P468.8, I136.631, D225.7
      M307 H0 A140 C252 D0.7 S1.0 V24.5 B0       				; Tuned Bed Heater Paramaters, same as report above, also B0 to turn off bang-bang
      
      
      ; Hemera fans
      M950 F5 C"20.out2+out2.tach" ; Tool 0 hot end fan with tacho
      M950 F6 C"20.out1" ; Tool 0 print cooling fan, no tacho
      M950 F7 C"21.out2+out2.tach" ; Tool 1 hot end fan with tacho
      M950 F8 C"21.out1" ; Tool 1 print cooling fan, no tacho
      M106 P5 S255 H1 T50 ; Tool 0 hot end
      M106 P6 S0 ; Tool 2 PCF
      M106 P7 S255 H2 T50 ; Tool 1 hot end
      M106 P8 S0 ; Tool 3 PCF
      
      ; Tool definitions
      M563 P0 S"Tool 0" D0 H1 F5      		; Px = Tool number, Dx = Drive Number (start at 0, after movement drives), H1 = Heater Number, Fx = Fan number print cooling fan
      G10  P0 S210 R160               		; Set tool 0 operating and standby temperatures(-273 = "off")
      M572 D0 S0.1  		            		; Set pressure advance on 
      
      M563 P1 S"Tool 1" D1 H2 F6      		; Px = Tool number, Dx = Drive Number (start at 0, after movement drives), H1 = Heater Number, Fx = Fan number print cooling fan
      G10  P1 S210 R160               		; Set tool 1 operating and standby temperatures(-273 = "off")
      M572 D1 S0.1		            		; Set pressure advance on 
      
      
      M98  P"/sys/Toffsets.g"                	; Set tool offsets from the bed. In separate file so test macro can invoke. 
      
      
      ; Set up the dock indicator switches on the Hemera tools. These are wired NO so invert the pin (commented out for now).
      ;M950 J2 C"20.^!io0.in"					; GpIn 2 = tool 0 dock switch
      ;M950 J3 C"21.^!io0.in"					; GpIn 1 = tool 1 dock switch
      
      
      
      
      
      
      
      ;M98 P"config-user.g"    ; Load custom user config if one exists.
      
      ;M501                    ; Load saved parameters from non-volatile memory
      
      ;G29 S1
      
      ; Note: you will need to tune the bed heater, and both extruder cartridges before printing.
      ; See the following link for more details. https://duet3d.dozuki.com/Wiki/Tuning_the_heater_temperature_control
      
      
      1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt
        last edited by fcwilt

        @beachtec said in Weird Behavior Duet 3 / RRF 3.2:

        Nothing in your config.g file jumps out at me as being wrong.

        I don't see that you ever posted the results of executing M119 from the console.

        Please do this after re-booting the printer and then jogging the axes so that no end stop switches are activated.

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

          @beachtec said in Weird Behavior Duet 3 / RRF 3.2:

          This system had been working very well up to that moment. Everything else worked perfectly. Today, I powered up the system to have another go and now the Y axis will not home. It moves very briefly (the wrong way) and stops.

          That indicates that either the Y endstop is not working, or it not configured correctly. If it's a normally-closed switch, then the most likely cause is a bad crimp on the connector. That will cause it to read permanently triggered.

          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

          beachtecundefined 1 Reply Last reply Reply Quote 2
          • beachtecundefined
            beachtec @dc42
            last edited by

            @dc42 Thank you, I did locate the intermittent switch. I should have looked at as a separate issue but I am rather frustrated at the core issue and foolishly assumed they were related.

            The core problem I am having is when I am using the Hemera's with the tool boards. If I select a tool, the Hemera heats up as expected. Using the web interface, I select "Extrude/Retract" and specify a set length and feedrate and select it, but instead of the extruder motor running as expected, Drive 1 on the 6HC board runs, causing the entire tool assembly to move diagonally. If I select the opposite, say retract instead of extrude, the same motor runs the opposite way.

            I tried to run Tool1 last night and the lock motor ran instead... rather unfortunately. Aside from being quite frustrating, I hate having to have to bother folks in the form with this stuff, but I am now short on ideas and fingernails 🙂

            Any thoughts?

            fcwiltundefined droftartsundefined 2 Replies Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @beachtec
              last edited by

              @beachtec said in Weird Behavior Duet 3 / RRF 3.2:
              interface, I select "Extrude/Retract" and specify a set length and feedrate and select it, but instead of the extruder motor running as expected, Drive 1 on the 6HC board runs, causing the entire tool assembly to move diagonally. If I select the opposite, say retract instead of extrude, the same motor runs the opposite way.

              This is your M584 E0:1:20.0:21.0 for your extruders.

              Now I have not used the 6HC with other boards connected but this looks to me like it specifies 4 extruders.

              Is that correct?

              Frederick

              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

              beachtecundefined 1 Reply Last reply Reply Quote 1
              • droftartsundefined
                droftarts administrators @beachtec
                last edited by

                @beachtec as @fcwilt says, you've mapped drives 0 and 1 to the extruder with the second M584 line:

                M584 X0 Y1 U2 Z3:4:5        			; X and Y for CoreXY.  U for toolchanger lock. Z has three drivers for kinematic bed suspension. 
                M584 E0:1:20.0:21.0 					; Set Hermera extruder drives up on Hermera Tool boards 
                

                Change it to:

                M584 E20.0:21.0
                

                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

                beachtecundefined 1 Reply Last reply Reply Quote 1
                • beachtecundefined
                  beachtec @fcwilt
                  last edited by

                  @fcwilt Only 2 extruders in use on this machine.

                  1 Reply Last reply Reply Quote 1
                  • beachtecundefined
                    beachtec @droftarts
                    last edited by

                    @droftarts

                    I copied this syntax from the article by @dc42 "Converting the E3D Tool Changer to Duet 3 with Hemera Tools (Part 2). In his piece, he was replacing 2 extruders with 2 Hemera's with Tool Boards.

                    Is this incorrect?

                    ; Hemera motors
                    M569 P22.0 S0                 ; set tool 2 extruder direction
                    M569 P23.0 S0                 ; set tool 3 extruder direction
                    M584 E3:4:22.0:23.0           ; set extruder drives
                    
                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      @beachtec said in Weird Behavior Duet 3 / RRF 3.2:

                      E3:4

                      It's only correct if you also have extruders connected to drivers on the mainboard as well.

                      Use the M584 command recommended above that uses only the drivers on the tool boards for extruders.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      beachtecundefined 1 Reply Last reply Reply Quote 0
                      • droftartsundefined
                        droftarts administrators @beachtec
                        last edited by droftarts

                        @beachtec It's correct for him, because he has four extruders - E0, E1 (connected to mainboard, drivers 3 and 4) E2 and E3 (toolboards 22.0 and 23.0). His full config is here: https://github.com/Duet3D/RRF-machine-config-files/blob/master/E3D_Tool_Changer/dc42-duet3-centreZero-2Titan-2Hemera/sys/config.g

                        Which includes:

                        ; Drive direction
                        M569 P0 S1 						; Drive 0 Z
                        M569 P1 S0 						; Drive 1 Y
                        M569 P2 S0 						; Drive 2 X
                        M569 P3 S0 						; Drive 3 E0
                        M569 P4 S0 						; Drive 4 E1
                        M569 P5 S0 						; Drive 5 COUPLER
                        M569 P22.0 S0 D2				; Drive 22.0 (E2) spreadCycle mode
                        M569 P23.0 S0 D2 				; Drive 23.0 (E3) spreadCycle mode
                        
                        M584 X2 Y1 Z0 C5				; Axis to driver mapping
                        M584 E3:4:22.0:23.0				; set extruder drivers
                        

                        Note how the drives in M584 are not repeated.

                        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 1
                        • beachtecundefined
                          beachtec @Phaedrux
                          last edited by beachtec

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