# This file contains pin mappings for the Creality CR-10S Pro V2. To use # this config, the firmware should be compiled for the AVR atmega2560. [stepper_x] step_pin: PF0 dir_pin: !PF1 enable_pin: !PD7 rotation_distance: 32 microsteps: 16 full_steps_per_rotation: 200 endstop_pin: ^!PE5 position_endstop: 76 position_min: 0 position_max: 76 homing_speed: 50 homing_retract_dist: 5 [stepper_y] step_pin: PF6 dir_pin: !PF7 enable_pin: !PF2 rotation_distance: 32 microsteps: 16 full_steps_per_rotation: 200 endstop_pin: ^!PJ1 position_endstop: 176 position_min: 0 position_max: 176 homing_speed: 50 homing_retract_dist: 5 [stepper_z] step_pin: PL3 dir_pin: PL1 enable_pin: !PK0 rotation_distance: 8 microsteps: 16 full_steps_per_rotation: 200 endstop_pin: probe:z_virtual_endstop position_min: -2.5 position_max: 175 [extruder] step_pin: PA4 dir_pin: PA6 enable_pin: !PA2 rotation_distance: 31.5 microsteps: 16 full_steps_per_rotation: 200 nozzle_diameter: 1 filament_diameter: 1.750 max_extrude_only_distance: 500.0 max_extrude_only_velocity: 100.0 max_extrude_only_accel: 1000.0 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_extrude_temp: 170 min_temp: 5 max_temp: 275 [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: -170 max_temp: 140 [fan] pin: PH6 [mcu] serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AB0KCZYE-if00-port0 [printer] kinematics: corexy max_velocity: 200 max_accel: 5000 max_z_velocity: 10 max_z_accel: 100 [bltouch] sensor_pin: ^PD2 control_pin: PB5 stow_on_each_sample: False probe_with_touch_mode: True x_offset: 1 y_offset: -22 #z_offset: 0 speed: 4.0 samples: 2 sample_retract_dist: 3.0 [safe_z_home] home_xy_position: 38,100 speed: 80.0 z_hop: 10.0 z_hop_speed: 5.0 [bed_mesh] speed: 120 horizontal_move_z: 5 mesh_min: 5, -20 mesh_max: 68, 130 probe_count: 3,3 fade_start: 1 fade_end: 10 [filament_switch_sensor e0_sensor] switch_pin: PE4 pause_on_runout: False runout_gcode: PAUSE_PARK [virtual_sdcard] path:~/sd_card ################################################################################ # ~~~~~~~~~~~~~~~~~~~~~~~~ AUTOCREATED WITH KIAUH ~~~~~~~~~~~~~~~~~~~~~~~~~~ # ################################################################################ # Recommended macros and config entries if you use Mainsail or Fluidd! # # You can edit or delete those macros if you already defined them elsewhere! # ################################################################################ [pause_resume] [display_status] [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 gcode: ##### set defaults ##### {% set x = params.X|default(230) %} #edit to your park position {% set y = params.Y|default(230) %} #edit to your park position {% set z = params.Z|default(10)|float %} #edit to your park position {% set e = params.E|default(1) %} #edit to your retract length ##### calculate save lift position ##### {% set max_z = printer.toolhead.axis_maximum.z|float %} {% set act_z = printer.toolhead.position.z|float %} {% set lift_z = z|abs %} {% if act_z < (max_z - lift_z) %} {% set z_safe = lift_z %} {% else %} {% set z_safe = max_z - act_z %} {% endif %} ##### end of definitions ##### SAVE_GCODE_STATE NAME=PAUSE_state BASE_PAUSE G91 G1 E-{e} F2100 G1 Z{z_safe} G90 G1 X{x} Y{y} F6000 [gcode_macro RESUME] rename_existing: BASE_RESUME gcode: ##### set defaults ##### {% set e = params.E|default(1) %} #edit to your retract length G91 G1 E{e} F2100 G90 RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1 BASE_RESUME ################################################################################ ################################################################################ [gcode_macro G29] gcode: G28 BED_MESH_CALIBRATE BED_MESH_PROFILE SAVE=p1 G1 X0 Y0 Z5 F4000 ###################################################################### # Start Print and End Print ###################################################################### # Replace the slicer's custom start and end g-code scripts with # START_PRINT and END_PRINT. [gcode_macro PRINT_START] gcode: {% set BED_TEMP = params.BED_TEMP|default(60)|float %} {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(230)|float %} # Start bed heating #M140 S{BED_TEMP} # Use absolute coordinates G90 # Reset the G-Code Z offset (adjust Z offset if needed) SET_GCODE_OFFSET Z=0.0 # Home the printer # G28 G29 # Move the nozzle near the bed G1 Z25 F3000 # Move the nozzle very close to the bed # G1 Z0.15 F300 # Wait for bed to reach temperature #M190 S{BED_TEMP} # Set and wait for nozzle to reach temperature M109 S{EXTRUDER_TEMP} [gcode_macro PRINT_END] gcode: # Turn off bed, extruder, and fan M140 S0 M104 S0 M106 S0 # Move nozzle away from print while retracting G91 G1 X-2 Y-2 E-3 F300 # Raise nozzle by 10mm G1 Z10 F3000 G90 # Disable steppers M84 ###################################################################### # Beeper ###################################################################### # M300 : Play tone. Beeper support, as commonly found on usual LCD # displays (i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount # 12864 Full Graphic). This defines a custom I/O pin and a custom # GCODE macro. Usage: # M300 [P] [S] # P is the tone duration, S the tone frequency. # The frequency won't be pitch perfect. #[output_pin BEEPER_pin] #pin: ar37 # Beeper pin. This parameter must be provided. # ar37 is the default RAMPS/MKS pin. #pwm: True # A piezo beeper needs a PWM signal, a DC buzzer doesn't. #value: 0 # Silent at power on, set to 1 if active low. #shutdown_value: 0 # Disable at emergency shutdown (no PWM would be available anyway). #cycle_time: 0.001 # Default PWM frequency : 0.001 = 1ms will give a tone of 1kHz # Although not pitch perfect. [gcode_macro M300] gcode: # Use a default 1kHz tone if S is omitted. {% set S = params.S|default(1000)|int %} # Use a 10ms duration is P is omitted. {% set P = params.P|default(100)|int %} SET_PIN PIN=BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 } G4 P{P} SET_PIN PIN=BEEPER_pin VALUE=0 ###################################################################### # Filament Change ###################################################################### # M600: Filament Change. This macro will pause the printer, move the # tool to the change position, and retract the filament 50mm. Adjust # the retraction settings for your own extruder. After filament has # been changed, the print can be resumed from its previous position # with the "RESUME" gcode. [pause_resume] [gcode_macro M600] gcode: {% set X = params.X|default(50)|float %} {% set Y = params.Y|default(0)|float %} {% set Z = params.Z|default(10)|float %} 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 [respond] default_type: echo #[t5uid1] #firmware: dgus_reloaded #machine_name: CR-10S Pro V2 #volume: 60 #brightness: 50 #z_min: 0 #z_max: 350 # https://github.com/Desuuuu/klipper-macros # If you want to use these macros, follow the instructions from the repository # and uncomment the following lines. #[save_variables] #filename: ~/variables.cfg # #[delayed_gcode macros_initialize] #initial_duration: 1 #gcode: # INITIALIZE_VARIABLE VARIABLE=park_x VALUE=20 # INITIALIZE_VARIABLE VARIABLE=park_y VALUE=290 # INITIALIZE_VARIABLE VARIABLE=bowden_len VALUE=400 # #[include macros/*.cfg] #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [extruder] #*# control = pid #*# pid_kp = 29.840 #*# pid_ki = 2.487 #*# pid_kd = 89.520 #*# #*# [bed_mesh default] #*# version = 1 #*# points = #*# -0.020000, -0.005000, -0.005000 #*# -0.030000, -0.020000, -0.018750 #*# -0.042500, -0.060000, -0.060000 #*# tension = 0.2 #*# min_x = 5.0 #*# algo = lagrange #*# y_count = 3 #*# mesh_y_pps = 2 #*# min_y = -20.0 #*# x_count = 3 #*# max_y = 130.0 #*# mesh_x_pps = 2 #*# max_x = 68.0 #*# #*# [bltouch] #*# z_offset = 1.550 #*# #*# [bed_mesh p1] #*# version = 1 #*# points = #*# -0.075000, 0.033750, 0.132500 #*# -0.090000, -0.002500, 0.088750 #*# -0.106250, -0.052500, 0.053750 #*# tension = 0.2 #*# min_x = 5.0 #*# algo = lagrange #*# y_count = 3 #*# mesh_y_pps = 2 #*# min_y = -20.0 #*# x_count = 3 #*# max_y = 130.0 #*# mesh_x_pps = 2 #*# max_x = 68.0