Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [include kiauh_macros.cfg]
- #Fylingbear Ghost5
- ########################################
- # PRINTER configuration
- ########################################
- [stepper_y]
- step_pin: PE0
- dir_pin: PB9
- enable_pin: !PE1
- microsteps: 16
- rotation_distance: 40
- endstop_pin: !PA12
- position_endstop: 0
- position_max: 330
- homing_speed: 50
- [stepper_x]
- step_pin: PE3
- dir_pin: PE2
- enable_pin: !PE4
- microsteps: 16
- rotation_distance: 40
- endstop_pin: !PA15
- position_endstop: 0
- position_max: 260
- homing_speed: 50
- [stepper_z]
- step_pin: PB5
- dir_pin: PB4
- enable_pin: !PB8
- microsteps: 16
- rotation_distance: 8
- endstop_pin: !PA11
- position_endstop: 0.5
- position_max: 240
- [mcu]
- serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- restart_method = command
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 4500
- max_z_velocity: 40
- max_z_accel: 200
- square_corner_velocity: 5
- max_accel: 10000
- max_accel_to_decel: 10000
- #[mcu rpi]
- #serial: /tmp/klipper_host_mcu
- #[adxl345]
- #cs_pin: rpi:None
- #[resonance_tester]
- #accel_chip: adxl345
- #probe_points:122,105,20
- [input_shaper]
- #max_smoothing
- [idle_timeout]
- timeout: 360
- [display_status]
- [virtual_sdcard]
- path: ~/gcode_files
- [pause_resume]
- #[output_pin LED_pin]
- #pin: rpi:21
- #value: 1
- ########################################
- # EXTRUDER & BED configuration
- ########################################
- [extruder]
- step_pin: PD6
- dir_pin: !PD3
- enable_pin: !PB3
- step_distance: .00230
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PC3
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: PC1
- #control: pid
- #pid_Kp: 14.669
- #pid_Ki: 0.572
- #pid_Kd: 94.068
- min_temp: 0
- max_temp: 270
- pressure_advance = 0.06
- [fan]
- pin: PB1
- kick_start_time: 0.100
- [heater_bed]
- heater_pin: PA0
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC0
- #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: PB0
- heater: extruder
- heater_temp: 45.0
- fan_speed: 1.0
- ########################################
- # MACRO configuration
- ########################################
- [gcode_macro LEDOFF]
- gcode: SET_PIN PIN=LED_pin VALUE=0
- [gcode_macro LEDON]
- gcode: SET_PIN PIN=LED_pin VALUE=1
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- default_parameter_E: 1.7
- 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
- default_parameter_E: 1 # edit to your preferred retract length
- gcode:
- G91
- G1 E{E} F2100
- G90
- RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
- BASE_RESUME
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- TURN_OFF_HEATERS
- CLEAR_PAUSE
- SDCARD_RESET_FILE
- BASE_CANCEL_PRINT
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- default_parameter_X: 230 #edit to your park position
- default_parameter_Y: 230 #edit to your park position
- default_parameter_Z: 10 #edit to your park position
- default_parameter_E: 1 #edit to your retract length
- gcode:
- SAVE_GCODE_STATE NAME=PAUSE_state
- BASE_PAUSE
- G91
- G1 E-{E} F2100
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F6000
- [gcode_macro PA_OFF]
- default_parameter_J=0
- default_parameter_S=0.00
- gcode: SET_PRESSURE_ADVANCE ADVANCE={J} smooth_time={S}
- [gcode_macro PA_ON]
- default_parameter_P= 0.16
- default_parameter_S= 0.08
- gcode: SET_PRESSURE_ADVANCE ADVANCE={P} smooth_time={S}
- [gcode_macro RESUME]
- rename_existing: BASE_RESUME
- default_parameter_E: 1 #edit to your retract length
- gcode:
- G91
- G1 E{E} F2100
- G90
- RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
- BASE_RESUME
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- TURN_OFF_HEATERS
- CLEAR_PAUSE
- SDCARD_RESET_FILE
- BASE_CANCEL_PRINT
- [gcode_macro START_PRINT]
- default_parameter_BED_TEMP: 60
- default_parameter_EXTRUDER_TEMP: 205
- gcode:
- # Use absolute coordinates
- G90
- # Reset the G-Code Z offset (adjust Z offset if needed)
- SET_GCODE_OFFSET Z=-0.15 #-0.12
- # Home the printer
- G28
- # Load default bed mesh
- BED_MESH_PROFILE LOAD=default
- # Start bed heating
- M140 S{BED_TEMP}
- # Wait for bed to reach temperature
- M190 S{BED_TEMP}
- # Set and wait for nozzle to reach temperature
- M109 S{EXTRUDER_TEMP}
- #M104 S{material_print_temperature_layer_0} T0 ; heat nozzle
- #M190 S{material_bed_temperature_layer_0} T0 ; heat bed and wait
- #M109 S{material_print_temperature_layer_0} T0 ; wait for nozzle
- G1 X-50 Y-180 Z5 F2000
- G1 Z0.3
- #;Prime the extruder
- G92 E0
- G1 E15 F500
- G92 E0
- G1 X0.0 E10 F1000
- G1 X50 E14 F3200
- G92 E0
- [gcode_macro END_PRINT]
- gcode:
- # Turn off bed, extruder, and fan
- M140 S0
- M104 S0
- M106 S0
- # Move nozzle away from print while retracting
- G28
- G91
- G1 E-10 F300
- # Raise nozzle by 10mm
- G90
- # Disable steppers
- #M84
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 20.479
- #*# pid_ki = 0.922
- #*# pid_kd = 113.658
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 63.597
- #*# pid_ki = 4.000
- #*# pid_kd = 252.796
- #*#
- #*# [input_shaper]
- #*# shaper_type_x = 2hump_ei
- #*# shaper_freq_x = 46.0
- #*# shaper_type_y = 2hump_ei
- #*# shaper_freq_y = 46.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement