Linear Advance 1.5 PC Test Pattern.gcode 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 = 300 °C
  15. ; Bed Temperature = 100 °C
  16. ; Retraction Distance = 0.8 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 = 1200 mm/min
  28. ; Fast Printing Speed = 4200 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 = 4.5
  36. ;
  37. ; Settings Pattern:
  38. ; Linear Advance Version = 1.5
  39. ; Starting Value Factor = 0.04
  40. ; Ending Value Factor = 0.2
  41. ; Factor Stepping = 0.02
  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 = 65 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 S100 ; set bed temp
  68. M190 S100 ; wait for bed temp
  69. M104 S300 ; set initial temp
  70. G28 W ; home all without mesh bed level
  71. M860 S35 ; wait until PINDA is >= 35C
  72. M109 S250 ; 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. G92 E0.0
  77. G1 X60.0 E22.0 F1000.0 ; intro line
  78. G1 X100.0 E8.0 F1000.0 ; intro line
  79. G92 E0.0
  80. G21 ; Millimeter units
  81. G90 ; Absolute XYZ
  82. M83 ; Relative E
  83. M204 P1000 ; Acceleration
  84. M205 X8 ; X Jerk
  85. M205 Y8 ; Y Jerk
  86. M205 Z0.4 ; Z Jerk
  87. M205 E4.5 ; E Jerk
  88. G92 E0 ; Reset extruder distance
  89. G1 Z0.2 F1200 ; Move to layer height
  90. G1 E-0.8 F3600 ; retract
  91. ;
  92. ; start the Test pattern
  93. ;
  94. G4 P2000 ; Pause (dwell) for 2 seconds
  95. G1 X75 Y72.5 F7200 ; move to start
  96. M900 K0.04 ; set K-factor
  97. M117 K0.04 ;
  98. G1 E0.8 F3600 ; un-retract
  99. G1 X95 Y72.5 E0.7317 F1200 ; print line
  100. G1 X155 Y72.5 E2.1952 F4200 ; print line
  101. G1 X175 Y72.5 E0.7317 F1200 ; print line
  102. G1 E-0.8 F3600 ; retract
  103. G1 X75 Y77.5 F7200 ; move to start
  104. M900 K0.06 ; set K-factor
  105. M117 K0.06 ;
  106. G1 E0.8 F3600 ; un-retract
  107. G1 X95 Y77.5 E0.7317 F1200 ; print line
  108. G1 X155 Y77.5 E2.1952 F4200 ; print line
  109. G1 X175 Y77.5 E0.7317 F1200 ; print line
  110. G1 E-0.8 F3600 ; retract
  111. G1 X75 Y82.5 F7200 ; move to start
  112. M900 K0.08 ; set K-factor
  113. M117 K0.08 ;
  114. G1 E0.8 F3600 ; un-retract
  115. G1 X95 Y82.5 E0.7317 F1200 ; print line
  116. G1 X155 Y82.5 E2.1952 F4200 ; print line
  117. G1 X175 Y82.5 E0.7317 F1200 ; print line
  118. G1 E-0.8 F3600 ; retract
  119. G1 X75 Y87.5 F7200 ; move to start
  120. M900 K0.1 ; set K-factor
  121. M117 K0.1 ;
  122. G1 E0.8 F3600 ; un-retract
  123. G1 X95 Y87.5 E0.7317 F1200 ; print line
  124. G1 X155 Y87.5 E2.1952 F4200 ; print line
  125. G1 X175 Y87.5 E0.7317 F1200 ; print line
  126. G1 E-0.8 F3600 ; retract
  127. G1 X75 Y92.5 F7200 ; move to start
  128. M900 K0.12 ; set K-factor
  129. M117 K0.12 ;
  130. G1 E0.8 F3600 ; un-retract
  131. G1 X95 Y92.5 E0.7317 F1200 ; print line
  132. G1 X155 Y92.5 E2.1952 F4200 ; print line
  133. G1 X175 Y92.5 E0.7317 F1200 ; print line
  134. G1 E-0.8 F3600 ; retract
  135. G1 X75 Y97.5 F7200 ; move to start
  136. M900 K0.14 ; set K-factor
  137. M117 K0.14 ;
  138. G1 E0.8 F3600 ; un-retract
  139. G1 X95 Y97.5 E0.7317 F1200 ; print line
  140. G1 X155 Y97.5 E2.1952 F4200 ; print line
  141. G1 X175 Y97.5 E0.7317 F1200 ; print line
  142. G1 E-0.8 F3600 ; retract
  143. G1 X75 Y102.5 F7200 ; move to start
  144. M900 K0.16 ; set K-factor
  145. M117 K0.16 ;
  146. G1 E0.8 F3600 ; un-retract
  147. G1 X95 Y102.5 E0.7317 F1200 ; print line
  148. G1 X155 Y102.5 E2.1952 F4200 ; print line
  149. G1 X175 Y102.5 E0.7317 F1200 ; print line
  150. G1 E-0.8 F3600 ; retract
  151. G1 X75 Y107.5 F7200 ; move to start
  152. M900 K0.18 ; set K-factor
  153. M117 K0.18 ;
  154. G1 E0.8 F3600 ; un-retract
  155. G1 X95 Y107.5 E0.7317 F1200 ; print line
  156. G1 X155 Y107.5 E2.1952 F4200 ; print line
  157. G1 X175 Y107.5 E0.7317 F1200 ; print line
  158. G1 E-0.8 F3600 ; retract
  159. G1 X75 Y112.5 F7200 ; move to start
  160. M900 K0.2 ; set K-factor
  161. M117 K0.2 ;
  162. G1 E0.8 F3600 ; un-retract
  163. G1 X95 Y112.5 E0.7317 F1200 ; print line
  164. G1 X155 Y112.5 E2.1952 F4200 ; print line
  165. G1 X175 Y112.5 E0.7317 F1200 ; print line
  166. G1 E-0.8 F3600 ; retract
  167. ;
  168. ; Mark the test area for reference
  169. M117 K0
  170. M900 K0 ; Set K-factor 0
  171. G1 X95 Y117.5 F7200 ; move to start
  172. G1 E0.8 F3600 ; un-retract
  173. G1 X95 Y137.5 E0.7317 F1200 ; print line
  174. G1 E-0.8 F3600 ; retract
  175. G1 X155 Y117.5 F7200 ; move to start
  176. G1 E0.8 F3600 ; un-retract
  177. G1 X155 Y137.5 E0.7317 F1200 ; print line
  178. G1 E-0.8 F3600 ; retract
  179. G1 Z0.3 F1200 ; zHop
  180. ;
  181. ; FINISH
  182. ;
  183. G4 ; wait
  184. M221 S100
  185. M104 S0 ; turn off extruder
  186. M140 S0 ; turn off heatbed
  187. G1 Z30 E-20 ; Move print head up and retract
  188. G0 X0 Y210 F6000; home axis
  189. M84 ; disable motors
  190. M104 S0 ; turn off extruder
  191. M107 ; turn off fan