Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [force_move]
- enable_force_move: True
- [pause_resume]
- [gcode_macro START_PRINT]
- gcode:
- G21 ;metric values
- G90 ;absolute positioning
- M82 ;set extruder to absolute mode
- M107 ;start with the fan off
- G29; Bed mesh levelling
- ; BED_MESH_PROFILE LOAD=cr10s
- G92 E0 ;Reset Extruder
- G1 Z2.0 F3000 ;Move Z Axis up
- G1 X35 Y20 Z0.28 F5000.0 ;Move to start position
- G1 X35 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
- G1 X35.3 Y200.0 Z0.28 F5000.0 ;Move to side a little
- G1 X35.3 Y20 Z0.28 F1500.0 E30 ;Draw the second line
- G92 E0 ;Reset Extruder
- G1 Z2.0 F3000 ;Move Z Axis up
- M117 Printing...
- [gcode_macro END_PRINT]
- gcode:
- M117 Ending print
- G10
- G91
- G1 Z+10
- G1 E-10 F300
- G90
- G1 X0 Y300 ;Present print
- M107 ; turn fan off
- M104 S0 ;Turn-off hotend
- M140 S0 ;Turn-off bed
- M84 X Y E ;Disable all steppers but Z
- M300 P300 S4000
- BED_MESH_CLEAR
- M117 All done!
- [gcode_macro M600]
- default_parameter_X: 50
- default_parameter_Y: 0
- default_parameter_Z: 10
- gcode:
- SAVE_GCODE_STATE NAME=M600_state
- PAUSE
- G91
- G1 E-.8 F2700
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F3000
- G91
- G1 E-50 F1000
- RESTORE_GCODE_STATE NAME=M600_state
- # Bed Levelling (Automatic)
- [gcode_macro G29]
- gcode:
- G28
- BED_MESH_CLEAR
- BED_MESH_CALIBRATE
- ; BED_MESH_PROFILE SAVE=cr10s
- M140 S0
- M117 Finished bed levelling
- ; SAVE_CONFIG
- [stepper_x]
- step_pin: P2.2
- dir_pin: !P2.6
- enable_pin: !P2.1
- step_distance: .0125
- #endstop_pin: !P1.29
- endstop_pin: tmc2209_stepper_x:virtual_endstop
- position_endstop: 0
- position_max: 300
- homing_speed: 50
- homing_retract_dist: 0 # to avoid sensor triggered after retract errors
- [tmc2209 stepper_x]
- uart_pin: P1.17
- microsteps: 16
- interpolate: True
- run_current: 0.8
- hold_current: 0.5
- stealthchop_threshold: 250
- diag_pin: P1.29
- driver_SGTHRS: 140 # tuning value for sensor-less homing, set to 250 as a start
- [stepper_y]
- step_pin: P0.19
- dir_pin: !P0.20
- enable_pin: !P2.8
- step_distance: .0125
- #endstop_pin: !P1.27
- endstop_pin: tmc2209_stepper_y:virtual_endstop
- position_endstop: 0
- position_max: 300
- homing_speed: 50
- homing_retract_dist: 0 # to avoid sensor triggered after retract errors
- [tmc2209 stepper_y]
- uart_pin: P1.15
- microsteps: 16
- run_current: 0.8
- hold_current: 0.5
- stealthchop_threshold: 250
- diag_pin: P1.27
- driver_SGTHRS: 140 # tuning value for sensor-less homing, set to 250 as a start
- [probe]
- pin: !P1.25
- x_offset: -40
- y_offset: -10
- #z_offset: 2.499
- speed: 10.0
- [stepper_z]
- step_pin: P0.22
- dir_pin: P2.11
- enable_pin: !P0.21
- step_distance: .0025
- endstop_pin: probe:z_virtual_endstop
- position_min: 0
- position_max: 400
- [tmc2209 stepper_z]
- uart_pin: P1.10
- microsteps: 16
- run_current: 0.8
- hold_current: 0.5
- stealthchop_threshold: 5
- ## TODO: driver_SGTHRS: 160 # tuning value for sensorless homing, set to 0 as a start
- [stepper_z1]
- step_pin: P0.1
- dir_pin: P0.0
- enable_pin: !P0.10
- step_distance: .0025
- [tmc2209 stepper_z1]
- uart_pin: P1.1
- microsteps: 16
- run_current: 0.8
- hold_current: 0.5
- stealthchop_threshold: 5
- ## TODO: driver_SGTHRS: 160 # tuning value for sensorless homing, set to 0 as a start
- #[homing_override]
- #set_position_z: 5
- #gcode:
- # M106 S255
- # G90
- # G0 Z20 F500
- # G28 X Y Z
- # G0 X150 Y150 Z10 F3000
- [safe_z_home]
- home_xy_position: 150,150 # Change coordinates to the center of your print bed
- speed: 50
- z_hop: 10 # Move up 10mm
- z_hop_speed: 5
- [bed_mesh]
- min_point: 45,20
- max_point: 285,285
- probe_count: 4
- # thermistor values taken from https://www.sliceengineering.com/pages/documentation
- [thermistor mosquito_thermistor]
- temperature1: 20
- resistance1: 613400
- temperature2: 190
- resistance2: 4509
- temperature3: 260
- resistance3: 1359
- ### To tune extruder step_distance:
- ## mark 120mm from extruder entrance
- ## M83
- ## G1 E100 F100
- ## ((120 - measured) / 100) * current_step_distance
- [extruder]
- step_pin: P2.13
- dir_pin: !P0.11
- enable_pin: !P2.12
- #step_distance: .010526
- ### BMG Extruder is 3:1 gear ratio:
- step_distance: 0.002445
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: P2.7
- # sensor_type: EPCOS 100K B57560G104F
- sensor_type: mosquito_thermistor
- sensor_pin: P0.24
- #control: pid
- #pid_Kp: 22.2
- #pid_Ki: 1.08
- #pid_Kd: 114
- min_temp: 0
- max_temp: 260
- [tmc2209 extruder]
- uart_pin: P1.8
- microsteps: 16
- run_current: 0.800
- hold_current: 0.500
- stealthchop_threshold: 250
- [heater_bed]
- heater_pin: P2.5
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: P0.23
- control: pid
- pid_Kp: 690.34
- pid_Ki: 111.47
- pid_Kd: 1068.83
- min_temp: 0
- max_temp: 130
- [fan]
- pin: P2.3
- [firmware_retraction]
- retract_length: 2.5
- retract_speed: 20
- unretract_speed: 10
- ######################################################################
- # Filament sensors
- ######################################################################
- [filament_switch_sensor filament]
- pause_on_runout: True
- switch_pin: P1.24
- [mcu]
- serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 3000
- max_z_velocity: 5
- max_z_accel: 100
- ######################################################################
- # 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
- ######################################################################
- [display]
- lcd_type: st7920
- cs_pin: EXP1_7
- sclk_pin: EXP1_6
- sid_pin: EXP1_8
- encoder_pins: ^EXP1_5, ^EXP1_3
- click_pin: ^!EXP1_2
- [output_pin beeper]
- pin: EXP1_1
- ########################################
- # EXP1 / EXP2 (display) pins
- ########################################
- [board_pins]
- aliases:
- # EXP1 header
- EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
- EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
- # EXP2 header
- EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
- EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
- # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bed_mesh default]
- #*# points =
- #*# -0.117500, -0.065000, 0.045000, 0.320000
- #*# -0.192500, -0.105000, 0.000000, 0.307500
- #*# -0.112500, -0.055000, 0.030000, 0.320000
- #*# 0.005000, 0.030000, 0.117500, 0.397500
- #*# x_count = 4
- #*# y_count = 4
- #*# min_x = 45.0
- #*# max_x = 285.0
- #*# min_y = 20.0
- #*# max_y = 284.99
- #*# x_offset = -40.0
- #*# y_offset = -10.0
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = lagrange
- #*# tension = 0.2
- #*#
- #*# [probe]
- #*# z_offset = 0.750
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 35.289
- #*# pid_ki = 2.768
- #*# pid_kd = 112.482
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement