Changing Probe offsets with G code/Macro



  • Is there a way to change the probe offset by sending a Gcode, or is there another way around it besides editing the config?

    I have multiple bed surfaces and also IDEX copy mode which require this height to be changed. Depending on the bed surface and the tool being used I need to change Z offset value correspondingly.

    I was thinking about using a macro, so I would put in say the Buildtak flex plate and run the Buildtak macro that would load the proper height map and set the correct offset.

    G31 P25 X28.8 Y0 Z2.12


  • Moderator

    @3DPrintingWorld said in Changing Probe offsets with G code/Macro:

    Is there a way to change the probe offset by sending a Gcode, or is there another way around it besides editing the config?

    Yes. You can send G31 Z at any time to change it either from command line or a macro.



  • Oh, sorry. I just had a epiphany and realized I could just put this line in the macro, duh.... I was just coming back to write this. lol
    Only thing is that its going to default the value in the config, right? Say I do a e-stop or turn it off. I'll just make sure that's a safe number so I don't have any accidents incase I forget to run the macro before I start.


  • Moderator

    That's right. When the printer starts up it will get whatever values are in config.g. It will be up to you to load the appropriate macro needed for the bed surface when it changes.


Log in to reply