Z offset adjustment?

My first layer with carbon petg is too squished to bed. But there isn’t a Z offset adjustment available. How do I fix this

Using flow calibration and bed calibration
And default profile

1 Like

Try a smaller first layer at a slower speed

For instance first layer .16mm at 130mms then every other layer .2mm at normal print speeds

2 Likes

@Mr.Exocomp Have a look at the machine code (startcode) for the printer and copy the machine start code into an editor. You will find somewhere this entry

;===== for Textured PEI Plate , lower the nozzle as the nozzle was touching topmost of the texture when homing ==
;curr_bed_type={curr_bed_type}
{if curr_bed_type==“Textured PEI Plate”}
G29.1 Z-0.04 ; for Textured PEI Plate
{endif}

This is where the Z Offset is set to be lowered by 0.04 mm

You can amend this to

;===== for Textured PEI Plate, High Temp Plate and Wham Bam Plate ===============
;curr_bed_type={curr_bed_type}
{if curr_bed_type==“Textured PEI Plate”}
G29.1 Z-0.04 ;squish of -0.02mm for Textured PEI Plate
{elsif curr_bed_type==“High Temp Plate”}
G29.1 Z0.03 ;raise of 0.03mm for High Temp or Wham Bam Plate
{endif}

i e depending on which plate you chose, the offset will go up or down.
You can amend Z0.03 to more or less
positive number = offset up
negative = offset down (more squish)

I use this for my X1C)

13 Likes

Thank you for sharing

1 Like

@mr1952 , wouldn’t this change the squish for all filaments and not just PETG? I can print PLA just fine with the Wham Bam. Ideally, I would only change the z offset for PETG filaments

3 Likes

@mr1952 , also, I tried your Gcode, but it did not work for me. I get the following error.

Failed to generate G-code for invalid custom G-code.
machine_start_gcode Parsing error at line 277: Not a variable name
{elsif curr_bed_type==“High Temp Plate”}
^
Please check the custom G-code or use the default custom G-code.

Here is the Gcode I used:

;===== for Textured PEI Plate, High Temp Plate and Wham Bam Plate ==
;curr_bed_type={curr_bed_type}
{if curr_bed_type==“Textured PEI Plate”}
G29.1 Z-0.04 ;squish of -0.02mm for Textured PEI Plate
{elsif curr_bed_type==“High Temp Plate”}
G29.1 Z0.03 ;raise of 0.03mm for High Temp or Wham Bam Plate
{endif}

I can’t see anything wrong. You could try ensuring that the space right after elsif isn’t accidentally a shift-space. I’ve been bitten by that bug a couple of times - impossible to spot. Might be platform dependant though. I think I’ve only seen it under Linux (I just tried producing a shift-space on macOS in a few editors but they come out as perfectly normal spaces).

It’s not in the filament profile, but the latest beta of Orca Slicer does expose a z-offset in the machine configuration.

image

3 Likes

It looks like the quotes may have been turned into “smart quotes”. Try copying it from a code block instead. I’ve also include a TOTALLY UNTESTED if/else/endif block for adjusting the squish based on the material type – only use it if you understand and are willing to test it out. Any time I change the machine gcode, I watch the print head very closely, with my hand on the power switch. (not the e-stop, because it’s not a real e-stop… :sob:)

;===== for Textured PEI Plate, High Temp Plate and Wham Bam Plate ===============
;curr_bed_type={curr_bed_type}
{if curr_bed_type=="Textured PEI Plate"}
  {if filament_type[initial_no_support_extruder]=="PETG"}
    G29.1 Z-0.02 ; squish of -0.02mm for PETG on Textured PEI Plate
  {else}
    G29.1 Z-0.04 ; squish of -0.04mm for everything else on Textured PEI Plate
  {endif}
{elsif curr_bed_type=="High Temp Plate"}
  G29.1 Z0.03 ; raise of 0.03mm for High Temp or Wham Bam Plate
{endif}
2 Likes

First, thanks for the quick and detailed reply.
This Gcode did not throw an error, but it did not seem to work. I tested it a few times, and one of those times, I set the Z offset for the High temp plate to 2 mm just to check if it was doing anything. After a very normal first layer, this proved to me that the Gcode was not working as intended. :frowning:

2 Likes

For anyone who is still having the same problem. I just got my new printer and have been tinkering with it for a while. It became clearly visible that the Z position was not the problem as it worked fine every time I switched back to PLA.

It’s the consistency of PETG. You need to increase the flow ratio in the filament settings. In my case, I increased it to 1.4, but I still need to find the golden ratio.

Good luck!

2 Likes

Update: So i was not quiete happy with the results of a higher flow ratio.
The surfaces always turned out to be a little rought.

Youtube: /watch?v=_EJwJ7QPCYY
surprisingly his settings from this video fixed my issue first try. Try those out!

1 Like

This was it for me as well. Just got my A1 a few days ago & printing some smaller parts that were struggling, i have my flow rate at 1.35 now, & works perfect

If you want to try a different setting in the future because you are not satisfied with the result, add this line to the printer settings-> Machines g-code-> Start g-code last 7 lines
"
{endif}
G29.1 Z{-0.16} ; <==========ADD THIS
;========turn off light and wait extrude temperature =============
"
This moves the plate upwards. Play around with this value.
I set it to -0.16 for PETG and my flow ratio is now normal again.
I wasn’t entirely happy with the higher flow ratio.

Thanks for this! I have encountered the “smart quotes” problem and now I have this solved and working.

My start gcode now it is as follow:

;===== for Textured PEI Plate , lower the nozzle as the nozzle was touching topmost of the texture when homing/for Smooth PEI Plate / High Temp Plate raise the nozzle a bit ==
;curr_bed_type={curr_bed_type}
{if curr_bed_type==“Textured PEI Plate”}
G29.1 Z{-0.02} ; for Textured PEI Plate
{elsif curr_bed_type==“High Temp Plate”}
G29.1 Z{0.04} ; raise of 0.04 mm for Smooth PEI Plate / High Temp Plate
{endif}

I have also tested a value of 0.05 and proved it effective.

Thanks again to @mr1952 @wootsuit

1 Like

This is another option if you want custom offset settings for filament types or bed plates.

Multi Z Offset Settings for Filaments & Bed Plates

Hello. What is the cool plate called in the gcode?? “enginering plate” “texture pei plate” …???

Try curr_bed_type=Cool Plate

Hello,

For my part, with the help of ChatGPT, I added the following line in the filament settings (Filament settings > Advanced > Filament start G-code):

G92 Z-0.01 ; Adjust/increase height Z offset by 0.01mm

A negative value adds space, while a positive value lowers the nozzle and squishes the material.

I don’t know how good this is, but it works pretty well if you want to assign this parameter to a single filament.

1 Like

Yes unfortunately it does so one has to put in a few more if statements there to make sure it only happens when PETG is selected as filament.