584,866 active members*
5,209 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2019
    Posts
    3

    Fanuc 180i Loop Counte

    M98 P0002 L10

    Has any system varible for paramater "L" except Macro B ?

    exp:
    M6T#100
    #100 = #100 + 1 >>>>>> omitted

  2. #2
    Join Date
    Feb 2011
    Posts
    353

    Re: Fanuc 180i Loop Counte

    I am not sure what you are trying to do as a loop counter

    M98 P0002 L10-- this will run the program 0002 10times


    M6T#100
    #100 = #100 + 1 >>>>>> omitted ---what is it you want omitted?



    this would make the the tool number increase by 1 each time and index but you would need to start at a specific number or else it could start with any tool # and all tools will do the same tool paths

    if this is all the program and you are looking to index to the next tool 10 times this would work
    I would use the G65 Instead of the m98 because you can bring local variables into the sub program


    G65P0002A1L10(P=PROGRAM, A= STARTING TOOL #, L =NUMBER OF REPEATS)


    O0002
    M6T#1(THIS IS A)
    G4P2000(DWELL FOR 2 SEC.)
    #1=#1+1
    M30
    %

    an other option is a while statement

    M98P0002

    O0002( The while statement will run 10 times)
    #100=1(STARTING TOOL)
    #101=10(ENDING TOOL)

    WHILE[#100LT#101]DO1
    M6T#100
    #100=#100+1
    END1

  3. #3
    Join Date
    Feb 2019
    Posts
    3

    Re: Fanuc 180i Loop Counte

    As we know some system variables for purpose
    exp:
    Modal Information
    #4001 to #4130

    I'm looking for #???? for counter when I use M98, G66, G65....ect.
    #???? will automatically count by fanuc system except Local, Common variables

  4. #4
    Join Date
    Feb 2011
    Posts
    353

    Re: Fanuc 180i Loop Counte

    these may be for the parts counter
    #3901 = Parts Machined
    #3902 = parts required

  5. #5
    Join Date
    Feb 2019
    Posts
    3

    Re: Fanuc 180i Loop Counte

    I take a shot from machine screen

    Sub program run one time, the number will -1 until 0
    It should be saved by a variable.

Similar Threads

  1. FANUC 180i mb alarm 8 on main board
    By Nil27 in forum Fanuc
    Replies: 0
    Last Post: 12-27-2018, 10:39 PM
  2. Fanuc 180i/ New Ball screw
    By Gotemcity in forum Fanuc
    Replies: 0
    Last Post: 07-24-2015, 05:18 AM
  3. Replies: 10
    Last Post: 03-02-2013, 05:00 AM
  4. post processor fanuc 18i mb5 and fanuc 180i Ma
    By nickargas in forum PTC Pro/Manufacture
    Replies: 1
    Last Post: 02-27-2013, 11:54 AM
  5. G68 Rotation problem on Fanuc 180i
    By btdmfg in forum Fanuc
    Replies: 2
    Last Post: 12-05-2008, 01:58 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
  •