commit 8868cbddc8fd199842e1e60d751b1b9eeb4502f7 Author: pedro Date: Sun May 23 14:36:07 2021 +0200 Initial commit from RatRig diff --git a/bed.g b/bed.g new file mode 100644 index 0000000..411ac2e --- /dev/null +++ b/bed.g @@ -0,0 +1,11 @@ +; this script compensates for what the Z offset is +; so if G31 P500 X-30 Y-15 Z1.7 then first probe will be at +; X30 Y20 (when G30 P0 X0 Y5) + +M561 ; clear any bed transform + +G30 P0 X5 Y5 Z-99999 ; probe near a leadscrew +G30 P1 X150 Y285 Z-99999 ; probe near a leadscrew +G30 P2 X270 Y5 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors + +G29 ; probe the bed and enable compensation diff --git a/config.g b/config.g new file mode 100644 index 0000000..2bc0677 --- /dev/null +++ b/config.g @@ -0,0 +1,91 @@ +; General preferences +G90 ; send absolute coordinates... +M83 ; ...but relative extruder moves +M550 P"V-Core 3" ; set printer name +M669 K1 ; CoreXY +G29 S1 ; Set Units to Millimeters + +; Network +M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP +M586 P0 S1 ; enable HTTP +M586 P1 S0 ; disable FTP +M586 P2 S0 ; disable Telnet + +; Drives +M569 P0.0 S1 D3 ; physical drive 0.0 goes forwards +M569 P0.1 S1 D3 ; physical drive 0.1 goes forwards +M569 P0.2 S1 D3 ; physical drive 0.2 goes forwards +M569 P0.3 S1 D3 ; physical drive 0.3 goes forwards +M569 P0.4 S1 D3 ; physical drive 0.4 goes forwards +M569 P0.5 S1 D3 ; physical drive 0.5 goes forwards +M584 X0.4 Y0.3 Z0.0:0.1:0.2 E0.5 ; set drive mapping +M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation + +M92 X80.00 Y80.00 Z800.00 ; set steps per mm +M906 X1000 Y1000 Z800 I30 ; set motor currents (mA) and motor idle factor in per cent +M84 S30 ; Set idle timeout + +M566 X400.00 Y400.00 Z6.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min) +M203 X10800.00 Y10800.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min) +M201 X3000.00 Y3000.00 Z100.00 E3600.00 ; set accelerations (mm/s^2) + +; Axis Limits +M208 X0 Y0 Z0 S1 ; set axis minima +M208 X310 Y300 Z300 S0 ; set axis maxima + +; Endstops +M574 X1 S1 P"io1.in" ; configure active high endstops +M574 Y2 S1 P"io0.in" ; configure active high endstops +M574 Z1 S2 ; configure Z-probe endstop for low end on Z + +M671 X-4.5:150:304.5 Y-4.52:305:-4.52 S5 ; define positions of Z leadscrews or bed levelling screws +M557 X30:300 Y15:300 P5 ; define 5x5 mesh grid + +; Heaters +M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed" ; configure sensor 0 as thermistor on pin temp0 +M950 H0 C"out0" T0 ; create bed heater output on out5 and map it to sensor 0 +M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit +M140 H0 ; map heated bed to heater 0 +M143 H0 S110 ; set temperature limit for heater 0 to 110C + +;; Run Bed PID Tune!! Bellow is an example for a 300x300 bed +;; M307 H0 A303.1 C356.7 D1.4 S1.00 V24.0 B0 + +; Fans +M950 F0 C"out3" Q500 ; create fan 0 on pin out3 and set its frequency +M106 P0 C"Hotend Fan" S0 H1 T45 L255 ; set fan 0 name and value. Thermostatic control turned on for Hotend +M950 F1 C"out4" Q500 ; create fan 1 on pin out4 and set its frequency +M106 P1 C"Layer Fan" S0 H-1 L255 ; set fan 1 name and value. Thermostatic control is turned off + +; Tools +M563 P0 D0 H1 F1 ; 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 + +M950 H1 C"out1" T1 ; create nozzle heater output on out2 and map it to sensor 1 +M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit +M143 H1 S250 ; set the maximum temperature in C for heater + +; EVA 2 / BMG / E3D V6 + +M92 E415 ; set extruder steps per mm, 1.8 angle/step +M906 E800 ; set extruder motor current (mA) and idle factor in per cent + +M308 S1 P"temp1" Y"thermistor" T100000 B4725 C7.060000e-8 A"Hotend" +;; Run Heater PID Tune!! +;; M307 H1 A751.5 C196.6 D4.7 S1.00 V23.9 B0 + +; Z-Probe +;; Inductive Probe +; M558 P5 C"!io3.in" H5 F400 T5000 ; set Z probe type to unmodulated and the dive height + speeds +; G31 P500 X-30 Y-15 Z0.20 ; set Z probe trigger value, offset and trigger height, more Z means closer to the bed +;; BLTouch +; M950 S0 C"io2.out" ; Create a servo pin on io2 +; M558 P9 C"io2.in" H5 F500 T10800 A5 ; set Z probe type to unmodulated and the dive height + speeds +; G31 P25 X-28.00 Y-13.00 Z0.90 ; set Z probe trigger value, offset and trigger height, more Z means closer to the bed + +M404 N1.75 D0.4 ; Filament width and nozzle diameter +T0 + +; Pressure Advance +; M572 D0 S0.10 diff --git a/deployprobe.g b/deployprobe.g new file mode 100644 index 0000000..488ed1d --- /dev/null +++ b/deployprobe.g @@ -0,0 +1,4 @@ +; deployprobe.g +; Called to deploy a physical Z probe +; +M280 P0 S10 ; Deploy the BLTouch pin diff --git a/homeall.g b/homeall.g new file mode 100644 index 0000000..db1cbd1 --- /dev/null +++ b/homeall.g @@ -0,0 +1,23 @@ +; BLTouch +;M280 P0 S160 ; Precautionary alarm release +;M280 P0 S90 ; Ensure the pin is raised + +G91 ; relative positioning +G1 H2 Z5 F6000 ; lift Z relative to current position +G1 H1 X-625 Y605 F3600 ; move quickly to X and U axis endstops and stop there (first pass) +G1 H1 X-625 F1800 ; move quickly to X and U axis endstops and stop there (first pass) +G1 H1 Y605 F1800 ; move quickly to X and U axis endstops and stop there (first pass) +G1 H2 X5 Y-5 F6000 ; go back a few mm +G1 H1 X-625 Y605 F360 ; move slowly to X and U axis endstops once more (second pass) +G1 H1 X-625 F360 ; move slowly to X and U axis endstops once more (second pass) +G1 H1 Y605 F360 ; move slowly to X and U axis endstops once more (second pass) + +G90 ; absolute positioning +G1 X150 Y150 F10000 ; go to first probe point +G30 ; home Z by probing the bed + +G91 ; relative positioning +G1 Z5 F100 ; lift Z relative to current position +G90 ; absolute positioning +G1 X0 Y0 F10000 + diff --git a/homex.g b/homex.g new file mode 100644 index 0000000..b4eae2c --- /dev/null +++ b/homex.g @@ -0,0 +1,9 @@ +G91 ; relative positioning +;G1 H2 Z5 F6000 ; lift Z relative to current position +G1 H1 X-625 F1800 ; move quickly to X axis endstop and stop there (first pass) +G1 H2 X5 F6000 ; go back a few mm +G1 H1 X-625 F360 ; move slowly to X axis endstop once more (second pass) +;G1 H2 Z-5 F6000 ; lower Z again +G90 ; absolute positioning + +G1 X0 F6000 diff --git a/homey.g b/homey.g new file mode 100644 index 0000000..b3f8453 --- /dev/null +++ b/homey.g @@ -0,0 +1,9 @@ +G91 ; relative positioning +;G1 H2 Z5 F6000 ; lift Z relative to current position +G1 H1 Y605 F1800 ; move quickly to Y axis endstop and stop there (first pass) +G1 Y-5 F6000 ; go back a few mm +G1 H1 Y605 F360 ; move slowly to Y axis endstop once more (second pass) +;G1 H2 Z-5 F6000 ; lower Z again +G90 ; absolute positioning + +G1 Y0 F6000 diff --git a/homez.g b/homez.g new file mode 100644 index 0000000..d89d70a --- /dev/null +++ b/homez.g @@ -0,0 +1,15 @@ +; BLTouch +;M280 P0 S160 ; Precautionary alarm release +;M280 P0 S90 ; Ensure the pin is raised + +G91 ; relative positioning +G1 H2 Z5 F6000 ; lift Z relative to current position +G90 ; absolute positioning +G1 X150 Y150 F10000 ; 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 Z5 F100 ; lift Z relative to current position +;G90 ; absolute positioning + diff --git a/retractprobe.g b/retractprobe.g new file mode 100644 index 0000000..902f6ee --- /dev/null +++ b/retractprobe.g @@ -0,0 +1,4 @@ +; retractprobe.g +; Called to retract a physical Z probe +; +M280 P0 S90 ; Retract the BLTouch pin