#Skew_Profile

1 messages · Page 1 of 1 (latest)

upper estuary
#

Is there a certain spot I have to place SKEW_PROFILE LOAD=default_profile. Seems like not matter where I place it, I keep getting skew_correction: Load failed, unknown profile []. Profile is defintely in my printer.cfg

wet garnet
#

Sounds like maybe you've got two issues going on

  1. what's the actual name of your profile
  2. is that really what you've put in your print start macro?

You should start by looking at your config files for the skew profile you've saved, and at its name. For me, it's Calilantern, so I have this entry in my configs:

#*# [skew_correction Calilantern]
#*# xy_skew = 3.3234151768170053e-05
#*# xz_skew = 0.0
#*# yz_skew = 0.0

So in my print start, I can run SKEW_PROFILE LOAD=Calilantern

If I type that into my printer's mainsail console, it accepts it, and does not print an error (or anything else). If I chose a profile it didn't know about, it would report

skew_correction:  Load failed, unknown profile [default_profile]

So you can test this first in mainsail

#

The followup here, assuming it works in mainsail, is that your print start error doesn't match the command you posted (it doesn't use default_profile by name, it thinks it's blank), and that seems odd

upper estuary
#

so for the purpose of the post, I just used "default_profile". Sorry for the confusion as it probably doesn't help that I didn't post my exact config. So... I am setup similar... the name of my profile is Calilantern as well. When I type it into Mainsail... no response, so I assume it loaded. The error message I receive is skew_correction: Load failed, unknown profile []. The actual command I have is SKEW_PROFILE LOAD=Calilantern I have it towards the bottom of my print start, right after loading the bed Mesh profile.

#

` ## Uncomment for V2.4 (Quad gantry level AKA QGL)
SET_DISPLAY_TEXT MSG="Leveling" # Display info on display
STATUS_LEVELING # Set LEDs to leveling-mode
QUAD_GANTRY_LEVEL # Level the printer via QGL
G28 Z # Home Z again after QGL
T{initial_tool} # Load Initial Tool - MFC
AFC_PARK # HAPPY TURTLE - MFC
BED_MESH_PROFILE LOAD=default # Loads saved heightmap - moved down for MFC
SKEW_PROFILE LOAD=Calilantern

BED_MESH_PROFILE LOAD="default" # Loads saved heightmap - moved down for MFC

Uncomment for bed mesh (2 of 2 for bed mesh)

#SET_DISPLAY_TEXT MSG="Bed Mesh" # Display info on display
#STATUS_MESHING # Set LEDs to bed mesh-mode
#BED_MESH_CALIBRATE # Start the bed mesh (add ADAPTIVE=1) for adaptive bed mesh

Heat up the hotend up to target via data from slicer

SET_DISPLAY_TEXT MSG="Hotend:{target_extruder}c" # Display info on display
STATUS_HEATING # Set LEDs to heating-mode
G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed
M107 # Turn off partcooling fan
M109 S{target_extruder} # Heat the hotend to set temp

#

yikes. I think I found my mistake... Not sure if I had the variable defined corretly in the AFC.macros.cfg. Running again to see if the message still pops up.

#

Before I run, just to be sure... is this only place I define the profile?

#

[gcode_macro AFC_ENABLE_SKEW] description: Re-enable skew correction if it was previously disabled variable_skew_profile: "Calilantern" # Widely used as documented in Klipper docs. gcode: {% set gVars = printer['gcode_macro _AFC_GLOBAL_VARS'] %} {% set verbose = gVars['verbose']|int %} {% set disable_skew = gVars['disable_skew_correction']|default(false)|lower == 'true' %}

wet garnet
#

Yes, but you only need it here if you use disable_skew_correction in your AFC config - which isn't a bad idea if you've got large skew values but calculated your macro positions without skew enabled

upper estuary
#

current skews are:

#

#*# [skew_correction Calilantern] #*# xy_skew = 0.006748495791531343 #*# xz_skew = -0.0038893744443500235 #*# yz_skew = -0.001845654809675615

#

would that warrant a disable?

wet garnet
#

300 * 0.006

#

oops I was trying to type that into a calculator lol

#

So that's 1-2mm over the length of your bed. Yeah, it's not nothing

upper estuary
#

ok cool. So I shouldn't even worry about disabling and re-enabling.

wet garnet
#

It's your call. I was saying it might be good

#

All you need to do is set disable_skew_correction to true

#

But then again, if you don't have trouble, why bother

upper estuary
#

oh misread that... okay will give it a shot. Thank you for helping! By the way does the 300 come from the size of the bed?

wet garnet
#

yeah, so if you've got a position that's at 300 in X for example, that would be a correction of +2mm in Y

#

Though I'm not sure whether the skew is accounted for about the center of the bed, or about 0,0, so I hedged and say 1-2mm 🙂

upper estuary
#

gotcha. Thank you again for helping and explaining. Much appreciated!

upper estuary
#

Still having trouble with the skew error. Am I correct in changing this line in the AFC.macros.cfg from:
variable_skew_profile: "my_skew_profile" # Widely used as documented in Klipper docs
to: variable_skew_profile: "Calilantern" # Widely used as documented in Klipper docs.

wet garnet
#

Yes, that should be right

wanton voidBOT
upper estuary
#

Will do, and thank you. Might be a few days before I can run the debug. (don't get back to work until Monday)