Solved: Setting Z offset for T1
-
Any help with this?
-
@rajaakahel said in Setting Z offset for T1:
G10 P1 X0 Y0 Z0.85 ; Set tool 1 axis offsets
?????
If equal to T0 = Z0G10 P1 X0 Y0 Z0
-
@zerspaner_gerd Sorry, what do you mean?
This is my setup, but it doesn't work.
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P1 X0 Y0 Z0.85 ; Set tool 1 axis offsets -
@dc42
I tired all the gcodes that I could use for Z offset (by putting the needed value in the Macro before picking up the tool, and subtracting it after the tool is parked) but I can see nothing is working (I can see in the web-interface the actual Z height).
Then I choose the value to be 50mm (in case the web-interface does't show the correct current value) but again, no actual Z offset is applied!
What's going on please! -
If you do a tool change what happens to the z height of the bed/z axis?
-
@t3p3tony During a tool change I see the Z moves a bit from the nozzle by about 0.4mm or something.
-
@rajaakahel are you sure it's not moving 0.85mm as you have configured?
-
@t3p3tony Yes I'm sure, check the picture, now I tried again with 50mm Z offset for T1, but nothing happens..
-
@t3p3tony Now during the last test:
"I tried again with 50mm Z offset for T1"
Something very strange happened!
First T0 was printing, then the tool changed to T1 (nothing happened, no Z offset) but then when the tool changed back to T0 the bed moved by about 50mm down and went back to continue printing.
After that and before that it didn't move down by 50mm at all. -
After the tool change, a Z value must be present, otherwise the axis will not be approached.
Part of my tool change script from S3D:
T[new_tool] ; New Tool G1 X[next_position_x] Y[next_position_y] Z[next_position_z] F9000
-
@zerspaner_gerd My problem is that Duet is not applying the offset I want for T1. It's ignoring it. Through G10 in config.g and through any other command anywhere else.
Also it's acting weird if you read my last comment. -
@rajaakahel For me, the z-offset works, why should not it work for you?
Share your gcode, maybe I can find an explanation!
Which firmware version do you use?
-
@zerspaner_gerd 0_1535130513803_8.gcode
Macros:
https://drive.google.com/open?id=1Nwte-EtKEzL_ogCqJp7PMQ2qsLK7RBkMConfigurations:
https://drive.google.com/open?id=1q-h8eojJ91CQwK2p5YhWKuQaQph0sQ_THere's everything.. I'd appreciate it if you or anyone could find anything!
-
I have to give up, Sorry.
I find no big differences to my config.g.
The gcode is already very different but he should not make these problems!Maybe a try, copy your tool Macro directly into the Duet Tool Macro, so that without M98 (subbrogram)
-
@RajaaKahel, if the tool 1 nozzle is 0.85mm lower than tool 0 then I think you need Z-0.85 in the G10 P1 command, not Z0.85.
-
@dc42 Tool 1 nozzle is actually longer than Tool 0 nozzle by 0.85mm.
I updated to:
Firmware Version: 2.02beta1(RTOS) (2018-08-12b5)
WiFi Server Version: 1.21RC4(08b3)
Web Interface Version: 1.22Nothing solved.
-
@rajaakahel said in Setting Z offset for T1:
@dc42 Tool 1 nozzle is actually longer than Tool 0 nozzle by 0.85mm.
So do you mean the Tool 1 nozzle is 0.85mm lower than tool 0, or higher?
Where two tools have different nozzle heights, in the tool change files (probably the tpre file) you will need to raise Z so that when you bring in the tool with the lower nozzle after using the other one, its nozzle will be clear of the print. Use command G1 R2 Z0 at or near the end of the tpost file to put it at the right height before continuing the print.
-
@dc42 during the last test:
"I tried again with 50mm Z offset for T1"
Something very strange happened!
First T0 was printing, then the tool changed to T1 (nothing happened, no Z offset) but then when the tool changed back to T0 the bed moved by about 50mm down and went back to continue printing.
After that and before that it didn't move down by 50mm at all. -
@dc42 T1 is higher than T0. I tried with many gcommands to raise the bed, but they didn't work. I'll try now with G1 R2 Z50
-
@dc42
Ok now the bed is moving down by the value I entered (50mm) Before T1 is activated but it goes back to 0.2mm (the layer height) after T1 is activated. It should go to 50.2mm after T1 is selected and stay there to print. (So now the Z offset is taken into account only during tool change).Thank you for your time, we are getting closer
; tfree1.g
; called when tool 1 is freed
G1 R2 Z-50
M98 P/macros/parkT1; tpre1.g
; called before tool 1 is selectedG1 R2 Z50