Macros :)



  • Macros are fun.

    I'm on day for of getting my Duet 2 Wifi working on my Tronxy X5SA and trust me I have a lot of work to do before I'll be ready to print.

    The inductive bed sensor on the X5SA is left and forward of the nozzle which presents an issue when homing z, the sensor is over thin air and the bed will crash in to the side of the nozzle.

    To combat this I have the printer move x and y in a bit so the sensor can see the bed. After z homes I have the software put x and y back a bit but not all the way.

    I'll probably modify the end stops on the printer so I don't have to do this, probably. In the meantime this works.

    For ease of adjusting my homing settings I remmed out much of my homeall.g macro and set up homing individually in homex.g homey.g and homez.g then I call those macros in that order from homeall.g. Neat.

    It occurred to me to do this this morning.

    I still need to work on bed leveling. I'd set it up in bed.g using a matrix of G30 commands, but have since read that I should be using G29, so I'm off to work on that. Then setting z offset, then hopefully my first print on the X5SA since the electronics started failing Christmas week.



  • @jamesadoty To safely home Z, I always move the sensor to the center of the bed.



  • @stephen6309
    That's brilliant idea.

    I'm currently moving x 70mm and y 40mm. I'll change it for safeties sake.


  • administrators

    @jamesadoty said in Macros 🙂:

    The inductive bed sensor on the X5SA is left and forward of the nozzle which presents an issue when homing z, the sensor is over thin air and the bed will crash in to the side of the nozzle.

    To combat this I have the printer move x and y in a bit so the sensor can see the bed. After z homes I have the software put x and y back a bit but not all the way.

    I'll probably modify the end stops on the printer so I don't have to do this, probably. In the meantime this works.

    No need to move endstops, just make homez.g and homeall.g move to a suitable XY position (normally bed centre) before doing the G30 command that homes Z.

    For ease of adjusting my homing settings I remmed out much of my homeall.g macro and set up homing individually in homex.g homey.g and homez.g then I call those macros in that order from homeall.g. Neat.

    When you have it all working well, you can make homing faster by homing X and Y simultaneously in homeall.g.

    I still need to work on bed leveling. I'd set it up in bed.g using a matrix of G30 commands, but have since read that I should be using G29, so I'm off to work on that. Then setting z offset, then hopefully my first print on the X5SA since the electronics started failing Christmas week.

    I presume you mean bed compensation, not bed levelling (bed levelling makes the bed level, bed compensation compensates for it not being flat and/or level and also for the gantry not being level). Yes, use G29 for mesh bed compensation. But you can also use G30 commands in bed.g to tell you how much to adjust the bed levelling screws by, see https://duet3d.dozuki.com/Wiki/Using_the_manual_bed_levelling_assistant.



  • @dc42
    Thank you. i do mean bed compensation.

    Good input on adjusting x and y after homing, I should have thought of that.



  • Have you seen this? https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter

    Very useful when commissioning a new printer.



  • @phaedrux
    I hadn't. I'll read through it in a bit.

    I used the Reprap firmware configurator to do most of the heavy lifting. Now I'm just tweaking settings.

    I'm calibrating the heat bed at the moment, I just finished calibrating the hot end.


Log in to reply