(This GCode script was designed to adjust the Z height of a CNC machine according) (to the minute variations in the surface height in order to achieve a better result in the milling/etching process) (This script is the output of AutoLevellerAE, 0.9.5u2 Changeset: ...2d0387 @ http://autoleveller.co.uk) (Author: James Hawthorne PhD. File creation date: 08-02-2019 00:14) (This program and any of its output is licensed under GPLv2 and as such...) (AutoLevellerAE comes with ABSOLUTELY NO WARRANTY; for details, see sections 11 and 12 of the GPLv2 @ http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) (The following is a checklist which can be used before the probe routine starts) (The checklist may not be entirely correct given your machine, therefore you should make your own adaptations as appropriate) (1. Make sure wires/clips are attached and the probe is working correctly) (Test probe connections within control software before starting) (2. Home all axis) (3. Load GCode file that contains the probe routine into your software controller) (4. Jog tool tip close to surface and touch off Z) (5. Jog Z up a fraction to make sure surface is cleared) (6. Jog to and touch off X and Y at the desired bottom left corner of the probe area) (Note: The first probe will touch off Z to 0.0 when it first touches to the surface,) (all other probe values are relative to this first point) G90 G21 S20000 G17 M0 (Attach probe wires and clips that need attaching) (Initialize probe routine) G0 Z25 (Move clear of the board first) G1 X0 Y0 F600 (Move to bottom left corner) G0 Z10 (Quick move to probe clearance height) G4 P1 G31 Z-15 F100 (Probe to a maximum of the specified probe height at the specified feed rate) M2002 G92 Z0 (Touch off Z to 0 once contact is made) G0 Z10 (Move Z to above the contact point) G4 P1 G31 Z-15 F50 (Repeat at a more accurate slower rate) M2002 G92 Z0 G0 Z10 M40 G0 Z10 G1 X0 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X10 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X20 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X30 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X40 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X50 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X60 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X70 Y0 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X70 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X60 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X50 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X40 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X30 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X20 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X10 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 G1 X0 Y10 F600 G4 P1 G31 Z-15 F100 M2002 G0 Z10 M41 G0 X0 Y0 Z25 M0 (Detach any clips used for probing) M30