Notifications
Clear all

How to increase Z height when doing a color change  

  RSS
Mark Blasco
(@mark-blasco)
Trusted Member
How to increase Z height when doing a color change

I feel like, when my mk3s+ does a color change, it doesn't move up enough for me to deal with the filament (especially when I have objects very near the edge of the build plate).  I'd like to have it move up a little bit higher (maybe 10-20mm).  Is there a way for me to put in a custom G-code for the color change, so that it moves up further?  I know I can set it to move to a specific height, but is there a way to move it 25mm higher than it is currently at?  I never go anywhere near max height, so I'm not worried about it hitting the top limit.  I'd appreciate any help, thanks!

Posted : 18/11/2021 8:45 am
Dan Rogers
(@dan-rogers)
Noble Member
RE: How to increase Z height when doing a color change

It isn't over the print bed .... do you have gigantic hands?  The color change dance - insert filament, extruded correctly, and that little bit of poo after confirming - you get better at it.  I use a needle nose, wait for the second question, grab but not pull the pile under the nozzle, then click yes while holding the mass with the pliers.  When the head starts moving back, you've already got the filament so the little poo cycle at the end is not an issue when you grab it this way.

Posted : 18/11/2021 10:08 am
Mark Blasco
(@mark-blasco)
Trusted Member
Topic starter answered:
RE: How to increase Z height when doing a color change

 

Posted by: @dan-rogers

It isn't over the print bed .... do you have gigantic hands?  The color change dance - insert filament, extruded correctly, and that little bit of poo after confirming - you get better at it.  I use a needle nose, wait for the second question, grab but not pull the pile under the nozzle, then click yes while holding the mass with the pliers.  When the head starts moving back, you've already got the filament so the little poo cycle at the end is not an issue when you grab it this way.

While I appreciate the reply, it's not answering the question I am asking.  I am very familiar with the filament change process, and when I print things that go right up to the edge of the build plate, there is very little space between the nozzle and the part when it changes filament, which occasionally causes problems.  I want there to be more space.  I know that I can insert custom gcode for the color change in prusa slicer, and I am wondering if there is a way to do that to increase the Z distance the hot end raises up when changing filament.

Posted : 18/11/2021 6:38 pm
kennd
(@kennd)
Reputable Member
RE: How to increase Z height when doing a color change

I ran into the same problem on one project and the worm cast would stick to side of already printed object. I resolved it by going into Printer Setting in PrusaSlicer, then Custom G-code and scrolling down to Color Change G-code and adding a Z height to the M600.

I changed it to: M600 Z102 as my objects were quite tall. I think the default is either 50 or 60.

Kenn

 

Quality is the Journey, not the Destination. My limited prints->

Posted : 18/11/2021 10:25 pm
Mark Blasco
(@mark-blasco)
Trusted Member
Topic starter answered:
RE: How to increase Z height when doing a color change

 

Posted by: @kennd

I ran into the same problem on one project and the worm cast would stick to side of already printed object. I resolved it by going into Printer Setting in PrusaSlicer, then Custom G-code and scrolling down to Color Change G-code and adding a Z height to the M600.

I changed it to: M600 Z102 as my objects were quite tall. I think the default is either 50 or 60.

Kenn

 

I've tried this, and (from what I've seen), this sets the Z height to whatever number you put in (in your case, 102), which is fine, until you print something that goes taller than that number.  I don't want it to move down when it does a color change, I want to find a way to make it always move up from where it left off (like it does now), but further than it is currently going by another 20ish mm.  I also don't really want to set it to always do the filament change at 200mm, that is way higher than it needs to go 99 percent of the time.  Ideally there's a setting somewhere to just add to how high it currently moves.

Posted : 18/11/2021 11:14 pm
Dan Rogers
(@dan-rogers)
Noble Member
Use an #ifthen macro

You could use a macro and get pretty close ... If current height in range 1, move to position 1, else if current height in range 2 move to position 2, etc...

Posted : 19/11/2021 1:32 am
Neophyl
(@neophyl)
Illustrious Member
RE: How to increase Z height when doing a color change

Unfortunately at the moment you cant use a macro within the colour change area (or the custom gcode section).  Its a known issue https://github.com/prusa3d/PrusaSlicer/issues/5782   Its supposed to be fixed in the 2.4 beta but I just tried a modified version of the raise used in the End gcode section and it doesnt like it. 

{if layer_z < max_print_height}M600 Z{z_offset+min(layer_z+60, max_print_height)}{endif} ; Move print head up 60 unless its near max height then do less

The same line when added to the end gcode section is processed without an error so I don't think it is fixed yet.  

 

Posted : 19/11/2021 2:13 am
kennd
(@kennd)
Reputable Member
RE: How to increase Z height when doing a color change

My bad. I was under the impression that you never went near the max Z. The Z<pos> is a relative value. If the nozzle is at 10mm, then M600 Z85 will raise the nozzle to 95 mm. It will not go down.  I used a large value because my objects were 100mm tall and I did colour change on layer 1 for some

For example: M600 Z85 ; Do filament change at  Z:+85 from current.

You can also change the X and Y pos if there is room to pick a different position.:

M600 X10 Y15 Z5 ; Do filament change at X:10, Y:15 and Z:+5 from current

Just keep an eye open for colour changes near the upper limit - for now.

Kenn

Quality is the Journey, not the Destination. My limited prints->

Posted : 19/11/2021 2:24 am
Mark Blasco
(@mark-blasco)
Trusted Member
Topic starter answered:
RE: How to increase Z height when doing a color change

 

Posted by: @kennd

My bad. I was under the impression that you never went near the max Z. The Z<pos> is a relative value. If the nozzle is at 10mm, then M600 Z85 will raise the nozzle to 95 mm. It will not go down.  I used a large value because my objects were 100mm tall and I did colour change on layer 1 for some

For example: M600 Z85 ; Do filament change at  Z:+85 from current.

You can also change the X and Y pos if there is room to pick a different position.:

M600 X10 Y15 Z5 ; Do filament change at X:10, Y:15 and Z:+5 from current

Just keep an eye open for colour changes near the upper limit - for now.

Kenn

OK, I'll have to give that another go.  In the past when I've put in a Z value after the color change, I was pretty certain it jumped to that exact Z position, but it's been a while since I was doing that, and maybe I was doing something wrong.  Right now I mostly do color changes fairly low (around 5mm), but sometimes the roll runs out around 100mm or so, and I don't always want the hot end raising up to 130mm for color changes just to make sure it won't go down when it changes higher up.  Thanks!

Posted : 19/11/2021 7:56 am
Mark Blasco
(@mark-blasco)
Trusted Member
Topic starter answered:
RE: How to increase Z height when doing a color change

 

Posted by: @kennd

My bad. I was under the impression that you never went near the max Z. The Z<pos> is a relative value. If the nozzle is at 10mm, then M600 Z85 will raise the nozzle to 95 mm. It will not go down.  I used a large value because my objects were 100mm tall and I did colour change on layer 1 for some

For example: M600 Z85 ; Do filament change at  Z:+85 from current.

You can also change the X and Y pos if there is room to pick a different position.:

M600 X10 Y15 Z5 ; Do filament change at X:10, Y:15 and Z:+5 from current

Just keep an eye open for colour changes near the upper limit - for now.

Kenn

OK, I'll have to give that another go.  In the past when I've put in a Z value after the color change, I was pretty certain it jumped to that exact Z position, but it's been a while since I was doing that, and maybe I was doing something wrong.  Right now I mostly do color changes fairly low (around 5mm), but sometimes the roll runs out around 100mm or so, and I don't always want the hot end raising up to 130mm for color changes just to make sure it won't go down when it changes higher up.  Thanks!

Posted : 19/11/2021 7:56 am
Share: