585,702 active members*
4,165 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Part counter through programing variable Fanuc 18i T
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2008
    Posts
    5

    Part counter through programing variable Fanuc 18i T

    Hi CNC-programmers!

    No part counter on my Fanuc i18-T.
    So I thought I can increment a variable in my prog, but how to write it in clear so I'll get the number when the job will be finished next week?

    Thank you for any help!
    K.

  2. #2
    Join Date
    Dec 2012
    Posts
    395

    Re: Part counter through programing variable Fanuc 18i T

    Hi,

    Check parameters 6700 - 6713 for the part count and total parts.
    Fanuc Parameter Manual GFZ-63530 (Fanuc 18i Manuals User Guides - CNC Manual )


    these are for my Fanuc 18i-TB twin turret - twin spindle:

    Main spindle:
    N06700 P 00000000
    N06710 P 0
    N06711 P 154 (machined parts)
    N06712 P 976071 (total parts)
    N06713 P 0

    Sub spindle:
    N06700 P 00000000
    N06710 P 0
    N06711 P 145
    N06712 P 972644
    N06713 P 0

    Regards,
    Heavy_Metal.

  3. #3
    Join Date
    Aug 2008
    Posts
    5

    Re: Part counter through programing variable Fanuc 18i T

    Thanks very much! I will try to set those parameters!

    BR.
    K.

  4. #4
    Join Date
    Sep 2010
    Posts
    1230

    Re: Part counter through programing variable Fanuc 18i T

    Quote Originally Posted by kruener1 View Post
    Hi CNC-programmers!

    No part counter on my Fanuc i18-T.
    So I thought I can increment a variable in my prog, but how to write it in clear so I'll get the number when the job will be finished next week?

    Thank you for any help!
    K.
    Hello kruener1,
    Fanuc and other controls, provide the following System Variables that can be manipulated (Read from, Written to).

    #3901 Number of machined parts (completion number)
    #3902 Number of required parts (target number)

    It would be a simple matter to create Custom M Codes to use whenever the Target Number had to be set and to increment the Completed Number, to call short Macro Programs that deal with the two issues. Example follows of Part Counter Increment Macro called with a Custom M Code.

    O9020 (Parts Completed Increment)
    #3901 = #3901 +1
    IF [#3901 LT #3902] GOTO10
    Code to Park and Stop the Machine, run Bar Change Routine, or whatever action when the Target Number is reached goes here.
    N10
    M99

    Regards,

    Bill




  5. #5
    Join Date
    Feb 2006
    Posts
    1792

    Re: Part counter through programing variable Fanuc 18i T

    Another method which may suit specific cases:

    Set parameter 6710 = 100 (say)(any number between 1 and 255 except 98 and 99)
    Insert a line M100 after completion of each job.
    The part counter #3901 would automatically get incremented every time it encounters M100.(or M30 or M02).
    If it is desired to increment the count only by M100, set parameter 6700#0 (PCM) = 1

  6. #6
    Join Date
    Aug 2008
    Posts
    5

    Re: Part counter through programing variable Fanuc 18i T

    Thanks also Bill and Sinha_nsit! Sounds good, I will try that asap.

Similar Threads

  1. PART COUNTER FANUC OT CONTROL
    By Amboy in forum Fanuc
    Replies: 8
    Last Post: 02-11-2015, 01:07 PM
  2. Replies: 1
    Last Post: 06-11-2014, 02:53 AM
  3. Macro/Variable Programing
    By chadr03 in forum WinCnc
    Replies: 1
    Last Post: 02-02-2011, 02:00 PM
  4. Variable programing help
    By matyh100 in forum G-Code Programing
    Replies: 2
    Last Post: 07-21-2010, 08:02 AM
  5. Changing Fanuc part counter increment?
    By gearsoup in forum Fanuc
    Replies: 4
    Last Post: 06-23-2007, 01:50 PM

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
  •