585,975 active members*
4,630 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    75

    Restart program for automatic running

    Hi,

    I want to run a program over and over without pressing the start button every time. I looked for a M code but cant find one. I thought there was one that just replaced M30. If anyone can help that would be great.

    Tom

  2. #2
    Join Date
    Oct 2010
    Posts
    156

    Re: Restart program for automatic running

    Hi Tom,

    This is one way I do it. On a line just before the start of the code I want to repeat, I put a:

    o100 repeat

    (that is the letter "O" and a one hundred. It doesn't have to be 100, but just needs to be the same as the following line):

    ...and on the line following the end of the code to be repeated, I put:

    o100 endrepeat

    Also, if you know how many times you want it to repeat, you could make that first line "o100 repeat [5]" to make it repeat five times. So, something like this:

    ...
    o101 repeat
    G00 X1.000 Y1.000
    G01 X0.000 Y0.000 F100
    o101 endrepeat
    ...


    or to repeat 15 times:
    ...
    o101 repeat [15]
    G00 X1.000 Y1.000
    G01 X0.000 Y0.000 F100
    o101 endrepeat
    ...


    HTH
    Paul

Similar Threads

  1. Program restart
    By hotiron in forum CNC Machine Related Electronics
    Replies: 2
    Last Post: 09-02-2014, 10:29 PM
  2. Restart in mid program
    By Praymond1209 in forum Machines running Mach Software
    Replies: 6
    Last Post: 09-09-2012, 11:57 PM
  3. Program Restart
    By DocRay in forum Daewoo/Doosan
    Replies: 2
    Last Post: 12-15-2009, 11:13 PM
  4. Program restart
    By johnd in forum Mach Mill
    Replies: 3
    Last Post: 03-02-2009, 03:32 AM
  5. M2: program restart eia/iso
    By apylus444 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 5
    Last Post: 10-07-2008, 01:07 AM

Tags for this Thread

Posting Permissions

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