Advertisement
Guest User

Untitled

a guest
Apr 12th, 2021
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.95 KB | None | 0 0
  1. # This file contains pin mappings for the Creality CR-10S Pro V2. To use
  2. # this config, the firmware should be compiled for the AVR atmega2560.
  3.  
  4. [stepper_x]
  5. step_pin: ar54
  6. dir_pin: ar55
  7. enable_pin: !ar38
  8. rotation_distance: 40
  9. microsteps: 16
  10. full_steps_per_rotation: 200
  11. endstop_pin: ^ar3
  12. position_endstop: 0
  13. position_min: 0
  14. position_max: 317
  15. homing_speed: 75
  16. homing_retract_dist: 5
  17.  
  18. [stepper_y]
  19. step_pin: ar60
  20. dir_pin: !ar61
  21. enable_pin: !ar56
  22. rotation_distance: 40
  23. microsteps: 16
  24. full_steps_per_rotation: 200
  25. endstop_pin: ^ar14
  26. position_endstop: -9
  27. position_min: -9
  28. position_max: 300
  29. homing_speed: 75
  30. homing_retract_dist: 5
  31.  
  32. [stepper_z]
  33. step_pin: ar46
  34. dir_pin: !ar48
  35. enable_pin: !ar62
  36. rotation_distance: 8
  37. microsteps: 16
  38. full_steps_per_rotation: 200
  39. endstop_pin: probe:z_virtual_endstop
  40. position_min: -2
  41. position_max: 350.75
  42.  
  43. [extruder]
  44. step_pin: ar26
  45. dir_pin: ar28
  46. enable_pin: !ar24
  47. rotation_distance: 22.900
  48. microsteps: 16
  49. full_steps_per_rotation: 200
  50. nozzle_diameter: 0.400
  51. filament_diameter: 1.750
  52. max_extrude_only_distance: 500.0
  53. max_extrude_only_velocity: 70.0
  54. max_extrude_only_accel: 1000.0
  55. heater_pin: ar10
  56. sensor_type: ATC Semitec 104GT-2
  57. sensor_pin: analog13
  58. #control: pid
  59. #pid_Kp: 22.2
  60. #pid_Ki: 1.08
  61. #pid_Kd: 114
  62. min_extrude_temp: 170
  63. min_temp: 5
  64. max_temp: 285
  65.  
  66.  
  67. [heater_bed]
  68. heater_pin: ar8
  69. sensor_type: EPCOS 100K B57560G104F
  70. sensor_pin: analog14
  71. #control: pid
  72. #pid_Kp: 690.34
  73. #pid_Ki: 111.47
  74. #pid_Kd: 1068.83
  75. min_temp: 5
  76. max_temp: 140
  77.  
  78. [fan]
  79. pin: ar9
  80.  
  81. [mcu]
  82. serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AK06VIJP-if00-port0
  83. pin_map: arduino
  84.  
  85. [printer]
  86. kinematics: cartesian
  87. max_velocity: 200
  88. max_accel: 3500
  89. max_z_velocity: 10
  90. max_z_accel: 100
  91.  
  92. [bltouch]
  93. sensor_pin: ^ar19
  94. control_pin: ar11
  95. x_offset: -55
  96. y_offset: -13
  97. #z_offset: 0
  98. speed: 4.0
  99. samples: 10
  100. sample_retract_dist: 3.0
  101.  
  102. [safe_z_home]
  103. home_xy_position: 205,163
  104. speed: 80.0
  105. z_hop: 10.0
  106. z_hop_speed: 5.0
  107.  
  108. [bed_mesh]
  109. speed: 120
  110. horizontal_move_z: 5
  111. mesh_min: 25, 15
  112. mesh_max: 240, 282
  113. probe_count: 6,6
  114. fade_start: 5
  115. fade_end: 15
  116.  
  117. [filament_switch_sensor e0_sensor]
  118. switch_pin: ar2
  119. pause_on_runout: False
  120. runout_gcode:
  121. PAUSE_PARK
  122.  
  123. [pause_resume]
  124.  
  125. [respond]
  126. default_type: echo
  127.  
  128. [t5uid1]
  129. firmware: dgus_reloaded
  130. machine_name: CR-10S Pro V2
  131. volume: 60
  132. brightness: 50
  133. y_min: 0
  134. z_min: 0
  135. z_max: 350
  136.  
  137. [input_shaper]
  138. shaper_freq_x: 56.25
  139. shaper_freq_y: 78.26
  140. shaper_type: mzv
  141.  
  142. [gcode_macro G27]
  143. default_parameter_X: 20
  144. default_parameter_Y: 290
  145. default_parameter_Z: 20
  146. gcode:
  147. {% if printer.toolhead.homed_axes != "xyz" %}
  148. {action_respond_info("Please home XYZ first")}
  149. {% else %}
  150. SAVE_GCODE_STATE NAME=G27_state
  151. G91
  152. G1 Z{Z}
  153. G90
  154. G1 X{X} Y{Y} F3000
  155. RESTORE_GCODE_STATE NAME=G27_state MOVE=0
  156. {% endif %}
  157.  
  158. [gcode_macro G29]
  159. default_parameter_T: 0
  160. gcode:
  161. {% if printer.idle_timeout.state == "Printing" %}
  162. {action_respond_info("This command cannot be used while printing")}
  163. {% elif printer.toolhead.homed_axes != "xyz" %}
  164. {action_respond_info("Please home XYZ first")}
  165. {% else %}
  166. SAVE_GCODE_STATE NAME=G29_state
  167. G90
  168. G1 Z10 F240
  169. {% if T|int > 30 %}
  170. M190 S{T}
  171. {% endif %}
  172. BED_MESH_CALIBRATE
  173. {% if 'S' in params %}
  174. M140 S{S}
  175. {% endif %}
  176. G90
  177. G1 Z10 F240
  178. G1 X150 Y155 F6000
  179. RESTORE_GCODE_STATE NAME=G29_state MOVE=0
  180. {% endif %}
  181.  
  182. [gcode_macro M204]
  183. rename_existing: M204.1
  184. default_parameter_F: 0.5
  185. gcode:
  186. {% if 'S' in params %}
  187. SET_VELOCITY_LIMIT ACCEL={S} ACCEL_TO_DECEL={ S|float * F|float }
  188. {% else %}
  189. {% if 'P' in params %}
  190. {% if 'T' in params %}
  191. {% if P|int < T|int %}
  192. SET_VELOCITY_LIMIT ACCEL={P} ACCEL_TO_DECEL={ P|float * F|float }
  193. {% else %}
  194. SET_VELOCITY_LIMIT ACCEL={T} ACCEL_TO_DECEL={ T|float * F|float }
  195. {% endif %}
  196. {% else %}
  197. SET_VELOCITY_LIMIT ACCEL={P} ACCEL_TO_DECEL={ P|float * F|float }
  198. {% endif %}
  199. {% elif 'T' in params %}
  200. SET_VELOCITY_LIMIT ACCEL={T} ACCEL_TO_DECEL={ T|float * F|float }
  201. {% endif %}
  202. {% endif %}
  203.  
  204. [gcode_macro M205]
  205. gcode:
  206. {% if 'X' in params %}
  207. SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={X}
  208. {% elif 'Y' in params %}
  209. SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={Y}
  210. {% endif %}
  211.  
  212. [gcode_macro M600]
  213. default_parameter_X: 20
  214. default_parameter_Y: 290
  215. default_parameter_Z: 20
  216. default_parameter_E: 400
  217. gcode:
  218. {% if printer.pause_resume.is_paused %}
  219. {action_respond_info("Already paused")}
  220. {% elif printer.toolhead.homed_axes != "xyz" %}
  221. {action_respond_info("Please home XYZ first")}
  222. {% else %}
  223. PAUSE_PARK X{X} Y{Y} Z{Z}
  224. M702 U{E}
  225. {% endif %}
  226.  
  227. [gcode_macro M701]
  228. default_parameter_I: 30
  229. default_parameter_U: 400
  230. default_parameter_P: 30
  231. default_parameter_IF: 180
  232. default_parameter_UF: 360
  233. default_parameter_PF: 180
  234. gcode:
  235. {% if printer.idle_timeout.state == "Printing" and not printer.pause_resume.is_paused %}
  236. {action_respond_info("This command cannot be used while printing")}
  237. {% elif printer.extruder.temperature < 170 %}
  238. {action_respond_info("Extruder temperature too low")}
  239. {% else %}
  240. SAVE_GCODE_STATE NAME=M701_state
  241. M83
  242. {% if I|int > 0 %}
  243. G1 E{I} F{IF}
  244. {% endif %}
  245. G1 E{U} F{UF}
  246. {% if P|int > 0 %}
  247. G1 E{P} F{PF}
  248. {% endif %}
  249. RESTORE_GCODE_STATE NAME=M701_state MOVE=0
  250. {% endif %}
  251.  
  252. [gcode_macro M702]
  253. default_parameter_P: 8
  254. default_parameter_I: 30
  255. default_parameter_U: 400
  256. default_parameter_PF: 180
  257. default_parameter_IF: 180
  258. default_parameter_UF: 360
  259. gcode:
  260. {% if printer.idle_timeout.state == "Printing" and not printer.pause_resume.is_paused %}
  261. {action_respond_info("This command cannot be used while printing")}
  262. {% elif printer.extruder.temperature < 170 %}
  263. {action_respond_info("Extruder temperature too low")}
  264. {% else %}
  265. SAVE_GCODE_STATE NAME=M702_state
  266. M83
  267. {% if P|int > 0 %}
  268. G1 E{P} F{PF}
  269. {% endif %}
  270. {% if I|int > 0 %}
  271. G1 E-{I} F{IF}
  272. {% endif %}
  273. G1 E-{U} F{UF}
  274. RESTORE_GCODE_STATE NAME=M702_state MOVE=0
  275. {% endif %}
  276.  
  277. [gcode_macro M900]
  278. gcode:
  279. {% if 'K' in params %}
  280. {% if 'E' in params %}
  281. SET_PRESSURE_ADVANCE EXTRUDER={E} ADVANCE={K}
  282. {% else %}
  283. SET_PRESSURE_ADVANCE ADVANCE={K}
  284. {% endif %}
  285. {% endif %}
  286.  
  287. [gcode_macro POWEROFF]
  288. gcode:
  289. RESPOND TYPE=command MSG=action:poweroff
  290.  
  291. [gcode_macro NOTIFY]
  292. gcode:
  293. {% if 'MSG' in params %}
  294. RESPOND TYPE=command MSG="action:notification {MSG}"
  295. {% endif %}
  296.  
  297. [gcode_macro LAZY_HOME]
  298. gcode:
  299. {% if printer.toolhead.homed_axes != "xyz" %}
  300. G28
  301. {% endif %}
  302.  
  303. [gcode_macro RETRACT]
  304. default_parameter_F: 600
  305. gcode:
  306. {% if 'D' in params %}
  307. {% if printer.idle_timeout.state == "Printing" and not printer.pause_resume.is_paused %}
  308. {action_respond_info("This command cannot be used while printing")}
  309. {% elif printer.extruder.temperature < 170 %}
  310. {action_respond_info("Extruder temperature too low")}
  311. {% else %}
  312. SAVE_GCODE_STATE NAME=RETRACT_state
  313. M83
  314. G1 E-{D} F{F}
  315. RESTORE_GCODE_STATE NAME=RETRACT_state MOVE=0
  316. {% endif %}
  317. {% endif %}
  318.  
  319. [gcode_macro PAUSE_PARK]
  320. default_parameter_X: 20
  321. default_parameter_Y: 290
  322. default_parameter_Z: 20
  323. gcode:
  324. {% if printer.pause_resume.is_paused %}
  325. {action_respond_info("Already paused")}
  326. {% elif printer.toolhead.homed_axes != "xyz" %}
  327. {action_respond_info("Please home XYZ first")}
  328. {% else %}
  329. PAUSE
  330. RETRACT D=3
  331. G27 X{X} Y{Y} Z{Z}
  332. {% endif %}
  333.  
  334. [gcode_macro PRE_START]
  335. default_parameter_Z: 0.0
  336. default_parameter_WZ: 0.25
  337. default_parameter_WN: 0.4
  338. gcode:
  339. CLEAR_PAUSE
  340. M106 S0
  341. M220 S100
  342. M221 S100
  343. M900 K0
  344. DGUS_PRINT_START
  345. G28
  346. WIPE_LINE Z={WZ} N={WN}
  347.  
  348. [gcode_macro POST_END]
  349. gcode:
  350. CLEAR_PAUSE
  351. DGUS_PRINT_END
  352. M220 S100
  353. M221 S100
  354. M900 K0
  355. {% if printer.extruder.temperature >= 170 %}
  356. M83
  357. G91
  358. G1 E-2 F2400
  359. G1 E-2 Z5 F2400
  360. {% endif %}
  361. M82
  362. G90
  363. G27
  364. M104 S0
  365. M140 S0
  366. M106 S0
  367. M84 X Y E
  368. SAVE_IF_SET
  369.  
  370. [gcode_macro WIPE_LINE]
  371. default_parameter_Z: 0.25
  372. default_parameter_N: 0.4
  373. gcode:
  374. {% if printer.toolhead.homed_axes != "xyz" %}
  375. {action_respond_info("Please home XYZ first")}
  376. {% elif printer.extruder.temperature < 170 %}
  377. {action_respond_info("Extruder temperature too low")}
  378. {% else %}
  379. SAVE_GCODE_STATE NAME=WIPE_LINE_state
  380. M82
  381. G90
  382. G92 E0
  383. G1 X10 Y20 Z5 F3000
  384. G1 Z{Z} F3000
  385. G1 X10 Y150 F1500 E10.83
  386. G1 X{ N|float + 10.0 } F5000
  387. G1 Y22 F1500 E21.5
  388. G1 Y20 F5000
  389. RESTORE_GCODE_STATE NAME=WIPE_LINE_state MOVE=0
  390. {% endif %}
  391.  
  392. [gcode_macro SAVE_AT_END]
  393. variable_save: 0
  394. gcode:
  395. SET_GCODE_VARIABLE MACRO=SAVE_AT_END VARIABLE=save VALUE=1
  396.  
  397. [gcode_macro SAVE_IF_SET]
  398. gcode:
  399. {% if printer["gcode_macro SAVE_AT_END"].save == 1 %}
  400. SAVE_CONFIG
  401. {% endif %}
  402.  
  403. #*# <---------------------- SAVE_CONFIG ---------------------->
  404. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  405. #*#
  406. #*# [heater_bed]
  407. #*# control = pid
  408. #*# pid_kp = 65.869
  409. #*# pid_ki = 1.417
  410. #*# pid_kd = 765.725
  411. #*#
  412. #*# [extruder]
  413. #*# control = pid
  414. #*# pid_kp = 36.550
  415. #*# pid_ki = 2.512
  416. #*# pid_kd = 132.949
  417. #*#
  418. #*# [bltouch]
  419. #*# z_offset = 1.599
  420. #*#
  421. #*# [bed_mesh default]
  422. #*# version = 1
  423. #*# points =
  424. #*# -0.744750, -0.695500, -0.616500, -0.518500, -0.423250, -0.330250
  425. #*# -0.654250, -0.584000, -0.446500, -0.312500, -0.146750, 0.002000
  426. #*# -0.462500, -0.367500, -0.202500, -0.020750, 0.095000, 0.262500
  427. #*# -0.337500, -0.261000, -0.099750, 0.078000, 0.221500, 0.374000
  428. #*# -0.292250, -0.189000, 0.018250, 0.221000, 0.372250, 0.476250
  429. #*# -0.319750, -0.220250, -0.026000, 0.208000, 0.314000, 0.429250
  430. #*# tension = 0.2
  431. #*# min_x = 25.0
  432. #*# algo = lagrange
  433. #*# y_count = 6
  434. #*# mesh_y_pps = 2
  435. #*# min_y = 15.0
  436. #*# x_count = 6
  437. #*# max_y = 282.0
  438. #*# mesh_x_pps = 2
  439. #*# max_x = 240.0
  440.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement