Linear Advance 1.5 Ninjaflex Test Pattern.gcode 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. ; ### Marlin K-Factor Calibration Pattern ###
  2. ; -------------------------------------------
  3. ; Generated from https://marlinfw.org/tools/lin_advance/k-factor.html
  4. ; Ref: https://marlinfw.org/docs/features/lin_advance.html
  5. ; Ref: https://help.prusa3d.com/en/article/linear-advance_2252/
  6. ;
  7. ; Printer: PrusaMK3S
  8. ; Filament: PETG
  9. ; Created: Sat May 09 2020 20:56:51 GMT-0700 (Pacific Daylight Time)
  10. ;
  11. ; Settings Printer:
  12. ; Filament Diameter = 1.75 mm
  13. ; Nozzle Diameter = 0.4 mm
  14. ; Nozzle Temperature = 240 °C
  15. ; Bed Temperature = 50 °C
  16. ; Retraction Distance = 5 mm
  17. ; Layer Height = 0.2 mm
  18. ; Z-axis Offset = 0 mm
  19. ;
  20. ; Settings Print Bed:
  21. ; Bed Shape = Rect
  22. ; Bed Size X = 250 mm
  23. ; Bed Size Y = 210 mm
  24. ; Origin Bed Center = false
  25. ;
  26. ; Settings Speed:
  27. ; Slow Printing Speed = 600 mm/min
  28. ; Fast Printing Speed = 1800 mm/min
  29. ; Movement Speed = 7200 mm/min
  30. ; Retract Speed = 3600 mm/min
  31. ; Printing Acceleration = 1000 mm/s^2
  32. ; Jerk X-axis = 8
  33. ; Jerk Y-axis = 8
  34. ; Jerk Z-axis = 0.4
  35. ; Jerk Extruder = 2
  36. ;
  37. ; Settings Pattern:
  38. ; Linear Advance Version = 1.5
  39. ; Starting Value Factor = 1
  40. ; Ending Value Factor = 3
  41. ; Factor Stepping = 0.1
  42. ; Test Line Spacing = 5 mm
  43. ; Test Line Length Slow = 20 mm
  44. ; Test Line Length Fast = 60 mm
  45. ; Print Pattern = Standard
  46. ; Print Frame = false
  47. ; Number Lines = false
  48. ; Print Size X = 100 mm
  49. ; Print Size Y = 125 mm
  50. ; Print Rotation = 0 degree
  51. ;
  52. ; Settings Advance:
  53. ; Nozzle / Line Ratio = 1.1
  54. ; Bed leveling = 0
  55. ; Use FWRETRACT = false
  56. ; Extrusion Multiplier = 1
  57. ; Prime Nozzle = false
  58. ; Prime Extrusion Multiplier = 2.5
  59. ; Prime Speed = 1800
  60. ; Dwell Time = 2 s
  61. ;
  62. ; prepare printing
  63. ;
  64. M107
  65. G90 ; absolute coordinate mode
  66. M83 ; extruder relative mode
  67. M140 S50 ; set bed temp
  68. M190 S50 ; wait for bed temp
  69. M104 S240 ; set initial temp
  70. G28 W ; home all without mesh bed level
  71. M860 S35 ; wait until PINDA is >= 35C
  72. M109 S240 ; wait for extruder temp
  73. G80 ; mesh bed leveling
  74. G81 ; print mesh results
  75. G1 Y-3.0 F1000.0 ; go outside print area
  76. M106 S50 ; turn on fan
  77. G92 E0.0
  78. G1 X60.0 E28.0 F1000.0 ; intro line
  79. G1 X100.0 E8.0 F1000.0 ; intro line
  80. G92 E0.0
  81. G21 ; Millimeter units
  82. G90 ; Absolute XYZ
  83. M83 ; Relative E
  84. M204 P1000 ; Acceleration
  85. M205 X8 ; X Jerk
  86. M205 Y8 ; Y Jerk
  87. M205 Z0.4 ; Z Jerk
  88. M205 E2 ; E Jerk
  89. G92 E0 ; Reset extruder distance
  90. G1 E-5 F3600 ; retract
  91. G1 Z0.8 F1200 ; Z hop
  92. ;
  93. ; print anchor frame
  94. ;
  95. G1 X75 Y39.5 F7200 ; move to start
  96. G1 Z0.2 F1200 ; Z unhop
  97. G1 E5 F3600 ; un-retract
  98. G1 X75 Y145.5 E4.2659 F600 ; print line
  99. G1 E-5 F3600 ; retract
  100. G1 Z0.8 F1200 ; Z hop
  101. G1 X75.44 Y145.5 F7200 ; move to start
  102. G1 Z0.2 F1200 ; Z unhop
  103. G1 E5 F3600 ; un-retract
  104. G1 X75.44 Y39.5 E4.2659 F600 ; print line
  105. G1 E-5 F3600 ; retract
  106. G1 Z0.8 F1200 ; Z hop
  107. G1 X175 Y39.5 F7200 ; move to start
  108. G1 Z0.2 F1200 ; Z unhop
  109. G1 E5 F3600 ; un-retract
  110. G1 X175 Y145.5 E4.2659 F600 ; print line
  111. G1 E-5 F3600 ; retract
  112. G1 Z0.8 F1200 ; Z hop
  113. G1 X174.56 Y145.5 F7200 ; move to start
  114. G1 Z0.2 F1200 ; Z unhop
  115. G1 E5 F3600 ; un-retract
  116. G1 X174.56 Y39.5 E4.2659 F600 ; print line
  117. G1 E-5 F3600 ; retract
  118. G1 Z0.8 F1200 ; Z hop
  119. ;
  120. ; start the Test pattern
  121. ;
  122. G1 X75 Y42.5 F7200 ; move to start
  123. M900 K1 ; set K-factor
  124. M117 K1 ;
  125. G1 Z0.2 F1200 ; Z unhop
  126. G1 E5 F3600 ; un-retract
  127. G1 X95 Y42.5 E0.7317 F600 ; print line
  128. G1 X155 Y42.5 E2.1952 F1800 ; print line
  129. G1 X175 Y42.5 E0.7317 F600 ; print line
  130. G1 E-5 F3600 ; retract
  131. G1 Z0.8 F1200 ; Z hop
  132. G1 X75 Y47.5 F7200 ; move to start
  133. M900 K1.1 ; set K-factor
  134. M117 K1.1 ;
  135. G1 Z0.2 F1200 ; Z unhop
  136. G1 E5 F3600 ; un-retract
  137. G1 X95 Y47.5 E0.7317 F600 ; print line
  138. G1 X155 Y47.5 E2.1952 F1800 ; print line
  139. G1 X175 Y47.5 E0.7317 F600 ; print line
  140. G1 E-5 F3600 ; retract
  141. G1 Z0.8 F1200 ; Z hop
  142. G1 X75 Y52.5 F7200 ; move to start
  143. M900 K1.2 ; set K-factor
  144. M117 K1.2 ;
  145. G1 Z0.2 F1200 ; Z unhop
  146. G1 E5 F3600 ; un-retract
  147. G1 X95 Y52.5 E0.7317 F600 ; print line
  148. G1 X155 Y52.5 E2.1952 F1800 ; print line
  149. G1 X175 Y52.5 E0.7317 F600 ; print line
  150. G1 E-5 F3600 ; retract
  151. G1 Z0.8 F1200 ; Z hop
  152. G1 X75 Y57.5 F7200 ; move to start
  153. M900 K1.3 ; set K-factor
  154. M117 K1.3 ;
  155. G1 Z0.2 F1200 ; Z unhop
  156. G1 E5 F3600 ; un-retract
  157. G1 X95 Y57.5 E0.7317 F600 ; print line
  158. G1 X155 Y57.5 E2.1952 F1800 ; print line
  159. G1 X175 Y57.5 E0.7317 F600 ; print line
  160. G1 E-5 F3600 ; retract
  161. G1 Z0.8 F1200 ; Z hop
  162. G1 X75 Y62.5 F7200 ; move to start
  163. M900 K1.4 ; set K-factor
  164. M117 K1.4 ;
  165. G1 Z0.2 F1200 ; Z unhop
  166. G1 E5 F3600 ; un-retract
  167. G1 X95 Y62.5 E0.7317 F600 ; print line
  168. G1 X155 Y62.5 E2.1952 F1800 ; print line
  169. G1 X175 Y62.5 E0.7317 F600 ; print line
  170. G1 E-5 F3600 ; retract
  171. G1 Z0.8 F1200 ; Z hop
  172. G1 X75 Y67.5 F7200 ; move to start
  173. M900 K1.5 ; set K-factor
  174. M117 K1.5 ;
  175. G1 Z0.2 F1200 ; Z unhop
  176. G1 E5 F3600 ; un-retract
  177. G1 X95 Y67.5 E0.7317 F600 ; print line
  178. G1 X155 Y67.5 E2.1952 F1800 ; print line
  179. G1 X175 Y67.5 E0.7317 F600 ; print line
  180. G1 E-5 F3600 ; retract
  181. G1 Z0.8 F1200 ; Z hop
  182. G1 X75 Y72.5 F7200 ; move to start
  183. M900 K1.6 ; set K-factor
  184. M117 K1.6 ;
  185. G1 Z0.2 F1200 ; Z unhop
  186. G1 E5 F3600 ; un-retract
  187. G1 X95 Y72.5 E0.7317 F600 ; print line
  188. G1 X155 Y72.5 E2.1952 F1800 ; print line
  189. G1 X175 Y72.5 E0.7317 F600 ; print line
  190. G1 E-5 F3600 ; retract
  191. G1 Z0.8 F1200 ; Z hop
  192. G1 X75 Y77.5 F7200 ; move to start
  193. M900 K1.7 ; set K-factor
  194. M117 K1.7 ;
  195. G1 Z0.2 F1200 ; Z unhop
  196. G1 E5 F3600 ; un-retract
  197. G1 X95 Y77.5 E0.7317 F600 ; print line
  198. G1 X155 Y77.5 E2.1952 F1800 ; print line
  199. G1 X175 Y77.5 E0.7317 F600 ; print line
  200. G1 E-5 F3600 ; retract
  201. G1 Z0.8 F1200 ; Z hop
  202. G1 X75 Y82.5 F7200 ; move to start
  203. M900 K1.8 ; set K-factor
  204. M117 K1.8 ;
  205. G1 Z0.2 F1200 ; Z unhop
  206. G1 E5 F3600 ; un-retract
  207. G1 X95 Y82.5 E0.7317 F600 ; print line
  208. G1 X155 Y82.5 E2.1952 F1800 ; print line
  209. G1 X175 Y82.5 E0.7317 F600 ; print line
  210. G1 E-5 F3600 ; retract
  211. G1 Z0.8 F1200 ; Z hop
  212. G1 X75 Y87.5 F7200 ; move to start
  213. M900 K1.9 ; set K-factor
  214. M117 K1.9 ;
  215. G1 Z0.2 F1200 ; Z unhop
  216. G1 E5 F3600 ; un-retract
  217. G1 X95 Y87.5 E0.7317 F600 ; print line
  218. G1 X155 Y87.5 E2.1952 F1800 ; print line
  219. G1 X175 Y87.5 E0.7317 F600 ; print line
  220. G1 E-5 F3600 ; retract
  221. G1 Z0.8 F1200 ; Z hop
  222. G1 X75 Y92.5 F7200 ; move to start
  223. M900 K2 ; set K-factor
  224. M117 K2 ;
  225. G1 Z0.2 F1200 ; Z unhop
  226. G1 E5 F3600 ; un-retract
  227. G1 X95 Y92.5 E0.7317 F600 ; print line
  228. G1 X155 Y92.5 E2.1952 F1800 ; print line
  229. G1 X175 Y92.5 E0.7317 F600 ; print line
  230. G1 E-5 F3600 ; retract
  231. G1 Z0.8 F1200 ; Z hop
  232. G1 X75 Y97.5 F7200 ; move to start
  233. M900 K2.1 ; set K-factor
  234. M117 K2.1 ;
  235. G1 Z0.2 F1200 ; Z unhop
  236. G1 E5 F3600 ; un-retract
  237. G1 X95 Y97.5 E0.7317 F600 ; print line
  238. G1 X155 Y97.5 E2.1952 F1800 ; print line
  239. G1 X175 Y97.5 E0.7317 F600 ; print line
  240. G1 E-5 F3600 ; retract
  241. G1 Z0.8 F1200 ; Z hop
  242. G1 X75 Y102.5 F7200 ; move to start
  243. M900 K2.2 ; set K-factor
  244. M117 K2.2 ;
  245. G1 Z0.2 F1200 ; Z unhop
  246. G1 E5 F3600 ; un-retract
  247. G1 X95 Y102.5 E0.7317 F600 ; print line
  248. G1 X155 Y102.5 E2.1952 F1800 ; print line
  249. G1 X175 Y102.5 E0.7317 F600 ; print line
  250. G1 E-5 F3600 ; retract
  251. G1 Z0.8 F1200 ; Z hop
  252. G1 X75 Y107.5 F7200 ; move to start
  253. M900 K2.3 ; set K-factor
  254. M117 K2.3 ;
  255. G1 Z0.2 F1200 ; Z unhop
  256. G1 E5 F3600 ; un-retract
  257. G1 X95 Y107.5 E0.7317 F600 ; print line
  258. G1 X155 Y107.5 E2.1952 F1800 ; print line
  259. G1 X175 Y107.5 E0.7317 F600 ; print line
  260. G1 E-5 F3600 ; retract
  261. G1 Z0.8 F1200 ; Z hop
  262. G1 X75 Y112.5 F7200 ; move to start
  263. M900 K2.4 ; set K-factor
  264. M117 K2.4 ;
  265. G1 Z0.2 F1200 ; Z unhop
  266. G1 E5 F3600 ; un-retract
  267. G1 X95 Y112.5 E0.7317 F600 ; print line
  268. G1 X155 Y112.5 E2.1952 F1800 ; print line
  269. G1 X175 Y112.5 E0.7317 F600 ; print line
  270. G1 E-5 F3600 ; retract
  271. G1 Z0.8 F1200 ; Z hop
  272. G1 X75 Y117.5 F7200 ; move to start
  273. M900 K2.5 ; set K-factor
  274. M117 K2.5 ;
  275. G1 Z0.2 F1200 ; Z unhop
  276. G1 E5 F3600 ; un-retract
  277. G1 X95 Y117.5 E0.7317 F600 ; print line
  278. G1 X155 Y117.5 E2.1952 F1800 ; print line
  279. G1 X175 Y117.5 E0.7317 F600 ; print line
  280. G1 E-5 F3600 ; retract
  281. G1 Z0.8 F1200 ; Z hop
  282. G1 X75 Y122.5 F7200 ; move to start
  283. M900 K2.6 ; set K-factor
  284. M117 K2.6 ;
  285. G1 Z0.2 F1200 ; Z unhop
  286. G1 E5 F3600 ; un-retract
  287. G1 X95 Y122.5 E0.7317 F600 ; print line
  288. G1 X155 Y122.5 E2.1952 F1800 ; print line
  289. G1 X175 Y122.5 E0.7317 F600 ; print line
  290. G1 E-5 F3600 ; retract
  291. G1 Z0.8 F1200 ; Z hop
  292. G1 X75 Y127.5 F7200 ; move to start
  293. M900 K2.7 ; set K-factor
  294. M117 K2.7 ;
  295. G1 Z0.2 F1200 ; Z unhop
  296. G1 E5 F3600 ; un-retract
  297. G1 X95 Y127.5 E0.7317 F600 ; print line
  298. G1 X155 Y127.5 E2.1952 F1800 ; print line
  299. G1 X175 Y127.5 E0.7317 F600 ; print line
  300. G1 E-5 F3600 ; retract
  301. G1 Z0.8 F1200 ; Z hop
  302. G1 X75 Y132.5 F7200 ; move to start
  303. M900 K2.8 ; set K-factor
  304. M117 K2.8 ;
  305. G1 Z0.2 F1200 ; Z unhop
  306. G1 E5 F3600 ; un-retract
  307. G1 X95 Y132.5 E0.7317 F600 ; print line
  308. G1 X155 Y132.5 E2.1952 F1800 ; print line
  309. G1 X175 Y132.5 E0.7317 F600 ; print line
  310. G1 E-5 F3600 ; retract
  311. G1 Z0.8 F1200 ; Z hop
  312. G1 X75 Y137.5 F7200 ; move to start
  313. M900 K2.9 ; set K-factor
  314. M117 K2.9 ;
  315. G1 Z0.2 F1200 ; Z unhop
  316. G1 E5 F3600 ; un-retract
  317. G1 X95 Y137.5 E0.7317 F600 ; print line
  318. G1 X155 Y137.5 E2.1952 F1800 ; print line
  319. G1 X175 Y137.5 E0.7317 F600 ; print line
  320. G1 E-5 F3600 ; retract
  321. G1 Z0.8 F1200 ; Z hop
  322. G1 X75 Y142.5 F7200 ; move to start
  323. ;
  324. ; Mark the test area for reference
  325. M117 K0
  326. M900 K0 ; Set K-factor 0
  327. G1 X95 Y147.5 F7200 ; move to start
  328. G1 Z0.2 F1200 ; Z unhop
  329. G1 E5 F3600 ; un-retract
  330. G1 X95 Y167.5 E0.7317 F600 ; print line
  331. G1 E-5 F3600 ; retract
  332. G1 Z0.8 F1200 ; Z hop
  333. G1 X155 Y147.5 F7200 ; move to start
  334. G1 Z0.2 F1200 ; Z unhop
  335. G1 E5 F3600 ; un-retract
  336. G1 X155 Y167.5 E0.7317 F600 ; print line
  337. ;
  338. ; FINISH
  339. ;
  340. G4 ; wait
  341. M221 S100
  342. M104 S0 ; turn off extruder
  343. M140 S0 ; turn off heatbed
  344. G1 Z30 E-20 ; Move print head up and retract
  345. G0 X0 Y210 F6000; home axis
  346. M84 ; disable motors
  347. M104 S0 ; turn off extruder
  348. M107 ; turn off fan