603,970 active members*
2,969 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Hello everybody
    I’d like to program call with M98 instead of subprograms.
    How does it work?

  2. #2
    Join Date
    Aug 2002
    Posts
    293
    Hello
    It’s programmed, for example, as following:

    O0815;
    N10...;
    N20...;
    N30...;
    N40 M98 P200891
    N50...;
    N60...;
    M30;



    O0891:
    N10...........;
    N20...........;
    N30...........;
    etc.;
    M99

    I hope it’ll help you

    Regards, Peter

  3. #3
    I certainly expressed myself not correctly.
    I want to avoid import and export of sub programs and to have repeat loop inside of my main program, something like that:

    T1 (centre drill)
    G81 .....
    N10
    N20
    N30
    N40 G80

    T2 (drill)
    G83
    Clause repeating from N20 to N40

    Is it possible?

  4. #4
    Join Date
    Nov 2004
    Posts
    2486
    I’d rather do it with a subprogram. Fanuc doesn’t like repeats!

    And here’s about import and export:

    Your main program’s called O1000
    Your subprograms:
    O1001
    O1002
    O1003
    O1004
    O1005
    O1006

    Now you’d like to export, it’s very easy:

    Input O1000, O1006 with a comma and press output start.

    Then all programs will be exported in one package!

    The separating is made with “%” and the end with M99 or M30.

    Boern
    <b><br />Das dringendste Problem der Technologie von heute ist nicht mehr die Befriedigung von Grundbedürfnissen und uralten Wünschen der Menschen, sondern die Beseitigung von Übeln und Schäden, welche uns die Technologie von gestern hinterlassen hat.</b><br /><br />Dennis Gabor (1900-79), ungar.-brit. Physiker, Entwickler der Holographie, 1971 Nobelpr.

  5. #5
    Join Date
    Dec 2008
    Posts
    1
    This works to repeat Code at a Fanuc control

    G97S5000M13T0909
    #120=0 <----------------- counter to 0
    N1001G0Z-9.3Y-.975 <--- N1001
    X3.34
    G1X3.045F2.0
    G41G1Z-9.353F1.5
    G3Z-9.353K.053U.025F1.5
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G3Z-9.353K.053U.025
    G1G40Z-9.3
    G0X3.34T0919
    G0X3.595
    #120=#120+1 <---- counter +1
    IF[#120LE1]GOTO1001 <--- goto N1001
    T0920
    IF[#120LE2]GOTO1001
    T0921
    IF[#120LE4]GOTO1001
    #120=0
    G0X6.0

    This example is for milling a thread 4 times with different offs

Posting Permissions

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