Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort out the configs #79

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified LICENSE
100644 → 100755
Empty file.
30 changes: 0 additions & 30 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,3 @@
**WARNING: The RailCore is a DIY project. Build safe, build smart and BE RESPONSIBLE.**
**When in doubt, double check things. USE COMMON SENSE AND USE THESE CONFIG FILES AT YOUR OWN RISK.**

The "duet" folder contains a Duet configuration bundle for RepRapFirmware Duet (Ethernet/Wifi) for the RailCore II 300ZL and 300ZLT.

This bundle has been created by community members with the following goals in mind:-

1. Ease of use (where it does not conflict with other goals)
1. Standardisation of many settings across self-sourcers and kit builds.
1. Ease of upgrade of configuration, without disrupting the custom setting that make each users RailCore individual.
1. Safety during build and commissioning

In order to achieve this we have come up with the following approach, that is slightly different to the standard, monolithic Duet config.g file which each user then edits.

1. A main "config.g" file that provides the most basic, common and conservative settings for your RailCore build. This file is not intended to be edited by users, and can be updated over time from this repository to update or enable features.
1. A secondary "config-user.g" to provide the custom settings for each setup. Any setting not defined in this file will take it's value from config.g. Any setting that is defined, will override any basic setting in "config.g" - the user is always in control.
1. The "config-user.g" has many sections commented out by default. These sections are intended to be individually enabled, tested and modified as commissioning progresses, in a safe and controlled manner.
1. Test macro(s) are available in order to test your build in a useful and standardised way during commissioning, in order to help pick up any build problems.

## Usage Instructions

Create your own or use an existing "config-user.something" file to base your own on,and name it "config-user.g".
Place this file in /sys to replace the existing one, which is there as a placeholder and warning system.

Examples and standard files for kits and self-builders are available, and there are also bundles for items where extra files are required (such as the BL-touch or sensorless homing)
Each config-user file is enabled to allow the RailCore to be operational, and initally many conservative values
will be inherited from the stock config.g
To override these and unleash your Railcores' speeds, size and/or features after building, you must during commissioing test, measure then uncomment and modify the various lines (preferably individually) to suit **your** RailCore build.

While we have done our best to comment the files, we cannot put the full documentation for every command into these configuration files.
So do be sure to read the Duet G-code documentation on any G or M code line you are unsure of.

**The included config-user.g in the /sys directory is not intended for use, and if run will stop your RailCore with a warning.**
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions all_kits_starter_config/Duet2 RRF2/sys/bed.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
M561 ; clear any existing bed transform
G1 Z5 S2
G30 P0 X15 Y45 Z-99999
G30 P1 X15 Y275 Z-99999
G30 P2 X275 Y275 Z-99999
G30 P3 X275 Y45 Z-99999 S3
G1 X0 Y0 F5000 ; move the head to the corner (optional)

82 changes: 82 additions & 0 deletions all_kits_starter_config/Duet2 RRF2/sys/config.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
; Configuration file for My Printer
; Communication and general
M111 S0 ; Debug off
M550 PRailCore ; Machine name and Netbios name (can be anything you like)
;M551 Pmyrap ; Machine password (used for FTP)
;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xEE ; MAC Address
;*** Wifi Networking
M552 S1 ; Enable WiFi
M555 P2 ; Set output to look like Marlin
M575 P1 B57600 S1 ; Comms parameters for PanelDue

G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves

; Axis and motor configuration
M669 K1 ; CoreXY mode

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
M569 P0 S0 ; Drive 0 goes forwards (change to S0 to reverse it) X stepper (Rear)
M569 P1 S1 ; Drive 1 goes backwards Y Stepper (Front)
M569 P2 S1 ; Drive 2 goes forwards Unused
M569 P3 S0 ; Drive 3 goes forwards Extruder
M569 P4 S1 ; Drive 4 goes forwards Extruder (unused)
M569 P5 S0 ; Drive 5 goes backwards Front Left Z
M569 P6 S0 ; Drive 6 goes backwards Rear Left Z
M569 P7 S0 ; Drive 7 goes backwards Right Z

;Leadscrew locations
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

M350 X16 Y16 Z16 E16 I1 ; set 16x microstepping for axes& extruder, with interpolation
M574 X1 Y1 Z0 S1 ; set homing switch configuration (x,y at min, z at max) IF YOU NEED TO REVERSE YOUR HOMING SWITCHES CHANGE S1 to S0
M906 X1400 Y1400 Z1000 E800 I60 ; Set motor currents (mA)
M201 X3000 Y3000 Z100 E1500 ; Accelerations (mm/s^2)
M203 X24000 Y24000 Z900 E3600 ; Maximum speeds (mm/min)
M566 X1000 Y1000 Z100 E1500 ; Maximum jerk speeds mm/minute
M208 X290 Y290 Z280 ; set axis maxima and high homing switch positions (adjust to suit your machine)
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)
M92 X200 Y200 Z1600 E837 ; steps/mm

; Thermistors
M305 P0 T100000 B3950 R4700 H0 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
;If you have a Slice Engineering thermistor, comment out the next line
M305 P1 T100000 B4725 R4700 H0 L0 C7.06e-8 ; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
;If you have a Slice Engineering thermistor, uncomment the next lines. KITS DO NOT SHIP WITH A SLICE THERMISTOR - ONLY UNCOMMENT IF YOU ORDERED ONE
;M305 P1 T500000 B4723 C1.196220e-7 ; Set thermistor + ADC parameters for slice thermistor

M307 H0 A240.3 C608.7 D8.2 V24.1 B0 ; Bed Heaters
M307 H1 A270.7 C90.4 D6.7 V24.0 B0 ;Heater 1 model
M570 S360 ; Hot end may be a little slow to heat up so allow it 180 seconds
M143 S285

; Fans
M106 P0 H-1 ; disable thermostatic mode for fan 0
M106 P1 H-1 ; disable thermostatic mode for fan 1
M106 P2 H-1
M106 P0 S0 ; turn off fans
M106 P1 S0
M106 P2 S0

; Tool definitions
M563 P0 D0 H1 ; Define tool 0
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
;*** If you have a single-nozzle build, comment the next 2 lines
;M563 P1 D1 H2 ; Define tool 1
;G10 P1 S0 R0 X0 Y17 ; Set tool 1 operating and standby temperatures

; Z probe and compensation definition
;*** If you have a switch instead of an IR probe, change P1 to P4 in the following M558 command
; IR PRobe - uncomment the following 2 lines if you have a and IR Probe, and comment out the BLTouch section below
;M558 P1 X0 Y0 Z1 ; Z probe is an IR probe and is not used for homing any axes
;G31 X0 Y30 Z2.00 P500 ; Set the zprobe height and threshold (put your own values here)

;BLTouch - comment out the following 3 lines if using a IR Probe
M307 H3 A-1 C-1 D-1
M558 P9 X0 Y0 Z1 H5 F50 T6000 A5 S0.02
G31 X2 Y42 Z2.65 P25 ; Customize your offsets appropriately - do a paper test, and put the probed value in the Z value here

;
T0 ; select first hot end
File renamed without changes.
3 changes: 3 additions & 0 deletions all_kits_starter_config/Duet2 RRF2/sys/homeall.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
M98 P"homex.g"
M98 P"homey.g"
M98 P"homez.g"
8 changes: 8 additions & 0 deletions all_kits_starter_config/Duet2 RRF2/sys/homex.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; X axis homing file for dc42 Duet firmware
G91
G1 Z4 F200 H2
G1 X-320 F3000 S1
G1 X4 F600
G1 X-10 S1
G1 Z-4 F200 H2
G90
7 changes: 7 additions & 0 deletions all_kits_starter_config/Duet2 RRF2/sys/homey.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
G91
G1 Z4 F200 H2
G1 Y-320 F3000 S1
G1 Y4 F600
G1 Y-10 S1
G1 Z-4 F200 H2
G90
6 changes: 6 additions & 0 deletions all_kits_starter_config/Duet2 RRF2/sys/homez.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
G91
G1 Z5 F800 H2
G90
G1 X150 Y150 F2400
G30
G1 Z10 F200
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/ABS/config.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;PLA config.g
G10 S240 R80 ; Heat up the current tool to 190C enough for PLA
M140 S110 R40 ; Standby and initial Temp for bed as "off" (-273 = "off")
M207 S0.6 F3600 Z0.18 ; Firmware Retraction 0.6mm , speed 60m/s , Z-hop 0.18
M572 D0 S0.07 ; Pressure advance compensation (if needed to be changed)
M204 P1400 T4000 ; General maximum acceleration P(print) T(travel)
;M566 X1200 Y1200 Z60 E3000 ; jerk settings for PLA
;M307 H0 A214.3 C641.7 D1.3 S1.00 V24.0 B0 ; Bed PID tune for 120c
;M307 H1 A491.0 C190.9 D2.8 S1.00 V23.9 B0 ; Hot end PID tune at 280c
9 changes: 9 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/ABS/load.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;load ABS
T0
G10 S250 ; Heat up the current tool to 210C, plenty for PLA and to purge any higher temp materials
M116 ; Wait for the temperatures to be reached
G1 E70 F3000 ; Extrude 70mm of filament at 3000mm/min
G1 E80 F300 ; Extrude 80mm of filament at 300mm/min - purge hotend

M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drive
8 changes: 8 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/ABS/unload.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;unload ABS
T0
G10 S250 ; Heat up the current tool to 250C enough for ABS
M116 ; Wait for the temperatures to be reached
G1 E-20 F300 ; Retract 20mm of filament at 300mm/min
G1 E-200 F3000 ; Retract 200mm of filament at 3000mm/min
M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drive
Empty file.
5 changes: 5 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/PETG/config.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
G10 S255 R160 ; Heat up the current tool to 260C enough for PETG first layer
M140 S85 R40
M207 S0.6 F3600 Z0.18 ; Firmware Retraction 0.6mm , speed 60m/s , Z-hop 0.18
M572 D0 S0.07 ; Pressure advance compensation (if needed to be changed)
M290 R0 S0.05
9 changes: 9 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/PETG/load.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;load PETG
T0
G10 S255 R160 ; Heat up the current tool to 260C enough for PETG first layer
M116 ; Wait for the temperatures to be reached
G1 E70 F3000 ; Extrude 70mm of filament at 3000mm/min
G1 E80 F300 ; Extrude 80mm of filament at 300mm/min - purge hotend

M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drive
8 changes: 8 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/PETG/unload.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;unload PETG
T0
G10 S250 ; Heat up the current tool to 250C enough for PETG
M116 ; Wait for the temperatures to be reached
G1 E-20 F300 ; Retract 20mm of filament at 300mm/min
G1 E-200 F3000 ; Retract 200mm of filament at 3000mm/min
M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drive
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;PLA config.g
G10 S170 R60 ; Heat up the current tool to 190C enough for PLA
M140 S70 R30
M207 S0.6 F3600 Z0.18 ; Firmware Retraction 0.6mm , speed 60m/s , Z-hop 0.18
M572 D0 S0.07 ; Pressure advance compensation (if needed to be changed)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;load PLA
T0
M84 E0 ; Turn off extruder drive
G10 S170 ; Heat up the current tool to 195C enough for PLA
M116 ; Wait for the temperatures to be reached
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;unload PLA
T0
G10 S150 ; Heat up the current tool to 140C enough for PLA woodfill
M116 ; Wait for the temperatures to be reached
G1 E-20 F300 ; Retract 20mm of filament at 300mm/min
G1 E-200 F3000 ; Retract 200mm of filament at 3000mm/min
M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drives 1 and 2
Empty file.
12 changes: 12 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/PLA/config.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
;PLA config.g

G10 S210 R80 ; Heat up the current tool to 210C enough for PLA
M140 S65 R40 ; Standby and initial Temp for bed as "off" (-273 = "off")
M207 S0.6 F3600 Z0.18 ; Firmware Retraction 0.6mm , speed 60m/s , Z-hop 0.18
;M572 D0 S0.07 ; Pressure advance compensation (if needed to be changed)
M572 D0 S0
M204 P1400 T4000 ; General maximum acceleration P(print) T(travel)

;M566 X1200 Y1200 Z60 E3000 ; jerk settings for PLA
;M307 H0 A214.3 C641.7 D1.3 S1.00 V24.0 B0 ; Bed PID tune for 120c
;M307 H1 A491.0 C190.9 D2.8 S1.00 V23.9 B0 ; Hot end PID tune at 280c
9 changes: 9 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/PLA/load.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;load PLA
T0
G10 S210 ; Heat up the current tool to 210C, plenty for PLA and to purge any higher temp materials
M116 ; Wait for the temperatures to be reached
G1 E70 F3000 ; Extrude 70mm of filament at 3000mm/min
G1 E80 F300 ; Extrude 80mm of filament at 300mm/min - purge hotend

M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drive
8 changes: 8 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/PLA/unload.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;unload PLA
T0
G10 S210 ; Heat up the current tool to 210C, enough for PLA
M116 ; Wait for the temperatures to be reached
G1 E-20 F300 ; Retract 20mm of filament at 300mm/min
G1 E-200 F3000 ; Retract 200mm of filament at 3000mm/min
M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drives 1 and 2
Empty file.
4 changes: 4 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/TPU/config.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
G10 S230 R160 ; Heat up the current tool to 260C enough for PETG first layer
M140 S80 R30
M207 S0.6 F3600 Z0.18 ; Firmware Retraction 0.6mm , speed 60m/s , Z-hop 0.18
M572 D0 S0.00 ; Pressure advance compensation (if needed to be changed)
9 changes: 9 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/TPU/load.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;load TPU
T0
G10 S230 ; Heat up the current tool to 250C enough for PETG
M116 ; Wait for the temperatures to be reached
G1 E100 F3000 ; Extrude 100mm of filament at 3000mm/min
G1 E20 F300 ; Extrude 20mm of filament at 300mm/min

M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drive
8 changes: 8 additions & 0 deletions community/cheeseandham/Duet2 RRF3/filaments/TPU/unload.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;unload TPU
T0
G10 S230 ; Heat up the current tool to 250C enough for PETG
M116 ; Wait for the temperatures to be reached
G1 E-20 F300 ; Retract 20mm of filament at 300mm/min
G1 E-200 F3000 ; Retract 200mm of filament at 3000mm/min
M400 ; Wait for the moves to finish
M84 E0 ; Turn off extruder drive
2 changes: 2 additions & 0 deletions community/cheeseandham/Duet2 RRF3/macros/1_Tool0_Active.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
T0
M703
5 changes: 5 additions & 0 deletions community/cheeseandham/Duet2 RRF3/macros/2_Tool0_Standby.g
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
T0 ; select T0
M703 ; load current filament config
M144 ; put bed into standby mode
M400 ; wait for moves to complete
T-1 ; unselect tool to put it into standby temperature.
5 changes: 5 additions & 0 deletions community/cheeseandham/Duet2 RRF3/macros/3_Tool0_OFF
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
T0 ; select T0
M400 ; wait for moves to complete
M140 S0 R0 ; clear temperatures from DWC
M140 S-273.1 R0 ; Standby and initial Temp for bed as "off" (-273 = "off")
G10 P0 S-273.1 R-273.1 ; Set tool 0 operating and standby temperatures(-273 = "off")
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
M201
M204
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
M566
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
M572
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
M207
Loading