Skip to content

Instantly share code, notes, and snippets.

@keyz182
Last active February 9, 2019 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keyz182/c1cdade923cdb67993d9cf0fb017b438 to your computer and use it in GitHub Desktop.
Save keyz182/c1cdade923cdb67993d9cf0fb017b438 to your computer and use it in GitHub Desktop.
Duet Wifi Hypercube Evolution (20190209)
; bed.g
; called to perform automatic bed compensation via G32
;
; generated by RepRapFirmware Configuration Tool on Tue Feb 27 2018 20:56:15 GMT+0000 (GMT Standard Time)
M561 ; clear any bed transform
; G28 ; home all axes
; Probe the bed at 5 points
G1 X60 Y60 Z5 F9000 ; Move to bed
G4 P1500
G30 P0 X60 Y60 H0 Z-99999
G1 X60 Y240 Z5 F9000 ; Move to bed
G4 P500
G30 P1 X60 Y240 H0 Z-99999
G1 X240 Y240 Z5 F9000 ; Move to bed
G4 P500
G30 P2 X240 Y240 H0 Z-99999
G1 X240 Y60 Z5 F9000 ; Move to bed
G4 P500
G30 P3 X240 Y60 H0 Z-99999
G1 X150 Y150 Z5 F9000 ; Move to bed
G4 P500
G30 P4 X150 Y150 H0 Z-99999 S
; config-override.g file generated in response to M500 at 2019-01-11 18:26
; This is a system-generated file - do not edit
; Heater model parameters
M307 H0 A90.0 C700.0 D10.0 S1.00 V0.0 B1
M307 H1 A300.6 C168.0 D3.7 S0.80 V24.3 B0
M307 H2 A504.6 C226.3 D4.0 S1.00 V24.4 B0
M307 H5 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H6 A340.0 C140.0 D5.5 S1.00 V0.0 B0
M307 H7 A340.0 C140.0 D5.5 S1.00 V0.0 B0
G10 L2 P1 X0.00 Y0.00 Z0.00
G10 L2 P2 X0.00 Y0.00 Z0.00
G10 L2 P3 X0.00 Y0.00 Z0.00
G10 L2 P4 X0.00 Y0.00 Z0.00
G10 L2 P5 X0.00 Y0.00 Z0.00
G10 L2 P6 X0.00 Y0.00 Z0.00
G10 L2 P7 X0.00 Y0.00 Z0.00
G10 L2 P8 X0.00 Y0.00 Z0.00
G10 L2 P9 X0.00 Y0.00 Z0.00
; General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M667 S1 ; Select CoreXY mode
; Network
M550 PThreedee ; Set machine name
M552 S1 ; Enable network
M587 S"wireless" P"ROSXJNUD" I192.168.0.183 J192.168.0.1 K255.255.255.0 ; Configure access point. You can delete this line once connected
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet
; Drives
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwards
M92 X80 Y80 Z1600.00 E414.8:402.4 ; Set steps per mm
M350 X16 Y16 Z16 I1;E16:16 I1 ; Configure microstepping with interpolation
M350 E64:64 ; https://wilriker.github.io/microstep-calculator/
M566 X900 Y900 Z50 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000 Y30000 Z400 E3600:3600 ; Set maximum speeds (mm/min)
M201 X1000 Y1000 Z240 ; Set accelerations (mm/s^2)
M906 X1950 Y1950 Z1950 E1100:1100 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
; Retraction Settings
;M207 S4.5 F6500 T3500 R0.025 Z0.4 ; Distance 4.5mm, Speed 6500, de-retract 3500, extra distance 0.025, zhop 0.4
;M204 T7500 ; Set Travel Accel
;M566 E4000:4000 ; Set Extruder Jerk
;M201 E6600:6600 ; Set Extruder Accel
; Axis Limits
M208 X-1 Y-24 Z0 S1 ; Set axis minima
M208 X280 Y260 Z290 S0 ; Set axis maxima
; Stall Detection
M915 X Y S4 F0 H200 R1
; Endstops
M574 Z1 S2 ; Set Z-Probe at low end
M574 X1 Y1 S3 ; Set active high endstops
; Z-Probe
;M558 P8 F360 T1800 I1 R0.5 A5 S0.03
;M558 P8 F350 T750 I1 R0.4 A5 Z1 A0.05 H7.5 ; Piezo Z probe
;G31 P100 X0 Y0 Z-0.1 ; Set Z probe trigger value, offset and trigger height
;BLTouch
M307 H3 A-1 C-1 D-1
M558 P9 H5 F100 T2000
G31 X27.25 Y0 Z1.70 P25
; Define mesh grid
M557 X10:270 Y10:250 S52:48
; Bed Heater
;M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M305 P0 T100000 B4725 C7.060000e-8 R4700
M143 H0 S120
; Extruder Heaters
M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S285 ; Set temperature limit for heater 1 to 280C
;M305 P2 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 2
;M143 H2 S285 ; Set temperature limit for heater 2 to 280C
; Tools
M563 P0 D0 H1 S"Extruder1" ; 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
;M563 P1 D1 H1 S"Extruder2" ; Define tool 1
;G10 P1 X0 Y0 Z0 ; Set tool 1 axis offsets
;G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C
;M563 P0 D1 H2 S"LeftNozzle" ; Define tool 0
;G10 P0 X0 Y0 Z0 ; Set tool 1 axis offsets
;G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
;M563 P2 D0 H1 S"RightNozzle" ; Define tool 0
;G10 P1 X20 Y0 Z0 ; Set tool 0 axis offsets
;G10 P1 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
; Fans
M106 P0 S0 I0 F75 H-1 C"PartFan" ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F75 H1:2 T45 C"ExtruderFan" ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F75 H100 T45 C"DuetCooling" ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
; Automatic power saving
M911 S22 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
; Pressure Advance
M572 D0 S0.02
; Heater 4 Servo
M307 H4 A-1 C-1 D-1
M42 P4 S0
; Heater 5 LEDs
M307 H5 A-1 C-1 D-1
M42 P5 S0
; Filament out
;M591 D0 P1 C3 S1
M591 D1 P5 C4 R70:110 E3.0 S0
;T0
; Load override
M501
M280 P3 S10 I1
G91 ; use relative positioning
;Here I set motor settings before homing, it makes sure they are consistent even if I change settings for my motors for regular printing, it wont break my homing (the settings are corrected at the end of homing)
M203 X8000 Y8000 ; Set maximum speeds (mm/min)
M201 X200 Y200 ; Set accelerations (mm/s^2)
M913 X45 Y45 ; drop motor currents to 35%
M915 X Y S4 R0 F0 ; set X and Y to sensitivity 2, do nothing when stall, unfiltered
; Initial homing for X/Y
G1 Z10 F360 S2 ; lift Z
G4 P100
G1 S1 X-325 Y-325 F3600 ; move right/back 325mm, stopping at the endstop
G4 P100
G1 X20 Y20 ; move away from home
G4 P100
; X or Y is homed at this point, now home the other axis
G1 S1 X-325 F3600 ; move towards axis minimum
G4 P100
G1 S0 X10 F3600
G1 S1 Y-325 F3600 ; move towards axis minimum
G4 P100
G1 X5 Y5 ; move away from home
G4 P100
M400 ; make sure everything has stopped before we reset the motor currents
M913 X100 Y100 ; motor currents back to 100%
; Home Z
G90 ; back to absolute positioning
G1 X150 Y150 F3600 ; Move to bed centre
G4 P500 ; pause
G91 ; relative positioning
; Piezo z
;G1 S1 Z-305 F360 ; move Z down until the switch triggers
;G90 ; absolute positioning
;G92 Z0.0.5 ; set Z position to trigger height for buildtak
;G1 Z5 F100 ; lift Z relative to current position
; BLTouch Z
G30 ; Do a single probe to home our Z axis
G90 ; Make sure we are in absolute mode
G1 Z10 F360 ; Rapidly move the Z axis to Z=10.
M913 X100 Y100
M98 P/macros/motorspeeds.g ;I moved all motor settings from config.g into motorspeeds.g file so that I can set the back to normal after any changes during homing.
M400 ; make sure everything has stopped before we make changes
;Here I set motor settings before homing, it makes sure they are consistent even if I change settings for my motors for regular printing, it wont break my homing (the settings are corrected at the end of homing)
M203 X8000 ; Set maximum speeds (mm/min)
M201 X200 ; Set accelerations (mm/s^2)
M913 X35 ; drop motor currents to 50%
M915 X S5 R0 F0 ; set X to sensitivity 2, do nothing when stall, unfiltered
G91 ; use relative positioning
G1 Z10 F360 ; lift Z
G4 P100
G1 S1 X-325 F3600 ; move right/back 325mm, stopping at the endstop
G4 P100
G1 Z-10 X5 F360 ; lower Z
M400 ; make sure everything has stopped before we reset the motor currents
M913 X100 ; motor currents back to 100%
G90 ; back to absolute positioning
M98 P/macros/motorspeeds.g ;I moved all motor settings from config.g into motorspeeds.g file so that I can set the back to normal after any changes during homing.
M400 ; make sure everything has stopped before we make changes
;Here I set motor settings before homing, it makes sure they are consistent even if I change settings for my motors for regular printing, it wont break my homing (the settings are corrected at the end of homing)
M203 Y8000 ; Set maximum speeds (mm/min)
M201 Y200 ; Set accelerations (mm/s^2)
M913 Y35 ; drop motor currents to 50%
M915 Y S5 R0 F0 ; set Y to sensitivity 2, do nothing when stall, unfiltered
G91 ; use relative positioning
G1 Z10 F360 ; lift Z
G4 P100
G1 S1 Y-325 F3600 ; move right/back 325mm, stopping at the endstop
G4 P100
G1 Z-10 Y5 F360 ; lower Z
M400 ; make sure everything has stopped before we reset the motor currents
M913 Y100 ; motor currents back to 100%
G90 ; back to absolute positioning
M98 P/macros/motorspeeds.g ;I moved all motor settings from config.g into motorspeeds.g file so that I can set the back to normal after any changes during homing.
; homez.g
; called to home the Z axis
G91 ; relative positioning
G1 Z7.5 F360 S2 ; lift Z relative to current position
G90 ; absolute positioning
G1 X150 Y150 F3600 ; Move to bed
G4 P750 ; pause
G91 ; relative positioning
; Piezo Z
;G1 S1 Z-305 F360 ; move Z down until the switch triggers z
;G92 Z0 ; set Z position to trigger height for buildtak
;G90 ; absolute positioning
;G1 Z5 F100 ; lift Z relative to current position
; BLTouch Z
G30 ; Do a single probe to home our Z axis
G90 ; Make sure we are in absolute mode
G1 Z10 F360 ; Rapidly move the Z axis to Z=10.
; pause.g
; called when a print from SD card is paused
;
; generated by RepRapFirmware Configuration Tool on Tue Feb 27 2018 20:56:15 GMT+0000 (GMT Standard Time)
M83 ; relative extruder moves
G1 E-10 F3600 ; retract 10mm of filament
G91 ; relative positioning
G1 Z5 F360 ; lift Z by 5mm
G90 ; absolute positioning
G1 X0 Y0 F6000 ; go to X=0 Y=0
; resume.g
; called before a print from SD card is resumed
;
; generated by RepRapFirmware Configuration Tool on Tue Feb 27 2018 20:56:15 GMT+0000 (GMT Standard Time)
G1 R1 Z5 F6000 ; go to 5mm above position of the last print move
G1 R1 ; go back to the last print move
M83 ; relative extruder moves
G1 E10 F3600 ; extrude 10mm of filament
M280 P3 S90 I1
;M117 "Freeing Extruder0"
;M83 ; Make sure extruder is in relative mode (prob not needed anymore)
;G1 E-5.0 F3600 ; Retract filament as soon as possible...
;G91 ; Relative
;G1 Z2 F600 ; ...Then lower the bed...
;G90 ; Absolute
;G1 X10 Y150 F18000 ; ...Then get the hell away from the print
;G4 S2 ; Pause two seconds to cool the retracted filament
;G1 E4.9 F3600 ; Pack the filament to eliminate the tail
;G1 E-155 F8000 ; Yank the filament past the Y adapter and into its Bowden tube
;M117 "Freeing Extruder1"
;M83 ; Make sure extruder is in relative mode (prob not needed anymore)
;G1 E-5.0 F3600 ; Retract filament as soon as possible...
;G91 ; Relative
;G1 Z2 F600 ; ...Then lower the bed...
;G90 ; Absolute
;G1 X10 Y150 F18000 ; ...Then get the hell away from the print
;G4 S2 ; Pause two seconds to cool the retracted filament
;G1 E4.9 F3600 ; Pack the filament to eliminate the tail
;G1 E-155 F8000 ; Yank the filament past the Y adapter and into its Bowden tube
;M116 P0 ; wait for tool 0 only to reach operating temperature
;G1 E150 F6000 ; Extrude 145mm @ 100mm/s
;G1 E5 F1500 ; Extrude 5mm @ 25mm/s
;G91 ; Relative
;G1 Z-2 F6000 ; Raise bed
;G90 ; Absolute
;M116 P1 ; wait for tool 0 only to reach operating temperature
;G1 E150 F6000 ; Extrude 145mm @ 100mm/s
;G1 E5 F1500 ; Extrude 5mm @ 25mm/s
;G91 ; Relative
;G1 Z-2 F6000 ; Raise bed
;G90 ; Absolute
M117 "Selecting Extruder0"
M117 "Selecting Extruder1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment