Review rookie config.g please
-
The Duet WiFi has made my FolgerTech FT5-2 printer run amazingly well. My general config.g settings seem to work really well over a wide speed range, for large and small parts and for ABS and PLA. (I use S3D and its' start/stop scripts for individual run settings)
But I have a few questions about the config.g structure (syntax? whatever it's called) and how some of the Gcode is used. Some specific Q's are embedded in config line comments below.
Could I please ask for comments on what might need to change, be added or deleted?
I print 3-5x per week, wide range of parts, as a hobbyist. No need for efficiency or fancy config...just want a proper, basic config.g.Thank you.
; Configuration file for Duet WiFi (firmware version 1.21)
; generated by RepRapFirmware Configuration Tool v2 on Sat Apr 13 2019 09:39:04 GMT-0700 (Pacific Daylight Time); Ver. 27APR2019 - New Duet Board
; Ver. 11MAY2019 - update movement settings; General preferences
M111 S0 ; Debug off
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
G21 ; set units to mm
M912 P0 S5 ; CPU temp calibration offset
M555 P2 ; Set output to look like Marlin Relevant? Use RR or Marlin????; Network
M550 P"FT5-2 Mod Duet" ; Set machine name
M552 S1 ; Enable network Should this be S0????
;M587 S"SHOP2" P"'X'X'X'Xnnnn" ; Config access point. Delete this line once connected
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet
M575 P1 B57600 S1 ; Set auxiliary serial port baud rate and require checksum
(for PanelDue) Leave this in???; Drives
M584 X0 Y1:4 Z2 E3 ; sync left and right Y steppers on drivers 1 and 4.
M569 P0 S1 ; X Drive 0 forward
M569 P1 S0 ; Left Y Drive 1 backward
M569 P4 S1 ; Right Y Drive 4 (E1) forward
M569 P2 S0 ; Z Drive 2 backward. Bed moves down for Z+, up for Z-
M569 P3 S1 ; E0 Drive 3 forwardM350 X16 Y16 Z16 I1 ; Configure microstepping with interpolation
M350 E16 I1 ; may change extruder to 32 later
M92 X100.00 Y100.00 Z1000.00 E420.00 ; Set steps per mm E calibrated
M566 X800.00 Y800.00 Z30.00 E1000.00 ; Set maximum instantaneous speed changes - JERK (mm/min)
M203 X9000.00 Y9000.00 Z1000.00 E1000.00 ; Set maximum speeds (mm/min)
M201 X800.00 Y800.00 Z500.00 E800.00 ; Set max accelerations (mm/s^2) (was 2k,2k,60,800 pre 11may19)
M906 X900.00 Y800.00 Z1000.00 E800.00 I40 ; Set motor currents (mA) and motor idle factor in per cent; Axis Limits
M208 X0 Y0 Z0 S1 ; Set axis minima
M208 X300 Y300 Z350 S0 ; Set axis maxima; End Stops
M574 X2 Y2 S0 ; 2=endstops at x300 y300 high end. S0=active low, N/O switch
M591 D0 P2 C3 S1 ; Filament sensor. D=E0, P=NC mswitch, C3=EO endstop, S1=enable, 0=disable; Z-Probe Add a hard Z endstop at Z max.?
M574 Z1 S0 ; Set Z probe as Z endstop
M558 P5 H3 R0.2 F200 T6000 I1 ; P5 is switch, H 3mm, F speed, Trav speed, I1 invert activation, Recovery time
M557 X28:280 Y24:276 S42 ; Define mesh grid 7x7, includes inductive sensor offset from nozzle X-19mm
G31 P500 X-19 Y0 Z0.5 ; Set Z probe trigger value, offset and trigger height; Heaters M307 params… Run M307 H# for params report
; Bed
M305 P0 T100000 B3950 R4700 S"Bed" ; Set thermistor + ADC parameters for heater 0 Bed
M143 H0 S120 ; Set temperature limit for heater 0 to 120C
M307 H0 A150.5 C1276.9 D4.4 V24 B0 ; PID; Extruder
M305 P1 T100000 B3950 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C
M307 H1 A395.4 C174 D4.1 V24 B0 ; PID; Chamber No heater, but want to see chamber T
M305 P2 T100000 B3950 R4700 ; Set thermistor + ADC parameters for heater 2
; M141 H2 ; Assign chamber heater Disable heater assignment with neg number
; M143 H2 S80 ; Set temperature limit for heater 2 to 80C
; M307 H2 ; chamber heater operates in bang-bang mode; Fans
;M106 P0 S0 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
;M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on; Tools
M563 P0 D0 H1 ; Define tool 0 Uses E0 and Heater 1
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 S0 R0 ; Set initial tool 0 active S and standby R temperatures
M302 P0 S190 R190 ; set min extrude /retract T's
M563 P1 S"Chamber" H2 ; creates tool w/no drive, but displays chamber T. No heater; Automatic saving after power loss is not enabled
; Custom settings are not configured
; M501 ;load config.g on startup. Leave this in???? or manually enter after any changes???
-
@danl said in Review rookie config.g please:
M555 P2 ; Set output to look like Marlin Relevant? Use RR or Marlin????
This is for USB terminals that expect marlin like responses. Marlin is the default. It doesn't change any other behaviour.
@danl said in Review rookie config.g please:
M552 S1 ; Enable network Should this be S0????
S0 would disable networking, so not what you'd want I wouldn't think.
@danl said in Review rookie config.g please:
M575 P1 B57600 S1 ; Set auxiliary serial port baud rate and require checksum
(for PanelDue) Leave this in???You can leave it in or remove it since 57600 is the default anyway.
@danl said in Review rookie config.g please:
M350 X16 Y16 Z16 I1 ; Configure microstepping with interpolation
M350 E16 I1 ; may change extruder to 32 later
M92 X100.00 Y100.00 Z1000.00 E420.00 ; Set steps per mm E calibrated
M566 X800.00 Y800.00 Z30.00 E1000.00 ; Set maximum instantaneous speed changes - JERK (mm/min)
M203 X9000.00 Y9000.00 Z1000.00 E1000.00 ; Set maximum speeds (mm/min)
M201 X800.00 Y800.00 Z500.00 E800.00 ; Set max accelerations (mm/s^2) (was 2k,2k,60,800 pre 11may19)
M906 X900.00 Y800.00 Z1000.00 E800.00 I40 ; Set motor currents (mA) and motor idle factor in per centAll looks reasonable.
@danl said in Review rookie config.g please:
M574 Z1 S0 ; Set Z probe as Z endstop
Contrary to the comment there, Z1 S0 would be an active low endstop at z min.
https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration@danl said in Review rookie config.g please:
; Fans
;M106 P0 S0 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
;M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned onHow are you configuring your fans since these are all commented out? The first line has an H parameter without a number by the way.
@danl said in Review rookie config.g please:
M501 ;load config.g on startup. Leave this in???? or manually enter after any changes???
That's up to you if you want to use config-override.g. If you aren't using any of the functionality to save the available settings very often it can be just as easy to copy the heater PID values into config.g. some people use it to save their G31 z trigger height. Or on a delta to save the calibration data.
Overall it looks fine.
-
-
@Phaedrux @deckingman
Thank you.
Still have old 12V fans. Extruder fan always on, have not had to use part cooling fan yet as all PLA parts have been thin and broad requiring only a 120mm computer fan blowing across the whole bed.
Looking now at programming the 12V fans to run at max PWM of 128 vs 255. Would that work?Still very confused by M501 and have no idea what config-override.g does.
My typical run does a 7x7 leveling scan, then starts printing. The printer holds level and Z offset extremely well. I only re-zero when changing nozzles.
So, to load the bed profile and keep the Z offset, does config need to end with M501 for each new run? Or, remove M501 and manually enter only when I change nozzle/hot end?
Note that I make essentially all print parameter adjustments with S3D and its start/stop scripts.
Does re-loading config.g each run shorten the chip life?
Sorry about all q's, but no local resources to tap and I am really Googled out getting this far.
I will say that Google, this site, dozuki and the Duet board itself have made this an amazingly rewarding hobby. I cant believe how good the printer does with Duet. -
@danl said in Review rookie config.g please:
Looking now at programming the 12V fans to run at max PWM of 128 vs 255. Would that work?
If you are using a 24v PSU you should look into using a buck converter to provide a separate 12v supply for the fans.
https://duet3d.dozuki.com/Wiki/Connecting_and_configuring_fans#Section_Using_12V_fans_when_VIN_is_24VConfig-override attempts to duplicate some of the functionality from the older 8-bit boards that had an EEPROM that let you save certain parameters without having to recompile the firmware. First it would use the hard coded parameters from the firmware, and then it would load the EEPROM values that would overwrite them. It makes a lot less sense in the context of RepRapFirmware since it can be completely configured on the fly anyway.
https://duet3d.dozuki.com/Wiki/Gcode#Section_M500_Store_parameters
There you can see what things can be saved. it's mostly helpful for saving the heater PID tune values and the delta calibration since they are rather long commands.You likely aren't using M501 for anything if you don't specifically go out of your way to use it for something. If you manually copied the PID tuning results into config.g than you probably don't need it at all.
Most people would just modify G31 Z in the config.g, but there are use cases where it makes sense to have a macro that would do the measuring routine and then save it to the config-override for you automatically.
Reloading config.g won't have much of a material impact on the SD card which should be able to handle millions of reads. Write cycles are a little different, but even there, you're putting much more stress on the card by writing large gcode files to it. And that's what it's meant for afterall. So not worth worrying about.
If your printer is working well for you, I think you're doing everything right with what you have. If you have more specific things you want to change or modify, just ask away.
-
@danl said in Review rookie config.g please:
; Extruder
M305 P1 T100000 B3950 R4700 ; Set thermistor + ADC parameters for heater 1according to their firmware
https://drive.google.com/drive/folders/0B9b1NbuMK524aGhPQXRLTW9mams
the hotend and bed use EPCOS 100k thermistors and not B3950 ones. -
@veti
Thanks for catching that level of detail.
I'm lousy at code, wifi, etc, but OK at mechanics and basic electronics, so my FT5 is pretty heavily modified - E3D V6 and Volcano hotends, custom PEI heat bed with buried thermocouple, etc etc. I ran calibrations and physical temp checks on all thermistors. All are within a few degrees of indicated T's. I used a drilled out nozzle with a buried TC and lab grade thermometer to check the hot end T accuracy. -
@danl said in Review rookie config.g please:
E3D V6 and Volcano hotends
not an original then? because e3d is using semitec 102-gt thermistors.
-
@veti
The Volcano is an older one - came with the used printer and had an unidentified thermistor taped to it. Dont know exactly what it is, but the calibration temp checks agree with the indicated T's. The bed and chamber thermistors looked the same as the one on the Volcano.
Hmmmm...I need to look at the V6. I bought that new. Have only run it at 210-220C and measured T was good.
Thank you for pointing it out. I need to recheck the V6 next time I use it and set the proper parameters.
About 4 or 5 extra thermistors - with white wires, small glass bulb, and no ID - came with the used printer. Will have to manually check T's again if/when I use them.