After latest machine upgrade, I “tweaked” the printer.cfg and the Cura settings too many times to remember all the changes I made, and now, when I slice in Cura, the model appears at the middle of the bed, but when I start the print, it starts BEFORE the bed on the Y axis (X position is centered)…Is it Cura or Klipper related?
Best is when you share the gcode file and the klippy.log.
You may zip then so you can upload them into your next post.
klippy_and_gcode.zip (1.2 MB)
here they are!
I had to read more than twice: I assume instead of before you mean in front of, yes?
In the start sequence of the print is no homing command (G28).
I wonder that Klipper starts without homing.
T0 ; select Tool 0
M140 S65 ; set bed to 65^C
M105 ; get temps
M190 S65 ; set bed to 65^C and wait
M104 S210 ; set Tool 0 to 210^C
M104 T1 S175 ; set Tool 1 to 175^C
M105 ; get temps
M109 S210 ; set tool 0 to 210^C and wait
M105 ; get temps
M109 T1 S175 ; set tool 1 to 175^C and wait
M82 ;absolute extrusion mode
; up to here is there is no homing command G28
G1 Z15.0 F6000 ;Move the platform down 15mm
;Prime the extruder
G92 E0
G1 F200 E3
G92 E0 ;
G92 E0 ; btw: one is sufficient
G92 E0 ;
G1 F1500 E-6.5
;LAYER_COUNT:5
;LAYER:0
M107
G0 F3600 X99.79 Y26.241 Z0.3
G0 X96.567 Y34.674
;TYPE:SKIRT
G1 F1500 E0
; still no homing
G1 F3600 X96.58 Y33.827 E0.04226
You may insert a G28
into the slicer’s start script
I added the G28, still starts print in front of bed…
in the gcode, this lines defines where to start the print? right?
;LAYER:0
M107
G0 F3600 X99.698 Y26.264 Z0.3
G0 X96.501 Y34.525
where do they come from? Cura? Klipper, as the coordinates are correspomding to the place where it starts the print?
For a rectangular bed, the origin is always one of the corners.
With a delta type printer (usually has a circular bed), the origin is the centre.
How did you set up your slicer?
yep, Bed setup as rectangular, with origin in the front left corner.
I think that my issue comes from the change of toolhead when upgrading to dual extruder, different size, and when using sensorless homing, the toolhead is hitting hard!
Now, I am setting up optical endstops for X and Y, but can’t have them to work…they always show “Open”…
Here is as an example the part for the Y axis:
[stepper_y]
step_pin: PE11
dir_pin: PE8
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: PE12
#endstop_pin: tmc2209_stepper_y:virtual_endstop
homing_retract_dist: 0
position_endstop: 0
position_max: 345
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: PE3
interpolate: True
run_current: 0.8
hold_current: 0.5
stealthchop_threshold: 0
#diag_pin: ^PE12
#driver_SGTHRS: 100 # 255 is most sensitive value, 0 is least sensitive
I tried to change
endstop_pin: PE12
to:
endstop_pin: !PE12
then m119 returns “TRIGGERED” even if optical stop is not…
changing to:
endstop_pin: ^PE12
m119 returns “open” even when i tape it to trigger it…
Any idea?
So, after strugglingwith optical enstops, I switched back to sensorless homing, which works fine!
Now back to the start of print problem, here are some screenshot and picts to make it more explicit!
printer.cfg (7.9 KB)
Calibration_Target_A_dual_extruder_gcode.txt (370.1 KB)
So, where in Klipper, or in Cura, can I tell the printer to move to the bed “Origin” (25,60) after Homing… ?
If the bed origin corner has a distance 25/60 from the endstops, then you have to use negative values for the endstop positions:
[stepper_x]
...
position_endstop: -25
position_max: 305
...
[stepper_y]
...
position_endstop: -60
position_max: 340
...
The max positions according to the size values in the slicer.
This is what i get:
position_endstop in section 'stepper_x' must be between position_min and position_max
my stepper_x conf:
[stepper_x]
step_pin: PE9
dir_pin: PF1
enable_pin: !PF2
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_x:virtual_endstop
#endstop_pin: ^PB10
homing_retract_dist: 0
position_endstop: -25
position_max: 305
homing_speed: 50
I forgot! You have to set position_min
too with the value of position_endstop
That’s one problem sorted, now printer does’nt start before the bed!
Thanks a lot!