Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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: ar54
- dir_pin: ar55
- enable_pin: !ar38
- rotation_distance: 40
- microsteps: 16
- full_steps_per_rotation: 200
- endstop_pin: ^ar3
- position_endstop: 0
- position_min: 0
- position_max: 317
- homing_speed: 75
- homing_retract_dist: 5
- [stepper_y]
- step_pin: ar60
- dir_pin: !ar61
- enable_pin: !ar56
- rotation_distance: 40
- microsteps: 16
- full_steps_per_rotation: 200
- endstop_pin: ^ar14
- position_endstop: -9
- position_min: -9
- position_max: 300
- homing_speed: 75
- homing_retract_dist: 5
- [stepper_z]
- step_pin: ar46
- dir_pin: !ar48
- enable_pin: !ar62
- rotation_distance: 8
- microsteps: 16
- full_steps_per_rotation: 200
- endstop_pin: probe:z_virtual_endstop
- position_min: -2
- position_max: 350.75
- [extruder]
- step_pin: ar26
- dir_pin: ar28
- enable_pin: !ar24
- rotation_distance: 22.900
- microsteps: 16
- full_steps_per_rotation: 200
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- max_extrude_only_distance: 500.0
- max_extrude_only_velocity: 70.0
- max_extrude_only_accel: 1000.0
- heater_pin: ar10
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: analog13
- #control: pid
- #pid_Kp: 22.2
- #pid_Ki: 1.08
- #pid_Kd: 114
- min_extrude_temp: 170
- min_temp: 5
- max_temp: 285
- [heater_bed]
- heater_pin: ar8
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: analog14
- #control: pid
- #pid_Kp: 690.34
- #pid_Ki: 111.47
- #pid_Kd: 1068.83
- min_temp: 5
- max_temp: 140
- [fan]
- pin: ar9
- [mcu]
- serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AK06VIJP-if00-port0
- pin_map: arduino
- [printer]
- kinematics: cartesian
- max_velocity: 200
- max_accel: 3500
- max_z_velocity: 10
- max_z_accel: 100
- [bltouch]
- sensor_pin: ^ar19
- control_pin: ar11
- x_offset: -55
- y_offset: -13
- #z_offset: 0
- speed: 4.0
- samples: 10
- sample_retract_dist: 3.0
- [safe_z_home]
- home_xy_position: 205,163
- speed: 80.0
- z_hop: 10.0
- z_hop_speed: 5.0
- [bed_mesh]
- speed: 120
- horizontal_move_z: 5
- mesh_min: 25, 15
- mesh_max: 240, 282
- probe_count: 6,6
- fade_start: 5
- fade_end: 15
- [filament_switch_sensor e0_sensor]
- switch_pin: ar2
- pause_on_runout: False
- runout_gcode:
- PAUSE_PARK
- [pause_resume]
- [respond]
- default_type: echo
- [t5uid1]
- firmware: dgus_reloaded
- machine_name: CR-10S Pro V2
- volume: 60
- brightness: 50
- y_min: 0
- z_min: 0
- z_max: 350
- [input_shaper]
- shaper_freq_x: 56.25
- shaper_freq_y: 78.26
- shaper_type: mzv
- [gcode_macro G27]
- default_parameter_X: 20
- default_parameter_Y: 290
- default_parameter_Z: 20
- gcode:
- {% if printer.toolhead.homed_axes != "xyz" %}
- {action_respond_info("Please home XYZ first")}
- {% else %}
- SAVE_GCODE_STATE NAME=G27_state
- G91
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F3000
- RESTORE_GCODE_STATE NAME=G27_state MOVE=0
- {% endif %}
- [gcode_macro G29]
- default_parameter_T: 0
- gcode:
- {% if printer.idle_timeout.state == "Printing" %}
- {action_respond_info("This command cannot be used while printing")}
- {% elif printer.toolhead.homed_axes != "xyz" %}
- {action_respond_info("Please home XYZ first")}
- {% else %}
- SAVE_GCODE_STATE NAME=G29_state
- G90
- G1 Z10 F240
- {% if T|int > 30 %}
- M190 S{T}
- {% endif %}
- BED_MESH_CALIBRATE
- {% if 'S' in params %}
- M140 S{S}
- {% endif %}
- G90
- G1 Z10 F240
- G1 X150 Y155 F6000
- RESTORE_GCODE_STATE NAME=G29_state MOVE=0
- {% endif %}
- [gcode_macro M204]
- rename_existing: M204.1
- default_parameter_F: 0.5
- gcode:
- {% if 'S' in params %}
- SET_VELOCITY_LIMIT ACCEL={S} ACCEL_TO_DECEL={ S|float * F|float }
- {% else %}
- {% if 'P' in params %}
- {% if 'T' in params %}
- {% if P|int < T|int %}
- SET_VELOCITY_LIMIT ACCEL={P} ACCEL_TO_DECEL={ P|float * F|float }
- {% else %}
- SET_VELOCITY_LIMIT ACCEL={T} ACCEL_TO_DECEL={ T|float * F|float }
- {% endif %}
- {% else %}
- SET_VELOCITY_LIMIT ACCEL={P} ACCEL_TO_DECEL={ P|float * F|float }
- {% endif %}
- {% elif 'T' in params %}
- SET_VELOCITY_LIMIT ACCEL={T} ACCEL_TO_DECEL={ T|float * F|float }
- {% endif %}
- {% endif %}
- [gcode_macro M205]
- gcode:
- {% if 'X' in params %}
- SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={X}
- {% elif 'Y' in params %}
- SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={Y}
- {% endif %}
- [gcode_macro M600]
- default_parameter_X: 20
- default_parameter_Y: 290
- default_parameter_Z: 20
- default_parameter_E: 400
- gcode:
- {% if printer.pause_resume.is_paused %}
- {action_respond_info("Already paused")}
- {% elif printer.toolhead.homed_axes != "xyz" %}
- {action_respond_info("Please home XYZ first")}
- {% else %}
- PAUSE_PARK X{X} Y{Y} Z{Z}
- M702 U{E}
- {% endif %}
- [gcode_macro M701]
- default_parameter_I: 30
- default_parameter_U: 400
- default_parameter_P: 30
- default_parameter_IF: 180
- default_parameter_UF: 360
- default_parameter_PF: 180
- gcode:
- {% if printer.idle_timeout.state == "Printing" and not printer.pause_resume.is_paused %}
- {action_respond_info("This command cannot be used while printing")}
- {% elif printer.extruder.temperature < 170 %}
- {action_respond_info("Extruder temperature too low")}
- {% else %}
- SAVE_GCODE_STATE NAME=M701_state
- M83
- {% if I|int > 0 %}
- G1 E{I} F{IF}
- {% endif %}
- G1 E{U} F{UF}
- {% if P|int > 0 %}
- G1 E{P} F{PF}
- {% endif %}
- RESTORE_GCODE_STATE NAME=M701_state MOVE=0
- {% endif %}
- [gcode_macro M702]
- default_parameter_P: 8
- default_parameter_I: 30
- default_parameter_U: 400
- default_parameter_PF: 180
- default_parameter_IF: 180
- default_parameter_UF: 360
- gcode:
- {% if printer.idle_timeout.state == "Printing" and not printer.pause_resume.is_paused %}
- {action_respond_info("This command cannot be used while printing")}
- {% elif printer.extruder.temperature < 170 %}
- {action_respond_info("Extruder temperature too low")}
- {% else %}
- SAVE_GCODE_STATE NAME=M702_state
- M83
- {% if P|int > 0 %}
- G1 E{P} F{PF}
- {% endif %}
- {% if I|int > 0 %}
- G1 E-{I} F{IF}
- {% endif %}
- G1 E-{U} F{UF}
- RESTORE_GCODE_STATE NAME=M702_state MOVE=0
- {% endif %}
- [gcode_macro M900]
- gcode:
- {% if 'K' in params %}
- {% if 'E' in params %}
- SET_PRESSURE_ADVANCE EXTRUDER={E} ADVANCE={K}
- {% else %}
- SET_PRESSURE_ADVANCE ADVANCE={K}
- {% endif %}
- {% endif %}
- [gcode_macro POWEROFF]
- gcode:
- RESPOND TYPE=command MSG=action:poweroff
- [gcode_macro NOTIFY]
- gcode:
- {% if 'MSG' in params %}
- RESPOND TYPE=command MSG="action:notification {MSG}"
- {% endif %}
- [gcode_macro LAZY_HOME]
- gcode:
- {% if printer.toolhead.homed_axes != "xyz" %}
- G28
- {% endif %}
- [gcode_macro RETRACT]
- default_parameter_F: 600
- gcode:
- {% if 'D' in params %}
- {% if printer.idle_timeout.state == "Printing" and not printer.pause_resume.is_paused %}
- {action_respond_info("This command cannot be used while printing")}
- {% elif printer.extruder.temperature < 170 %}
- {action_respond_info("Extruder temperature too low")}
- {% else %}
- SAVE_GCODE_STATE NAME=RETRACT_state
- M83
- G1 E-{D} F{F}
- RESTORE_GCODE_STATE NAME=RETRACT_state MOVE=0
- {% endif %}
- {% endif %}
- [gcode_macro PAUSE_PARK]
- default_parameter_X: 20
- default_parameter_Y: 290
- default_parameter_Z: 20
- gcode:
- {% if printer.pause_resume.is_paused %}
- {action_respond_info("Already paused")}
- {% elif printer.toolhead.homed_axes != "xyz" %}
- {action_respond_info("Please home XYZ first")}
- {% else %}
- PAUSE
- RETRACT D=3
- G27 X{X} Y{Y} Z{Z}
- {% endif %}
- [gcode_macro PRE_START]
- default_parameter_Z: 0.0
- default_parameter_WZ: 0.25
- default_parameter_WN: 0.4
- gcode:
- CLEAR_PAUSE
- M106 S0
- M220 S100
- M221 S100
- M900 K0
- DGUS_PRINT_START
- G28
- WIPE_LINE Z={WZ} N={WN}
- [gcode_macro POST_END]
- gcode:
- CLEAR_PAUSE
- DGUS_PRINT_END
- M220 S100
- M221 S100
- M900 K0
- {% if printer.extruder.temperature >= 170 %}
- M83
- G91
- G1 E-2 F2400
- G1 E-2 Z5 F2400
- {% endif %}
- M82
- G90
- G27
- M104 S0
- M140 S0
- M106 S0
- M84 X Y E
- SAVE_IF_SET
- [gcode_macro WIPE_LINE]
- default_parameter_Z: 0.25
- default_parameter_N: 0.4
- gcode:
- {% if printer.toolhead.homed_axes != "xyz" %}
- {action_respond_info("Please home XYZ first")}
- {% elif printer.extruder.temperature < 170 %}
- {action_respond_info("Extruder temperature too low")}
- {% else %}
- SAVE_GCODE_STATE NAME=WIPE_LINE_state
- M82
- G90
- G92 E0
- G1 X10 Y20 Z5 F3000
- G1 Z{Z} F3000
- G1 X10 Y150 F1500 E10.83
- G1 X{ N|float + 10.0 } F5000
- G1 Y22 F1500 E21.5
- G1 Y20 F5000
- RESTORE_GCODE_STATE NAME=WIPE_LINE_state MOVE=0
- {% endif %}
- [gcode_macro SAVE_AT_END]
- variable_save: 0
- gcode:
- SET_GCODE_VARIABLE MACRO=SAVE_AT_END VARIABLE=save VALUE=1
- [gcode_macro SAVE_IF_SET]
- gcode:
- {% if printer["gcode_macro SAVE_AT_END"].save == 1 %}
- SAVE_CONFIG
- {% endif %}
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [heater_bed]
- #*# control = pid
- #*# pid_kp = 65.869
- #*# pid_ki = 1.417
- #*# pid_kd = 765.725
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 36.550
- #*# pid_ki = 2.512
- #*# pid_kd = 132.949
- #*#
- #*# [bltouch]
- #*# z_offset = 1.599
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# -0.744750, -0.695500, -0.616500, -0.518500, -0.423250, -0.330250
- #*# -0.654250, -0.584000, -0.446500, -0.312500, -0.146750, 0.002000
- #*# -0.462500, -0.367500, -0.202500, -0.020750, 0.095000, 0.262500
- #*# -0.337500, -0.261000, -0.099750, 0.078000, 0.221500, 0.374000
- #*# -0.292250, -0.189000, 0.018250, 0.221000, 0.372250, 0.476250
- #*# -0.319750, -0.220250, -0.026000, 0.208000, 0.314000, 0.429250
- #*# tension = 0.2
- #*# min_x = 25.0
- #*# algo = lagrange
- #*# y_count = 6
- #*# mesh_y_pps = 2
- #*# min_y = 15.0
- #*# x_count = 6
- #*# max_y = 282.0
- #*# mesh_x_pps = 2
- #*# max_x = 240.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement