#Klipper config E5+
207 messages ยท Page 1 of 1 (latest)
Life alert
post your cfg
first thing I see... you do not need all these macros at the start, since they are part of mainsail.cfg
ok, I got this from @scenic maple and it just had those
# 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
mcu wrong?
forgot to reverse direction pins
okay use that
will change some more stuff, but start with this
use the one you posted or am I waiting for it to load?
yes what I posted
he updated it
I made a small edit
ok saved and restarted
Option 'gcode' in section 'gcode_macro START_PRINT' must be specified
yeah that line can go away
remove [gcode_macro START_PRINT] for now
we dont need to start you with that stuff yet, baby steps
progress ๐
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
all good. what kind?
pic of endstop locations
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
it went the worng way when homing
did you change something?
no, x went left not right
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
now it doesn't home bl-touch in middle
thats okay
wheres the noszzle though
x10y10
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
6.25mm on x from very edge of bed, and 13 on Y
okay, one more adjustment, then we can move on to the bltouch
ok
[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
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
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
and did you try that? is it centered?
I cannot recall if we need to adjust for the nozzle offset or not
does it list it for the EVA setup?
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
I dont have anything past the "pin_up trigger"
just replace your bltouch section with that
ohh wait, include your pins
that one is stripped of pins ๐
fixed it
It does a weird half probe
oh I guess thats the "stow_on_each_sample = false"
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
ok do I need to adjust my slicer
It went too far back
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
ok I'm gonna try a print
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
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...```
[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
so which one?
either or..
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
here
I keeps setting bed temp to 100
what did i say?
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?
yes
M104 S{150} T0
wheres the bed
{% 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?
temp, is it the one above what i just changed
#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 %}
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
So I just added "Min_extrude_temp:150"
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
the min extrude temp didnt work
Are you trying to start a print?
yes
Lol no not yet
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^?
voice
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
Will do
This is how the patch print came out. How can I make it better
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
I know temp was 190
where can I change z max position? I tried sending printer to 400 but it said "out of range"
[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
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
The middle 2 look alright
You need to level your bed, and run more probe points on you bed mesh then.
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
Leveled the bed like 10 times and slight improvement
bed_mesh: cannot exceed a probe_count of 6 when using lagrange interpolation. Configured Probe Count: 9, 9
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
ok I added algorithm: bicubic
is there any other way to upload parts besides sending it thru mainsail?
what do you mean?
like send it directly from slicer to printer, without using the web ui?
I know about that, its just my upload speed is really slow so its takinf forever to upload thru the wifi
yeah
right next to export g code
yes but when I save it to sd card and put it in machine where is the option to print from sd
that..... is a good question
never tried...
well time to learn something new
@hardy sentinel do you have a screen on your mercs?
nope