This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
The thing is that it wont use the right extruder, it wont get the temp from Cura. Before that a lot of other strange things and unfortunate happenings that have messed things up. I have asked and received some help from good persons here but still I don't get whats wrong. When I use the example codes that is provided it works if I just do everything manually. I can use the macros to park, switch, heat up and so forth. That works. But now I do need it to work with Cura and it just wont.
Someone that have mercy and can push me in the right direction?
I'll copy in my different files down here for you to laugh at. :)
I have a Klicky since the Touch probe was one of the things that just wouldn't work. But that works and it has nothing directly with the problem to do I guess.
Help is much appreciated!
/Johan
**************************
Start Code in Cura:
START_PRINT
EXTRUDER_TEMP={material_print_temperature,0} EXTRUDER1_TEMP={material_print_temperature,1} BED_TEMP={material_bed_temperature}
*****************************
Printer.cfg:
# The firmware should be compiled for the
# STM32F446 with a "32KiB bootloader" and a "12MHz crystal" clock reference.
# Probe is declared in probe_and_mesh.
[include mainsail.cfg]
[include macros.cfg]
[include tilt_and_mesh.cfg]
#[include input_shaper_and_resonance_tester.cfg]
[include ./klicky/klicky-variables.cfg]
[include ./klicky/klicky-macros.cfg]
[include ./klicky/klicky-z-calibration.cfg] Â Â
[include ./klicky/klicky-bed-mesh-calibrate.cfg] # bed mesh, requires klipper configuration
[include ./klicky/klicky-z-tilt-adjust.cfg]
#------------------------------------BASIC CONFIGS---------------------------------------#
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_100025001950534841313020-if00
baud: 250000
[printer]
kinematics: cartesian
max_velocity: 1500
max_accel: 2000
max_z_velocity: 100
max_z_accel: 500
[gcode_arcs]
resolution: 0.3
[idle_timeout]
gcode: TURN_OFF_HEATERS
gcode: SET_FAN_SPEED FAN=part_0 SPEED=0
gcode: SET_FAN_SPEED FAN=part_1 SPEED=0
timeout: 600
[save_variables]
filename: ~/variables.cfg
[exclude_object] # To be able to skip objects that fail during print.
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[heater_bed]
heater_pin: PA1
sensor_pin: PF3
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_Kp: 72.818
pid_Ki: 1.153
pid_Kd: 1149.607
min_temp: 0
max_temp: 130
[probe]
pin: !PC5
x_offset: -3.0
y_offset: 30.0
#z_offset: 9.450 # The distance (in mm) between the bed and the nozzle when the probe triggers. Denna justeras med Calibrate_Z varje sesion och läggs till längst ner i denna fil.
speed: 5.0
lift_speed: 50
samples: 3
samples_result: median
samples_tolerance: 0.02
samples_tolerance_retries: 3
#-------------------------------------STEPPER SETTINGS----------------------------------#
[stepper_x] # X Left (Driver 0)
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
endstop_pin: !PG6 # (Stop 0)
microsteps: 16
rotation_distance: 50
position_endstop: 0
position_max: 360
homing_speed: 150
[dual_carriage] # X Right (Driver 1)
axis: x
step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
endstop_pin: !PG9 # (Stop 1)
microsteps: 16
rotation_distance: 50
position_endstop: 360
position_max: 360
homing_speed: 150
[stepper_y] # (Driver 2)
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
microsteps: 16
rotation_distance: 40
endstop_pin: !PG10 # (Stop 2)
position_endstop: 0
position_max: 315
homing_speed: 150
[stepper_z] # Z Left (Driver 3)
step_pin: PG4
dir_pin: PC1
enable_pin: !PA0
endstop_pin: !PG11 # Separat Z, är alltså inte probe på extrudern.
microsteps: 16
rotation_distance: 8
position_endstop: 1.80 # Adjust for Z-stop position.
position_max: 390 # 400 men är -10 för att KlickyProbe kan lägga till något.
homing_retract_dist: 2.0
homing_speed: 5
homing_retract_speed: 50
position_min: -2
[stepper_z1] # Z Right (Driver 4)
step_pin: PF9
dir_pin: PF10
enable_pin: !PG2
microsteps: 16
rotation_distance: 8
[extruder] # E Left (Driver 5)
step_pin: PC13
dir_pin: PF0
enable_pin: !PF1
microsteps: 16
rotation_distance: 6.5
nozzle_diameter: 0.400
filament_diameter: 1.750
min_extrude_temp: 170
max_extrude_only_distance: 110
heater_pin: PA2 # HE0
sensor_pin: Â PF4 # T0
sensor_type: EPCOS 100K B57560G104F
# Om PT100/1000 typ K används så gäller nedan istället för raden ovan
#sensor_type: MAX31865
#sensor_pin: PF8
#spi_software_sclk_pin: PA5
#spi_software_mosi_pin: PA7
#spi_software_miso_pin: PA6
#tc_type: K
##tc_use_50Hz_filter: False
##tc_averaging_count: 1
##rtd_nominal_r: 100
##rtd_reference_r: 430
##rtd_num_of_wires: 2
##rtd_use_50Hz_filter: False
control: pid
pid_Kp: 25.615
pid_Ki: 1.691
pid_Kd: 97.015
min_temp: 0
max_temp: 350
[extruder1] # E Right (Driver 6)
step_pin: PE2
dir_pin: !PE3
enable_pin: !PD4
microsteps: 16
rotation_distance: 7.93
nozzle_diameter: 0.400
filament_diameter: 1.750
min_extrude_temp: 170
max_extrude_only_distance: 110
heater_pin: PA3
sensor_pin: PF5
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_Kp: 29.373
pid_Ki: 2.040
pid_Kd: 105.744
min_temp: 0
max_temp: 270
#----------------------------------------------FILAMENT SENSORS-------------------------------------------#
[filament_switch_sensor material_0] # Left material
switch_pin: PG12 # (Stop 4)
pause_on_runout: True
[filament_switch_sensor material_1] # Right material
switch_pin: PG13 # (Stop 5)
pause_on_runout: True
#-------------------------------------------------FAN SETTINGS---------------------------------------------#
[multi_pin part_coooling_fans]
pins: PA8, PE5 # Går inte att styra dem separat utan båda måste gå samtidigt.
[fan] # part_0] # Part cooling Left (Fan 0)
pin= multi_pin: part_coooling_fans
[heater_fan extruder] # Extruder Left (Fan 2)
pin: PD12
heater: extruder
heater_temp: 70.0
[heater_fan extruder1] # Extruder Right (Fan 3)
pin: PD13
heater: extruder1
heater_temp: 70.0
#-------------------------------------------Steppers Basic settings--------------------------------------------------#
[tmc2209 stepper_x]
uart_pin: PC4
run_current: 0.800
[tmc2209 dual_carriage]
uart_pin: PD11
run_current: 0.800
[tmc2209 stepper_y]
uart_pin: PC6
run_current: 0.800
[tmc2209 stepper_z]
uart_pin: PC7
run_current: 0.800
[tmc2209 stepper_z1]
uart_pin: PF2
run_current: 0.800
[tmc2209 extruder]
uart_pin: PE4
run_current: 0.400 # Sänkt från 800 då motorn blir väldigt varm
[tmc2209 extruder1]
uart_pin: PE1
run_current: 0.400 # Sänkt från 800 då motorn blir väldigt varm
#\# <---------------------- SAVE_CONFIG ---------------------->*
#\# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.*
#\#*
#\# [probe]*
#\# z_offset = 9.587*
#\#*
#\# [bed_mesh default]*
#\# version = 1*
#\# points =*
#\# Â Â 0.157998, 0.062998, 0.017998, 0.087998, 0.192998*
#\# Â Â 0.127998, 0.012998, -0.014502, 0.035498, 0.117998*
#\# Â Â 0.160498, 0.027998, 0.000498, 0.040498, 0.105498*
#\# Â Â 0.102998, -0.004502, -0.032002, 0.020498, 0.102998*
#\# Â Â 0.137998, 0.020498, -0.029502, 0.010498, 0.122998*
#\# x_count = 5*
#\# y_count = 5*
#\# mesh_x_pps = 2*
#\# mesh_y_pps = 2*
#\# algo = bicubic*
#\# tension = 0.2*
#\# min_x = 70.0*
#\# max_x = 350.0*
#\# min_y = 30.0*
#\# max_y = 250.0*
#\#*
#\# [stepper_z]*
#\#*
#\# [extruder]*
#\#*
#\# [extruder1]*
#\#*
#\# [heater_bed]*
**********************************
Macros.cfg:
#..................................PARK CARRIGE (called from T0 and T1 macros)....................................#
[gcode_macro PARK_EXTRUDER] # Park Left extruder
gcode:
SAVE_GCODE_STATE NAME=park0
G90
G1 X0
RESTORE_GCODE_STATE NAME=park0
[gcode_macro T0] # Select left extruder
gcode:
PARK_{printer.toolhead.extruder}
ACTIVATE_EXTRUDER EXTRUDER=extruder
SET_DUAL_CARRIAGE CARRIAGE=0
SET_GCODE_OFFSET X=0 MOVE=1 # Set a zero offset for extruder0.
SET_GCODE_OFFSET Y=0 MOVE=1
#SET_GCODE_OFFSET Z=0 MOVE=1 # Z is physically set on Carriage1.
[gcode_macro PARK_EXTRUDER1] # Park Right extruder
gcode:
SAVE_GCODE_STATE NAME=park1
G90
G1 X360
RESTORE_GCODE_STATE NAME=park1
[gcode_macro T1] # Select right extruder
gcode:
PARK_{printer.toolhead.extruder}
ACTIVATE_EXTRUDER EXTRUDER=extruder1
SET_DUAL_CARRIAGE CARRIAGE=1
SET_GCODE_OFFSET X=0 MOVE=1 # Offset for extruder1. Adjusts for X, Y, Z alignment. (Z is physically set on Carriage1)
SET_GCODE_OFFSET Y=0 MOVE=1
#SET_GCODE_OFFSET Z=0 MOVE=1
#............................................CLEANING NOZZLE............................................#
[gcode_macro CLEAN_NOZZLE]
gcode:
{% set wipe_count = 6 %}
SAVE_GCODE_STATE NAME=clean_nozzle_state
G90
G0 Z20 F15000
{% for wipe in range(wipe_count) %}
{% for coordinate in [(20, 150),(40, 150)] %}
G0 X{coordinate[0]}
{% endfor %}
{% endfor %}
G0 X220 Y150
RESTORE_GCODE_STATE NAME=clean_nozzle_state
#...........................................START_PRINT and END_PRINT.........................................#
[gcode_macro START_PRINT]
gcode:
{% set BED_T = params.BED_TEMP|default(60)|int %}
{% set EXTRUDER_T = params.EXTRUDER_TEMP|default(150)|int %}
{% set EXTRUDER1_T = params.EXTRUDER1_TEMP|default(0)|int %}
M140 S{BED_T} # Don't wait.
M104 S{EXTRUDER_T}
M109 S{EXTRUDER_T} # Set and wait for nozzle to reach printing temperature. Wait.
M104 S{EXTRUDER1_T}
M109 S{EXTRUDER1_T} # Set and wait for nozzle to reach printing temperature. Wait.
G90 # Use absolute coordinates
G28 # Home the printer
# Z_TILT_ADJUST # If it needs to be done every time.
CLEAN_NOZZLE
CALIBRATE_Z
SET_GCODE_OFFSET Z_ADJUST=0 MOVE=1 # Sätter en offset för aktuell print och gäller båda extruders.
#BED_MESH_CALIBRATE # If a new bed mesh needs to be generated every time.
BED_MESH_PROFILE LOAD=default # If you are loading an existing mesh:
G0 Z10 F3000 # Move the nozzle near the bed
[gcode_macro END_PRINT]
gcode:
G91
G1 Z10 F3000 # Raise nozzle by 10mm
M140 S0 # Turn off bed
M104 T0 S0# Turns off hotend 0.
M104 T1 S0# Turns off hotend 1.
M107 S0 # Turn off fans.
G90
G1 X0 Y300 F8000 # Present print
M84 # Disable steppers
**********************************
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/klippers/co...