#Klipper config E5+

207 messages ยท Page 1 of 1 (latest)

weak elk
#

Homing at 0,0 back right. Bl-touch doesn't bed mesh correctly.

cinder cosmos
#

Life alert

rare gate
#

post your cfg

weak elk
hardy sentinel
#

first thing I see... you do not need all these macros at the start, since they are part of mainsail.cfg

weak elk
weak elk
hardy sentinel
#
# This file contains pin mappings for the Creality Ender 5 Plus.
# Ender 5 Plus stock uses a Creality v2.2 board, similar to CR-20 Pro.
# To use this config, the firmware should be compiled for the AVR
# atmega2560.

# See docs/Config_Reference.md for a description of parameters.
[include mainsail.cfg]

[gcode_macro START_PRINT]

[stepper_x]
step_pin: !PF0
dir_pin: PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PE5
position_endstop: 350
position_max: 350
homing_speed: 100

[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 40
endstop_pin: ^PJ1
position_endstop: 350
position_max: 350
homing_speed: 100

[stepper_z]
step_pin: PL3
dir_pin: PL1
enable_pin: !PK0
microsteps: 16
rotation_distance: 4
endstop_pin: probe:z_virtual_endstop
position_max: 400
position_min: -20
homing_speed: 10.0

[extruder]
rotation_distance: 22.67895 #for 5mm Shaft Driven Bondtech gearsets
gear_ratio: 50:10 #for standard 10t motor
microsteps: 16
full_steps_per_rotation: 200 #1.8deg Motor

max_extrude_only_distance: 1400.0
max_extrude_only_velocity: 75.0
max_extrude_only_accel: 1500

step_pin: PA4
dir_pin: PA6
enable_pin: !PA2
#microsteps: 16
#rotation_distance: 23.53
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PB4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK5
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_temp: 0
max_temp: 260
#max_extrude_only_distance: 120


[safe_z_home]
home_xy_position: 175, 175
speed: 100
z_hop: 15
z_hop_speed: 8

[bltouch]
sensor_pin: ^PD3
control_pin: PB5
x_offset: -33.5
y_offset: -4
#z_offset: 0
speed: 9.0
pin_up_touch_mode_reports_triggered: False

[bed_mesh]
speed: 200
horizontal_move_z: 8
mesh_min: 50, 50
mesh_max: 300, 300
probe_count: 5, 5

[heater_bed]
heater_pin: PH5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK6
#control: pid
#pid_Kp: 690.34
#pid_Ki: 111.47
#pid_Kd: 1068.83
min_temp: 0
max_temp: 130

[fan]
pin: PH6

[mcu]
serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AG0KEYB8-if00-port0

[filament_switch_sensor filament_sensor]
switch_pin:PE4

[printer]
kinematics: corexy
max_velocity: 1000
max_accel: 2500
max_z_velocity: 5
max_z_accel: 100

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 1.310
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 17.405
#*# pid_ki = 1.149
#*# pid_kd = 65.923
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 65.780
#*# pid_ki = 0.699
#*# pid_kd = 1546.642
#

try that

#

wait let me edit one thing

rare gate
#

mcu wrong?

hardy sentinel
#

forgot to reverse direction pins

#

okay use that

#

will change some more stuff, but start with this

weak elk
#

use the one you posted or am I waiting for it to load?

hardy sentinel
#

yes what I posted

rare gate
#

he updated it

hardy sentinel
#

I made a small edit

weak elk
#

ok saved and restarted

rare gate
#

change homing speed just in case

#

lol

weak elk
#

Option 'gcode' in section 'gcode_macro START_PRINT' must be specified

hardy sentinel
#

hmm let me look again at what you had

#

Ohhh that was a start macro in there

rare gate
#

yeah that line can go away

hardy sentinel
#

remove [gcode_macro START_PRINT] for now

#

we dont need to start you with that stuff yet, baby steps

weak elk
#

ok

#

It homes correctly and with bl-touch in middle X not Y

hardy sentinel
#

progress ๐Ÿ™‚

hardy sentinel
#

okay so after it homes, send it to x 50 y50

#

then measure how far you have on the x and y MGN12 rails on the left side and front side

#

tell me how much exposed rail you measure

weak elk
#

110 left on x rail and 112 left on y

hardy sentinel
#

okay, give me a mminute

#

eating pizza

weak elk
#

all good. what kind?

rare gate
#

pic of endstop locations

weak elk
#

lol yall gonna hate on me

hardy sentinel
#

update xy sections to this

[stepper_x]
step_pin: !PF0
dir_pin: !PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PE5
position_endstop: 390
position_max: 390
homing_speed: 100

[stepper_y]
step_pin: PF6
dir_pin: PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 40
endstop_pin: ^PJ1
position_endstop: 390
position_max: 390
homing_speed: 100
#

then after homing move to x 10 y 10, if you have 10mm left to move in both directions then move to x0 y0

#

and look at how close you are to the left and front edge of the bed

weak elk
#

it went the worng way when homing

hardy sentinel
#

did you change something?

weak elk
#

no, x went left not right

hardy sentinel
#

ohh wait I forgot to reverse the directions on my end

#
[stepper_x]
step_pin: !PF0
dir_pin: PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PE5
position_endstop: 390
position_max: 390
homing_speed: 100

[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 40
endstop_pin: ^PJ1
position_endstop: 390
position_max: 390
homing_speed: 100
#

that should fix it

weak elk
#

now it doesn't home bl-touch in middle

hardy sentinel
#

thats okay

rare gate
#

wheres the noszzle though

hardy sentinel
#

we need to set the limits for xy first

#

then we adjust the bltouch and bed mesh

weak elk
hardy sentinel
#

is that at x10 y10?

#

or x0 y0

weak elk
#

x10y10

hardy sentinel
#

move it to x0 y0

#

moving you in small steps to avoid a crash ๐Ÿ™‚

#

but this is also how I setup any printer I work on in front of me as well

#

then measure how far the center of the nozzle is from the left edge of the bed, and front edge

weak elk
#

6.25mm on x from very edge of bed, and 13 on Y

hardy sentinel
#

okay, one more adjustment, then we can move on to the bltouch

weak elk
#

ok

hardy sentinel
#
[stepper_x]
step_pin: !PF0
dir_pin: PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PE5
position_endstop: 396
position_max: 396
homing_speed: 100

[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 40
endstop_pin: ^PJ1
position_endstop: 400
position_max: 400
homing_speed: 100
#

home it, then move the print head so the BLtouch is over the center of the bed

#

then update the X, Y values in

[safe_z_home]
home_xy_position: 175, 175
speed: 100
z_hop: 15
z_hop_speed: 8
#

with what numbers you have for your center bed position

weak elk
#

is the actual bed size of ender 5+ 350x350?

#

ah its actually 370x376mm

hardy sentinel
#

yes, but your endstops are past the bed, which is fine

#

well bed size is 377 wide by 370 deep

#

in slicer set it to 370 on x and 360 on y

weak elk
#

ok I have it as

#

[safe_z_home]
home_xy_position: 220, 177
speed: 100
z_hop: 15
z_hop_speed: 8

#

that is bl-touch dead center

hardy sentinel
#

and did you try that? is it centered?

#

I cannot recall if we need to adjust for the nozzle offset or not

weak elk
#

when homing, the bl-touch is center

#

we havent adjusted nozzle offset

weak elk
hardy sentinel
#

I tossed offsets in there

#

let me double check what it should be, I think I set it right

#
[bltouch]
x_offset: -33.5
y_offset: -5
#z_offset: 0
pin_up_touch_mode_reports_triggered = true
stow_on_each_sample = false
probe_with_touch_mode: true
pin_move_time: 0.3
speed = 20
lift_speed = 100
samples: 3
sample_retract_dist: 4
samples_tolerance: 0.03
samples_tolerance_retries: 3
samples_result: median
#

that is what I used to run

weak elk
#

I dont have anything past the "pin_up trigger"

hardy sentinel
#

just replace your bltouch section with that

#

ohh wait, include your pins

#

that one is stripped of pins ๐Ÿ™‚

weak elk
#

fixed it

#

It does a weird half probe

#

oh I guess thats the "stow_on_each_sample = false"

hardy sentinel
#

yeah, makes it faster ๐Ÿ™‚

#

you can try your bed mesh. What I do for setting up the min/max settigns on bed mesh is start with values I know will stay on the bed

#

like 50,20 for min and 330,360 max

#

then adjust the min and max as I feel needed

weak elk
#

ok do I need to adjust my slicer

weak elk
hardy sentinel
#

lower y max as much as you think you need

#

maybe 340

weak elk
#

set it at 335

#

@hardy sentinel Do I have to change origin in super slicer?

hardy sentinel
#

no

#

well shouldnt have to

#

just set your size to 370 and 360

#

actually I need to update mine, I have more print space than that on my 5 pro now

weak elk
#

ok I'm gonna try a print

hardy sentinel
#

I'll be going to bed soon, if you have any more issues or questions just post them in here

#

someone else might jump in, or I can look tomorrow

weak elk
#

ok thank you soo much!

#

I have no purge line

scenic maple
#

thats why my script has a custom start gcode macro

#

add this:

#   Use PRINT_START for the slicer starting script - PLEASE CUSTOMISE THE SCRIPT
gcode:
    M117 Homing...                 ; display message
    G28 Y0 X0 Z0
    
    #Purge Line Gcode
    G92 E0;
    G90
    G0 X5 Y5 F6000
    G0 Z0.4
    G91
    G1 X120 E30 F1200;
    G1 Y1
    G1 X-120 E30 F1200;
    G92 E0;
    G90
    
    G1 Z15.0 F600 ;move the platform down 15mm
    G1 X125 Y125 F3000
    G92 E0 ;zero the extruded length again
    G1 F9000
    M117 Printing...```
rare gate
#

[gcode_macro PRIME_NOZZLE]
gcode:
SAVE_GCODE_STATE NAME=PRIME_NOZZLE_STATE
M117 Priming
G90 ; Absolute coordinates.
M83 ; Relative extruder mode.
G92 E0
; Move to start of line.
G1 Z10 F900
G1 Y3 X3 F9000
G1 Z0.2 F900
; Print the line.
G91 ; Relative coordinates.
G1 X100 E25 F1000 ; Extrude filament 25mm (how much it retracted in PRINT_END).
G1 Y-2 F1000
G1 X-60 E9 F1000 ; Print second part of the line.
G1 E-0.5 F1000 ; Retract to avoid stringing.
G1 X0.5 E-0.5 F1000 ; Wipe back to break string.
G1 X-5.5 E0 F1000 ; Wipe forward to break string.
RESTORE_GCODE_STATE NAME=PRIME_NOZZLE_STATE

weak elk
#

so which one?

scenic maple
#

either or..

rare gate
#

Use oo na na's, paste it at the very bottom of your cfg

#

you can place this hole block at the end of your cfg, before your SAVE_CONFIG section. you will have to update bed dimensions and default temps

scenic maple
#

or just use mine lul

#

but that is a sexy config

weak elk
#

I keeps setting bed temp to 100

rare gate
#

what did i say?

weak elk
#

ah yeah.

#

#Preheat nozzle and bed
M104 S{190} T0
M140 S{BED_TEMP}

rare gate
#

the first few lines in start_print will call printer dimensions from the slicer(with a default number), the next few will call heater temps from the slicer with a default temp

#

what are you printing?

#

pla?

weak elk
#

yes

rare gate
#

M104 S{150} T0

weak elk
#

wheres the bed

rare gate
#

{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(whatever temp you're actually trying to print at)|float %}

#

bed stuff is first 4 lines that i sent

#

bed temp, por dimension?

weak elk
#

temp, is it the one above what i just changed

rare gate
#

you dont need or want to hard code the BED_TEMP

#

back in 5

weak elk
#

#Get Bed and Extruder temperature from Slicer GCode
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(180)|float %}

rare gate
#

ja ja

#

you print pla at 180??

weak elk
#

yep. I found it works the best

#

for my pla

rare gate
#

ok, get rid of Z_TILT_ADJUST

#

show me [gcode_macro START_PRINT]

weak elk
#

ok

#

[gcode_macro START_PRINT]
gcode:
#Get Printer built volume dimensions
{% set X_MAX = printer.toolhead.axis_maximum.x|default(245)|float %}
{% set Y_MAX = printer.toolhead.axis_maximum.y|default(245)|float %}
{% set Z_MAX = printer.toolhead.axis_maximum.z|default(250)|float %}

  #Get Bed and Extruder temperature from Slicer GCode
  {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
  {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(180)|float %}
  #Preheat nozzle and bed
  M104 S{180} T0                        
  M140 S{BED_TEMP}                                

  # Use absolute coordinates
  G90
  
  #Home
  G28

  #Move up to clean bed
  G1 Y{Y_MAX - 20} Z{Z_MAX/4.0} F6000                
  
  #Heat soak
  #G4 P1800000  ##30 min
  #G4 p900000  ##15 min
  #G4 p600000  ##10 min

  #Heat nozzle and bed
  M190 S{BED_TEMP}  
  BED_MESH_CALIBRATE
  M109 S{EXTRUDER_TEMP} T0

  PRIME_NOZZLE
#

When I tried setting temp doen to 160 to try it, it said it was below min extrude temp

weak elk
rare gate
#

Good catch, I forgot about that. You're just trying to preheat the nozzle at a temp below your filament will ooze at

#

You still need to change your build volume dimensions

weak elk
#

the min extrude temp didnt work

rare gate
#

Are you trying to start a print?

weak elk
#

yes

rare gate
#

Lol no not yet

weak elk
#

ahhhhhh

#

#Present print
#G1 Z{printer.toolhead.position.z + 25} F600
G1 X{122} Y{Y_MAX - 20} Z{245} F6000
M106 S0
M104 S0
M140 S0

#

this^?

rare gate
#

voice

hardy sentinel
#

Having to setup the slicer start code side is why I pulled the start macro out at first, wanted to make sure we dialed in the base settings before setting the rest up ๐Ÿ™‚

#

Also Aiden, make sure you make a backup of your current config file, so you dont have to do all this setup again if you have to reinstall ever again

weak elk
#

This is how the patch print came out. How can I make it better

scenic maple
#

What speed is that? It looks like the bottom left corner is a little close and the bottom right is a little far

#

And temp

weak elk
#

I know temp was 190

weak elk
#

where can I change z max position? I tried sending printer to 400 but it said "out of range"

hardy sentinel
#

under stepper_z

#

position_max

weak elk
#

[stepper_z]
step_pin: PL3
dir_pin: PL1
enable_pin: !PK0
microsteps: 16
rotation_distance: 4
endstop_pin: probe:z_virtual_endstop
position_max: 400
position_min: -20
homing_speed: 10.0

hardy sentinel
#

due to bed mesh and probe offset, you will loose some travel

#

dunno why, its math stuff with klipper

#

setting it to 405 might work

rare gate
weak elk
#

the thing is, they were all the same z offset

#

printed at 30mm/s

rare gate
#

You need to level your bed, and run more probe points on you bed mesh then.

hardy sentinel
#

9,9 grid for bed mesh, I had you run a low grid count to set it up and forgot to have you increase the points

weak elk
#

Leveled the bed like 10 times and slight improvement

weak elk
hardy sentinel
#

algorithm: bicubic

#

this is what I run on my 5 pro, but its flat enough that a 5x5 is fine.

[bed_mesh]
speed: 300
horizontal_move_z: 12
mesh_min: 5, 30
mesh_max: 260,245
probe_count: 5,5
fade_start: 0
fade_end: 10
algorithm: bicubic
weak elk
#

ok I added algorithm: bicubic

rare gate
weak elk
#

is there any other way to upload parts besides sending it thru mainsail?

rare gate
#

what do you mean?

#

like send it directly from slicer to printer, without using the web ui?

hardy sentinel
weak elk
#

I know about that, its just my upload speed is really slow so its takinf forever to upload thru the wifi

hardy sentinel
#

it should just be over your wifi?

#

nothing to do with internet

weak elk
#

yeah

hardy sentinel
#

purely network

#

you can save to an SD card

weak elk
#

yeah wifi, just slow thru there

#

ok and where do i access sd card print option?

rare gate
#

right next to export g code

weak elk
#

yes but when I save it to sd card and put it in machine where is the option to print from sd

rare gate
#

that..... is a good question

hardy sentinel
#

never tried...

weak elk
#

well time to learn something new

rare gate
#

@hardy sentinel do you have a screen on your mercs?

hardy sentinel
#

nope