; *********************************************************** ; Euclid Probe homez.g Example Macro ; RRF3.X Firmware Example ; saveas system/homez.g ; comments and echo statements throughout are provided for convenience ; *********************************************************** if !move.axes[0].homed || !move.axes[1].homed ; If the printer hasn't been homed, home it M98 P"0:/sys/homey.g" M98 P"0:/sys/homex.g" M561 ; clear any bed transform M290 S0 R0 ; clear baby steps per Wes C G91 ; relative positioning M400 ; G1 H2 Z6 F6000 ; lift Z relative to current position G90 ; absolute positioning echo "Call deployprobe.g macro" M401 P0 ; This runs macro file deployprobe ; echo "Return" G1 X150 Y150 F9000 ; go to first probe point M400 echo "G30 S-2 Command" G30 -2 G1 Z10 M400 G4 P500 echo "Call bed4point.g macro" M98 P"0:/sys/bed4point.g" ; tram bed echo "Return" G1 X150 Y150 F9000 ; go back to the first probe point and reprobe 0 in case it moved G30 echo "Call retractprobe.g macro" M402 P0 ; retract probe echo "Return" G1 Z10 F600 ; lift Z relative to current position G90 ; absolute positioning M564 S1 H0 G1 X150 Y150 F9000 ; move carraige to center front