EOT; themeBorderBox("100%"); print ""; $aryFile = file("data/g-codes.txt"); foreach ($aryFile as $line) { $line = trim($line); if ($line != "") { list($word,$desc) = explode("|",$line); $word = trim($word); $desc = trim($desc); print ""; print ""; print ""; print ""; } } print "
$word$desc
"; themeBorderBoxEnd(); print <<

CNC Machine Language
G-Code List

G-Code is one of a number of computer code languages that are used to instruct CNC machining devices what motions they need to perform such as work coordinates, canned cycles, and multiple repetitive cycles. Industry has standardized on G-Code as its basic set of CNC machine codes.

G-Code is the most popular programming language used for programming CNC machinery. Some G words alter the state of the machine so that it changes from cutting straight lines to cutting arcs. Other G words cause the interpretation of numbers as millimeters rather than inches. Some G words set or remove tool length or diameter offsets.

To your left is a complete listing of current G Codes.

EOT; } ?>