Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # !CR-10 V3
- # printer_size: 300x300x400
- # version: 3.4
- # This file contains common pin mappings for the 2020 Creality CR-10 V3.
- # The mainboard is a Creality 3D v2.5.2 (8-bit mainboard with
- # ATMega2560). To use this config, the firmware should be compiled for
- # the AVR atmega2560.
- # See docs/Config_Reference.md for a description of parameters.
- ###fluidd set
- [virtual_sdcard]
- path: ~/gcode_files
- [display_status]
- [pause_resume]
- [gcode_macro PAUSE]
- description: Pause the actual running print
- rename_existing: PAUSE_BASE
- # change this if you need more or less extrusion
- variable_extrude: 1.0
- gcode:
- ##### read E from pause macro #####
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- ##### set park positon for x and y #####
- # default is your max posion from your printer.cfg
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- ##### calculate save lift position #####
- {% 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 %}
- ##### end of definitions #####
- PAUSE_BASE
- G91
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G1 E-{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro RESUME]
- description: Resume the actual running print
- rename_existing: RESUME_BASE
- gcode:
- ##### read E from pause macro #####
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- #### get VELOCITY parameter if specified ####
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- ##### end of definitions #####
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G91
- G1 E{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [gcode_macro CANCEL_PRINT]
- description: Cancel the actual running print
- rename_existing: CANCEL_PRINT_BASE
- gcode:
- TURN_OFF_HEATERS
- {% if "xyz" in printer.toolhead.homed_axes %}
- G91
- G1 Z4.5 F300
- G90
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- G28 X Y
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- G1 Y{y_park} F2000
- M84
- CANCEL_PRINT_BASE
- [stepper_x]
- step_pin: PF0 #ar54
- dir_pin: PF1 #ar55
- enable_pin: !PD7 #!ar38
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PE5 #^ar3
- position_endstop: 0
- position_max: 300
- homing_speed: 50
- [stepper_y]
- step_pin: PF6 #ar60
- dir_pin: PF7 #ar61
- enable_pin: !PF2 #!ar56
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PJ1 #^ar14
- position_endstop: 0
- position_max: 300
- homing_speed: 50
- [stepper_z]
- step_pin: PL3 #ar46
- dir_pin: !PL1 #!ar48
- enable_pin: !PK0 #!ar62
- microsteps: 16
- rotation_distance: 8
- position_max: 400
- #Uncomment if you have a BL-Touch:
- position_min: -5
- endstop_pin: probe:z_virtual_endstop
- #and comment the follwing lines:
- #position_endstop: 0.0
- #endstop_pin: ^PD3 #ar18
- homing_speed: 30.0
- [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
- [bltouch]
- sensor_pin: PD2 #Default: ^PD3 OtherAttempts: PA7, PB7 (wwne), PB1, PA5, !PB2 (wwne), PD2 (wwne)
- # Pin connected to the BLTouch sensor pin. Most BLTouch devices
- # require a pullup on the sensor pin (prefix the pin name with "^").
- # This parameter must be provided.
- control_pin: PB5 #Default: PB5 OtherAttempts: PB0
- # Pin connected to the BLTouch control pin. This parameter must be
- # provided.
- pin_move_time: 0.680 #Default 0.400 OtherAttempts: 2.00
- # The amount of time (in seconds) to wait for the BLTouch pin to
- # move up or down. The default is 0.680 seconds.
- stow_on_each_sample: False
- # This determines if Klipper should command the pin to move up
- # between each probe attempt when performing a multiple probe
- # sequence. Read the directions in docs/BLTouch.md before setting
- # this to False. The default is True.
- probe_with_touch_mode: True
- # If this is set to True then Klipper will probe with the device in
- # "touch_mode". The default is False (probing in "pin_down" mode).
- pin_up_reports_not_triggered: True
- # Set if the BLTouch consistently reports the probe in a "not
- # triggered" state after a successful "pin_up" command. This should
- # be True for all genuine BLTouch devices. Read the directions in
- # docs/BLTouch.md before setting this to False. The default is True.
- pin_up_touch_mode_reports_triggered: True
- # Set if the BLTouch consistently reports a "triggered" state after
- # the commands "pin_up" followed by "touch_mode". This should be
- # True for all genuine BLTouch devices. Read the directions in
- # docs/BLTouch.md before setting this to False. The default is True.
- set_output_mode: OD
- # Request a specific sensor pin output mode on the BLTouch V3.0 (and
- # later). This setting should not be used on other types of probes.
- # Set to "5V" to request a sensor pin output of 5 Volts (only use if
- # the controller board needs 5V mode and is 5V tolerant on its input
- # signal line). Set to "OD" to request the sensor pin output use
- # open drain mode. The default is to not request an output mode.
- x_offset: 46
- # The distance (in mm) between the probe and the nozzle along the
- # x-axis. The default is 0.
- y_offset: -2
- # The distance (in mm) between the probe and the nozzle along the
- # y-axis. The default is 0.
- #z_offset: 3.72
- # The distance (in mm) between the bed and the nozzle when the probe
- # triggers. This parameter must be provided.
- speed: 5.0
- # Speed (in mm/s) of the Z axis when probing. The default is 5mm/s.
- lift_speed: 70
- # Speed (in mm/s) of the Z axis when lifting the probe between
- # samples. The default is to use the same value as the 'speed'
- # parameter.
- samples: 5
- # The number of times to probe each point. The probed z-values will
- # be averaged. The default is to probe 1 time.
- sample_retract_dist: 6.0
- # The distance (in mm) to lift the toolhead between each sample (if
- # sampling more than once). The default is 2mm.
- samples_result: average
- # The calculation method when sampling more than once - either
- # "median" or "average". The default is average.
- samples_tolerance: 0.050
- # The maximum Z distance (in mm) that a sample may differ from other
- # samples. If this tolerance is exceeded then either an error is
- # reported or the attempt is restarted (see
- # samples_tolerance_retries). The default is 0.100mm.
- samples_tolerance_retries: 4
- # The number of times to retry if a sample is found that exceeds
- # samples_tolerance. On a retry, all current samples are discarded
- # and the probe attempt is restarted. If a valid set of samples are
- # not obtained in the given number of retries then an error is
- # reported. The default is zero which causes an error to be reported
- # on the first sample that exceeds samples_tolerance.
- # Mesh Bed Leveling. One may define a [bed_mesh] config section
- # to enable move transformations that offset the z axis based
- # on a mesh generated from probed points. Note that bed_mesh
- # and bed_tilt are incompatible, both cannot be defined. When
- # using a probe to home the z-axis, it is recommended to define
- # a [homing_override] section in printer.cfg to home toward the
- # center of the print area.
- #
- # Visual Examples:
- # rectangular bed, probe_count = 3,3:
- # x---x---x (max_point)
- # |
- # x---x---x
- # |
- # (min_point) x---x---x
- #
- # round bed, round_probe_count = 5, bed_radius = r:
- # x (0,r) end
- # /
- # x---x---x
- # \
- # (-r,0) x---x---x---x---x (r,0)
- # \
- # x---x---x
- # /
- # x (0,-r) start
- #
- [bed_mesh]
- speed: 50
- # The speed (in mm/s) of non-probing moves during the calibration.
- # The default is 50.
- horizontal_move_z: 10
- # The height (in mm) that the head should be commanded to move to
- # just prior to starting a probe operation. The default is 5.
- #mesh_radius:
- # Defines the radius of the mesh to probe for round beds. Note that
- # the radius is relative to the coordinate specified by the
- # mesh_origin option. This parameter must be provided for round beds
- # and omitted for rectangular beds.
- #mesh_origin:
- # Defines the center X, Y coordinate of the mesh for round beds. This
- # coordinate is relative to the probe's location. It may be useful
- # to adjust the mesh_origin in an effort to maximize the size of the
- # mesh radius. Default is 0, 0. This parameter must be omitted for
- # rectangular beds.
- mesh_min: 52,6
- # Defines the minimum X, Y coordinate of the mesh for rectangular
- # beds. This coordinate is relative to the probe's location. This
- # will be the first point probed, nearest to the origin. This
- # parameter must be provided for rectangular beds.
- mesh_max: 260,294
- # Defines the maximum X, Y coordinate of the mesh for rectangular
- # beds. Adheres to the same principle as mesh_min, however this will
- # be the furthest point probed from the bed's origin. This parameter
- # must be provided for rectangular beds.
- probe_count: 9,11
- # For rectangular beds, this is a comma separate pair of integer
- # values X, Y defining the number of points to probe along each
- # axis. A single value is also valid, in which case that value will
- # be applied to both axes. Default is 3, 3.
- #round_probe_count: 5
- # For round beds, this integer value defines the maximum number of
- # points to probe along each axis. This value must be an odd number.
- # Default is 5.
- #fade_start: 1.0
- # The gcode z position in which to start phasing out z-adjustment
- # when fade is enabled. Default is 1.0.
- #fade_end: 0.0
- # The gcode z position in which phasing out completes. When set to a
- # value below fade_start, fade is disabled. It should be noted that
- # fade may add unwanted scaling along the z-axis of a print. If a
- # user wishes to enable fade, a value of 10.0 is recommended.
- # Default is 0.0, which disables fade.
- #fade_target:
- # The z position in which fade should converge. When this value is
- # set to a non-zero value it must be within the range of z-values in
- # the mesh. Users that wish to converge to the z homing position
- # should set this to 0. Default is the average z value of the mesh.
- #split_delta_z: .025
- # The amount of Z difference (in mm) along a move that will trigger
- # a split. Default is .025.
- #move_check_distance: 5.0
- # The distance (in mm) along a move to check for split_delta_z.
- # This is also the minimum length that a move can be split. Default
- # is 5.0.
- mesh_pps: 2, 2
- # A comma separated pair of integers X, Y defining the number of
- # points per segment to interpolate in the mesh along each axis. A
- # "segment" can be defined as the space between each probed point.
- # The user may enter a single value which will be applied to both
- # axes. Default is 2, 2.
- algorithm: bicubic
- # The interpolation algorithm to use. May be either "lagrange" or
- # "bicubic". This option will not affect 3x3 grids, which are forced
- # to use lagrange sampling. Default is lagrange.
- bicubic_tension: .2
- # When using the bicubic algorithm the tension parameter above may
- # be applied to change the amount of slope interpolated. Larger
- # numbers will increase the amount of slope, which results in more
- # curvature in the mesh. Default is .2.
- relative_reference_index: 24
- # A point index in the mesh to reference all z values to. Enabling
- # this parameter produces a mesh relative to the probed z position
- # at the provided index.
- #faulty_region_1_min:
- #faulty_region_1_max:
- # Optional points that define a faulty region. See docs/Bed_Mesh.md
- # for details on faulty regions. Up to 99 faulty regions may be added.
- # By default no faulty regions are set.
- [extruder]
- step_pin: PA4 # ar26
- dir_pin: !PA6 # !ar28
- enable_pin: !PA2 # !ar24
- microsteps: 16
- rotation_distance: 7.8548756 # 16 microsteps * 200 steps/rotation / steps/mm
- #Correction formula is new_rotation_distance = old_rotation_distance * mmsExtracted / 100.0
- #original 7.7201944
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PB4 #ar10
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PK5 #analog13
- control: pid
- pid_kp: 22.107
- pid_ki: 1.170
- pid_kd: 104.458
- min_temp: 0
- max_temp: 265
- [heater_bed]
- heater_pin: PH5 #ar8
- sensor_type: ATC Semitec 104GT-2
- sensor_pin: PK6 #analog14
- control: pid
- #Stock PID configuration taken from Marlin
- pid_Kp: 201.86
- pid_Ki: 10.67
- pid_Kd: 954.96
- min_temp: 0
- max_temp: 130
- [fan]
- pin: PH6 #ar9
- [mcu]
- serial: /dev/serial/by-id/usb_serial_1
- restart_method: command
- # [mcu rpi]
- # serial: /tmp/klipper_host_mcu
- # [adxl345]
- # cs_pin: rpi:None
- # spi_speed: 2000000
- # spi_bus: spidev2.0
- # [resonance_tester]
- # accel_chip: adxl345
- # accel_per_hz: 70
- # probe_points:
- # 150,150,10
- [input_shaper]
- #shaper_type_x = 2hump_ei
- #shaper_freq_x = 0.0
- #shaper_type_y = 2hump_ei
- #shaper_freq_y = 0.0
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 10000
- max_accel_to_decel: 10000
- max_z_velocity: 10
- max_z_accel: 1000
- square_corner_velocity: 5.0
- [include timelapse.cfg]
- [filament_switch_sensor filament_sensor]
- pause_on_runout: True
- switch_pin: PE4 #ar2
- [bed_screws]
- screw1: 33,29
- screw1_name: 1
- screw2: 273,29
- screw2_name: 2
- screw3: 273,269
- screw3_name: 3
- screw4: 33,269
- screw4_name: 4
- [gcode_macro G29] # If moving from marlin to klipper uncomment to mimic G29
- gcode:
- G28
- BED_MESH_CALIBRATE
- G1 X0 Y0 Z10 F4000
- [gcode_arcs]
- #resolution: 1.0
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bltouch]
- #*# z_offset = 3.595
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# -0.147500, -0.103000, -0.035000, -0.037500, 0.010000, 0.042500, 0.022000, 0.048500, 0.010500
- #*# -0.107500, -0.082500, 0.002500, -0.045500, 0.024500, 0.055000, 0.029000, 0.072500, 0.039500
- #*# -0.127500, -0.107000, -0.039000, -0.050000, -0.005500, 0.027500, 0.000000, 0.053000, 0.025000
- #*# -0.040000, -0.047500, 0.014000, -0.017500, 0.017500, 0.048500, 0.010500, 0.042500, 0.007500
- #*# -0.090000, -0.076000, -0.007500, -0.047500, 0.014500, 0.059500, 0.027000, 0.077000, 0.051000
- #*# -0.022000, -0.035000, 0.025500, -0.026000, 0.017500, 0.045000, 0.000000, 0.033000, -0.015500
- #*# -0.075000, -0.064500, -0.010000, -0.042500, -0.003000, 0.015500, -0.017500, 0.019000, -0.010500
- #*# -0.068500, -0.079000, -0.031000, -0.062500, -0.041000, -0.007000, -0.054000, -0.023500, -0.055000
- #*# -0.059000, -0.072500, -0.032000, -0.072500, -0.056500, -0.027000, -0.087000, -0.065500, -0.099000
- #*# -0.086500, -0.098000, -0.043500, -0.079500, -0.047500, -0.016500, -0.064500, -0.030500, -0.075000
- #*# -0.048500, -0.072000, -0.021500, -0.072000, -0.044000, -0.045500, -0.109500, -0.106000, -0.171500
- #*# tension = 0.2
- #*# min_x = 52.0
- #*# algo = bicubic
- #*# y_count = 11
- #*# mesh_y_pps = 2
- #*# min_y = 6.0
- #*# x_count = 9
- #*# max_y = 294.0
- #*# mesh_x_pps = 2
- #*# max_x = 260.0
- #*#
- #*# [input_shaper]
- #*# shaper_type_x = mzv
- #*# shaper_freq_x = 36.8
- #*# shaper_type_y = mzv
- #*# shaper_freq_y = 23.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement