Updating RRF

Discussion in 'Getting Started' started by Andy Cohen, Feb 1, 2022.

  1. Andy Cohen

    Andy Cohen Well-Known Member

    Joined:
    Aug 23, 2019
    Messages:
    277
    Likes Received:
    63
    So I've put it off for a long time. Going from version2.x to 3.x means ALOT of changes in the config.g file. As prep for doing it on my TC I first did it to my CloneR1/Duet machine. It took a whole day of wack a mole bug fixes before I finally got to the point where I could start to do PID tuning. As I had feared the move to RRF v3.3 is a PITA!!! First it can easily put the files for running the wifi server into a location that may not exist yet(yes it can happen even though I went from 2.x to 3.0 first!), then there's the switch to the "PIN" settings (!), then the added lines for the PanelDue and the CoreXY kinematic, then the PanelDue FW has to be updated as does the DWC! AH!!! NOT FUN!

    So... anybody here have a sample config.g file for V3.3???

    and then there's my fears that all my subscripts for priming and wiping won't work!!!
    Anybody here been there and done that???
     
  2. Terry Robison

    Terry Robison Member

    Joined:
    Jul 1, 2021
    Messages:
    11
    Likes Received:
    3
    Hi Andy, This is my config.g. I am using Ver 3.3 on a TC with 4 hemeras / i7Duet Panel (newest FW).
    I used the Online Configuration Tool. I couldn't get the Z-Stop to work with the suggested code and used what I have below from V 2 and it worked.

    My coordinates are a little different than the stock config. X0 Y0 line up at X0 Y0 on the build plate with a hemera extruder. Check all XY locations against what works on yours and adjust.

    Regards

    Code:
    ; Configuration file for Duet WiFi (firmware version 3.3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.3.5 on Sat Nov 13 2021 18:20:50 GMT+1100 (Australian Eastern Daylight Time)
    
    ; General preferences
    M111 S0                                      ; Debugging off
    G21                                             ; Work in millimetres
    M575 P1 S1 B57600                   ; enable support for PanelDue
    G90                                             ; send absolute coordinates...
    M83                                             ; ...but relative extruder moves
    M550 P"ToolChanger"                 ; set printer name
    M669 K1                                      ; select CoreXY mode
    
    ; Network
    M552 S1 P192.168.1.60              ; enable network and set IP address
    M553 P255.255.255.0                  ; set netmask
    M554 P192.168.1.1                      ; set gateway
    M586 P0 S1                                  ; Enable HTTP
    M586 P1 S0                                  ; Disable FTP
    M586 P2 S1 T0                             ; Enable Telner
    
    ; Drives
    M569 P0 S0                                                                                     ; X physical drive 0 goes forwards
    M569 P1 S0                                                                                     ; Y physical drive 1 goes forwards
    M569 P2 S1                                                                                     ; Z physical drive 2 goes backwards
    M569 P3 S1                                                                                     ; E0 physical drive 3 goes backwards
    M569 P4 S1                                                                                     ; E1 physical drive 4 goes backwards
    M569 P5 S1                                                                                     ; E2 physical drive 5 goes backwards
    M569 P6 S1                                                                                     ; E3 physical drive 6 goes backwards
    M569 P7 S0                                                                                     ; Coupler physical drive 7 goes forwards
    M569 P8 S0                                                                                     ; Unused - physical drive 8 goes forwards
    M569 P9 S0                                                                                     ; Unused - physical drive 9 goes forwards
    
    M584 X0 Y1 Z2 C7 E3:4:5:6                                                                      ; set drive mapping
    M350 X16 Y16 Z16 E16:16:16:16 I1                                                           ; configure microstepping with interpolation
    M350 C16 I10                                             ; Configure microstepping without interpolation
    M92  X100 Y100 Z800 C91.022 E395:395:395:395                             ; set steps per mm
    M566 X400 Y400 Z8 C2 E2:2:2:2                                         ; set maximum instantaneous speed changes (mm/min)
    M203 X35000 Y35000 Z1000 C5000 E5000:5000:5000:5000                        ; set maximum speeds (mm/min)
    M201 X6000 Y6000 Z400 C500 E3000:3000:3000:3000                            ; set accelerations (mm/s^2)
    
    M906 X1800 Y1800 Z1330 I30                                    ; Idle motion motors to 30%
    M906 E1000:1000:1000:1000 C500 I10                                      ; Idle extruder motors to 10%
    M84 S30                                                                                         ; Set idle timeout
    
    ; Axis Limits
    M208 X-10 Y-7 Z0 S1                                                                             ; set axis minima
    M208 X350 Y275 Z300 S0                                                                          ; set axis maxima
    M208 C-45:360
    
    ; Endstops
    M574 X1 Y1 S3                                         ; Set X / Y endstop stall detection
    M574 C0 Z0                                              ; No C Z endstop
    
    ; Z probe
    M558 P8 C"zstop" H3 F360 I0 T20000      ; 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 X30:333 Y50:249 S40                      ; Set probing points       
    
    ; Heaters
    M308 S0 P"bedtemp" Y"thermistor" A"Bed" T100000 B4138                                          ; configure sensor 0 as thermistor on pin bedtemp
    M950 H0 C"bedheat" T0 q10                                                                      ; create bed heater output on bedheat 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 S200                                                                                   ; set temperature limit for heater 0 to 200C
    
    M308 S1 P"e0temp" Y"thermistor" A"T0" T100000 B4725 C7.06e-8                                         ; 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
    M307 H1 B0 S1.00                                                                               ; disable bang-bang mode for heater  and set PWM limit
    M143 H1 S300                                                                                   ; set temperature limit for heater 1 to 300C
    M308 S2 P"e1temp" Y"thermistor" A"T1" T100000 B4725 C7.06e-8                                         ; 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
    M307 H2 B0 S1.00                                                                               ; disable bang-bang mode for heater  and set PWM limit
    M143 H2 S300                                                                                   ; set temperature limit for heater 2 to 300C
    M308 S3 P"duex.e2temp" Y"thermistor" A"T2" T100000 B4725 C7.06e-8                                    ; configure sensor 3 as thermistor on pin duex.e2temp
    M950 H3 C"duex.e2heat" T3                                                                      ; create nozzle heater output on duex.e2heat and map it to sensor 3
    M307 H3 B0 S1.00                                                                               ; disable bang-bang mode for heater  and set PWM limit
    M143 H3 S300                                                                                   ; set temperature limit for heater 3 to 300C
    M308 S4 P"duex.e3temp" Y"thermistor" A"T3" T100000 B4725 C7.06e-8                                    ; configure sensor 4 as thermistor on pin duex.e3temp
    M950 H4 C"duex.e3heat" T4                                                                      ; create nozzle heater output on duex.e3heat and map it to sensor 4
    M307 H4 B0 S1.00                                                                               ; disable bang-bang mode for heater  and set PWM limit
    M143 H4 S300                                                                                   ; set temperature limit for heater 4 to 300C
    
    ; Fans
    M950 F0 C"fan0" Q0                                                                             ; 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 T70                                                                              ; set fan 1 value. Thermostatic control is turned on
    M950 F2 C"fan2" Q0                                                                             ; create fan 2 on pin fan2 and set its frequency
    M106 P2 S0 H-1                                                                                 ; set fan 2 value. Thermostatic control is turned off
    M950 F3 C"duex.fan3" Q500                                                                      ; create fan 3 on pin duex.fan3 and set its frequency
    M106 P3 S1 H2 T70                                                                              ; set fan 3 value. Thermostatic control is turned on
    M950 F4 C"duex.fan4" Q0                                                                        ; create fan 4 on pin duex.fan4 and set its frequency
    M106 P4 S0 H-1                                                                                 ; set fan 4 value. Thermostatic control is turned off
    M950 F5 C"duex.fan5" Q500                                                                      ; create fan 5 on pin duex.fan5 and set its frequency
    M106 P5 S1 H3 T70                                                                              ; set fan 5 value. Thermostatic control is turned on
    M950 F6 C"duex.fan6" Q0                                                                        ; create fan 6 on pin duex.fan6 and set its frequency
    M106 P6 S0 H-1                                                                                 ; set fan 6 value. Thermostatic control is turned off
    M950 F7 C"duex.fan7" Q500                                                                      ; create fan 7 on pin duex.fan7 and set its frequency
    M106 P7 S1 H4 T70                                                                              ; set fan 7 value. Thermostatic control is turned on
    M950 F8 C"duex.fan8" Q0                                                                        ; create fan 8 on pin duex.fan8 and set its frequency
    M106 P8 S0 H-1                                                                                 ; set fan 8 value. Thermostatic control is turned off
    
    ; Tools
    M563 P0 S"T0" D0 H1 F2                                                                         ; 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 S"T1" D1 H2 F4                                                                         ; 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 S"T2" D2 H3 F6                                                                         ; 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 S"T3" D3 H4 F8                                                                         ; 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
    
    ;tool offsets
    ; !ESTIMATED! offsets for:
    ; Hemera-tool: X20 Y43.5 Z-6
    ; G10 P0 X-0.10 Y-1.0 Z-7   -  Use this as initial starting point for leveling nozzle heights to avoid crashing nozzles into bed
    
    ; Tool Offsets
    G10 P0 X-0.00 Y0.00 Z-4.85            ; Tool 0  Nozzle-X 0.4mm
    G10 P1 X-0.32 Y-0.76 Z-5.40            ; Tool 1 Nozzle-X 0.4   
    G10 P2 X-0.20 Y-0.98 Z-5.42            ; Tool 2 Nozzle-X 0.6
    G10 P3 X-0.32 Y-0.96 Z-5.53            ; Tool 3 Nozzle-X 0.8
    
    ; Pressure advance was turned off by default.
    ;M572 D0 S0.020                         ; pressure advance T0 Hemera
    ;M572 D1 S0.020                         ; pressure advance T1
    ;M572 D2 S0.020                         ; pressure advance T2
    ;M572 D3 S0.020                         ; pressure advance T3
    
    M593 F42.2                                ; cancel ringing at 42.2Hz (https://forum.e3d-online.com/threads/accelerometer-and-resonance-measurements-of-the-motion-system.3445/)
    
    M501                                                            ; load saved parameters from non-volatile memory
    
    
     
    #2 Terry Robison, Feb 6, 2022
    Last edited: Feb 7, 2022
  3. dc42

    dc42 Well-Known Member

    Joined:
    Aug 16, 2016
    Messages:
    526
    Likes Received:
    221
  4. Andy Cohen

    Andy Cohen Well-Known Member

    Joined:
    Aug 23, 2019
    Messages:
    277
    Likes Received:
    63
    Thanks for both.
    Oh… and a very big thanks for the brilliant work and support over the years to DC42.
     

Share This Page