Facebook
From Eratic Agouti, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 136
  1. [include fluidd.cfg]
  2. [include fluidd.cfg]
  3. [include mainsail.cfg]
  4. [mcu]
  5. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  6. restart_method: command
  7.  
  8. [stepper_x]
  9. step_pin: PC2
  10. dir_pin: PB9
  11. enable_pin: !PC3
  12. microsteps: 16
  13. rotation_distance: 40
  14. endstop_pin: !PA5
  15. position_endstop: -5
  16. position_min: -5
  17. position_max: 252
  18. homing_speed: 50
  19.  
  20. [stepper_y]
  21. step_pin: PB8
  22. dir_pin: PB7
  23. enable_pin: !PC3
  24. microsteps: 16
  25. rotation_distance: 40
  26. endstop_pin: !PA6
  27. position_endstop: -5
  28. position_min: -5
  29. position_max: 232
  30. homing_speed: 50
  31.  
  32. [stepper_z]
  33. step_pin: PB6
  34. dir_pin: !PB5
  35. enable_pin: !PC3
  36. microsteps: 16
  37. rotation_distance: 8
  38. endstop_pin: probe:z_virtual_endstop
  39. position_max: 270
  40. position_min: -5
  41.  
  42. [extruder]
  43. max_extrude_only_distance: 100.0
  44. step_pin: PB4
  45. dir_pin: PB3
  46. enable_pin: !PC3
  47. microsteps: 16
  48. rotation_distance: 7.6190
  49. nozzle_diameter: 0.400
  50. filament_diameter: 1.750
  51. heater_pin: PA1
  52. sensor_type: EPCOS 100K B57560G104F
  53. sensor_pin: PC5
  54. control: pid
  55. pid_Kp: 21.761
  56. pid_Ki: 1.261
  57. pid_Kd: 93.844
  58. min_temp: 0
  59. max_temp: 300
  60. pressure_advance = 0.07
  61.  
  62. [filament_switch_sensor RunoutSensor]
  63. pause_on_runout: False
  64. runout_gcode: PAUSE
  65. insert_gcode: RESUME
  66. switch_pin: !PC15
  67.  
  68. [heater_bed]
  69. heater_pin: PA7
  70. sensor_type: EPCOS 100K B57560G104F
  71. sensor_pin: PC4
  72. control: pid
  73. pid_Kp: 68.385
  74. pid_Ki: 1.093
  75. pid_Kd: 1069.370
  76. min_temp: 0
  77. max_temp: 130
  78.  
  79.  
  80. [heater_fan hotend_fan]
  81. pin: PC0
  82. heater: extruder
  83. heater_temp: 50.0
  84.  
  85. [fan]
  86. pin: PA0
  87.  
  88. [printer]
  89. kinematics: cartesian
  90. max_velocity: 500
  91. max_accel: 3000
  92. max_accel_to_decel: 3000
  93. max_z_velocity: 5
  94. square_corner_velocity: 5.0
  95. max_z_accel: 100
  96.  
  97. [bltouch]
  98. sensor_pin: ^PC14
  99. control_pin: PC13
  100. x_offset: -32
  101. y_offset: -41
  102. z_offset: 2.900
  103. speed:10
  104. samples:1
  105. samples_result:average
  106. probe_with_touch_mode: true
  107. stow_on_each_sample: false
  108.  
  109. [safe_z_home]
  110. home_xy_position: 147,154
  111. speed: 100
  112. z_hop: 10
  113. z_hop_speed: 5
  114.  
  115. [bed_mesh]
  116. speed: 100
  117. mesh_min: 7, 7
  118. mesh_max: 220, 185
  119. algorithm: bicubic
  120. probe_count: 5,4
  121. fade_start: 1
  122. fade_end: 3
  123. fade_target: 0
  124. mesh_pps: 2,2
  125. algorithm: bicubic
  126. bicubic_tension: 0.2
  127.  
  128.  
  129. [virtual_sdcard]
  130. path: ~/gcode_files
  131.  
  132. [display_status]
  133.  
  134. [pause_resume]
  135.  
  136. [gcode_macro PAUSE]
  137. description: Pause the actual running print
  138. rename_existing: PAUSE_BASE
  139. # change this if you need more or less extrusion
  140. variable_extrude: 1.0
  141. gcode:
  142.   ##### read E from pause macro #####
  143.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  144.   ##### set park positon for x and y #####
  145.   # default is your max posion from your printer.cfg
  146.   {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  147.   {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  148.   ##### calculate save lift position #####
  149.   {% set max_z = printer.toolhead.axis_maximum.z|float %}
  150.   {% set act_z = printer.toolhead.position.z|float %}
  151.   {% if act_z < (max_z - 2.0) %}
  152.       {% set z_safe = 2.0 %}
  153.   {% else %}
  154.       {% set z_safe = max_z - act_z %}
  155.   {% endif %}
  156.   ##### end of definitions #####
  157.   PAUSE_BASE
  158.   G91
  159.   {% if printer.extruder.can_extrude|lower == 'true' %}
  160.     G1 E-{E} F2100
  161.   {% else %}
  162.     {action_respond_info("Extruder not hot enough")}
  163.   {% endif %}
  164.   {% if "xyz" in printer.toolhead.homed_axes %}
  165.     G1 Z{z_safe} F900
  166.     G90
  167.     G1 X{x_park} Y{y_park} F6000
  168.   {% else %}
  169.     {action_respond_info("Printer not homed")}
  170.   {% endif %}
  171.  
  172. [gcode_macro RESUME]
  173. description: Resume the actual running print
  174. rename_existing: RESUME_BASE
  175. gcode:
  176.   ##### read E from pause macro #####
  177.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  178.   #### get VELOCITY parameter if specified ####
  179.   {% if 'VELOCITY' in params|upper %}
  180.     {% set get_params = ('VELOCITY=' + params.VELOCITY)  %}
  181.   {%else %}
  182.     {% set get_params = "" %}
  183.   {% endif %}
  184.   ##### end of definitions #####
  185.   {% if printer.extruder.can_extrude|lower == 'true' %}
  186.     G91
  187.     G1 E{E} F2100
  188.   {% else %}
  189.     {action_respond_info("Extruder not hot enough")}
  190.   {% endif %}  
  191.   RESUME_BASE {get_params}
  192.  
  193. [gcode_macro CANCEL_PRINT]
  194. description: Cancel the actual running print
  195. rename_existing: CANCEL_PRINT_BASE
  196. gcode:
  197.   TURN_OFF_HEATERS
  198.   CANCEL_PRINT_BASE