Okay well today I was introduced to CNC programming, we learned G codes and M codes.
As a homework assignment he said to write the program to have a machine out out a rectangle as this one:
Okay so here is what i figured i would do
N0 G0 Z1 (Rapid traverse up 1 in the Z scale to make clearance for workpiece)
N1 M03 S1500 (setting spindle speed to 1500 rpm)
N2 G1 X1 Y1
N3 X1 Y2
N4 X2 Y2
N5 X2 Y1
N6 X1 Y1
N7 G0 Z1
N8 M05 (shut off spindle)
N9 M02 (end of program)
I only entered G1 once, is this okay? Does the computer remember the last function that was assigned to it? Anything else?