586,103 active members*
3,799 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Hello
    I need a Macro.
    The macro should start a program...let’s say it that way:
    I have a program that needs to be run 10 times and afterwards the program should start a different program (a measuring program)
    That means after every 10th run, the measuring program should start.

    How could the macro look like? I don’t have much experience with Macros at all ...

    Many thanks in advance...

  2. #2
    For example like this:
    #500=#500+1
    If #500 GT 10 Goto 2000
    M30/M99 'Program end
    N2000
    #500=0
    measure sub-program

  3. #3
    O0001
    #500=0(COUNT TO 0);
    N10 If #500 GT 10 GOTO 2000(IF COUNTER MORE THAN 10 JUMP N2000);

    (MILLING OR TURNING PROG)
    M06T01;
    G01X100.;
    ....
    ....
    #500=#500+1;
    GOTO10;

    M02;

    N2000(MEASURE SUB PROG);
    #500=0;
    M70...;
    ...
    ...
    GOTO10(BACK TO START);
    M02;
    %

Posting Permissions

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