Problem Fanuc 180i Loop Counte


Results 1 to 5 of 5

Thread: Fanuc 180i Loop Counte

  1. #1
    Registered Boss001's Avatar
    Join Date
    Feb 2019
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default Fanuc 180i Loop Counte

    M98 P0002 L10

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

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

    Similar Threads:


  2. #2
    Member
    Join Date
    Feb 2011
    Location
    usa
    Posts
    353
    Downloads
    2
    Uploads
    0

    Default 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
    Registered Boss001's Avatar
    Join Date
    Feb 2019
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Feb 2011
    Location
    usa
    Posts
    353
    Downloads
    2
    Uploads
    0

    Default Re: Fanuc 180i Loop Counte

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



  5. #5
    Registered Boss001's Avatar
    Join Date
    Feb 2019
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default 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.

    Attached Thumbnails Attached Thumbnails Fanuc 180i Loop Counte-fanuc-jpg  


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Fanuc 180i Loop Counte

Fanuc 180i Loop Counte