I want to specify a procedure for homing each axis. Specially Z because there are obstacles.
I tried various configuration found with google, but i always have the error: "Source contains parsing errors: ‘/home/pi/printer_data/config/printer.cfg’ " even with configuration files that other users say that works.
[homing_override]
axes: xyz
gcode:
{% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %}
{% if home_all or 'X' in params %}
_HOME_X
{% endif %}
{% if home_all or 'Y' in params %}
_HOME_Y
{% endif %}
{% if home_all or 'Z' in params %}
M117 Homing Z...
G90
G0 X121 Y132 F6000 #move print head to safe position in the center of the bed
G28 Z
G0 Z5 F600
M117
{% endif %}
We should highlight this more.
Wanted to point towards this as well but thought it was missing only due to copying here as he tested a working config as well…
as you can see, inductive sensor needs to be positioned where the steel rectangle is, because the base is made of aluminum. And the piece of steel is higher than the print surface, so first i need to move the base down (or increse Z position) regardless of the homing axis
You honestly think that, without any explanation, someone is able to guess your requirements from this picture for a completely foreign printer?
I’m not going to suggest anything here as all these shenanigans might lead to crashing your head in the one or the other way.
Seems like safe_z_home could do the job (likely the only safe variant)
SET_KINEMATIC_POSITION Z=<value> will allow you to “fake” a homed Z-axis and you can then move it with G0 Z... F.... but be aware that the axis can now be crashed at will
homing_override with set_position_z and potentially a limitation on axes: xy should go into the same direction
You will need to figure out what is the best approach for you.
I understand this, obviously, thats why i’ve been testing different settings two days now before asking.
I read the documentation but i couldn’t find something related to coding things like " {% set home_all = ‘X’ not in params and ‘Y’ not in params and ‘Z’ not in params %} " what the reserved words and variables are, etc etc. I even do not know what languaje is used here. Even that the config file is indentation dependient.
i can use [safe_z_home] but i need to set an offset of 1.25mm from Z probe to Noozle position.
Just out of curiosity:
Your setup seems not to allow using your probe for building a bed-mesh, correct?
If so, why the hell do you fight around with it? It just
makes your printing head more bulky and heavy
adds meaningless complexity
is less precise than a simple microswitch
If all this is the case, I honestly would recommend exchanging it for a simple z-axis microswitch or any probe that can deal with the material combination.