Created
October 30, 2019 12:40
-
-
Save easytarget/bf2c5f34750eb94e21e8d21dbf1ffc94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; bed.g | |
; called to perform automatic delta calibration via G32 | |
; | |
M118 P2 S"{""pe_imsg"":"" Calibrate""}" | |
G28 ; Home; | |
G29 S2 ; Unload Heightmap | |
M42 P2 S0 ; Lights Off | |
; Probe the bed at 6 peripheral, 3 halfway and the central points, and perform 3-factor auto compensation | |
; Smaller circle, safer, rotated by 90 | |
G30 P0 Y0.00 X130.00 Z-99999 H0 | |
G30 P1 Y112.58 X65.00 Z-99999 H0 | |
G30 P2 Y112.58 X-65.00 Z-99999 H0 | |
G30 P3 Y0.00 X-120.41 Z-99999 H0 | |
G30 P4 Y-101.85 X-58.80 Z-99999 H0 | |
G30 P5 Y-108.93 X62.89 Z-99999 H0 | |
G30 P6 X0.00 Y65.00 Z-99999 H0 | |
G30 P7 X-46.47 Y-26.83 Z-99999 H0 | |
G30 P8 X56.29 Y-32.50 Z-99999 H0 | |
G30 P9 X0 Y0 Z-99999 S8 | |
; Bigger circle : Fouls bed clips badly. | |
;G30 P0 X0.00 Y135.00 Z-99999 H0 | |
;G30 P1 X116.91 Y67.50 Z-99999 H0 | |
;G30 P2 X116.91 Y-67.50 Z-99999 H0 | |
;G30 P3 X0.00 Y-125.39 Z-99999 H0 | |
;G30 P4 X-106.14 Y-61.28 Z-99999 H0 | |
;G30 P5 X-113.28 Y65.40 Z-99999 H0 | |
;G30 P6 X0.00 Y67.50 Z-99999 H0 | |
;G30 P7 X58.46 Y-33.75 Z-99999 H0 | |
;G30 P8 X-48.57 Y-28.04 Z-99999 H0 | |
;G30 P9 X0 Y0 Z-99999 S8 | |
; Now move up and forward (for filament changes etc) | |
M42 P2 S0.6 ; Lights to 60% | |
G90 ; absolute positioning | |
G1 X0 Y-130 Z150 F5000 ; move up and to the front | |
;Leave heightmap unloaded | |
;G29 S1 ; re-load heightmap | |
M118 P2 S"{""pe_imsg"":"" Sunflower 10.0.0.40""}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Configuration file for Duet WiFi (firmware version 1.21 or newer) | |
; executed by the firmware on start-up | |
; Last Updated: 20190303 | |
; General preferences | |
M111 S0 ; Debugging off | |
G21 ; Work in millimetres | |
G90 ; Send absolute coordinates... | |
M83 ; ...but relative extruder moves | |
M555 P2 ; Set firmware compatibility to look like Marlin | |
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Configure automatic saving on power loss | |
; Base Delta parameters from previous calibration (I use delta calibration to refine) | |
; Design values: Diagonal 340.000, delta radius 178, homed height 600, bed radius 140.0, X 0°, Y 0°, Z 0° | |
M665 L340.000 R178.013 H638 B140.0 X0.360 Y0.139 Z0.000 | |
M666 X0 Y0 Z0 A0 B0 | |
; Endstops | |
M574 X2 Y2 Z2 S0 ; Set active low endstops | |
M208 Z0 S1 ; Set minimum Z (soft endstop) | |
; Z-Probe (DC42 IR) | |
M558 P1 H4 F150 T3000 ; Set Z probe type to unmodulated and the dive height + speeds | |
G31 P500 X8 Y10 Z1.37 ` ; Set Z probe trigger value, offset and trigger height (+ve moves nozzle down) | |
; Archived probe settings: Z-Probe (orion) | |
;M558 P8 I1 R0.4 F3000 X0 Y0 Z0 H4 ; Z-Probe: analogue mode, Normally closed, delay, speed, not used as endstop, dive depth | |
;G31 X0 Y0 Z-0.10 P800 ; Z-Probe: X, Y, Z offsets, sensitivity/threshold | |
M557 R130 S40 ; Define mesh grid size | |
; Drives | |
M569 P0 S1 ; Drive 0 goes forwards - X | |
M569 P1 S1 ; Drive 1 goes forwards - Y | |
M569 P2 S1 ; Drive 2 goes forwards - Z | |
M569 P3 S0 ; Drive 3 goes backwards too - (Titan) | |
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation | |
M92 X160 Y160 Z160 E398 ; Set steps per mm (400 step/rev on the axes) Titan Extruder start calculation=419 | |
M566 X400 Y400 Z400 E400 ; Set maximum instantaneous speed changes (mm/min) | |
M201 X3000 Y3000 Z3000 E1600 ; Set accelerations (mm/s^2) | |
M203 X24000 Y24000 Z24000 E9000 ; Set maximum speeds (mm/min) | |
M906 X1600 Y1600 Z1600 E600 I25 ; Set motor currents (mA) and motor idle factor in per cent | |
M84 S30 ; Set idle timeout | |
; Bed Heater | |
M305 P0 T100000 B4138 C0 R4700 S"BedTemp" ; Set thermistor + ADC parameters for bed | |
M307 H0 A161.8 C739.8 D8 S1.00 V24.0 B0 F500 ; Autotune model results with better dead time + PWM freq. | |
M143 H0 S120 ; Set temperature limit for bed to 120C | |
; Hotend 1 | |
M305 P1 X501 R4700 S"E0Temp" ; heater 1 uses a PT1000 connected to thermistor channel 1 which has a 4.7K series resistor | |
;;;; IMPORTANT - SET THIS UP USING AUTOTUNE | |
M307 H1 A655.0 C191.2 D4.8 S1.00 V24.4 B0 F2500 ; Autotune model results, PWM freq. | |
M143 H1 S330 ; Set temperature limit to 330C | |
; Hotend2 is re-used for lights | |
M307 H2 A-1 C-1 D-1 ; Disable as a Heater. | |
M42 P2 S128 ; Set initial output to 50% | |
; Attach real names to virtual temperature sensors | |
M305 P100 S"DuetMCUTemp" ; The Duet CPU core temp | |
M305 P101 S"DuetDriversTemp" ; Stepper Driver warning/overheat | |
; Tools | |
M563 P0 D0 H1 ; Define tool 0 | |
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets | |
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C | |
; Network | |
; M587 S"ssid" P"pass" ; Configure access point | |
M550 Psunflower ; Set machine name | |
M551 PsuperKrib ; Set password | |
M552 S1 ; Enable network | |
M586 P0 S1 ; Enable HTTP | |
M586 P1 S1 ; Enable FTP | |
M586 P2 S0 ; Disable Telnet | |
; Fans | |
M106 P0 H-1 C"PartCooler" ; Set part cooler fan (#0) value. Thermostatic control is turned off | |
M106 P1 H1 T45 C"Extruder" ; Set E1 fan (#1) value, thermostatic control is turned on | |
M106 P2 H100:101:102 T50:70 L60 B0 C"MCU" ; Set MCU fan (#2), PWM between 50 and 70C, min 60% speed, no blip. | |
; Local additions | |
M929 P"eventlog.txt" S1 ; start logging to file eventlog.txt | |
M572 D0 S0.12 ; Pressure Advance (0.07 for 0.8mm nozzle, 0.12 for 0.4nozzle) | |
M207 S3 F9000 Z0.5 ; Firmware Retraction | |
M915 P0:1:2 S15 F1 H200 R1 ; Stall detection/log | |
; Printeye | |
M118 P2 S"{""pe_lmsg"":"" Sunflower "",""pe_rmsg"":"" 10.0.0.40""}" // REMOVE SOMETIME | |
M118 P2 S"{""pe_imsg"":"" Sunflower 10.0.0.40""}" // 2.0-dev | |
; I do not load config override.g, I want all config in this file. | |
; M501 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; homedelta.g | |
; called to home all towers on a delta printer | |
; | |
M118 P2 S"{""pe_imsg"":"" Homing ""}" | |
M106 S255 ; Owen, run part cooling during home to reduce threads. | |
G91 ; relative positioning | |
G1 S1 X805 Y805 Z805 F4000 ; move all towers to the high end stopping at the endstops (first pass, maximum possible travel is approx. 800mm) | |
M106 S0 ; Owen, stop the fan | |
G1 X-5 Y-5 Z-5 F800 S2 ; go down 10 mm | |
G1 S1 X12 Y12 Z12 F180 ; move all towers up once more (second pass, slower) | |
G1 Z-5 F1000 ; move down a few mm so that the nozzle can be centred | |
G90 ; absolute positioning | |
G1 X0 Y0 F1000 ; move X+Y to the centre | |
M118 P2 S"{""pe_imsg"":"" Sunflower 10.0.0.40""}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment