Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Printer.cfg
- --
- # 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.
- # Start print macro:
- [gcode_macro START_PRINT]
- gcode:
- {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
- {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
- # Start bed heating (but don't wait for it)
- M140 S{BED_TEMP}
- # Use absolute coordinates
- G90
- # Home the printer
- G28
- # Move the nozzle near the bed
- G1 Z5 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}
- # End print macro:
- [gcode_macro END_PRINT]
- 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
- # For better compatibility with GCodes generated for Marlin, you
- # may wish to add the following section, if you have BLTouch:
- [gcode_macro G29]
- gcode:
- {% set t = params.T|default(0)|float %}
- {% 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 > 30.0 %}
- M190 S{t}
- {% endif %}
- BED_MESH_CALIBRATE
- {% if 'S' in params %}
- M140 S{params.S}
- {% endif %}
- G90
- G1 Z10 F240
- G1 X150 Y155 F6000
- RESTORE_GCODE_STATE NAME=G29_state MOVE=0
- {% endif %}
- [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: 310
- 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: 320
- 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: -15
- endstop_pin: probe:z_virtual_endstop
- #and comment the follwing lines:
- #position_endstop: 0.0
- #endstop_pin: ^PD3 #ar18
- [safe_z_home]
- home_xy_position: 104.25,147.6
- speed: 80
- z_hop: 10
- z_hop_speed: 10
- [extruder]
- step_pin: PA4 # ar26
- dir_pin: !PA6 # !ar28
- enable_pin: !PA2 # !ar24
- microsteps: 16
- rotation_distance: 7.7201944 # 16 microsteps * 200 steps/rotation / steps/mm
- #Correction formula is new_rotation_distance = old_rotation_distance * mmsExtracted / 100.0
- 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: 255
- pressure_advance = 0.14
- [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/ttyUSB0
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 3000
- max_accel_to_decel: 3000
- max_z_velocity: 5
- max_z_accel: 100
- [display]
- lcd_type: st7920
- cs_pin: PH1 #ar16
- sclk_pin: PA1 #ar23
- sid_pin: PH0 #ar17
- encoder_pins: ^PC4, ^PC6 #^ar33, ^ar31
- click_pin: ^!PC2 #^!ar35
- [mcu rpi]
- serial: /tmp/klipper_host_mcu
- [adxl345]
- cs_pin: rpi:None
- [resonance_tester]
- accel_chip: adxl345
- probe_points:
- 100, 100, 20 # an example
- #Uncomment the following lines if you have a BL-Touch
- [bltouch]
- sensor_pin: ^PD2 #^ar19
- control_pin: PB5 #ar11
- set_output_mode: 5V
- pin_move_time: 0.4
- stow_on_each_sample: False
- probe_with_touch_mode: False
- x_offset: 45.75
- y_offset: -3.40
- z_offset: 4.495 #<------- NEW PROBE OFFSET. ALWAYS ENTER AS A POSITIVE (EVEN IF DISPLAY SHOWS NEGATIVE)
- samples: 2
- sample_retract_dist: 8
- samples_result: average
- #Uncomment the following lines if you have a BL-Touch
- [bed_mesh]
- speed: 50
- horizontal_move_z: 10
- mesh_min: 46.50,0.75
- mesh_max: 253.5,295.85
- probe_count: 7,7
- move_check_distance: 5
- split_delta_z: .025
- algorithm: bicubic
- [pause_resume]
- recover_velocity: 50
- [filament_switch_sensor fil_runout_sensor]
- pause_on_runout: True
- switch_pin: PE4 #ar2
- [bed_screws]
- screw1: 33,29
- screw1_name: front left screw
- screw2: 273,29
- screw2_name: front right screw
- screw3: 273,269
- screw3_name: rear right screw
- screw4: 33,269
- screw4_name: rear right screw
- #Uncomment the following lines if you have a BL-Touch
- #[screws_tilt_adjust]
- #screw1: 0,29
- #screw1_name: front left screw
- #screw2: 228,29
- #screw2_name: front right screw
- #screw3: 228,269
- #screw3_name: rear right screw
- #screw4: 0,269
- #screw4_name: rear right screw
- #speed: 50
- #horizontal_move_z: 10
- #screw_thread: CW-M3
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [extruder]
- #*# control = pid
- #*# pid_kp = 22.168
- #*# pid_ki = 1.033
- #*# pid_kd = 118.876
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.382500, 0.246250, 0.110000, 0.028750, -0.085000, -0.133750, -0.226250
- #*# 0.305000, 0.183750, 0.062500, -0.028750, -0.117500, -0.142500, -0.235000
- #*# 0.237500, 0.128750, 0.025000, 0.001250, -0.106250, -0.130000, -0.167500
- #*# 0.213750, 0.107500, 0.047500, -0.021250, -0.067500, -0.075000, -0.083750
- #*# 0.238750, 0.165000, 0.076250, 0.055000, 0.003750, 0.038750, 0.000000
- #*# 0.213750, 0.168750, 0.092500, 0.101250, 0.095000, 0.148750, 0.161250
- #*# 0.308750, 0.260000, 0.206250, 0.202500, 0.188750, 0.251250, 0.337500
- #*# tension = 0.2
- #*# min_x = 46.5
- #*# algo = bicubic
- #*# y_count = 7
- #*# mesh_y_pps = 2
- #*# min_y = 0.75
- #*# x_count = 7
- #*# max_y = 295.83
- #*# mesh_x_pps = 2
- #*# max_x = 253.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement