Printing in the middle of the bed



  • Hia,
    I have finally managed to get decent prints out of my Tronxy P802MA, and am slowly printing upgrade parts, with the duetwifi at the forefront.

    Skipping through, when slicing my code through repetier or cura, the prints don't print in the centre of the bed.

    I have come across the code below:

    [[language]]
    ;Sliced at: {day} {date} {time}
    ;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
    ;Print time: {print_time}
    ;Filament used: {filament_amount}m {filament_weight}g
    ;Filament cost: {filament_cost}
    T0
    M140 S{print_bed_temperature} ;pre-heat bed
    G91 ;relative positioning
    G1 Z5 ;move Z up 5mm before homing x/y
    G90 ;absolute positioning
    M117 Homing... ;Put message on LCD screen
    G28 ;Autohome to X0, Y0, then Z0
    G29 ;Probe bed
    G21 ;metric values
    M107 ;start with the fan off
    G1 Z10.0 F{travel_speed} ;move the nozzle up 10mm
    G0 X0 Y0 ;Start at 0/0 instead of where G29 left us
    M117 Heating Bed... ;Put message on LCD screen
    M190 S{print_bed_temperature} ;heat bed and wait
    M117 Heating Extuder... ;Put message on LCD screen
    M109 S{print_temperature} ;pre-heat extruder and wait
    G92 E0 ;zero the extruded length
    G1 F200 E4 ;extrude 4mm of feed stock
    G92 E0 ;zero the extruded length again
    G1 F{travel_speed}
    ;Put printing message on LCD screen
    M117 Printing...
    
    

    If possible can someone modify this for the duet in order to get prints dead centre, as i am sure this would help other duet users.

    If any one wants to see my config and home files, please ask, you are welcome to reviewing and improving the code for my self and those with the anet/ tronxy clones.

    Kind Regards,


  • administrators

    The Duet will print where the Gcode generated by the slicer tells it to. You need to configure the bed size of your printer into your slicer. At the Duet end, check that the X=0 Y=0 point is at the corner of the bed, and if necessary adjust the parameters in your M208 S1 command so that it is.



  • ok so far i am slowly making progress
    minima is set
    x60
    y-5
    z0
    maxima is set to
    x280
    y215
    z210

    this is where the progress of the homing is:
    told my printer that once the endstops have been reached, that is where the 0 of that axis is.



  • The issue i'm having is, adjusting the gap between the x axis stepper motor holder and where the bed actually starts,

    The only thing i could think of at the moment is by physically moving the end stop closer to where the bed starts.

    I.e.



  • is that why you have x 60 as a minimum? if so, you will have to do some math to compensate for size of bed vs offset. make a few guestimates or manually place ph in middle of bed and get x,y coordinates you want then after home y, move to that and home z (all do able via g code). plug the dimensions into your slicer for bed size and you should be good to go IMHO, 60 mm is a lot to give up on print volume so am wondering if sensor is that far from edge of bed or if you are cutting off part of usable area? DISCLAIMER, i am a bit of a newbie myself so our betters on here will correct me if i am terribly wrong LOL



  • Here are a couple of diagrams:
    Exhibit A(Original Setup)

    Exhibit B(Potential Setup )

    Exhibit B would be physically moving the end stop



  • i am by no means sure on this but as i understand it, that should not be a problem, just need to dial in offsets for bed geometry. might try moving bed to 4 corners and seeing what the reported position is then base your settings off that. IE 300x300 bed but 400 mm movement on x you may also need to lie to your slicer to get dead on center of bed lol what are you using for that btw?


  • administrators

    Alternatively you can tell your printer that the minimum is -60, then "0" will be at the logical point you want to print at.



  • @T3P3Tony
    Thnks
    So should the minima and maxima go from this:
    minima is set
    x60
    y-5
    z0
    maxima is set to
    x280
    y215
    z0

    to this:
    minima
    x-60
    y-5
    z0
    maxima
    x220
    y220
    z0
    Would this allow the x0/y0 to be on one of the corners? and get the printer to print in the center.

    @ FrankNPrinter
    I use Cura/Repetier host since these are free and available on linux, I really like Cura, since the settings seem clear.
    I've seen somewhere that in the repetier host that i could set the offset of the bed there
    I wouldn't mind a slicer that allows me to tell the print where not to print the brim, skirt, raft i.e. 'don't print bed adhesion in screw holes'



  • If anyone ask, I have managed to print successfully, until i decided to take it apart for a potential non-printed upgrade,



  • I managed to get the X axis stopping where necessary, so i'd like to mark this thread as SOLVED

    This was achieved by printing out a endstop holder for these mechanical switches, so now i have a good enough set up get the homing and placement of the print where actually want it.

    Thanks Prusa's, Delta's and CoreXYs


 

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