Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################
- # PIMMELDRUCKER 0815
- ########################################
- ########################################
- # KINEMATIC configuration
- ########################################
- [stepper_x]
- step_pin: PC15
- dir_pin: PF0
- enable_pin: !PF1
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^!PF2
- position_endstop: 0
- position_max: 230
- homing_speed: 50
- [tmc5160 stepper_x]
- cs_pin: PC14
- sense_resistor: 0.075
- run_current: 0.85
- stealthchop_threshold: 0
- spi_software_mosi_pin: PG15
- spi_software_miso_pin: PB6
- spi_software_sclk_pin: PB3
- [stepper_y]
- step_pin: PE3
- dir_pin: PE2
- enable_pin: !PE4
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^!PC13
- position_endstop: 230
- position_max: 230
- homing_speed: 50
- [tmc5160 stepper_y]
- cs_pin: PE1
- sense_resistor: 0.075
- run_current: 0.85
- stealthchop_threshold: 0
- spi_software_mosi_pin: PG15
- spi_software_miso_pin: PB6
- spi_software_sclk_pin: PB3
- [stepper_z]
- step_pin: PB8
- dir_pin: PB7
- enable_pin: !PB9
- microsteps: 16
- rotation_distance: 2
- endstop_pin: ^PE0
- position_endstop: 0.5
- position_max: 230
- [tmc5160 stepper_z]
- cs_pin: PB5
- sense_resistor: 0.075
- run_current: 0.6
- stealthchop_threshold: 0
- spi_software_mosi_pin: PG15
- spi_software_miso_pin: PB6
- spi_software_sclk_pin: PB3
- ########################################
- # EXTRUDER & BED configuration
- ########################################
- [extruder]
- step_pin: PG12
- dir_pin: PG11
- enable_pin: !PG13
- microsteps: 16
- gear_ratio: 50:17
- rotation_distance: 23.52
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PB1 # Heat0
- sensor_pin: PC1 # T0 Header
- sensor_type: ATC Semitec 104GT-2
- control: pid
- pid_Kp: 14.669
- pid_Ki: 0.572
- pid_Kd: 94.068
- min_temp: 0
- max_temp: 250
- max_extrude_only_distance: 500
- max_extrude_only_velocity: 120
- max_extrude_only_accel: 800
- pressure_advance: 0.1
- pressure_advance_smooth_time: 0.02
- [tmc5160 extruder]
- cs_pin: PG10
- sense_resistor: 0.075
- run_current: 0.5
- stealthchop_threshold: 0
- spi_software_mosi_pin: PG15
- spi_software_miso_pin: PB6
- spi_software_sclk_pin: PB3
- [heater_bed]
- heater_pin: PA2
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC0 # BED
- control: pid
- pid_Kp: 325.10
- pid_Ki: 63.35
- pid_Kd: 417.10
- min_temp: 0
- max_temp: 130
- [heater_fan my_nozzle_fan]
- pin: PE6
- heater: extruder
- heater_temp: 45.0
- fan_speed: 1.0
- [fan]
- pin: PE5 # FAN1
- kick_start_time: 1.0
- [controller_fan my_controller_fan]
- pin: PA1
- max_power: 0.5
- #shutdown_speed:
- #cycle_time:
- #hardware_pwm:
- #kick_start_time:
- #off_below:
- #tachometer_pin:
- #tachometer_ppr:
- #tachometer_poll_interval:
- #enable_pin:
- # See the "fan" section for a description of the above parameters.
- #fan_speed: 1.0
- # The fan speed (expressed as a value from 0.0 to 1.0) that the fan
- # will be set to when a heater or stepper driver is active.
- # The default is 1.0
- #idle_timeout:
- # The amount of time (in seconds) after a stepper driver or heater
- # was active and the fan should be kept running. The default
- # is 30 seconds.
- #idle_speed:
- # The fan speed (expressed as a value from 0.0 to 1.0) that the fan
- # will be set to when a heater or stepper driver was active and
- # before the idle_timeout is reached. The default is fan_speed.
- #heater:
- #stepper:
- # Name of the config section defining the heater/stepper that this fan
- # is associated with. If a comma separated list of heater/stepper names
- # is provided here, then the fan will be enabled when any of the given
- # heaters/steppers are enabled. The default heater is "extruder", the
- # default stepper is all of them.
- ########################################
- # PRINTER configuration
- ########################################
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_4700370016504D5543363820-if00
- restart_method: command
- [printer]
- kinematics: corexy
- max_velocity: 250
- max_accel: 4500
- max_z_velocity: 10
- max_z_accel: 80
- square_corner_velocity: 5
- max_accel: 5500
- max_accel_to_decel: 2500
- [idle_timeout]
- timeout: 360
- [display_status]
- [virtual_sdcard]
- path: ~/gcode_files
- [bed_screws]
- screw1: 15,15
- screw2: 210,15
- screw3: 210,210
- screw4: 15,210
- [static_digital_output reset_display]
- pins: !PC6, !PD13
- [board_pins]
- aliases:
- # EXP1 header
- EXP1_1=PC11, EXP1_3=PC10, EXP1_5=PG8, EXP1_7=PG6, EXP1_9=<GND>,
- EXP1_2=PA15, EXP1_4=PA8, EXP1_6=PG7, EXP1_8=PG5, EXP1_10=<5V>,
- # EXP2 header
- EXP2_1=PB14, EXP2_3=PD10, EXP2_5=PH10, EXP2_7=PB10, EXP2_9=<GND>,
- EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=<NC>
- # not sure on this: Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2"
- # See the sample-lcd.cfg file for definitions of common LCD displays.
- #[display]
- #lcd_type: st7920
- #cs_pin: EXP1_4
- #sclk_pin: EXP1_5
- #sid_pin: EXP1_3
- #encoder_pins: ^EXP2_5, ^EXP2_3
- #click_pin: ^!EXP1_2
- #kill_pin: ^!EXP2_8
- #[output_pin beeper]
- #pin: EXP1_1
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- TURN_OFF_HEATERS
- CLEAR_PAUSE
- SDCARD_RESET_FILE
- G28 XY
- G0 Z210
- BASE_CANCEL_PRINT
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- gcode:
- {% set x_park = printer.toolhead.axis_minimum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_minimum.y|float - 5.0 %}
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - 2.0) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- SAVE_GCODE_STATE NAME=PAUSE_state
- BASE_PAUSE
- G91
- G1 E-{E} F2100
- G1 Z{z_safe} F900
- G90
- G0 X{x_park} Y{y_park} F6000
- G91
- [gcode_macro RESUME]
- rename_existing: BASE_RESUME
- gcode:
- G91
- G1 E{E} F2100
- G90
- RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
- BASE_RESUME
- [gcode_macro PA_OFF]
- gcode: SET_PRESSURE_ADVANCE ADVANCE=0 smooth_time=0
- [gcode_macro PA_ON]
- gcode: SET_PRESSURE_ADVANCE ADVANCE=0.08 smooth_time=0.08
- [gcode_macro LOAD_FILAMENT]
- gcode:
- {% set speed = params.SPEED|default(300) %}
- {% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
- G91
- G92 E0
- G1 E350 F{max_velocity}
- G1 E25 F{speed} #purge
- M300
- M300
- [gcode_macro UNLOAD_FILAMENT]
- gcode:
- {% set speed = params.SPEED|default(300) %}
- {% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
- G91
- G92 E0
- G1 E25 F{speed} # purge
- G1 E-420 F{max_velocity}
- M300
- M300
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement