Please comment on new config file...

  • Have new DuetWiFi all wired in. Hardware and electrical all functional...yay.
    Ran configurator and then reviewed the Gcode file. Realized that a lot more had to be added beyond the basics. Uh oh....
    I'm a total Gcode rookie, but I took a cut at it and this is what I have so far. Please review....some question areas are highlighted. Any help much appreciated. Also advice on what else has to be done beyond where I'm at now.
    Cartesian, 1 X stepper, 2 Y steppers separately on Y and E1 drivers, vertical Z-axis, and an E3D Titan extruder on E0. Using inductive Z-probe wired to Zprobe input.
    Y steppers are pre-wired for opposite direction.
    All steppers 1.5A, 1.8deg. Steps/mm shown are correct at 1/16. Ext steps not calibrated yet (can't get it to run cold....)
    Once I upload this much, do I add M500, M501 to the end of the script so far, or enter it manually after upload?
    Thanks much.

    ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ; generated by RepRapFirmware Configuration Tool v2 on Wed Apr 10 2019 14:10:10 GMT-0700 (Pacific Daylight Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 P"FT5" ; Set machine name
    M551 P"reprap" ; Set password
    M552 S1 ; Enable network
    M587 S"DANL2.4" P"xxxxxxxx" ; Configure access point. You can delete this line once connected
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M584 XO Y1:4 Z2 E3 ; link the 2 motors on Y axis that have separate drivers 1 and 4.
    M584 U4 ;Is this needed to use 2 separate Y endstops? Create U axis? Still linked to Y1?

    M569 P0 S1 ; Drive 0 goes forwards
    M569 P1:4 S1 ; Drive 1 goes forwards. Y motors are already hard wired in opposite
    direction as necessary on opposite rails.
    M569 P2 S0 ; Drive 2 goes backwards
    M569 P3 S1 ; Drive 3 goes forwards

    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X100.00 Y100.00 Z967.00 E420.00 ; Set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00 ; Set maximum instantaneous speed changes
    M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; Set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z20.00 E250.00 ; Set accelerations (mm/s^2)
    M906 X900.00 Y900.00 Z900.00 E700.00 I40 ; Set motor currents (mA) and motor idle
    factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 U0 Z0 S1 ; Set axis minima
    M208 X305 Y305 U305 Z350 S0 ;Does Ynnn set both Y drivers linked by 584, or is Unnn

    ; Endstops
    M574 X2 Y2 U2 S1 ; Set active high endstops…does this include U created by M584 above? Or use next line below?
    M574 U2 S1 C4 ; Needed to set second Y endstop? Or covered by line above?
    M574 Z0 S0 ; Is this needed if M558 and M557 Z probe options will be set?

    ; Z-Probe
    M558 P5 F300 H3 T3000 ; Is this OK as preset for running mesh grid? I, R, A, S, B left at default. Using Z probe input…inductive.
    M557 X27:303 Y14:290 S46 ; Define mesh grid 6x6, includes inductive sensor offset from nozzle

  • @danl said in Please comment on new config file...:

    Y steppers are pre-wired for opposite direction.

    Personal preference, but I would prefer to keep all steppers wired the same and use the motor direction gcode to configure it, just in case you need to swap motors or something at some point in the future. Also keeps the config less confusing since it could say the motor is going forward, but because of the wiring it's actually going backwards. As long as you're comfortable keeping it straight, no problem.

    M500 and M501 are only needed if you intend to use config-override to load saved settings. This is usually used on a delta to save auto calibration data, or PID tuning values for the heaters. In the case of PID tuning, you would use M500 after you've done the tuning to save those results. You'd then need to add M501 to the end of config.g for them to be loaded.

    It looks like you have M584 XO instead of M584 X0 Letter oh instead of Number zero.

    For your dual Y axis, since I don't think you intend to ever split them up and use them as independent axis, I think you're safe to treat them as just Y since you've defined the drivers with M584. This would apply to all the other times you've referenced the U drive as well. I could be very wrong about this, but I don't think so.

    M92 Z967 seems like an odd value for the z axis steps per mm.

    The speed, accel, and jerk values for the Z axis and extruder are pretty low. This can cause some blobbing artifacts on layer change. So you may want to experiment with high values once you start tuning prints. You could probably increase them all by a factor of 10.

    Motor currents are alright, you could increase them up to 1200 (85% of 1500). Will depend on how hot your motors get and if you have printed motor mounts.

    For your Z probe, there are some additional parameters that you can adjust to try and make the results more consistent. Highly dependent on the probe. experiment with R A S B.

  • Thank you. Making the recommended changes. Still can't figure out assignment of two vs one endstop to get separate endstop functionality.
    Nice catch on the "oh" vs 0. Thanks.
    Working on homing now....

  • @danl said in Please comment on new config file...:

    Ext steps not calibrated yet (can't get it to run cold....)

    Here's a macro I wrote for that:

    REMOVE THE .TXT EXTENSION and put in the Macros folder on the SD Card. Note, you must select the extruder FIRST or it won't run.

  • @danl said in Please comment on new config file...:

    Thank you. Making the recommended changes. Still can't figure out assignment of two vs one endstop to get separate endstop functionality.
    Nice catch on the "oh" vs 0. Thanks.
    Working on homing now....

    How is your Y axis setup? I'm having a hard time picturing your dual Y motors. Can you post a picture of your printer showing the Y axis arrangement, or post a link to a similar printer setup?

    I'm thinking that your dual Y axis setup may be needlessly complex with little to no benefit. You'd only need seperate endstops configured if you're planning on splitting the Y axis into two seperate axis and homing them independently. Much like people do for the Z axis. However, I can't see that being necessary since usually the Y axis would be more rigid and constrained than the typically loose Z axis.

    If you're worried about them getting out of sync, perhaps the best way to align them is to drive them into a physical endstop at low motor current to allow them to stall to a full step position. But again, without seeing your setup I'm kind of in the dark about what the best way to go is.

  • @Phaedrux @PuterPro Thanks for the responses.
    Here's a diagram of the layout.
    The FT uses max x 305 and y 305 for home. I'm confused on Z. I want +Z to be taller object height (bed drops away from nozzle to z=350) and -Z to approach nozzle (bed rising to Z=0) . This is to keep in line with Simplify 3D that has a built-in configuration for this printer.
    re the dual Y endstops...
    @Phaedrux said: "If you're worried about them getting out of sync, perhaps the best way to align them is to drive them into a physical endstop at low motor current to allow them to stall to a full step position."
    That is the plan, with the stops in series so each stepper has to home. Playing around, I find that the printer can very repeatably trigger a stop to 0.1mm, probably more than good enough for mechanical alignment. Would use low current/low speed approach. But totally open to more experienced feedback.

    I really appreciate the help. The basic G-codes are clear, but the interactions and script creation are a challenge. eg, for homeall, I totally get x and y, but the following to probe z and set that zero....? And mesh grid...have that, I think, but working on tying in bed and nozzle temp before the scan....
    Actually somewhat enjoying the learning far. Retired...have the time...![alt text]0_1555095098138_FT5-2 Diagram.jpg

  • Ah ok, that helps a lot. Is this a Folgertech FT-5 I presume?

    How much play and flex is there where the X axis joins the Y axis carriages? If you intend to home each side independently there will need to be some ability for it to flex so that each end can move without transferring force to the other. If you can move one side by hand and the other side moves in lock step, I wouldn't worry about homing them individually. If there is a decent amount of slop, say a few millimeters, then homing each makes more sense.

    To accomplish that you should review the documentation for independent motor homing of the Z axis as it will apply in your case. You would need to define the U axis as you have done in your config, then in your homing files you would first do a course homing of the combined Y axis to get it close to the end stop, and then back off a few mm, split the axis into Y and U, and then home each.

    The trick will be keeping each side lined up properly so that the X axis is perpendicular to the Y axis without skew. Much easier to do if the X axis is fairly rigid on the Y axis. In fact, I would be more concerned about the perpendicularity than the Y axis getting out of sync.

    Regardless, I think it would be worthwhile seeking out some opinions from other FT-5 users to see if it's an actual issue worth worrying about. It's far too easy to make mountains out of molehills in 3D printers. And depending on why you're interested in 3D printers, that may be exactly what you're after, in which case, over engineer to your hearts content. 👌

  • A Y homing approach is becoming more clear as I get feedback.
    Bought the FT5 used. Aligned all axes and mechanically tuned the whole thing. Very little slop and has printed a lot of small parts...approx 1x50mm size with detail...0.25 nozzle, 0.1 layers. So I think everything is pretty tight.
    Really want to get Duet going and get back to printing.
    So...I'll try this approach...use separate drivers on each Y stepper. Set up two microswitch endstops in series.
    Home both the driver-paired Y steppers together (no separate U) at low speed, low current. Each side will have to reach the hard stop to trigger both series stops and set home on each side (305mm in this case). With little slop, both sides should reach their respective stops practically simultaneously. Any slight misalignment would be corrected per the hard endstops.
    Stops seem to be very repeatable to 0.1mm activations.
    I'll take a shot at new G-code for this.


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