Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Solved Duet 2 Wifi upgrade Troxy x5sa

    Duet Hardware and wiring
    2
    2
    170
    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.
    • gdefranc
      gdefranc last edited by

      Happy new 2021:
      Hardware:

      • Tronxy X5Sa
      • Bltouch 3.1
      • Bed Glass

      Board: Duet 2 WiFi (2WiFi)
      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.1.1 (2020-05-19b2)
      Duet WiFi Server Version: 1.23

      my configurations

      config.g

      code_text
      
      DFFM 3D
      Send code...
      Status
      Printing
      Mode: FFF
      Tool Position
      X
      144.4
      Y
      151.1
      Z
      0.20
      Extruder Drives
      Drive 0
      135.5
      Speeds
      Requested Speed
      30 mm/s
      Top Speed
      30 mm/s
      Sensors
      Vin
      24.0 V
      MCU Temperature
      37.1 C
      Z-Probe
      0
       Tools
       Extra
       Control All
      Tool	Heater	Current	Active	Standby
      Tool 0
      T0 - Load Filament	Heater 1
      active	210.1 C	
      210
      210
      Bed	Heater 0
      active	74.9 C	
      75
      0
      Temperature Chart
      System Directory
      0:/sys/config.g
      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.2.0 on Wed Dec 30 2020 11:26:33 GMT+0100 (Central European Standard Time)
      
      ; General preferences
      G90                                            ; send absolute coordinates...
      M83                                            ; ...but relative extruder moves
      M550 P"DFFM 3D"                             ; set printer name
      
      M667 S1                                            ; Select CoreXY mode
      
      ; Network
      M552 S1                                        ; enable network
      M586 P0 S1                                     ; enable HTTP
      M586 P1 S0                                     ; disable FTP
      M586 P2 S0                                     ; disable Telnet
      
      ; Drives
      M569 P0 S0                                     ; physical drive 0 goes backwards
      M569 P1 S0                                     ; physical drive 1 goes backwards
      M569 P2 S1                                     ; physical drive 2 goes forwards
      M569 P3 S1                                     ; physical drive 3 goes forwards
      M584 X0 Y1 Z2 E3                               ; set drive mapping
      M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
      M92 X80.00 Y80.00 Z400.00 E442.00              ; set steps per mm
      M566 X1000.00 Y1000.00 Z800.00 E120.00         ; set maximum instantaneous speed changes (mm/min)
      M203 X18000.00 Y18000.00 Z900.00 E1200.00      ; set maximum speeds (mm/min)
      M201 X3000.00 Y3000.00 Z1000.00 E250.00        ; set accelerations (mm/s^2)
      M906 X1300.00 Y1300.00 Z1300.00 E1300.00 I35                    ; 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 X330 Y300 Z400 S0                             ; Set axis maxima
      
      ; Endstops
      M574 X1 S1 P"!xstop" ; configure active-high endstop for low end on X via pin xstop
      M574 Y1 S1 P"!ystop" ; configure active-high endstop for low end on Y via pin ystop
      M574 Z1 S2 ; configure Z-probe endstop for low end on Z
      
      ; BLTouch - Heaters
      M307 H7 A-1 C-1 D-1 ; Disable the 7th Heater to free up PWM channel 5 on the Duex board.
      
      ; Z-Probe
      M950 S0 C"exp.heater7"                         ; create servo pin 0 for BLTouch
      M558 P9 C"^zprobe.in" H5 F100 T4000 A10 R0.5 S0.008            ; set Z probe type to bltouch and the dive height + speeds
      ;M558 P9 C"^zprobe.in" H5 F120 T6000            ; set Z probe type to bltouch and the dive height + speeds
      ;M558 H30                                       ;*** Remove this line after delta calibration has been done and new delta parameters have been saved
      G31 P25 X-49 Y Z4.344                          ; set Z probe trigger value, offset and trigger height
      M557 X70:330 Y40:330 S14                       ; define mesh grid
      
      ; 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
      M303 H0 S70
      ;M307 H0 B1 S1.00                               ; enable bang-bang mode for the bed heater and set PWM limit
      M140 H0                                        ; map heated bed to heater 0
      M143 H0 S120                                   ; set temperature limit for heater 0 to 120C
      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
      M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
      M143 H1 S280                                   ; set temperature limit for heater 1 to 280C
      
      ; Fans
      M950 F0 C"fan0" Q500                           ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S0 H0 T45                              ; set fan 0 value. Thermostatic control is turned on
      M950 F1 C"fan1" Q500                           ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S1 H1 T45                              ; set fan 1 value. Thermostatic control is turned on
      
      ; Tools
      
      M563 P0 D0 H1 F0                               ; define tool 0
      G10 P0 X0 Y0 Z0                                ; set tool 0 axis offsets
      G10 P0 R0 S0    
      
      
      ; Automatic power saving
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
      
      
      
      
      ; Custom settings are not defined
      T0
      
      

      HomeAll.g

      ; homeall.g
      ; called to home all axes
      
      G91               ; relative positioning
      G1 H2 Z5 F6000    ; lift Z relative to current position
      G1 H1 X-335 F1800 ; move quickly to X axis endstop and stop there (first pass)
      G1 H2 X5 F6000    ; go back a few mm
      G1 H1 X-335 F360  ; move slowly to X axis endstop once more (second pass)
      G1 H2 Z-5 F6000   ; lower Z again
      
      
      G1 H2 Z5 F6000    ; lift Z relative to current position
      G1 H1 Y-335 F1800 ; move quickly to Y axis endstop and stop there (first pass)
      G1 H2 Y5 F6000    ; go back a few mm
      G1 H1 Y-335 F360  ; move slowly to Y axis endstop once more (second pass)
      G1 H2 Z-5 F6000   ; lower Z again
      G90               ; absolute positioning
      
      ; Homez.g
      
      G1 Z10 F6000 S2    ; Alzo di 10 mm
      
      G1 X150 Y150 F6000 ; Posiziono la sonda al centro del piatto 
      G30                ; Sondo il piatto con il BLTouch
      

      Homex.g

      
      ; homex.g
      ; called to home the X axis
      ;
      
      G91               ; relative positioning
      G1 H2 Z5 F6000    ; lift Z relative to current position
      G1 H1 X-335 F1800 ; move quickly to X axis endstop and stop there (first pass)
      G1 H2 X5 F6000    ; go back a few mm
      G1 H1 X-335 F360  ; move slowly to X axis endstop once more (second pass)
      G1 H2 Z-5 F6000   ; lower Z again
      G90               ; absolute positioning
      
      

      Homey.g

      ; homey.g
      ; called to home the Y axis
      ;
      
      G91               ; relative positioning
      G1 H2 Z5 F6000    ; lift Z relative to current position
      G1 H1 Y-335 F1800 ; move quickly to Y axis endstop and stop there (first pass)
      G1 H2 Y5 F6000    ; go back a few mm
      G1 H1 Y-335 F360  ; move slowly to Y axis endstop once more (second pass)
      G1 H2 Z-5 F6000   ; lower Z again
      G90               ; absolute positioning
      
      

      HomeZ.g

      ; homez.g
      ; called to home the Z axis
      ;
      ; Homez.g
      G91                ; Posizione relativa
      G1 Z10 F6000 S2    ; Alzo di 10 mm
      G90                ; Posizione assoluta 
      G1 X150 Y150 F6000 ; Posiziono la sonda al centro del piatto 
      G30                ; Sondo il piatto con il BLTouch
      

      Who can help me with the Bed.g file?

      Also I have to improve the Heightmap
      HightMap.png

      If anyone can help me.

      However, it already prints very well.

      Start

      ; X5SA Pro Start Code
      G21
      G90
      M82
      M107 T0
      M140 S{material_bed_temperature_layer_0}
      M104 S{material_print_temperature_layer_0} T0
      M190 S{material_bed_temperature_layer_0}
      M109 S{material_print_temperature_layer_0} T0
      G28
      G29 S1
      G92 E0
      G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
      G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish
      

      Stop

      G91 ;Relative positioning
      G1 E-2 F2700 ;Retract a bit
      G1 E-2 Z0.2 F2400 ;Retract and raise Z
      G1 X5 Y5 F3000 ;Wipe out
      G1 Z10 ;Raise Z more
      G90 ;Absolute positionning
       
      G1 X0 Y{machine_depth} ;Present print
      M106 S0 ;Turn-off fan
      M104 S0 ;Turn-off hotend
      M140 S0 ;Turn-off bed
       
      M84 X Y E ;Disable all steppers but Z
      

      Print PLA without spray with temp Bed 75 and HotEnd 210

      1 Reply Last reply Reply Quote 0
      • Veti
        Veti last edited by

        @gdefranc said in Duet 2 Wifi upgrade Troxy x5sa:

        G31 P25 X-49 Y Z4.344 ; set Z probe trigger value, offset and trigger height

        you are missing the y value

        M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
        M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp

        B4138 is incorrect for your printer. you need to find the correct value in the thermistor documentation.

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

        this is not required for rrf3

        for bed.g i assume you want to do this?
        https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors

        go through the guide and if you have questions ask them.

        you also need to pid tune your bed and heater.

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