BL-Touch Z-Offset 08. June 2024 12:33 |
Registrierungsdatum: 11 Monate zuvor Beiträge: 1 |
Config.g ; Configuration file for Duet WiFi (firmware version 3.1.1) ; executed by the firmware on start-up-- ; General preferences G90 ; Send absolute coordinates... M83 ; ...but relative extruder moves ; Network M550 P"VCast" ; Set machine name M552 S1 P192.168.0.59 ; Enable network M553 P255.255.255.0 M554 P192.168.0.1 M586 P0 S1 ; Enable HTTP M586 P1 S0 ; Disable FTP M586 P2 S0 ; Disable Telnet ; Drives M569 P0 S0 ;Drive 0 (X1) M569 P1 S0 ;Drive 1 (Y) M569 P2 S1 ;Drive 2 (Z) M569 P3 S0 ;Drive 3 (E0) M569 P4 S1 ;Drive 4 (E1) M569 P5 S0 ;Drive 5 (X2) ;M569 P6 S1 ;Drive 6 (nicht belegt) M584 X0 Y1 Z2 U5 E3:4 ; Driver 0=X, 1=Y, 2+4=Z, 5+6=E0+E1 ;M92 X160 Y80 Z800 U160 E830 ; Set steps/mm M92 X160 Y80 Z800 U160 E830 ; Set steps/mm ;M350 X16 Y16 Z16 U16 E16 I1 ; Configure micro-stepping with interpolation for all drives M350 X32 Y32 Z16 U16 E16 I1 M203 X12000 Y12000 Z1500 U12000 E3600 ; Set maximum speeds (mm/min) M201 X500 Y500 Z100 U500 E10000 ; Set accelerations (mm/s^2) M566 X600 Y600 Z60 U600 E1200 ; Set maximum instantaneous speed changes (mm/min) M906 X1000 Y1000 Z1000 U800 E500 I25 ; Set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X-45 Y-20.00 Z0 U0 S1 ; Set axes minima M208 X310 Y320 Z270 U358 S0 ; Set axes maxima ; Endstops M574 X1 S1 P"!e0stop" ; Use an endstop on X, stop at low end M574 Y1 S1 P"!ystop" ; Use an endstop on Y, stop at low end M574 U2 S1 P"!e1stop" ; Use an endstop on U, stop at high end ; BLTouch Z-Probe M574 Z1 S2 ; Define Z endstop at a probe M558 P9 C"^zprobe.in" H5.0 F120 T24000 A5 ; Set Z-Probe to type 9 for BLTouch mode, 5mm dive at 2mm/s, 5 attempts M950 S0 C"zprobe.mod" ; Create a servo pin on Duex PWM5 header G31 P25 X-29.75 Y-14.50 Z5 ; Set Z probe trigger value, nozzle offsets, and trigger height M557 X15:280 Y15:280 P4 ; Define a 5x5 bed mesh ; Heaters M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 C0 ; Define Sensor0 as the heated bed temperature M950 H0 C"bedheat" T0 ; Define Heater0 as the heated bed, bind to Sensor0 M140 H0 P0 ; Define Heated Bed M307 H0 A153.4 C224.4 D2.2 S1.00 V24.1 B0 ; PID Tuning for Heater0, Heated Bed (45C) M143 H0 S120 ; Set temperature limit for Heater0 to 120C M308 S1 P"e0temp" Y"thermistor" B4725 C7.060000e-8 ; Define Sensor1 as Extruder0 temperature M950 H1 C"e0heat" T1 ; Define Heater1 as Extruder0 heater, bind to Sensor1 ;M307 H1 A495.8 C172.0 D3.8 S1.00 V24.1 B0 ; PID Tuning for Heater1, X1 (200C) M307 H1 B0 R2.332 C307.5:203.9 D8.90 S1.00 V24.1 ;neues PID Tuning X1 (240C) M143 H1 S285 ; Set temperature limit for heater 1 to 285C M308 S2 P"e1temp" Y"thermistor" B4725 C7.060000e-8 ; Define Sensor2 as Extruder1 temperature M950 H2 C"e1heat" T2 ; Define Heater2 as Extruder1 heater, bind to Sensor2 M307 H2 A589.3 C216.6 D4.4 S1.00 V24.1 B0 ; PID Tuning for Heater1, X2 (200C) M143 H2 S285 ; Set temperature limit for heater 2 to 285C M308 S3 Y"mcu-temp" A"MCU" ; Define Sensor3 as the integrated MCU temperature sensor M308 S4 Y"drivers" A"TMC Drivers" ; Define Sensor4 as the TMC overheat sensor ; Fans ;M950 F0 C"fan0" Q20000 ; Define Fan0 for T0 Part Cooling ;M106 P0 S0 H-1 C"X1 Part Cooling" ; Set Fan0 to default off, manual control ;M950 F1 C"duex.fan3" ; Define Fan1 for T0 Hotend cooling ;M106 P1 H1 T45 ; Set Fan1 to Thermostatic control, max RPM at 45C ;M950 F2 C"fan1" Q20000 ; Define Fan2 for T1 Part Cooling ;M106 P2 S0 H-1 C"X2 Part Cooling" ; Set Fan2 to default off, manual control ;M950 F3 C"duex.fan4" ; Define Fan3 for T1 Hotend cooling ;M106 P3 H2 T45 ; Set Fan3 to Thermostatic control, max RPM at 45C ;M950 F4 C"!duex.fan5" ; Define Fan4 for Electronics cooling (12V 3-pin PWM blower) ;M106 P4 H3:4 L0.3 T20:45 ; Set Fan4 to Thermostatic control, PWM 20C to 45C (TMC overheat = 100% PWM) M950 F0 C"fan0" Q20000 M106 P0 S0 H-1 C"X1 Part Cooling" M950 F2 C"fan1" Q20000 M106 P2 S0 H-1 C"X2 Part Cooling" M950 F3 C"fan2" Q20000 M106 P3 H2 T45 ; Tools M563 P0 D0 H1 F0 S"X1" ; Tool0 uses Extruder0, Heater1 and Fan0 G10 P0 X0 Y0 Z0 R0 S0 ; Set Tool0 axis offsets and temperatures ;G10 P0 R0 S0 ;M563 P1 D1 H2 X3 F2 S"X2" ; Tool1 uses Extruder1, Heater2 and Fan2. X-axis is mapped to U M563 P1 D1 H2 F1 S"X2" G10 P1 X0 Y0 U0 Z0 R0 S0 ; Set Tool1 axis offsets and temperatures ;G10 P1 R0 S0 ; Create a tool that prints 2 copies of the object using both carriages M563 P2 D0:1 H1:2 X0:3 F0:2 S"Copy" ; tool 2 uses both extruders, hot end heaters and fans, and maps X to both X and U G10 P2 X50 Y0 U-50 S0 R0 ; set tool offsets and temperatures M567 P2 E1:1 ; set mix ratio 100% on both extruders ; Additional Settings M671 X-93:393 Y150:150 S5.0 ; Define Z-axis leadscrew positions for G32 M404 N1.75 ; Define filament diameter for print monitor M912 P0 S-7.5 ; Calibrate MCU temperature T0 ; Activate T0 by default ;T1 ;G29 S1 ;load Heightmap
; homeall.g ; Called to home all axes ; ; BLTouch preperation M280 P0 S160 ; Precautionary alarm release M280 P0 S90 ; Ensure the pin is raised ; Switch tool if required if state.currentTool != 0 T0 P0 ; Switch to Tool0 which carries the Z-Probe (P0 skips tool files) ; Home X, Y and U simultaneously G91 ; Relative positioning G1 Z5 F6000 H2 ; Lift Z relative to current position G1 X-999 Y-999 U999 F6000 H1 ; Move Y-axis to the endstop and stop (first pass) G1 X5 Y5 U-5 F360 ; Go back a few mm G1 X-999 Y-999 U999 F360 H1 ; Move Y-axis to the endstop once more (second pass) G90 ; Absolute positioning ; Home Z using the Z-Probe ;M290 R0 S0 ; Reset baby-stepping to 0 ;G1 X34.75 Y19.50 F6000 ; Move T0 to probing point (X5, Y5), including probe offset G1 X179.75 Y164.5 F6000 ; Probe Point in Bed Mitte G30 ; Probe the bed and set Z to the probe offset G1 X-100 F6000 ; Move X1 back to parked position
; homez.g ; called to home the Z axis ; ; generated by RepRapFirmware Configuration Tool v2 on Sun Jun 23 2019 15:47:43 GMT-0400 (Eastern Daylight Time) G91 ; relative positioning G1 Z5 F6000 S2 ; lift Z relative to current position G90 ; absolute positioning G1 X156.5 Y128.5 F6000 ; go to first probe point G30 ; home Z by probing the bed ; Uncomment the following lines to lift Z after probing G91 ; relative positioning G1 S2 Z5 F100 ; lift Z relative to current position G90 ; absolute positioning