Issues with probing RR3

Discussion in 'Getting Started' started by ryan mckenna, Apr 20, 2020.

  1. ryan mckenna

    ryan mckenna Member

    Joined:
    Mar 12, 2020
    Messages:
    19
    Likes Received:
    3
    [​IMG] I can home home all my axes but it wont go down when I try to do the hightmap probe, it goes threw the motions just doesn't go down in z. I haven't done the tool offsets yet. My config is a mess. I have dual independent z. I think the last time I messed with it it didn't even home z.


    Code:
    667 S1
    
    ; 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
    M569 P4 S1                                                           ; physical drive 4 goes forwards
    M569 P5 S0                                                           ; physical drive 5 goes backwards
    M569 P6 S0                                                           ; physical drive 6 goes backwards
    M569 P7 S0                                                           ; physical drive 7 goes backwards
    M584 X0 Y1 Z2:5 C7 E3:4:6                                             ; set drive mapping
    M350 X32 Y32 Z16:16 C8 E16:16:16:16:16 I0                                  ; configure microstepping without interpolation
    M92 X160.00 Y160.00 Z3200.00:3200.00 C100 E440.00:440.00:3200.00:3200.00:3200.00  ; set steps per mm
    M566 X3000.00 Y3000.00 Z12.00:12.00 C2 E120.00:120.00:12.00:12.00:12.00       ; set maximum instantaneous speed changes (mm/min)
    M203 X9000.00 Y9000.00 Z200.00:200.00 C5000 E1200.00:1200.00:900.00:900.00:900.00 ; set maximum speeds (mm/min)
    M201 X300.00 Y300.00 Z200.00:200.00 C400 E300.00:300.00:1500.00:1500.00:1500.00 ; set accelerations (mm/s^2)
    M906 X1200 Y1200 Z1200:1200.00 C400 E800:800:1200:800:800 I15                     ; set motor currents (mA) and motor idle factor in per cent
    M84 S30                                                              ; Set idle timeout
    ;Stall Detection
    M915 C S5 F0 H200 R4700                    ; Coupler
    ;Stall Detection
    M915 X Y S5 F0 H400 R4700                ; X / Y Axes
    ; Axis Limits
    M208 X-10 Y-10 Z-6.0 C0.0 S1                                                     ; set axis minima
    M208 X310 Y310 Z400 C500 S0                                               ; set axis maxima
    ; Endstops
    M574 X2 S3                                                           ; configure sensorless endstop for high end on X
    M574 Y2 S3                                                           ; configure sensorless endstop for high end on Y
    M574 Z0 S1                                     ; configure Z-probe endstop for low end on Z
    ; Z-Probe
    M558 P7 C"zprobe.in+zprobe.mod" H3 F360 T6000  ; set Z probe type to switch and the dive height + speeds
    G31 P500 X0 Y0 Z0                            ; set Z probe trigger value, offset and trigger height
    M557 X15:215 Y15:195 S20
    M671 X-98.00:415.00 Y150.0:150.0 S8
    ; Heaters
    M308 S0 P"bedtemp" Y"thermistor" T100000 B4138                       ; configure sensor 0 as thermistor on pin bedtemp
    M950 H0 C"bedheat" T0                                                ; create bed heater output on bedheat and map it to sensor 0
    M143 H0 S120                                                         ; set temperature limit for heater 0 to 120C
    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
    M308 S1 P"e0temp" Y"thermistor" T100000 B4138                        ; configure sensor 1 as thermistor on pin e0temp
    M950 H1 C"e0heat" T1                                                 ; create nozzle heater output on e0heat and map it to sensor 1
    M143 H1 S270                                                         ; set temperature limit for heater 1 to 270C
    M307 H1 B0 S1.00                                                     ; disable bang-bang mode for heater  and set PWM limit
    M308 S2 P"e1temp" Y"thermistor" T100000 B4138                        ; configure sensor 2 as thermistor on pin e1temp
    M950 H2 C"e1heat" T2                                                 ; create nozzle heater output on e1heat and map it to sensor 2
    M143 H2 S270                                                         ; set temperature limit for heater 2 to 270C
    M307 H2 B0 S1.00                                                     ; disable bang-bang mode for heater  and set PWM limit
    ; Fans
    M950 F0 C"fan0" Q500                                                 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 S0 H-1                                                       ; set fan 0 value. Thermostatic control is turned off
    M950 F1 C"fan1" Q500                                                 ; create fan 1 on pin fan1 and set its frequency
    M106 P1 S1 H1:2 T20                                                  ; set fan 1 value. Thermostatic control is turned on
    M950 F2 C"fan1" Q500                                                 ; create fan 2 on pin fan1 and set its frequency
    M106 P2 S1 H-1                                                       ; set fan 2 value. Thermostatic control is turned off
    ; Tools
    M563 P0 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
    M563 P1 D1 H2 F0                                                     ; define tool 1
    G10 P1 X0 Y0 Z0                                                      ; set tool 1 axis offsets
    G10 P1 R0 S0                                                         ; set initial tool 1 active and standby temperatures to 0C
    M563 P2 D3 F0                                                        ; define tool 2
    G10 P2 X0 Y0 Z0                                                      ; set tool 2 axis offsets
    G10 P2 R0 S0                                                         ; set initial tool 2 active and standby temperatures to 0C
    M563 P3 D4 F0                                                        ; define tool 3
    G10 P3 X0 Y0 Z0                                                      ; set tool 3 axis offsets
    G10 P3 R0 S0                                                         ; set initial tool 3 active and standby temperatures to 0C
    ; Custom settings are not defined
    ; Miscellaneous
    T0                                                                   ; select first tool
    
    
    
    
    bed.g
    
    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2.1.8 on Thu Mar 19 2020 04:55:42 GMT-0700 (Pacific Daylight Time)
    G91              ; relative positioning
    G1 H2 Z5 F6000   ; lift Z relative to current position
    G90              ; absolute positioning
    G1 X150 Y150 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 Z5 F100      ; lift Z relative to current position
    ;G90             ; absolute positioning
    
    homez
    
    ; called to home the Z axis
    M98 P/macros/Coupler - Unlock    ;Open Coupler
    G91                 ; Relative mode
    G1 S2 Z5 F100            ; Lower the bed
    G90                ; back to absolute positioning
    G1 X150 Y100 F1000        ; Position the endstop above the bed centre
    G91                 ; Relative mode
    G4 P500                ; wait 500msec
    G1 Z-300 S1 F100        ; Move Z down until the switch triggers (first pass)
    G4 P500                ; wait 500msec
    G1 Z5 F100            ; Lift Z
    G4 P500                ; wait 500msec
    G1 Z-300 S1 F100        ; Move Z down until the switch triggers (second pass)
    G4 P500                ; wait 500msec
    G1 Z5 F100            ; Drop the Bed
    G90                ; Back to absolute positioning
     
    #1 ryan mckenna, Apr 20, 2020
    Last edited: Apr 21, 2020
  2. Spoon Unit

    Spoon Unit Well-Known Member

    Joined:
    Sep 6, 2015
    Messages:
    1,546
    Likes Received:
    481
    This is my set up with respect to Z probing, in case it helps at all. Looking at the obvious differences, I don't think I've seen any other examples myself of the way you've define the pin for the Z probe. Mine probe is a simple microswitch.

    M558 P8 C"zstop" H3 F360 I0 T35000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
    G31 P200 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
    M557 X0:300 Y0:200 S33.3 ; Define mesh grid
     
    Michael Pearson, mhe and ryan mckenna like this.
  3. ryan mckenna

    ryan mckenna Member

    Joined:
    Mar 12, 2020
    Messages:
    19
    Likes Received:
    3

    Im all messed up. I was trying different things from different threads I was reading and got completely lost. I will try this, thank you.I have the switch that came with the tool head.
     
  4. dc42

    dc42 Well-Known Member

    Joined:
    Aug 16, 2016
    Messages:
    450
    Likes Received:
    204
    As @SpoonUnit says, the probe type should be P8 not P7.
     
    mhe and ryan mckenna like this.
  5. Spoon Unit

    Spoon Unit Well-Known Member

    Joined:
    Sep 6, 2015
    Messages:
    1,546
    Likes Received:
    481
    I recall I had to fiddle with this when I moved from RRF2 to RRF3, but I can't remember precisely what I had before. Ah - i did simply comment out the previous config line ... which was

    ;M558 P7 H2 F360 I0 T35000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
     
    ryan mckenna likes this.
  6. ryan mckenna

    ryan mckenna Member

    Joined:
    Mar 12, 2020
    Messages:
    19
    Likes Received:
    3
    Im getting failed to enable endstop.When I hit the endstop the red light on the board goes out. I currentley have it wired to the z endstop pins but had it connected to the probe pins first.--- M558 P8 C"zstop" H3 F360 I0 T35000 --- do i need to change the C to a Z for the axes?
     
  7. Spoon Unit

    Spoon Unit Well-Known Member

    Joined:
    Sep 6, 2015
    Messages:
    1,546
    Likes Received:
    481
    No. The C parameter is used to name the pin.

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M558_in_RepRapFirmware_Num_3

    You're going through the same problems I went through, I just had a look through my config.g again and noticed I have commented out the definition of Z as an endstop:

    ;M574 Z1 S1 P"zstop" ; Z min active high endstop switch

    This reminded me that @dc42 had helped me here. With RRF3 we're using the probe as an endstop, so we don't define it as both a probe and an endstop; we have to choose. In this case, we want to use the switch on the head as a probe to define mesh bed levelling, so we don't define it as an endstop, but we still plug it into a the ZSTOP switch, as you have it.
     
  8. ryan mckenna

    ryan mckenna Member

    Joined:
    Mar 12, 2020
    Messages:
    19
    Likes Received:
    3
    It is giving me this Error: Failed to enable end stops. But the same thing .The light is on and goes of when i hit the switch,just not registering.
    Does it matter if I am using a duet 2 wifi, is it the all the same?
    Do you use the same home z as me?
    Is it easy after this?I haven't even started with the heaters or the tools and fans.

    Code:
    ; 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
    M569 P4 S1                                                           ; physical drive 4 goes forwards
    M569 P5 S0                                                           ; physical drive 5 goes backwards
    M569 P6 S0                                                           ; physical drive 6 goes backwards
    M569 P7 S0                                                           ; physical drive 7 goes backwards
    M584 X0 Y1 Z2:5 C7 E3:4:6                                             ; set drive mapping
    M350 X32 Y32 Z16:16 C8 E16:16:16:16:16 I0                                  ; configure microstepping without interpolation
    M92 X160.00 Y160.00 Z3200.00:3200.00 C100 E440.00:440.00:3200.00:3200.00:3200.00  ; set steps per mm
    M566 X3000.00 Y3000.00 Z12.00:12.00 C2 E120.00:120.00:12.00:12.00:12.00       ; set maximum instantaneous speed changes (mm/min)
    M203 X9000.00 Y9000.00 Z200.00:200.00 C5000 E1200.00:1200.00:900.00:900.00:900.00 ; set maximum speeds (mm/min)
    M201 X300.00 Y300.00 Z200.00:200.00 C400 E300.00:300.00:1500.00:1500.00:1500.00 ; set accelerations (mm/s^2)
    M906 X1200 Y1200 Z1200:1200.00 C400 E800:800:1200:800:800 I15                     ; set motor currents (mA) and motor idle factor in per cent
    M84 S30                                                              ; Set idle timeout
    
    ;Stall Detection
    M915 C S5 F0 H200 R4700                    ; Coupler
    
    ;Stall Detection
    M915 X Y S5 F0 H400 R4700                ; X / Y Axes
    
    ; Axis Limits
    M208 X-10 Y-10 Z-6.0 C0.0 S1                                                     ; set axis minima
    M208 X310 Y310 Z400 C500 S0                                               ; set axis maxima
    
    ; Endstops
    M574 X2 S3                                                           ; configure sensorless endstop for high end on X
    M574 Y2 S3                                                           ; configure sensorless endstop for high end on Y
    ;M574 Z1                                      ; configure Z-probe endstop for low end on Z
    M574 C1 S3
    
    ; Z-Probe
    MM558 P8 C"zstop" H3 F360 I0 T35000  ; set Z probe type to switch and the dive height + speeds
    G31 P200 X0 Y0 Z0                            ; set Z probe trigger value, offset and trigger height
    M557 X15:215 Y15:195 S20
    
    M671 X-98.00:415.00 Y150.0:150.0 S8
    
    home.z
    Code:
    ; called to home the Z axis
    
    M98 P/macros/Coupler - Unlock    ;Open Coupler
    
    G91                 ; Relative mode
    G1 H2 Z5 F100            ; Lower the bed
    G90                ; back to absolute positioning
    
    G1 X150 Y150 F5000        ; Position the endstop above the bed centre
    
    G91                 ; Relative mode
    
    G4 P500                ; wait 500msec
    G1 Z-300 H1 F100        ; Move Z down until the switch triggers (first pass)
    
    G4 P500                ; wait 500msec
    G1 Z5 F100            ; Lift Z
    
    G4 P500                ; wait 500msec
    G1 Z-300 H1 F100        ; Move Z down until the switch triggers (second pass)
    
    G4 P500                ; wait 500msec
    G1 Z5 F100            ; Drop the Bed
    
    G90                ; Back to absolute positioning
    
     
    #8 ryan mckenna, Apr 22, 2020
    Last edited: Apr 22, 2020
  9. Spoon Unit

    Spoon Unit Well-Known Member

    Joined:
    Sep 6, 2015
    Messages:
    1,546
    Likes Received:
    481
    I'll upload my config.g and home.z so you can peruse them, but I recommend you DO NOT just load it up on your machine. Compare it side by side to spot differences and slowly test things on your system. By all means ask questions.

    config.g

    Code:
    ; Configuration file for Duet WiFi / Ethernet
    ; executed by the firmware on start-up
    
    ; General preferences
    M111 S0                         ; Debugging off
    G21                             ; Work in millimetres
    G90                             ; Send absolute coordinates...
    M83                             ; ...but relative extruder moves
    M555 P2                         ; Set firmware compatibility to look like Marlin
    
    ; Network
    M550 P"ToolChanger"             ; Set machine name
    ;M587 S"SSID" P"password"        ; WiFi Settings - Do not leave active permanently
    M552 S1                            ; Enable Networking
    M586 P0 S1                         ; Enable HTTP
    M586 P1 S0                         ; Disable FTP
    M586 P2 S0                         ; Disable Telnet
    
    M667 S1                         ; Select CoreXY mode   
    
    ; Drive direction
    M569 P0 S0                         ; Drive 0 X  - Moon MS17HD2P4200
    M569 P1 S0                         ; Drive 1 Y  - Moon MS17HD2P4200
    M569 P2 S1                         ; Drive 2 Z  - MT-1702E133G6-365T - https://wiki.e3d-online.com/images/b/bd/Leadscrew_Datasheet.pdf
    M569 P3 S0                         ; Drive 3 E0 -
    M569 P4 S0                         ; Drive 4 E1 -
    M569 P5 S1                         ; Drive 5 E2 -
    ;M569 P6 S1                         ; Drive 6 E3 - Use default of stealthChop
    M569 P6 S1 D2                        ; Drive 6 E3 - Use spreadCycle
    M569 P7 S0                         ; Drive 7 COUPLER - Customised 28BYJ
    M569 P8 S0                         ; Drive 8 UNUSED
    M569 P9 S0                         ; Drive 9 UNUSED
    
    M584 X0 Y1 Z2 C7 E3:4:5:6                     ; Apply custom drive mapping
    M208 X-29:332 Y-48:244 Z0:283 C0:500        ; Set axis maxima & minima
    M92 X100 Y100 Z1600 C100 E840:840:840:385    ; Set steps per mm **
    M350 E16:16:16:32 I1                         ; Configure microstepping with interpolation for extruders
    M350 C16 I1                                    ; Configure microstepping with interpolation for coupler
    M350 X16 Y16 Z16 I1                            ; Configure microstepping with interpolation for primary axes
    M566 X400 Y400 Z32 C2 E450:450:450:450                ; Set maximum instantaneous speed changes (mm/min)
    
    M203 X35000 Y35000 Z1200 C10000 E6500:6500:6500:6500    ; Set maximum speeds (mm/min)
    ;M201 X2000 Y2000 Z1330 C500 E1600:1600:1600:1600 I30    ; Set accelerations (mm/s^2)
    M201 X6000 Y6000 Z400 C500 E3500:3500:3500:3500         ; Set accelerations (mm/s^2)
    M906 X1200 Y1200 Z1330 C500 E1200:1200:1200:800 I30    ; Set moto currents (mA) and motor idle factor in percent
    M84 S120                                                 ; Set idle timeout
    
    ; Endstops
    M574 X1 S1 P"xstop"   ; X min active high endstop switch
    M574 Y1 S1 P"ystop"   ; Y min active high endstop switch
    ;M574 Z1 S1 P"zstop"   ; Z min active high endstop switch
    M574 C1 S3                            ; Stall detection for the coupler
    
    ; Z probe
    ;M558 P7 H2 F360 I0 T35000             ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
    M558 P8 C"zstop" H3 F360 I0 T35000     ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
    G31 P200 X0 Y0 Z0                     ; Set Z probe trigger value, offset and trigger height
    M557 X0:300 Y0:200 S33.3             ; Define mesh grid
    
    ;Stall Detection
    ;M915 C S6 F0 H200 R4700                ; Coupler
    
    ;Stall Detection (not used as switches are installed)
    M915 X S5 F0 H400 R4700                ; X / Y Axes
    
    ; Heaters
                            ; BED
    M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 C0     ; Set thermistor
    M950 H0 C"bedheat" T0                    ; Bed heater
    M143 H0 S225                             ; Set temperature limit for heater 0 to 225C
    
                            ; Tool 0
    
    ;M305 S"T0" P1 R4700 T100000 B4388         ; Set thermistor
    ;M305 S"T0" P1 X200                      ; PT100 Tool 0 (right - mainboard) , RTD1, channel 200
    M308 S1 P"spi.cs1" Y"rtd-max31865"        ; create sensor number 1 as a PT100 sensor in the first position on the Duet 2 daughter board connector
    ;M308 S1 P"e0temp" X200                  ; PT100 Tool 0 (right - mainboard) , RTD1, channel 200
    M950 H1 C"e0heat" T1                    ; Extruder 0 heater
    M143 H1 S300                             ; Set temperature limit for heater 1 to 300C
    
                            ; Tool 1
    
    ;M305 S"T0" P1 R4700 T100000 B4388         ; Set thermistor
    ;M305 S"T1" P2 X201                      ; PT100 Tool 0 (right - mainboard) , RTD1, channel 200
    M308 S2 P"spi.cs2" Y"rtd-max31865"        ; create sensor number 2 as a PT100 sensor in the second position on the Duet 2 daughter board connector
    ;M308 S2 P"e1temp" X201                  ; PT100 Tool 0 (right - mainboard) , RTD1, channel 200
    M950 H2 C"e1heat" T2                    ; Extruder 0 heater
    M143 H2 S300                             ; Set temperature limit for heater 1 to 300C
    
                            ; Tool 2
    
    ;M305 S"T0" P1 R4700 T100000 B4388         ; Set thermistor
    ;M305 S"T2" P3 X204                      ; PT100 Tool 0 (right - mainboard) , RTD1, channel 200
    M308 S3 P"spi.cs5" Y"rtd-max31865"        ; create sensor number 2 as a PT100 sensor in the second position on the Duet 2 daughter board connector
    M950 H3 C"duex.e2heat" T3                    ; Extruder 0 heater
    M143 H3 S300                             ; Set temperature limit for heater 1 to 300C
    
                            ; Tool 3
    
    ;M305 S"T0" P1 R4700 T100000 B4388         ; Set thermistor
    ;M305 S"T3" P4 X205                      ; PT100 Tool 0 (right - mainboard) , RTD1, channel 200
    M308 S4 P"spi.cs6" Y"rtd-max31865"        ; create sensor number 2 as a PT100 sensor in the second position on the Duet 2 daughter board connector
    M950 H4 C"duex.e3heat" T4                    ; Extruder 0 heater
    M143 H4 S300                             ; Set temperature limit for heater 1 to 300C
    
                            ; Actual bed temp thermistor
    M308 S6 P"duex.e2temp" Y"thermistor" A"BedT" T100000 B4725 C7.06e-8     ; Set thermistor
    M950 H6 C"duex.e4temp" T6                    ; Bed heater
    M141 P0 H6
    
    ; Tools
    M563 P0 S"T0" D0 H1 F2                    ; Define tool 0
    G10 P0 X0 Y0 Z0                         ; Reset tool 0 axis offsets
    G10 P0 R0 S0                             ; Reset initial tool 0 active and standby temperatures to 0C
    
    M563 P1 S"T1" D1 H2 F4                    ; Define tool 1
    G10 P1 X0 Y0 Z0                         ; Reset tool 1 axis offsets
    G10 P1 R0 S0                             ; Reset initial tool 1 active and standby temperatures to 0C
    
    M563 P2 S"T2" D2 H3 F6                    ; Define tool 2
    G10 P2 X0 Y0 Z0                         ; Reset tool 2 axis offsets
    G10 P2 R0 S0                             ; Reset initial tool 2 active and standby temperatures to 0C
    
    M563 P3 S"T3" D3 H4 F8                    ; Define tool 3
    G10 P3 X0 Y0 Z0                         ; Reset tool 3 axis offsets
    G10 P3 R0 S0                             ; Reset initial tool 3 active and standby temperatures to 0C
    
    ; Fans
    M950 F1 C"fan1"
    M950 F2 C"fan2"
    M950 F3 C"duex.fan3"
    M950 F4 C"duex.fan4"
    M950 F5 C"duex.fan5"
    M950 F6 C"duex.fan6"
    M950 F7 C"duex.fan7"
    M950 F8 C"duex.fan8"
    
    M106 P1 T40 H1 S255                     ; T0 HE
    M106 P2 S0                                ; T0 PCF
    M106 P3 S255 H2 T40                     ; T1 HE
    M106 P4 S0                                ; T1 PCF
    M106 P5 S255 H3 T40                     ; T2 HE
    M106 P6 S0                                 ; T2 PCF
    M106 P7 S255 H4 T40                        ; T3 HE
    M106 P8 S0                                ; T3 PCF
    
    M593 F50                                ; cancel ringing at 50Hz
    M376 H15                                ; bed compensation taper
    
    ;tool offsets
    ;
    ; to nudge the nozzle closer to the bed, add a small amount to Z
    ; to nudge the nozzle to the right, subtract little from X
    ; to nudge the nozzle to the back, subtract a little from Y
    
    G10 P0 X-9 Y40 Z-4.9575                        ; T0 - V6
    G10 P1 X-8.55 Y39.7 Z-5.0125                ; T1 - V6
    G10 P2 X-8.85 Y39.625 Z-5.0125                ; T2 - V6
    G10 P3 X20.05 Y45.19 Z-5.7                ; T3 - Hemera
    
    ;deselect tools
    T-1
    
    ; *** Pressure Advance                   ; Compensates for elasticity of extrusion system
                                             ; extrusion_speed = requested_extrusion_speed + (S * current_extruder_acceleration)
                                             ; The more the system can lag, the greater the compensation required
                                             ; Typically S = 0.05 for a direct extruder
                                             ;           S = 0.10 for a Bowden with a 400 mm tube
    
    M572 D0 S0.2                            ; pressure advance T0 - 790mm
    M572 D1 S0.2                            ; pressure advance T1 - 750mm
    M572 D2 S0.2                            ; pressure advance T2 - 750mm
    M572 D3 S0.05                            ; pressure advance T3 - Hemera
    
    ; buttons
    ;RRF 3.01 RC1
    ;M581 P"duex.e2stop" S1 T2 C0
    
    ;RRF 3.01 RC6
    M950 J1 C"duex.e2stop"    ; Define Input J1 for pin duex.e2stop
    M581 P1 S1 T2 C0        ; Connect Input J1 (P1) to trigger 2 (T2) always (C0) for inactive to active (S1 - also default)
    
    
    ; Load any PID override config
    M501
    homez.g

    Code:
    ; homez.g
    ; called to home the Z axis
    
    M400                    ; finish processing
    G91                        ; relative positioning
    G0 H2 Z2 F1200            ; drop bed a spot just in case
    G90                        ; absolute positioning
    G0 X0 Y0 F50000            ; Position the endstop above the bed
    G30                        ; PROBE
     
    ryan mckenna and Chris Stokes like this.
  10. Chris Stokes

    Chris Stokes Member

    Joined:
    Jan 13, 2020
    Messages:
    5
    Likes Received:
    0
    Thank you, spoon unit. I feel I owe you 23 beers!
    The code:
    M308 S1 P"spi.cs1" Y"rtd-max31865" ;snsr# 1 as a thermocouple,type K,1spotDuet2dtr board conn
    M950 H1 C"e0heat" T1
    M143 H1 S300
    --
    got me back the first 2 tools from the abyss of RRF3. I have stacked the pt100 daughter boards per the default build, so your last two commands didn't work for me. I'm still casting about for what the pins must get named when the daughterboards are stacked. Your config has given me direction and hope!
     
  11. Spoon Unit

    Spoon Unit Well-Known Member

    Joined:
    Sep 6, 2015
    Messages:
    1,546
    Likes Received:
    481
    You don't need to stack the daughterboards. You can have one on the Duet and one on the Duex. If you want to continue with stacked daughterboards, I think you'll just need to reference spi.cs3 and spi.cs4. I just wasn't fond of the aesthetics of stacking. It did take a while to get through this, so I'm glad you saved some of that time.
     
  12. Chris Stokes

    Chris Stokes Member

    Joined:
    Jan 13, 2020
    Messages:
    5
    Likes Received:
    0
    Yes, that was my thought as well, for the stacked version, I can confirm it doesn't seem to work, although I'd run fine in RR2.
    I also tried cs3 and cs4 as pin numbers, as the Duet board has pins labeled as such. No go there.
    ; Heaters
    M308 S0 A"Bed" P"bedtemp" Y"thermistor" T100000 B4725 C7.06e-8 ;Run PID tune?
    M950 H0 C"bedheat" T0
    M143 H0 S225 ; Set temperature limit to 225C
    M308 S1 P"spi.cs1" Y"rtd-max31865" ;snsr# 1 ,1spotDuet2dtr board conn
    M950 H1 C"e0heat" T1
    M143 H1 S300 ; Set temperature limit to 300C
    M308 S2 P"spi.cs2" Y"rtd-max31865" ;snsr# 2 second spot Duet 2 dtr board conn
    M950 H2 C"e1heat" T2
    M143 H2 S300 ; Set temperature limit to 300C
    M308 S3 P"spi.cs3" Y"rtd-max31865" ;snsr# 3
    M950 H3 C"e2heat" T3
    M143 H3 S300 ; Set temperature limit to 300C
    M308 S4 P"spi.cs4" Y"rtd-max31865" ;snsr# 4
    M950 H4 C"e3heat" T4
    M143 H4 S300 ; Set temperature limit to 300C
    -----
    Next thiing I'll try is moving to duex board, and trying spi.cs5, spi.cs6.
     
  13. Chris Stokes

    Chris Stokes Member

    Joined:
    Jan 13, 2020
    Messages:
    5
    Likes Received:
    0
    Sad. Exactly the same -273, -273, when PT100 board is moved to the Duex board, and spi.cs5, spi.cs6 used to reference the RTD's.
    Electrically, I see the same resistance for the last two toolheads, same voltage on the RTD leads, .6V, .3V. Makes me think I'm still not getting the Gcode right.
     
  14. Spoon Unit

    Spoon Unit Well-Known Member

    Joined:
    Sep 6, 2015
    Messages:
    1,546
    Likes Received:
    481
    These are only the definitions of the heaters and sensors. Have a look at the tool definitions that tie them together too, just in case.
     
  15. ryan mckenna

    ryan mckenna Member

    Joined:
    Mar 12, 2020
    Messages:
    19
    Likes Received:
    3


    I just homed Z thank you. At first glance it looked like I just needed to do a g30 to home but it still didn't work so i rebuilt the whole config like you said and it homed Z.
     
    Spoon Unit likes this.
  16. dc42

    dc42 Well-Known Member

    Joined:
    Aug 16, 2016
    Messages:
    450
    Likes Received:
    204
    That should have worked, because the CS pins fed to the upper daughter board are indeed spi.cs3 and spi.cs4. Which firmware version are you using? The latest RRF3 is version 3.01-RC9.
     
  17. Chris Stokes

    Chris Stokes Member

    Joined:
    Jan 13, 2020
    Messages:
    5
    Likes Received:
    0
    You move so fast. I was on RC8. I'm attaching config. I have swapped to duex board, so it's on cs5 and cs6. PT100 board and tools test ok when I put it in the main board. (ie, the correct temperature is read from tool3 and tool4.)
    I'll pull down rc9 if you don't notice something silly in the config.g
     

    Attached Files:

  18. Chris Stokes

    Chris Stokes Member

    Joined:
    Jan 13, 2020
    Messages:
    5
    Likes Received:
    0
    Same issue with RC9. No temperature data on web, -273 on panel due.
     
  19. ryan mckenna

    ryan mckenna Member

    Joined:
    Mar 12, 2020
    Messages:
    19
    Likes Received:
    3
    I am having a hard time getting the c axes to home the right direction. can you post you're homec and lock and unlock if they are different. It seems to be homing the wrong way.
     
  20. Spoon Unit

    Spoon Unit Well-Known Member

    Joined:
    Sep 6, 2015
    Messages:
    1,546
    Likes Received:
    481
    Ultimately, it really doesn't matter which way it homes. All that matters is that once it reaches it's maximum rotation point, that it then rotates back to the correct place. Ultimately I gave up on sensorless homing and just favored an approach where I could be sure it had enough juice to make it all the way to the maximum point, and from there rotate back. I also halved the total amount of motion because it really only ever moves between lock and unlock.

    c-related setup in config.g

    Code:
    M569 P7 S0    ; this is the one controlling direction
    M584 C7
    M208 C0:500
    M92 C100
    M350 C16 I1
    M203 C10000
    M201 C500
    M906 C500
    homec

    Code:
    ; homec.g
    ; called to home the C axis (coupler)
    
    G91
    G1 H2 C0.1 F1000;
    G4 S1;
    M400
    M915 C S30 F0 H200 R0 ; Effectively disable stall detection with low sensitivity
    M913 C80        ; Coupler motor to 60% current
    G1 H1 C-500 F10000
    M913 C100        ; Restore Coupler motor to 100% current
    G92 C-125
    G90
    ;G1 C0 F10000
    
    ;Open Coupler
    M98 P"/macros/Coupler - Unlock"
    lock

    Code:
    G1 C90 F50000
    M400
    unlock

    Code:
    G1 C250 F50000
    M400
    
     

Share This Page