Guest User

Untitled

a guest
Sep 12th, 2023
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.11 KB | None | 0 0
  1. ; General preferences
  2. G90 ; send absolute coordinates...
  3. M83 ; ...but relative extruder moves
  4. M550 P"Vogue" ; set printer name
  5. M669 K1 ; Set CoreXY
  6.  
  7. G4 S2 ; Pause for CAN-FD
  8.  
  9.  
  10. ; Drives
  11. M569 P0.0 S0 ; X
  12. M569 P0.1 S0 ; Y
  13. M569 P0.2 S1 ; T1
  14. M569 P0.3 S1 ; B
  15. M569 P0.4 S1 ; T0
  16. M569 P0.5 S1 ; Z
  17.  
  18. M569 P1.0 S1 ; T3
  19. M569 P1.1 S1 ; T2
  20. M569 P1.2 S1 ; UNUSED
  21.  
  22. ;M569.1 P21.0 T1 C164.206 E40.0:200.0 R10 S200 ;closed loop config for drive 21.0, composite encoder
  23. M569.1 P21.0 T3 R10 S200 ;closed loop config for drive 21.0, magnetic shaft encoder
  24. M569 P21.0 S1 D4 ; physical drive 21.0 goes forward and closed loop is enabled
  25. ;M569.1 P21.0 R10 I200 D0.02 V800 A1000000 ;set PIDVA parameters for closed loop (370mm Bowden with hotend)
  26. ;M569.1 P21.0 R10 I2 D0.05 V700 A1000000 ;set PIDVA parameters for closed loop (700mm Bowden with hotend)
  27.  
  28.  
  29. M569 P2.0 S1 ; C
  30.  
  31.  
  32. ;########################
  33. M584 X0.0 Y0.1 Z0.5 E0.4:0.2:1.1:1.0 B0.3 C2.0 U21.0 ; Drive mapping
  34. M350 E16:16:16 C16 I0 ; Configure microstepping without interpolation
  35. M350 X16 Y16 Z16 B16 U16 I1 ; Configure microstepping with interpolation
  36. M92 X100 Y100 Z800 B1600 C91.022 E396:396:396:396 U396 ; Set steps per mm
  37. M566 X100 Y100 Z50 C2 B200 E10:10:10:10 U1000 ; Set maximum instantaneous speed changes (mm/min)
  38. M203 X35000 Y35000 Z3000 B3500 C10000 E5000:5000:5000:5000 U1200 ; Set maximum speeds (mm/min)
  39. M201 X2000 Y2000 Z200 B500 C500 E1000:1000:1000:1000 U5000 ; Set accelerations (mm/s^2)
  40. M906 X1800 Y1800 Z1000 B750 I30 ; Idle motion motors to 30%
  41. M906 E1330:1330:1330:1330 U1330 C500 I10 ; Idle extruder motors to 10%
  42.  
  43. ;######################
  44. ;M584 X0.0 Y0.1 Z0.5 E0.4:0.2:1.1:1.0:21.0 B0.3 C2.0 ; Drive mapping
  45. ;M350 E16:16:16:16:16 C16 I0 ; Configure microstepping without interpolation
  46. ;M350 X16 Y16 Z16 B16 I1 ; Configure microstepping with interpolation
  47. ;M92 X100 Y100 Z800 B1600 C91.022 E396:396:396:396:396 ; Set steps per mm
  48. ;M566 X100 Y100 Z50 C2 B200 E10:10:10:4000:4000 ; Set maximum instantaneous speed changes (mm/min)
  49. ;M203 X35000 Y35000 Z3000 B3500 C10000 E5000:5000:5000:5000:5000 ; Set maximum speeds (mm/min)
  50. ;M201 X2000 Y2000 Z200 B500 C500 E1000:1000:1000:5000:5000 ; Set accelerations (mm/s^2)
  51. ;M906 X1800 Y1800 Z1000 B750 I30 ; Idle motion motors to 30%
  52. ;M906 E1330:1330:1330:1330:1330 C500 I10 ; Idle extruder motors to 10%
  53.  
  54. ; Axis Limits
  55. M208 X-25:350 Y-49:300 Z0:300 B0:50 C-45:360 U-100000:100000 S0 ; Set axis maxima & minima
  56.  
  57. ; Endstops
  58. M574 B1 S3 ; Set B endstops to stall detection
  59. M574 Y0 ; Free Y Endstop
  60. M574 X1 P"2.io0.in" S1 ; Set X to Switch and assign Pin
  61. M574 C0 ; Free C Endstop
  62.  
  63. ; Stall Detection
  64. M915 B S5 F0 H200 R4700 ; Brush
  65.  
  66. ; Brush Servo
  67. M950 P0 C"1.io1.out" ; Setup Servo on 3HC I/0 0 Out (Pin 4)
  68. M42 P0 S0.41 ; Set Servo PWM to 41%
  69.  
  70. ; Setup Z-Probe
  71. M558 P8 C"2.io1.in" H3 F360 I0 T20000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
  72. G31 P200 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
  73. M557 X10:290 Y20:180 S40 ; Define mesh grid
  74.  
  75. ; Heaters
  76. M308 S0 A"Bed" P"temp0" Y"thermistor" T100000 B4725 C7.06e-8 ; configure sensor 0 as thermistor on pin temp0
  77. M950 H0 C"out3" T0 ; create bed heater output on out2 and map it to sensor 0
  78. M143 H0 S250 ; set temperature limit for heater 0 to 250C
  79. M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
  80. M140 H0 ; map heated bed to heater 0
  81.  
  82. M308 S1 P"temp1" Y"thermistor" T100000 B4725 C7.06e-8 A"T0" ; define E0 temperature sensor
  83. M950 H1 C"out1" T1 ; Extruder 0 heater
  84. M143 H1 S405 ; Set temperature limit for heater 1 to 300C
  85.  
  86. M308 S2 P"1.temp1" Y"pt1000" A"T1" ; define E1 temperature sensor
  87. M950 H2 C"1.out1" T2 ; Extruder 1 heater
  88. M143 H2 S405 ; Set temperature limit for heater 2 to 300C
  89.  
  90. M308 S3 P"1.temp0" Y"thermistor" T100000 B4725 C7.06e-8 A"T2" ; define E2 temperature sensor
  91. M950 H3 C"1.out2" T3 ; Extruder 2 heater
  92. M143 H3 S305 ; Set temperature limit for heater 3 to 300C
  93.  
  94. M308 S4 P"temp2" Y"thermistor" T100000 B4725 C7.06e-8 A"T3" ; define E3 temperature sensor
  95. M950 H4 C"out2" T4 ; Extruder 4 heater
  96. M143 H4 S305 ; Set temperature limit for heater 4 to 300C
  97.  
  98. ; Fans
  99. M950 F0 C"out7" ; T0 Hotend Fan
  100. M950 F1 C"1.out7" ; T1 Hotend Fan
  101. M950 F2 C"1.out6" ; T2 Hotend Fan
  102. M950 F3 C"out8" ; T3 Hotend Fan
  103.  
  104. M950 F4 C"out4" ; T0 Part Cooling Fan
  105. M950 F5 C"1.out4" ; T1 Part Cooling Fan
  106. M950 F6 C"1.out5" ; T2 Part Cooling Fan
  107. M950 F7 C"out5" ; T3 Part Cooling Fan
  108.  
  109. M106 P0 T65 S255 H1 ; T0 HotEnd Fan
  110. M106 P1 T65 S255 H2 ; T1 HotEnd Fan
  111. M106 P2 T65 S255 H3 ; T2 HotEnd Fan
  112. M106 P3 T65 S255 H4 ; T3 HotEnd Fan
  113.  
  114. M106 P4 S0 ; T0 Part Cooling Fan
  115. M106 P5 S0 ; T1 Part Cooling Fan
  116. M106 P6 S0 ; T2 Part Cooling Fan
  117. M106 P7 S0 ; T3 Part Cooling Fan
  118.  
  119. ; Tools
  120. M563 P0 S"T0" D0 H1 F0 ; Define tool 0
  121. G10 P0 X0 Y0 Z0 ; Reset tool 0 axis offsets
  122. G10 P0 R0 S0 ; Reset initial tool 0 active and standby temperatures to 0C
  123.  
  124. M563 P1 S"T1" D1 H2 F1 ; Define tool 1
  125. G10 P1 X0 Y0 Z0 ; Reset tool 1 axis offsets
  126. G10 P1 R0 S0 ; Reset initial tool 1 active and standby temperatures to 0C
  127.  
  128. M563 P2 S"T2" D2 H3 F2 ; Define tool 2
  129. G10 P2 X0 Y0 Z0 ; Reset tool 2 axis offsets
  130. G10 P2 R0 S0 ; Reset initial tool 2 active and standby temperatures to 0C
  131.  
  132. M563 P3 S"T3" D3 H4 F3 ; Define tool 3
  133. G10 P3 X0 Y0 Z0 ; Reset tool 3 axis offsets
  134. G10 P3 R0 S0 ; Reset initial tool 3 active and standby temperatures to 0C
  135.  
  136. M563 P4 S"FeedX" D3 H4 F3 ; Define tool 4
  137. G10 P4 X0 Y0 Z0 ; Reset tool 3 axis offsets
  138. G10 P4 R0 S0 ; Reset initial tool 3 active and standby temperatures to 0C
  139.  
  140. ;Set Hotends to Standby
  141. T0 P0
  142. T1 P0
  143. T2 P0
  144. T3 P0
  145. T-1 P0
  146.  
  147. ; Additional Machine settings
  148. M501 ; Load config-overide.g
  149. M575 P1 S1 B57600 ; Enable LCD
  150. G92 U0 ;set U to 0
  151.  
  152. ;M568 P4 S1 ; enable mixing for tool 4
  153. ;M567 P4 E1:1 ; set mixing ratios for tool 4
  154.  
  155. ; Tool calibration offsets
  156. G10 P0 X20 Y43.5 Z-8.40 ; T0 axis offsets
  157. G10 P1 X19.8 Y43.2 Z-5.35 ; T1 axis offsets
  158. G10 P2 X19.85 Y43.4 Z-8.4 ; T2 axis offsets
  159. G10 P3 X19.75 Y43.3 Z-8.75 ; T3 axis offsets
Advertisement
Add Comment
Please, Sign In to add comment