Possibilities to adjust the z-offset (without the config.g file)
-
I'm not really sure what you mean. But if you send G31 by itself it will respond with what the currently set value is.
To measure the current trigger height a macro could be created that prompts the user to jog the nozzle to touch the bed and then uses G30 S-1 to report it to the console, or you can use G30 S-3 in the same way with the difference that it sets the trigger height immediately without having to chnage config.g. That value can be saved to config-override with M500 P31.
-
@Phaedrux Ok thank you!
Where is the definition of the G30 "S" parameters? i have never read something about "S-3"
Thank you a lot! -
I thought you knew the gcode list very well!
https://duet3d.dozuki.com/Wiki/Gcode#Section_G30_Single_Z_Probe
-
Oh my mistake!
I was there... the general G code overview
https://reprap.org/wiki/G-codeThanks... I will test it!
-
@CR3D, what you will need is to have the ability to send gcodes over the USB and to retrieve their response, using some script or software. Once you will have that capability, you will have very good control over the printer.
-
Yes I can send Commands and I can receive Messages from the Duet.
I will test and reportThanks!
-
@CR3D You could always implement an adjustable Z=0 endstop... See: https://drmrehorst.blogspot.com/2020/03/a-new-z-axis-optical-endstop-design-for.html
-
Ok thank you for your answers...
I will test it now.
Must the z offset be configurated in the config.override that i can change it?
@mrehorstdmd thatΒ΄s not possible, because it is fixed on the toolhead directly
-
@CR3D said in Possibilities to adjust the z-offset (without the config.g file):
Must the z offset be configurated in the config.override that i can change it?
if it is in config-overrigde.g that is where you need to update it (as it would otherwise override you do in config.g)
if its not already in config-override.g it doesn't matter where you put it; but if you intend on using M500 it will be saved to config-override.g
-
@bearer, it is possible to read/write a duet file (e.g. a macro) using the USB/Serial port?
(If so, any configuration can be saved in a file that is invoked by the standard config.)
-
@zapta haven't tried tbh, but afaik you can use g-code and that shouldn't matter which channel is in use
https://duet3d.dozuki.com/Wiki/Gcode#Section_M28_Begin_write_to_SD_card
(you can't read and parse the file, but ofc executing it should achieve the same thing)
-
Thank you everybody for your help!
My solution is following:
- Read out my z-offset with G31 via serial command in the console of my server
- Change my Z-Offset with G31 Z?.?
- Save settings with M500 G31
This is working well for me
Thank you!
-
@bearer
The M98 command also works via Serial Port. This also would be one solution!
The M28 command i never tested till yet...