4
« on: April 10, 2014, 11:21:02 AM »
Hi All! Newbie Extraordinaire here.
So, I am trying to get a simple gcode running on my CNC. Just a straight cut out, and a straight cut back. When I run it through the GWizard Editor, it seems to run fine, no errors in the code. When I put it in Mach3, with the steppers hooked up, they run the tool path out, but not return to home. The tool path screen on Mach3 shows it returning home, but the motors don't reflect this portion of the routine.
Any ideas at what could be the cause? Am I looking at a coding issue, or possibly a controller issue? I'll attach my simple code below for opinions.
Thanks for any help you guys can provide a rookie.
CODE:
N0010 G17 G20 G40 G54 G80 G90 (SET TO INCHES; ABSOLUTE COORD POS)
N0020 T01 M6 (TOOL SELECT)
N0030 G00 X0.0 Y0.0 S10 M03 F20.0 (SET X,Y ZERO, SPINDLE 1000RPM CW, FEED 2000 IPM)
N0040 X144.0 Y25.0 (MOVE TO)
N0045 X144.0 Y25.5 (MOVE TO)
N0050 M05 (STOP SPINDLE)
N0060 G04 P100000 (DWELL 10 SECONDS)
N0070 G00 X144.0 Y25.5 S10 M03 F20.0 (MOVE TO RESET CART)
N0080 X0.0 Y25.5 (RUN REVERSE)
N0090 G30 X0 Y0 (PROGRAM STOP, RETURN HOME)