Guest User

Untitled

a guest
May 19th, 2021
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.59 KB | None | 0 0
  1. ; #######################################################################
  2. ; ###### RRF3 Configuration file for RailcoreII ZL Series Printers ######
  3. ; #######################################################################
  4. ;
  5. ;
  6. ; Duet G-code: https://duet3d.dozuki.com/Wiki/Gcode
  7. ; RRF3 G-code meta commands: https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands
  8. ; RRF3 Object model: https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware
  9. ; RRF3 Pin Names: https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet
  10. ; #### Debugging
  11. M111 S0 ; Debug off
  12. M929 P"eventlog.txt" S3 ; Start logging to file eventlog.txt
  13. M550 P"RailCore" ; Machine name and Netbios name (can be anything you like)
  14. ;M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xEE ; MAC Address
  15. ;M551 Pmyrap ; Machine password (used for FTP)
  16. ;M586 P1 S1
  17.  
  18. ; #### Networking and Communications
  19. M552 S1 ; Enable Network
  20. M586 P0 S1 ; enable HTTP
  21. M586 P1 S0 ; disable FTP
  22. M586 P2 S0 ; disable Telnet
  23.  
  24. ; #### General preferences
  25.  
  26. ;M555 P2 ; Set output to look like Marlin (WAS THIS)
  27. M555 P1 ;Set output to look like RepRap_Firmware
  28. M575 P1 B57600 S1 ; Comms parameters for PanelDue
  29. G21 ; Work in millimetres
  30. G90 ; Send absolute coordinates...
  31. M83 ; ...but relative extruder moves
  32.  
  33. ; #### Axis and motor configuration
  34. M669 K1 ; CoreXY mode
  35. M350 X16 Y16 Z16 E16 I1 ; set 16x microstepping for axes& extruder, with interpolation
  36. M92 X200 Y200 Z1600 ; steps/mm
  37. M92 E836
  38. ; #### Drives
  39. M584 X0 Y1 Z5:6:7 E3:4:8:9 ; Map Z to drivers 5, 6, 7. Define unused drivers 3,4,8 and 9 as extruders
  40. M569 P0 S1 ; Drive 0 goes forwards (change to S0 to reverse it) X stepper (Rear)
  41. M569 P1 S0 ; Drive 1 goes backwards Y Stepper (Front)
  42. M569 P2 S1 ; Drive 2 goes forwards Unused
  43. M569 P3 S1 ; Drive 3 goes forwards Extruder
  44. M569 P4 S1 ; Drive 4 goes forwards Extruder (unused)
  45. M569 P5 S1 ; Drive 5 goes backwards Front Left Z
  46. M569 P6 S1 ; Drive 6 goes backwards Rear Left Z
  47. M569 P7 S1 ; Drive 7 goes backwards Right Z
  48.  
  49. ; #### Leadscrew locations
  50. M671 X-10:-10:333 Y22.5:277.5:150 S7.5 ;Front left, Rear Left, Right S7.5 is the max correction - measure your own offsets, to the bolt for the yoke of each leadscrew
  51.  
  52. ; #### Endstop Configuration - microswitches
  53. M574 X1 S1 P"xstop" ; configure active-low endstop for low end on X via pin xstop
  54. M574 Y1 S1 P"ystop" ; configure active-low endstop for low end on Y via pin ystop
  55.  
  56. ; #### Current, speeds and Z/E step settings
  57. ; ##########################################
  58. ; Conservative speeds for commissioning
  59. ;M906 X1150 Y1150 Z600 E560 I60 ; Motor currents (mA) - WARNING: Conservative - May trigger stallguard (and prematurely during homing) if sensorless.
  60. ;M201 X1000 Y1000 Z30 E500 ; Accelerations (mm/s^2) - WARNING: Conservative
  61. ;M203 X3000 Y3000 Z50 E1800 ; Maximum speeds (mm/min) - WARNING: Conservative
  62. ;M566 X700 Y700 Z30 E500 ; Maximum jerk speeds mm/minute - WARNING: Conservative
  63.  
  64.  
  65. ; Fully commissioned speeds.
  66. M906 X1400 Y1400 Z1000 E560 I25 ; Set motor currents (mA) and idle at 25%
  67. ;M201 X2500 Y2500 Z100 E1500 ; Accelerations (mm/s^2)
  68. M201 X1750 Y1750 Z250 E1500 ; Set accelerations (mm/s^2)
  69. M203 X18000 Y18000 Z500 E3600 ; Maximum speeds (mm/min)
  70. ;M566 X500 Y500 Z100 E1500 ; Maximum jerk speeds mm/minute
  71. M566 X600 Y600 Z200 E3600 ; Maximum jerk speeds mm/minute
  72. M204 T3000 ; Set travel acceleration
  73.  
  74. ; #### Set axis minima:maxima switch positions
  75. ; Adjust to suit your machine and to make X=0 and Y=0 the edges of the bed
  76. M208 X0 Y0 Z-0.5 S1 ; set axis minima and low homing switch positions (adjust to make X=0 and Y=0 the edges of the bed)
  77. M208 X300 Y300 Z320 ; set axis maxima and high homing switch positions (adjust to suit your machine)
  78.  
  79. ; #### Tool definitions
  80. ; #####################
  81. ; Pressure Advance
  82. M572 D0 S0.01 ; Set pressure advance to offset elasticity
  83. ;Dynamic Acceleration Adjustment and Non-linear
  84. M592 D0 A0.015 B0.0012 L0.2
  85. M593 F21 P4
  86.  
  87. ; #### Tool E0 / Heater 1 - E3D Gold
  88. M563 P0 S"E3Dv6 Gold" D0 H1 F0 ; Define tool 0
  89. ;G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
  90. ;M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8 A"Hotend"; define E0 temperature sensor
  91. M950 H1 C"e0heat" T1
  92. M308 S1 P"spi.cs1" Y"rtd-max31865" A"Hotend"; create sensor number 1 as a PT100 sensor in the first position on the Duet 2 daughter board connector ; create nozzle heater output on e0heat and map it to sensor 1
  93. ; #PID
  94. M307 H1 A584.8 C269.3 D3.3 S1.00 V23.9 B0; PID HOT End
  95. ; #MAX Temp
  96. M570 H1 S360 ; Hot end may be a little slow to heat up so allow it 180 seconds
  97. ;M143 S400
  98. M143 H1 S280
  99. ;## E3D Test Core
  100.  
  101.  
  102. ; #Fan Hot End
  103. M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
  104. M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on
  105. ; # Layer Fan
  106. M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
  107. M106 P0 S0 H-1
  108.  
  109. ; Filament Sensor for E0
  110. M591 D0 P1 C"e0_stop" S1; Filament Sensor (Extruder0)
  111.  
  112. ; BLTouch -
  113. ; #####################
  114.  
  115. ;M558 P9 C"^zprobe.in" H5 F50 T8000 A5 S0.2 ; set Z probe type to bltouch and the dive height + speeds
  116. ;M950 S0 C"duex.pwm1" ; _RRF3_ Define BLTouch Servo (S0) on duet pwm1
  117.  
  118. M558 P9 C"^zprobe.in" R1 F50 ; _RRF3_ BLTouch connected to Z probe IN pin
  119. M950 S0 C"duex.pwm1" ; _RRF3_ Define BLTouch Servo (S0) on duet pwm1
  120. M558 H5 A5 T12000 S0.02 ; M558 settings for all probes
  121. ;G31 X2 Y42 Z2.48 P25 ; E3D V6 Gold was 2.5 vanadium nozzle was 2.6
  122. G31 X2 Y42 Z2.681 P25 ; Mosq
  123. ;G31 X2 Y42 Z2.927 P25 ; Mosq
  124. ;G31 X2 Y42 Z2.40 P25 ; E3D Heater Core Nozzle-X
  125.  
  126. ; ## Old Offsets for Reference only
  127. ;G31 X2 Y42 Z.5800 P25 ; Mosquito
  128. ;M557 X45:282 Y46:254 P2:2 ; Set Default Mesh - NOTE: take probe offset into account - corners only
  129. ;M557 X10:295 Y10:295 S57:57 ; elmoret's mesh
  130. ;M557 X45:282 Y46:254 P2:2 ; JohnOCFII magnet-avoiding mesh
  131. ;G31 X2 Y42 Z2.5 P25 ; E3D V6 Gold was 2.5 Nozzle X
  132.  
  133. ; ##### Mesh
  134. M557 X115:240 Y94:209 S125:115 ; 4pt Center square furthest away from magnets
  135.  
  136.  
  137. ; #### Bed - Heater 0
  138. M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 R4700 H0 L0 A"Bed" ; configure sensor 0 as thermistor on pin bedtemp
  139. M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
  140. M307 H0 A371.3 C793.9 D14.1 S1.00 V24.0 B0 ; Temp 60
  141. M140 H0 ; map heated bed to heater 0
  142. M143 H0 S120
  143.  
  144.  
  145. ; #### Electronics Cabinet
  146. M950 H2 C"mcu-temp" T2
  147. M308 S2 Y"mcu-temp" A"mcu-temp" ; Set MCU on Sensor 10
  148. ; # Elctronics Fan
  149. M950 F2 C"fan2" Q500 ; create fan 2 on pin fan1 and set its frequency
  150. M106 P2 S2 H2 T40:55 H100:101 L0.40 ; electronics cooling fan
  151.  
  152. ; #### Bed - Kenovo Sensor
  153. M308 S3 P"e4temp" Y"thermistor" T100000 B3950 R4700 H0 L0 A"Kenovo"; configure sensor Kenovo
  154. ;M950 S3 Y"e4temp" A"Kenovo"
  155.  
  156. ; #### Compensation
  157. ;M556 S80 X0.8 Y0.3 Z0.72 ; Axis compensation (measured with Orthangonal Axis Compensation piece)
  158. ;M579 X1.0027 Y1.0027 Z1.0011 ; Scale Cartesian axes
  159. ;M572 D0 S0.05 ; Default Pressure Advance compensation
  160.  
  161. ; #### FINISH STARTUP.
  162. ; Purposely engage motors to prevent bed from moving after power on.
  163. ;G91
  164. ;G1 Z-0.001 S2
  165. ;G90
  166.  
  167. ; ##Ensure all temperatures are off and cleared.
  168. M140 S0 R0 ; clear temperatures from DWC
  169. M140 S-273.1 R0 ; Standby and initial Temp for bed as "off" (-273 = "off")
  170. G10 P0 S-273.1 R-273.1 ; Set tool 0 operating and standby temperatures(-273 = "off")
  171.  
  172. ; Automatic power saving
  173. M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
  174.  
  175.  
  176. T0 ; select first tool
  177. M501
  178. M98 P"/macros/01.) LED ON 100%" ; Turn on LED lights
  179.  
Advertisement
Add Comment
Please, Sign In to add comment