587,357 active members*
3,411 visitors online*
Register for free
Login
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2006
    Posts
    424

    Mach won't run my complete program.

    It's stalling with no error as if the program just ended.

    Today I got to the shop, and I have a working perfected code written with about 570 lines,

    It's all hand written, because I don't know how to use automatic roughing and finishing, or drilling cycles with Mach3 and it won't take the cycles I am familiar with.

    The control is stalling out at ~159. The notepad file doesn't display beyond that, nor will it run past that point.

    I ran a Mach turn update, and that changed nothing.

    So now a day is wasted.

  2. #2
    Join Date
    Jun 2006
    Posts
    424
    The problem is there no matter what I do. At 159 it begins to repeat the last two lines over and over. it won't do anything longer than around 150 lines.

    I can roll to the end of the program but it just takes those 135ish through 150 lines with it to the end of the program.

    THIS IS THE PROGRAM:

    T0303(face AND OD TURN)
    G0 Z.1
    G0 X1.0
    G1 Z0.050F.004
    G1 X0.0F.003
    G0 X1.0
    G1 Z0.025
    G1 X0.0F.004
    G0 X1.0
    G1 Z0.0
    G1 X0.0F.003
    G0 X0.910
    G1 Z-.700F0.005
    G0 Z-0.460
    G1 X0.8019 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.410
    G1 X0.7352 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.360
    G1 X0.6686 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.305
    G1 X0.6223 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.250
    G1 X0.575 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.200
    G1 X0.550 Z-0.525F0.006
    G0 X0.910
    G0 X0.910
    G0 Z-0.150
    G1 X0.500 Z-0.525F0.006
    G0 X0.910
    G0 Z-.110
    G1 X0.450 Z-0.525F0.006
    G0 X0.910
    G0 X0.900
    F0.006
    G0 Z-0.09
    G1 X0.400 Z-0.525F0.006
    G0 X0.910
    G0 Z0.0
    G1 X.890F0.003
    G1 Z-0.075F.003
    G1 X0.380 Z-0.525F.003
    G1 X0.890
    G1 Z-0.700
    G1 X1.0
    G0 Z4.0
    M1
    T1515 (SPOT DRILL)
    G0X0.0
    Z.1
    G1Z-.030F.003
    G0Z4.5
    M1
    T1414 (17/64 BORE DRILL)
    G0X0.0
    G0Z.1
    G1Z-0.2F.003
    G0Z0.0
    G0Z-0.18
    G1Z-.4F.003
    G0Z0.0
    G0Z-0.38
    G1Z-0.6
    G0Z0.0
    G0Z-0.58
    G1Z-.8F.003
    G0Z0.0
    G0Z-0.78
    G1Z-1.0F.003
    G0Z0.0
    G0Z-.98
    G1Z-1.2F.003
    G0Z0.0
    G0Z-1.18
    G1Z-1.4F.003
    G0Z0.0
    G0Z-1.38
    G1Z-1.6
    G0Z0.0
    G0Z-1.58
    G1Z-1.8F.003
    G0Z0.0
    G0Z-1.78
    G1Z-2.0F.003
    G0Z0.0
    G0Z-1.98
    G1Z-2.2F.003
    G0Z0.0
    G0Z-2.18
    G1Z-2.4F.003
    G0Z0.0
    G0Z-2.38
    G1Z-2.6
    G0Z0.0
    G0Z-2.58
    G1Z-2.8F.003
    G0Z0.0
    G0Z-2.78
    G1Z-3.0F.003
    G0Z0.6
    T1717 (5/16" DRILL)
    G0X0.0
    G0Z.1
    G1Z0.0
    G1Z-0.2F.003
    G0Z0.0
    G0Z-0.18
    G1Z-0.4F.003
    G0Z0.0
    G0Z-0.38
    G1Z-.535F.003
    G0 Z0.25
    M1
    T1313 (ID BORING BAR)
    G0 X0.300 Z0.041
    G0 Z0.011
    G1 Z-0.03F0.005
    G1 X0.790F0.005
    G1 Z0.041
    G0 X0.300
    G0 Z-0.016
    G1 Z-0.057F0.003
    G1 X0.790
    G1 Z0.041
    G0 X0.289 Z-0.057
    G0 X0.345
    G1 X0.289 Z-0.130F.005
    G0 Z-0.057
    G0 X0.3999
    G1 X0.289 Z-0.208F.005
    G0 Z-0.057
    G0 X0.446
    G1 X0.289 Z-0.288F.005
    G0 Z-0.057
    G0 X0.4922
    G1 X0.289 Z-0.368F.005
    G0 Z-0.057
    G0 X0.5384
    G1 X0.289 Z-0.448F.005
    G0 Z-0.057
    G0 X0.5846
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.6308
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.677
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7232
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7694
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.800
    G1 X0.289 Z-0.5074F.005
    G0 Z0.0
    G0 X.807
    G1 Z-0.057F.003
    G1 X0.289 Z-0.5247F0.003
    G1 X0.289
    G0 Z0.25
    M1
    T0606(CUTOFF)
    G0 X0.950
    G0 Z-0.675
    G1 X0.0F.005
    G0 X.950
    G0 Z1.0
    G92Z0.0
    M1
    T0303 (outside turning-- Needs G43ish command)
    G0 X.910
    G1 Z-.700F0.006
    G0 Z-0.460
    G1 X0.8019 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.410
    G1 X0.7352 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.360
    G1 X0.6686 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.305
    G1 X0.6223 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.250
    G1 X0.575 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.200
    G1 X0.550 Z-0.525F0.006
    G0 X0.910
    G0 X0.910
    G0 Z-0.150
    G1 X0.500 Z-0.525F0.006
    G0 X0.910
    G0 Z-.110
    G1 X0.450 Z-0.525F0.006
    G0 X0.910
    G0 X0.900
    F0.006
    G0 Z-0.09
    G1 X0.400 Z-0.525F0.006
    G0 X0.910
    G0 Z0.0
    G1 X.890F0.003
    G1 Z-0.075F.003
    G1 X0.380 Z-0.525F.003
    G1 X0.890
    G1 Z-0.700
    G1 X1.0
    G0 Z7.1
    M1
    T1717 (5/16" DRILL)
    G0X0.0
    G0Z.1
    G1Z0.0
    G1Z-0.2F.003
    G0Z0.0
    G0Z-0.18
    G1Z-0.4F.003
    G0Z0.0
    G0Z-0.38
    G1Z-.535F.003
    G0 Z0.25
    T1313 (ID BORING BAR)
    G0 X0.300 Z0.041
    G0 Z0.011
    G1 Z-0.03F0.005
    G1 X0.79F0.005
    G1 Z0.041
    G0 X0.300
    G0 Z-0.016
    G1 Z-0.057F0.005
    G1 X0.790
    G1 Z0.041 (end ID facing cycle)
    G0 X0.289 Z-0.057 (BEGIN ID TAPER TURN CYCLE)
    G0 X0.345
    G1 X0.289 Z-0.130F.005
    G0 Z-0.057
    G0 X0.3999
    G1 X0.289 Z-0.208F.005
    G0 Z-0.057
    G0 X0.446
    G1 X0.289 Z-0.288F.005
    G0 Z-0.057
    G0 X0.4922
    G1 X0.289 Z-0.368F.005
    G0 Z-0.057
    G0 X0.5384
    G1 X0.289 Z-0.448F.005
    G0 Z-0.057
    G0 X0.5846
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.6308
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.677
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7232
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7694
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.800
    G1 X0.289 Z-0.5074F.005
    G0 Z0.0
    G0 X.807
    G1 Z-0.057F.003
    G1 X0.289 Z-0.5247F0.003
    G1 X0.289
    G0 Z0.25
    M1
    T0606(CUTOFF)
    G0 X0.950
    G0 Z-0.675
    G1 X0.0F.005
    G0 X.950
    G0 Z1.0
    G92Z0.0
    M1
    T0303 (outside turning-- Needs G43ish command)
    G0 X.910
    G1 Z-.700F0.006
    G0 Z-0.460
    G1 X0.8019 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.410
    G1 X0.7352 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.360
    G1 X0.6686 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.305
    G1 X0.6223 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.250
    G1 X0.575 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.200
    G1 X0.550 Z-0.525F0.006
    G0 X0.910
    G0 X0.910
    G0 Z-0.150
    G1 X0.500 Z-0.525F0.006
    G0 X0.910
    G0 Z-.110
    G1 X0.450 Z-0.525F0.006
    G0 X0.910
    G0 X0.900
    F0.006
    G0 Z-0.09
    G1 X0.400 Z-0.525F0.006
    G0 X0.910
    G0 Z0.0
    G1 X.890F0.003
    G1 Z-0.075F.003
    G1 X0.380 Z-0.525F.003
    G1 X0.890
    G1 Z-0.700
    G1 X1.0
    G0 Z7.1
    M1
    T1717 (5/16" DRILL)
    G0X0.0
    G0Z.1
    G1Z0.0
    G1Z-0.2F.003
    G0Z0.0
    G0Z-0.18
    G1Z-0.4F.003
    G0Z0.0
    G0Z-0.38
    G1Z-.535F.003
    G0 Z0.25
    T1313 (ID BORING BAR)
    G0 X0.300 Z0.041
    G0 Z0.011
    G1 Z-0.03F0.005
    G1 X0.790F0.005
    G1 Z0.041
    G0 X0.300
    G0 Z-0.016
    G1 Z-0.057F0.003
    G1 X0.790
    G1 Z0.041 (end ID facing cycle)
    G0 X0.289 Z-0.057 (BEGIN ID TAPER TURN CYCLE)
    G0 X0.345
    G1 X0.289 Z-0.130F.005
    G0 Z-0.057
    G0 X0.3999
    G1 X0.289 Z-0.208F.005
    G0 Z-0.057
    G0 X0.446
    G1 X0.289 Z-0.288F.005
    G0 Z-0.057
    G0 X0.4922
    G1 X0.289 Z-0.368F.005
    G0 Z-0.057
    G0 X0.5384
    G1 X0.289 Z-0.448F.005
    G0 Z-0.057
    G0 X0.5846
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.6308
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.677
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7232
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7694
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.800
    G1 X0.289 Z-0.5074F.005
    G0 Z0.0
    G0 X.807
    G1 Z-0.057F.003
    G1 X0.289 Z-0.5247F0.003
    G1 X0.289
    G0 Z0.25
    M1
    T0606(CUTOFF)
    G0 X0.950
    G0 Z-0.675
    G1 X0.0F.005
    G0 X.950
    G0 Z1.0
    G92Z0.0
    M1
    T0303 (outside turning-- Needs G43ish command)
    G0 X.910
    G1 Z-.700F0.006
    G0 Z-0.460
    G1 X0.8019 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.410
    G1 X0.7352 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.360
    G1 X0.6686 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.305
    G1 X0.6223 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.250
    G1 X0.575 Z-0.525F0.006
    G0 X0.910
    G0 Z-0.200
    G1 X0.550 Z-0.525F0.006
    G0 X0.910
    G0 X0.910
    G0 Z-0.150
    G1 X0.500 Z-0.525F0.006
    G0 X0.910
    G0 Z-.110
    G1 X0.450 Z-0.525F0.006
    G0 X0.910
    G0 X0.900
    F0.006
    G0 Z-0.09
    G1 X0.400 Z-0.525F0.006
    G0 X0.910
    G0 Z0.0
    G1 X.890F0.003
    G1 Z-0.075F.003
    G1 X0.380 Z-0.525F.003
    G1 X0.890
    G1 Z-0.700
    G1 X1.0
    G0 Z7.1
    M1
    T1717 (5/16" DRILL)
    G0X0.0
    G0Z.1
    G1Z0.0
    G1Z-0.2F.003
    G0Z0.0
    G0Z-0.18
    G1Z-0.4F.003
    G0Z0.0
    G0Z-0.38
    G1Z-.535F.003
    G0 Z0.25
    T1313 (ID BORING BAR)
    G0 X0.300 Z0.041
    G0 Z0.011
    G1 Z-0.03F0.005
    G1 X0.790F0.005
    G1 Z0.041
    G0 X0.300
    G0 Z-0.016
    G1 Z-0.057F0.003
    G1 X0.790
    G1 Z0.041 (end ID facing cycle)
    G0 X0.289 Z-0.057 (BEGIN ID TAPER TURN CYCLE)
    G0 X0.345
    G1 X0.289 Z-0.130F.005
    G0 Z-0.057
    G0 X0.3999
    G1 X0.289 Z-0.208F.005
    G0 Z-0.057
    G0 X0.446
    G1 X0.289 Z-0.288F.005
    G0 Z-0.057
    G0 X0.4922
    G1 X0.289 Z-0.368F.005
    G0 Z-0.057
    G0 X0.5384
    G1 X0.289 Z-0.448F.005
    G0 Z-0.057
    G0 X0.5846
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.6308
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.677
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7232
    G1 X0.289 Z-0.5074F.005
    G0 Z-0.057
    G0 X0.7694
    G1 X0.289 Z-0.5074F.005
    G1 X0.289
    G0 Z-0.057
    G0 X0.800
    G1 X0.289 Z-0.5074F.005
    G0 Z0.0
    G0 X.807
    G1 Z-0.057F.003
    G1 X0.289 Z-0.5247F0.003
    G1 X0.289
    G0 Z0.25
    M1
    T0606(CUTOFF)
    G0 X0.950
    G0 Z-0.675
    G1 X0.0F.005
    G0 X.950
    G0 Z2.7
    G92Z0.0
    M1

  3. #3
    Join Date
    Jun 2006
    Posts
    424
    I'm not using cutter comp, because it seemed to want to arc onto and off of the part, crashing tools through the part.

    It just wasn't working as it should.

    In the same way, safety lines cause my machine to do funky things and crash, so I pulled safety lines also. I tested the G92's and they work so that shouldn't be the issue.

  4. #4
    Join Date
    Oct 2005
    Posts
    1237
    I would be a little easier to follow your code if it had line numbers and where it goes wonky. I sure don't feel like counting 152 lines into your code.

  5. #5
    Join Date
    Jan 2005
    Posts
    15362
    Hi Green0

    I think you have a problem with your feed rates & no callout as to what you want the control to do F0.003 is this the same as F3. being 3in per min I don't see any G90 G93 or G17 Etc the control needs to no what it has to do I'm surprised it run the first 157 lines.

    Mach (Artsoft) has good information on there site as to all the Gcode you would need to use to get you going.

    If notepad won't take your long program MS word will
    Mactec54

  6. #6
    Join Date
    Apr 2005
    Posts
    3634
    When the program stops, Press "Cycle Start" again.

    See If it picks up at the next line?

    .

  7. #7
    Join Date
    Jun 2006
    Posts
    424
    The G95 is a command I put in in advance before loading the program.

    This thing loads and proofs on my laptop, but not on my machine control computor running a more recent version of Mach.

    I don't want to uninstall it because I'll lose the machine settup.

    I could probably get it to run in less than 159 lines with the appropriate cycles instead of what I'm using, if I just had an example of a canned cycle for automatic roughing/finishing, and for peck drilling.

    If anyone can help with those that would be great. (I have the mach manual and it doesn't make the cycle format clear enough- no examples are provided).

    I should have tried cycle start again- that sounds like a not half-bad idea-

  8. #8
    Join Date
    Mar 2003
    Posts
    35538
    You can save your mach setup by saving the .xml file in the installed folder. Not sure about the lathe setup, but should be mach3turn.xml.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

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

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  9. #9
    Join Date
    Apr 2005
    Posts
    3634
    How about all those M1 ?

    Optional Program Stop Control
    The optional program stop control works as follows. If this control is ON and an input line contains an M1 code. program execution is stopped at the end on the commands on that line until the Cycle Start button is pushed.

    .

  10. #10
    Join Date
    Jun 2006
    Posts
    424
    It was stopping at G0 X0.677 in the ID turning code.

    The M1's are there for tool changes and they do stop the program, but don't stall it out.

Similar Threads

  1. Mazatrol Program into a G Code Program
    By fuzzman in forum Mazak, Mitsubishi, Mazatrol
    Replies: 15
    Last Post: 09-25-2012, 04:27 PM
  2. How to remember the position after close MACH program??
    By jimmychand in forum Mach Software (ArtSoft software)
    Replies: 1
    Last Post: 05-25-2007, 01:51 PM
  3. Confused: Mach Turn, Mach Mill, Mach 2/3 ?
    By CanSir in forum Mach Software (ArtSoft software)
    Replies: 5
    Last Post: 02-16-2007, 11:41 AM
  4. Replies: 11
    Last Post: 10-09-2005, 05:45 AM
  5. Mach 2 Program Question?
    By qsacracer in forum Mach Software (ArtSoft software)
    Replies: 7
    Last Post: 11-17-2004, 05:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •