NC Codes
-Block Number (N)
-Preparatory Codes (G)
-Miscellaneous Codes (M)
-Priamary X Motion (X)
-Priamary Y Motion (Y)
-Priamary Z Motion (Z)
-For Circular interpolations--- I=X J=Y and K=Z
-Feed rate (F)
-Spindle speed (S)
-Tool Type (T)
Preparatory Codes:
G90 - Absolute Coordinates
G91 - Relative Coordinates
G00 - Rapid Traverse (non-cutting move)
G01 - Straight Line Interpolation (cutting move
G02 - Circle Interpolation (cw)
G03 - Circle Interpolation (ccw)
G04 - Dwell (wait) Pause between motions on all axes.Time in seconds -
example: G04F2 -pause for 2 sec.
G05 - Pause - waits for user intervention
M Codes - Miscellaneous
M00 - Pause
M01 - Optional stop
M02 - End of Program
M03 - Spindle on
M05 - Spindle off
M06 - Tool Change
M08 / M09 - Accessory # 1 on / off
M10 / M11 - Accessory # 2 on / off
I hope that this has helped a little bit...here's some sample code...
N00 G90 ;
N01 M06T1 ;
N02 M03 S3000 ;
N03 G00 Z .1;
N04 G00 X.5Y.5 ;
N05 G01 Z-.0625F9 ;
N06 G01 X.5Y1.5;
N07 G01 X.875Y1;
N08 G01 X1.25Y1.5;
N09 G01 X1.25Y.5;
N10 G01 Z.1;
N11 G00 X1.75Y1.5;
N12 G01 Z-.0625F9;
N13 G01 X1.75Y.5;
N14 G03 X1.75Y1.5I1.75J1;
N15 G01Z.1;
N16 M05;
N17 M06T00;
N18 G00X4Y3Z3;
N19 M02;
As an excercise, it helps you to learn by writing in what each line of code means to the right of the semicolon.
