Help to check config please



  • So I have ordered Duet 2 WiFi and almost patiently waiting it on Monday...
    Reading about conversion of my Cartesian and trying to convert Chitu config to Duet, so maybe someone can help and check them please?

    What I have:
    Steppers:
    Z: 1.8deg , 13.2V, 0.4A, 33Ohm, 45mH, 2.4Kg/cm (using Tr8*8 lead screw)
    X and Y: 1.8deg, 4.96V, 0.8A, 6.2Ohm, 10mH, 2.4Kg/cm
    E0 and E1: 1.8deg, 4.83V, 0.84A, 5.75Ohm, 9.3mH, 2.8Kg/cm(direct drive extruders)

    Endstops - Makerbot style with 4 wires, Z: bottom X: left, Y: back. No Z-probe yet
    Heated bed, bed size 230 x 150, actual X: 264.5 Y: 154 Z: 154 (Copied from old board config)

    Double extruders, right - T0 with PTFE(max temp 260) , left - T1 all metal with X offset 34mm (Why from left to right?.. Copied from old board config)

    Temperature sensors: bed is with some generic Chinese NTC 100K, extruders - ordered cartridges with thermistors NTC 100K B3950, as by seller description they are improved up to 350C(asked for datasheet)

    So I created config and edited it a bit from what I have found on forum for FFCP, but have some questions:
    1 - I can't see nothing about Z endstop in config like M574 Z2 S0 , but in Configurator I set it. Should I put M574 Z2 S0 ; Set active low endstop for Z ?
    2 - Do I need to set G21; Work in millimetres ?
    3 - Fan P0 is for part cooling fan?
    4 - What about power saving mode? Which voltage thresholds for 24V power supply? On previous board I had big capacitor for this mode and it hold printer for 2-3 seconds after power switch off 🙂
    5 - Which compatibility mode to choose with M555 ? Default is Marlin but saw on other config RepRapFirmware
    6 - Maximum speed, acceleration and jerk are dark woods for me... Why default acceleration for Y is so low? Max speeds I will calculate a bit later for my motors at RepRap.
    7 - Think I have a problem with Z axis.. why in bed.g I have strange Z-99999 ? It feels like flipped Z axis 🙂

    config.g :

    ; Configuration file for Duet WiFi
    ; executed by the firmware on start-up

    ; General preferences
    M111 S0 ; Debug off
    G21; Work in millimetres
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves
    M555 P1 ; Set firmware compatibility to look like RepRapFirmare (P2 for Marlin)
    M575 P1 B57600 S1 ; Set auxiliary serial port baud rate and require checksum (for PanelDue)

    ; Network
    M550 PX-Pro ; Set machine name
    M552 S1 ; Enable network
    M587 S"NETGEAR50" P"password" I192.168.1.201 J192.168.1.1 K255.255.255.0 ; Configure access point and IP addresses. You can delete this line once connected
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S1 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S1 ; Drive 3 goes forwards
    M569 P4 S1 ; Drive 4 goes forwards

    M350 X16 Y16 Z16 E16:16 I1 ; Configure microstepping with interpolation
    M92 X94 Y94 ; Set steps per mm for X Y
    M92 Z400 ; Set steps per mm for Z
    M92 E97:97 ; Set steps per mm for extruders

    ; Axis kinematics
    M566 X900 Y900 Z12 E120:120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X12000 Y12000 Z480 E7200:7200 ; Set maximum speeds (mm/min)
    M201 X500 Y20 Z250 E250:250 ; Set accelerations (mm/s^2)

    ; Steppers currents
    M906 X680 Y680 Z340 E714:714 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 X264.5 Y154 Z154 S0 ; Set axis maxima
    ;M579 X1.001895478 Y1.004419446; Scale axis (Correction factors based on measurment of printed models)

    ; Endstops
    M574 X2 S0 ; Set active low endstop for X
    M574 Y2 S0 ; Set active low endstop for Y

    ; Z-Probe
    M558 P0 H5 F120 T12000 ; Disable Z probe but set dive height, probe speed and travel speed
    M557 X15:249.5 Y15:139 S20 ; Define mesh grid

    ; Heaters
    ;Bed
    M307 H0 B0 S1.00 ; Disable bang-bang mode for the bed heater and set PWM limit
    M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C

    ;Extruders
    M305 P1 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S260 ; Set temperature limit for heater 1 to 260C
    M305 P2 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 2
    M143 H2 S310 ; Set temperature limit for heater 2 to 310C

    ; Fans
    ; Part cooling
    M106 P0 S1 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off

    ; Cooling block fans
    M106 P1 S1 I0 F500 H1:2 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 S1 I0 F500 H1:2 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; Tools
    M563 P0 D0 H1 ; 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 ; Define tool 1
    G10 P1 X34 Y0 Z0 ; Set tool 1 axis offsets
    G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C

    ; Automatic power saving
    M911 S17 R19 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings

    ; Miscellaneous
    M501 ; Load saved parameters from non-volatile memory

    ====================================

    bed.g :

    M561 ; clear any bed transform
    G28 ; home all axes
    ; Probe the bed at 3 points
    G30 P0 X15 Y15 H0 Z-99999
    G30 P1 X15 Y139 H0 Z-99999
    G30 P2 X249.5 Y77 H0 Z-99999 S

    ====================================

    homeall.g :

    G91 ; relative positioning
    G1 Z5 F12000 S2 ; lift Z relative to current position
    G1 S1 X269.5 Y159 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X-5 Y-5 F12000 ; go back a few mm
    G1 S1 X269.5 Y159 F240 ; move slowly to X and Y axis endstops once more (second pass)
    G1 S1 Z159 F1800 ; move Z up stopping at the endstop
    G90 ; absolute positioning
    G92 Z0 ; set Z to axis minimum (you may want to adjust this)

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 S2 Z5 F200 ; lift Z relative to current position
    ;G90 ; absolute positioning

    Thank you for helping!



  • I wonder how many people's wifi I could connect to looking for posted config.g files...

    For your stated hardware, that does look like the endstops are not configured correctly.

    Assuming that your endstops are plugged into the X, Y and Z endstop connections, and that that the Z probe connector is unpopulated:

    ; Endstops
    M574 X2 Y2 Z1 S0 ; Set active low endstops

    I have noticed one thing with the Reprap configurator that I didn't like. That's that the home_.g files set the moves to exactly the stated maximum travel, and if the axis actually is at the maximum travel point, the home commands will fail when called, needing an additional home command in order to work.

    I would change homeall.g as follows:
    Old line:
    G1 S1 X269.5 Y159 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
    New line:
    G1 S1 X274.5 Y164 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)

    This just adds an additional 5mm of buffer to make sure that you actually hit the endstop.

    Old line:
    G1 S1 X269.5 Y159 F240 ; move slowly to X and Y axis endstops once more (second pass)
    New Line:
    G1 S1 X7.5 Y7.5 F240 ; move slowly to X and Y axis endstops once more (second pass)

    There should be no need to specify such a large move when you've just set it back 5mm from the endstop. If you have an endstop failure this will keep the printer from trying grinding the motor against the limits for quite as long, and is more likely to report an error in the event that there was a false trigger for the endstop on the first move.

    Of course similar edits to homex.g and homey.g

    So your questions:

    1. See above.
    2. Yes, leave that.
    3. Typically so, I believe. Doesn't mean that you have to use it.
    4. You can have that capacitor if you wish. there are settings for timeout for shutting off the motor drivers that you can configure.
    5. Depends on your slicer. I think that I have mine configured to look like Marlin, because I was using Marlin before, and my slicer is configured that way. If you're starting with a new profile, it's probably better as RRF.
    6. It set mine low, too. Lots of printers move the whole gantry in the Y axis, and those that don't move the bed with the printed object attached, which means that it will be harder to get moving. A low acceleration is safer. you seem to have the torque numbers for your motors, so you can probably tune that manually. I know that there is a maximum acceleration calculator here, but fine-tuning will depend on your printer, as well as your own tolerance for artifacts.
    7. Pretty sure that everyone gets that -99999. It's even in the gcode wiki as an example of the G30 command where there is an X and Y specified. Pretty sure that it's there as a "low value" so that the firmware will be guaranteed to allow the G30 probe to get to the endstop/probe hit.


  • @supraguy said in Help to check config please:

    I wonder how many people's wifi I could connect to looking for posted config.g files...

    If you're ever in the neighbourhood you're welcome to sponge off my wifi. 😉



  • @supraguy Thank you for help! 🙂 About WiFi - it is not so secret imho, but will remove from google caching 😉

    About endsops - why Z1? As I have it on my max (bed is driven by lead screw to the bottom which is max height)
    About homing - got it, thanks



  • @briskspirit :

    X2 Y2 mean that the endstops are at the maximum travel for those. Usually this means that when homed, the print head is towards the back and the right of the printer. Since this was already in your confguration, I assume that's how yours is configured. (The 0,0 origin of your grid is diagonally opposite the homed position of your print head.)

    Z1 means that the Z endstop is at the 0 coordinate of the axis, in this case, right at the bed. If your Z endstop is at the highest point of travel, then that would be Z2. Since you stated that you don't have a Z probe, the printers that I've seen with just a Z limit switch have the endstop near the Z=0 point. I've seen some with endstops near the Z=190 (Or whatever the build height maximum is) as well, but those seem to have Z probes or a Z=0 endstop as well. This was an assumption on my part.

    Since your printer is apparently NOT like that, then you would use M574 X2 Y2 Z2 S0



  • @supraguy Replicator-like printers has one end stop at the bottom of the Z axis
    Need to buy Z-probe too... but tough to choose which one in my case with PEI detachable bed with spring steel underneath


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.