586,961 active members*
2,670 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1

    Macro counter fanuc controller

    Hello all I am a newbie with a Macro question.
    Below is my machining program and I am using #500 and #501 as my macros. The counter is working fine but when I need to do a machine reset, it starts my counter over again. How can I use this counter and not have it reset every time I restart my lathe. I do need to reset it once it hits the max count.

    Thanks in advance for any help!

    %
    O19120(19125.xx single cut TEST FOR DRIVER COUNT)
    G50S1680
    G0G21G40G99
    #500=10000 (Max driver count)
    G0M5
    M89
    N3
    N1M440
    G0G96S80T0101Z0.M3
    G0X46.3
    G1X44.0F.032
    G1X43.5F.024
    G04U.4
    G0X48.00
    #501=#501+1 (Tool count by 1)
    S1500
    N2M442
    IF[#501GE#500]GOTO3
    IF[#3901GE#3902]GOTO3
    /M99
    N3G30U0.
    #501=0 (Reset part counter)
    #3006=1 (Change driver)
    M30
    %

  2. #2
    Join Date
    Aug 2006
    Posts
    138

    Re: Macro counter fanuc controller

    Try using the last offset (highest offset number) to remember the last count.
    "Teach the ignorant, care for the dumb, punish the stupid."

Similar Threads

  1. Replies: 15
    Last Post: 07-13-2022, 02:42 PM
  2. T42SP Part Counter 18T controller
    By MobiusCycling in forum Hardinge Lathes
    Replies: 2
    Last Post: 07-31-2015, 05:58 AM
  3. Replies: 1
    Last Post: 06-11-2014, 02:53 AM
  4. Replies: 3
    Last Post: 01-24-2014, 01:48 PM
  5. Macro:counter
    By frigat76 in forum Fanuc
    Replies: 4
    Last Post: 07-22-2011, 12:03 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
  •