So where are your safety codes ?
These are normally the default settings the machine sets at startup
ie
Code:
%
Oxxxx ( comment ) ( short comment on this line allows to show up on DIR list )
G20 ( Safety line #1 ) ( This an inch program, verify the M/C is set to inches, if not STOP )
G00 G18 G40 G80 G99 M9 ( Safety line #2 ) ( Set Rapid, XZ Plane, Cancel Tool Compensation, Cancel Canned Cycle, Feed per Rev, Coolant OFF )
G54 M5 ( Set co-ord system, stop spindle )
G50 S3500 ( Limit maximum RPM )
G28 U0 Y0 ( Go home ) ( tool MUST be clear of any obstruction )
M1
()
N1 ...
Even if you 1/2 way thru a program, the safety codes would set the machine back to the initial settings