Advertisement
Guest User

klippy.log.config0002.cfg

a guest
Feb 10th, 2022
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.06 KB | None | 0 0
  1. # 7241: Git version: 'v0.10.0-256-g6d7c0336'
  2. # 9121: Start printer at Thu Feb 10 13:50:01 2022 (1644472201.2 1478.0)
  3. # 9122: config file
  4. # 9660: Dumping gcode input 0 blocks
  5. # 14331: Git version: 'v0.10.0-256-g6d7c0336'
  6. # 14334: Start printer at Thu Feb 10 13:52:50 2022 (1644472370.2 1647.0)
  7. # 14335: config file
  8. [stepper_x]
  9. step_pin = PG13
  10. dir_pin = !PG12
  11. enable_pin = !PG14
  12. microsteps = 16
  13. rotation_distance = 40
  14. full_steps_per_rotation = 400
  15. endstop_pin = tmc2209_stepper_x:virtual_endstop
  16. position_endstop = -13
  17. position_min = -13
  18. position_max = 250
  19. homing_speed = 30
  20. homing_retract_dist = 0
  21.  
  22. [stepper_y]
  23. step_pin = PB3
  24. dir_pin = !PD3
  25. enable_pin = !PB4
  26. microsteps = 16
  27. rotation_distance = 40
  28. full_steps_per_rotation = 400
  29. endstop_pin = tmc2209_stepper_y:virtual_endstop
  30. position_endstop = -7
  31. position_min = -7
  32. position_max = 250
  33. homing_speed = 30
  34. homing_retract_dist = 0
  35.  
  36. [stepper_z]
  37. step_pin = PD7
  38. dir_pin = PD6
  39. enable_pin = !PG9
  40. microsteps = 16
  41. rotation_distance = 8
  42. full_steps_per_rotation = 400
  43. endstop_pin = probe:z_virtual_endstop
  44. position_min = -2
  45. position_max = 250
  46.  
  47. [stepper_z1]
  48. step_pin = PA8
  49. dir_pin = PC9
  50. enable_pin = !PD2
  51. microsteps = 16
  52. rotation_distance = 8
  53. full_steps_per_rotation = 400
  54.  
  55. [extruder]
  56. step_pin = PC14
  57. dir_pin = !PC13
  58. enable_pin = !PC15
  59. microsteps = 16
  60. rotation_distance = 3.433
  61. full_steps_per_rotation = 200
  62. nozzle_diameter = 0.400
  63. filament_diameter = 1.750
  64. heater_pin = PC4
  65. sensor_type = EPCOS 100K B57560G104F
  66. sensor_pin = PH4
  67. control = pid
  68. pid_kp = 22.2
  69. pid_ki = 1.08
  70. pid_kd = 114
  71. min_temp = 0
  72. max_temp = 350
  73. pressure_advance = 0.123
  74.  
  75. [safe_z_home]
  76. home_xy_position = 125,125
  77. speed = 200
  78. z_hop = 10
  79. z_hop_speed = 25
  80.  
  81. [tmc2209 stepper_x]
  82. uart_pin = PG10
  83. diag_pin = ^PB11
  84. run_current = 1.15
  85. sense_resistor = 0.150
  86. driver_sgthrs = 127
  87. stealthchop_threshold = 999999
  88.  
  89. [tmc2209 stepper_y]
  90. uart_pin = PD4
  91. diag_pin = ^PB12
  92. run_current = 1.15
  93. hold_current = 0.575
  94. sense_resistor = 0.150
  95. driver_sgthrs = 137
  96. stealthchop_threshold = 999999
  97.  
  98. [tmc2209 stepper_z]
  99. uart_pin = PD5
  100. run_current = 0.800
  101. hold_current = 0.525
  102. sense_resistor = 0.150
  103. stealthchop_threshold = 999999
  104.  
  105. [tmc2209 stepper_z1]
  106. uart_pin = PC8
  107. run_current = 0.800
  108. hold_current = 0.525
  109. sense_resistor = 0.150
  110. stealthchop_threshold = 999999
  111.  
  112. [tmc2209 extruder]
  113. uart_pin = PI8
  114. interpolate = false
  115. run_current = 0.800
  116. sense_resistor = 0.150
  117. stealthchop_threshold = 0
  118.  
  119. [mcu]
  120. serial = /dev/ttyAMA0
  121. restart_method = command
  122.  
  123. [printer]
  124. kinematics = cartesian
  125. max_velocity = 200
  126. max_accel = 1000
  127. max_z_velocity = 10
  128. max_z_accel = 1000
  129.  
  130. [virtual_sdcard]
  131. path = ~/gcode_files
  132.  
  133. [fan]
  134. pin = PA5
  135.  
  136. [heater_fan extruder_fan]
  137. pin = PA6
  138. heater = extruder
  139.  
  140. [controller_fan controller_fan]
  141. pin = PA7
  142. idle_timeout = 300
  143.  
  144. [output_pin motor_power]
  145. pin = PI11
  146. value = 1
  147.  
  148. [idle_timeout]
  149. gcode =
  150. TURN_OFF_HEATERS
  151. M84
  152. SET_PIN PIN=screen VALUE=0
  153. SET_LED LED=led BLUE=0.0 RED=0.0 GREEN=0.0
  154.  
  155. [pause_resume]
  156.  
  157. [output_pin screen]
  158. pin = PB5
  159. value = 1
  160.  
  161. [display_status]
  162.  
  163. [gcode_button lcd_button]
  164. pin = PH8
  165. press_gcode =
  166. SET_PIN PIN=screen VALUE=1
  167. SET_LED LED=led BLUE=1.0 RED=1.0 GREEN=1.0
  168.  
  169. [neopixel led]
  170. pin = PH3
  171. chain_count = 15
  172.  
  173. [neopixel knob]
  174. pin = PB1
  175. chain_count = 2
  176.  
  177. [delayed_gcode welcome]
  178. initial_duration = 0.1
  179. gcode =
  180. SET_LED LED=knob RED=0.0 BLUE=1.0 GREEN=0.0
  181. SET_LED LED=led RED=0.0 BLUE=1.0 GREEN=0.0
  182. G4 P1000
  183. SET_LED LED=led RED=1.0 BLUE=0.0 GREEN=0.0
  184. G4 P1000
  185. SET_LED LED=led RED=0.0 BLUE=0.0 GREEN=1.0
  186. G4 P1000
  187. SET_LED LED=led RED=1.0 BLUE=1.0 GREEN=1.0
  188.  
  189. [heater_bed]
  190. heater_pin = PA4
  191. sensor_type = EPCOS 100K B57560G104F
  192. sensor_pin = PH5
  193. control = watermark
  194. min_temp = 0
  195. max_temp = 250
  196.  
  197. [probe]
  198. pin = PH2
  199. x_offset = -30.1
  200. y_offset = 26.78
  201. z_offset = 0
  202. speed = 5
  203. samples = 3
  204. samples_result = median
  205. sample_retract_dist = 3.0
  206. samples_tolerance = 0.006
  207. samples_tolerance_retries = 5
  208.  
  209. [bed_mesh]
  210. speed = 120
  211. mesh_min = 10,19.78
  212. mesh_max = 219.9,230
  213. probe_count = 4,4
  214.  
  215. [screws_tilt_adjust]
  216. screw1 = 58,-7
  217. screw1_name = front left
  218. screw2 = 245,-7
  219. screw2_name = front right
  220. screw3 = 245,179
  221. screw3_name = rear right
  222. screw4 = 58,179
  223. screw4_name = rear left
  224. speed = 100
  225. screw_thread = CCW-M3
  226.  
  227. [gcode_macro PRINT_START]
  228. gcode =
  229. SET_PIN PIN=screen VALUE=1
  230. G28
  231. G0 Z1
  232. M104 S150
  233. SET_LED LED=led BLUE=0.94 RED=0.63 GREEN=0.13
  234. M117 Heating Bed
  235. M190 S{BED}
  236. M105
  237. M82
  238. G90
  239. G21
  240. M83
  241. G92 E0
  242. SET_LED LED=led BLUE=0.0 RED=1.0 GREEN=0.0
  243. M117 Heating Nozzle
  244. G0 X2 Y0 F6000
  245. G0 Z0.4
  246. M109 S{NOZZLE}
  247. M105
  248. SET_LED LED=led BLUE=1.0 RED=1.0 GREEN=1.0
  249. M117 Printing
  250. G1 X120 E30 F1200
  251. G1 Y1
  252. G1 X2 E30 F1200
  253. G92 E0
  254. G1 Z1.0 F600
  255. G92 E0
  256. G0 F9000
  257.  
  258. [gcode_macro PRINT_END]
  259. gcode =
  260. M400 ; wait for buffer to clear
  261. M104 S0 ; turn off hotend
  262. M140 S0 ; turn off bed
  263. G92 E0 ; zero the extruder
  264. G1 E-4.0 F3600 ; retract
  265. {% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
  266. {% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
  267. {% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
  268. {% if printer.toolhead.position.x < (max_x - 20) %}
  269. {% set x_safe = 20.0 %}
  270. {% else %}
  271. {% set x_safe = -20.0 %}
  272. {% endif %}
  273. {% if printer.toolhead.position.y < (max_y - 20) %}
  274. {% set y_safe = 20.0 %}
  275. {% else %}
  276. {% set y_safe = -20.0 %}
  277. {% endif %}
  278. {% if printer.toolhead.position.z < (max_z - 2) %}
  279. {% set z_safe = 2.0 %}
  280. {% else %}
  281. {% set z_safe = max_z - printer.toolhead.position.z %}
  282. {% endif %}
  283. G91 ; relative positioning
  284. G0 Z{z_safe} F3600 ; move nozzle up
  285. G0 X{x_safe} Y{y_safe} F20000 ; move nozzle to remove stringing
  286. M106 S0 ; turn off fan
  287. G90 ; absolute positioning
  288. G0 X{max_x / 2} Y{max_y} F3600 ; park nozzle at rear
  289.  
  290. [gcode_macro CANCEL_PRINT]
  291. description = Cancel the actual running print
  292. rename_existing = CANCEL_PRINT_BASE
  293. variable_park = True
  294. gcode =
  295. {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%}
  296. _TOOLHEAD_PARK_PAUSE_CANCEL
  297. {% endif %}
  298. TURN_OFF_HEATERS
  299. CANCEL_PRINT_BASE
  300.  
  301. [gcode_macro PAUSE]
  302. description = Pause the actual running print
  303. rename_existing = PAUSE_BASE
  304. gcode =
  305. PAUSE_BASE
  306. _TOOLHEAD_PARK_PAUSE_CANCEL
  307.  
  308. [gcode_macro RESUME]
  309. description = Resume the actual running print
  310. rename_existing = RESUME_BASE
  311. gcode =
  312. {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude %}
  313. {% if 'VELOCITY' in params|upper %}
  314. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  315. {%else %}
  316. {% set get_params = "" %}
  317. {% endif %}
  318. {% if printer.extruder.can_extrude|lower == 'true' %}
  319. M83
  320. G1 E{extrude} F2100
  321. {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
  322. {% else %}
  323. {action_respond_info("Extruder not hot enough")}
  324. {% endif %}
  325. RESUME_BASE {get_params}
  326.  
  327. [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL]
  328. description = Helper: park toolhead used in PAUSE and CANCEL_PRINT
  329. variable_extrude = 1.0
  330. gcode =
  331. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  332. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  333. {% set z_park_delta = 2.0 %}
  334. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  335. {% set act_z = printer.toolhead.position.z|float %}
  336. {% if act_z < (max_z - z_park_delta) %}
  337. {% set z_safe = z_park_delta %}
  338. {% else %}
  339. {% set z_safe = max_z - act_z %}
  340. {% endif %}
  341. {% if printer.extruder.can_extrude|lower == 'true' %}
  342. M83
  343. G1 E-{extrude} F2100
  344. {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
  345. {% else %}
  346. {action_respond_info("Extruder not hot enough")}
  347. {% endif %}
  348. {% if "xyz" in printer.toolhead.homed_axes %}
  349. G91
  350. G1 Z{z_safe} F900
  351. G90
  352. G1 X{x_park} Y{y_park} F6000
  353. {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %}
  354. {% else %}
  355. {action_respond_info("Printer not homed")}
  356. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement