gcode.txt
1 [[cha:gcode-examples]] 2 3 = G Code Examples 4 5 After you install LinuxCNC several sample files are placed in the 6 /nc_files folder. Make sure the sample file is appropriate for your 7 machine before running. 8 9 == Mill Examples 10 11 === Helical Hole Milling 12 13 File Name: useful-subroutines.ngc 14 15 Description: Subroutine for milling a hole using parameters. 16 17 === Slotting 18 19 File Name: useful-subroutines.ngc 20 21 Description: Subroutine for milling a slot using parameters. 22 23 === Grid Probe 24 25 File Name: gridprobe.ngc 26 27 Description: Rectangular Probing 28 29 This program repeatedly probes in a regular XY grid and writes the 30 probed location to the file 'probe-results.txt' in the same directory 31 as the .ini file. 32 33 === Smart Probe 34 35 File Name: smartprobe.ngc 36 37 Description: Rectangular Probing 38 39 This program repeatedly probes in a regular XY grid and writes the 40 probed location to the file 'probe-results.txt' in the same directory 41 as the .ini file. This is improved from the grid probe file. 42 43 === Tool Length Probe 44 45 File Name: tool-length-probe.ngc 46 47 Description: Tool Length Probing 48 49 This program shows an example of how to measure tool lengths 50 automatically using a switch hooked to the probe input. This is useful 51 for machines without tool holders, where the length of a tool is 52 different every time it is inserted. 53 54 === Hole Probe 55 56 File Name: probe-hole.ngc 57 58 Description: Finding the Center and Diameter of a hole. 59 60 The program demonstrates how to find the center of a hole, measure the 61 hole diameter and record the results. 62 63 === Cutter Compensation 64 65 To be added 66 67 == Lathe Examples 68 69 === Threading 70 71 File Name lathe-g76.ngc 72 73 Description: Facing, threading and parting off. 74 75 This file shows an example of threading on a lathe using parameters. 76