Hello Guest it is March 28, 2024, 05:52:31 PM

Author Topic: HELP motors only run part of code!!! ARGH!!!  (Read 3154 times)

0 Members and 1 Guest are viewing this topic.

HELP motors only run part of code!!! ARGH!!!
« 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)
« Last Edit: April 10, 2014, 11:24:25 AM by T3n5oR »
Re: HELP motors only run part of code!!! ARGH!!!
« Reply #1 on: April 10, 2014, 01:24:38 PM »
Is there a reverse inhibit function in Mach3 I am missing somewhere?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: HELP motors only run part of code!!! ARGH!!!
« Reply #2 on: April 10, 2014, 03:26:29 PM »
Do you have G4 set to ms, or seconds? You might have a 27 hour pause in there.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: HELP motors only run part of code!!! ARGH!!!
« Reply #3 on: April 10, 2014, 06:31:05 PM »
ms

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: HELP motors only run part of code!!! ARGH!!!
« Reply #4 on: April 10, 2014, 06:49:56 PM »
You have it set for 100 seconds at 100000 ms.

(;-) TP
Re: HELP motors only run part of code!!! ARGH!!!
« Reply #5 on: April 11, 2014, 02:07:28 PM »
sorry, it is on 1/10,000 scale, and dwells for 10 seconds, ive timed it, that is not the issue.  I got it running normally now, there seems to be some issue with mach where if I change any I/O parameters, I need to shut down my entire PC, and restart everything including mach to get it to run smoothly again.  Just rebooting mach does not fix it.  And the limit switch inputs do not work now.  Everything else does.