Hi, Timmy
Hears a G Code file I use to set Mach back to a standard configuration, I usually use it as an m1s file.
; Start UP Re-Set Mach3 G Code
;' ( M1111.M1S Macro )
;' ( Needs to be installed in C:\Mach3\Macros\"Profile" You Are Using Folder)
;' ( Basic Default Location would be "Mach3Mill")
;' ( Change it as you need to )
;' ( For MM Units Replace G20 with G21 )
;' ( For CV Mode Replace G61 with G64 )
G15 ;Code "G15" ' Cancle X,Y Polar Mode
G17 ;Code "G17" ' Set X,Y Plane
G20 ;Code "G20" ' Set INCH Units Mode, G21 for MM
G40 ;Code "G40" ' Cancle Cutter Radius Comp.
G49 ;Code "G49" ' Cancle Tool Length Offset
G50 ;Code "G50" ' Re-Set All Scale Factors To 1.0
G61 ;Code "G61" ' Set Exact Stop Mode
G69 ;Code "G69" ' Cancel G68 Rotate Coordinate System
G80 ;Code "G80" ' Cancle Canned Cycle Mode
G90 ;Code "G90" ' Set ABS Mode
G91.1 ;Code "G91.1" ' Set IJ's INC Mode
G94 ;Code "G94" ' Set Feed Per Minute Mode
G92.1 ;Code "G92.1" ' Set G92 5211-5216 to Zero
G52 x0 y0 z0 ;Code "G52 x0 y0 z0" ' Re-Set Temp Offset Mode
F100 ;Code "F100" ' Set Default F Speed To 10
M30 ;Code "M30" ' Program End and Rewind G-Code
%
Load it and run it, Then load your problem code and see if it run's.
Hope this Helps, Chip