Part Counts on Fanuc CNC Machines

Fanuc Part Count

Determining part counts for Fanuc machines

Standard Machines (not looping the program)

Fanuc machines will either part count on M30/M02 or a custom M code specified.

To enable the machine to count on and M30/M02 parameter 6700#0(PCM) must be 0. If this parameter is set to 1, then it will count when the M code in parameter 6710 is programmed. If set to 1 then you will need to add this M code to end of the CNC program before the M30.

Machines that loop with M99

If your programs loop and param 6700#0 = 0 then we can use a macro to increment the Fanuc part count.

#3901 = #3901 + 1.

#3901 is the system variable for the part counter. In the example above it is incremented by 1. If you wish to increment by more, then you can change the 1 to the number of parts made that cycle.

If parameter 6700#0 = 1 then you will need to put the M code in parameter 6710 in the line before the M99.
    • Related Articles

    • Configuring Part-Count on Fanuc Controllers

      Part Count Troubleshooting How to configure Part-Count on Fanuc controllers Some machines will run tool change and pallet change programs, which we are not interested in, we just want to know the PART ID, we can do this with a macro statement at the ...
    • Haas NGC DPRNT Part Name and Part Count

      For information on configuring the Haas and FactoryWiz with DPRNT, please see this KB Article. Part Name The default part name captured from the Haas NGC is the O number (example O01234). To capture something more meaningful, we can use DPRNT. Make ...
    • Macro Variable Part Counter

      How to count with macro variables When manufacturing multiple parts per cycle, it is often easier to count them using macro variables instead of the machine counter (CNC Resettable Counter). You will need to find a spare variable in the CNC to use, ...
    • 8.10.2 Part Scrap Reasons

      On the Part Scrap Reasons page, you may view a list of current part scrap reasons, add new, and delete reasons that an operator can use to explain why a part was scrapped. Add Part Scrap Reason Click the Add Part Scrap Reason button in the upper left ...
    • Configuring Fanuc Focas for Monitoring

      This guide is for the embedded ethernet (CD38A) not Data Server of Fast Board. Configuring Fanuc Focas for Monitoring FactoryWiz Login as an Admin Navigate to CONFIGURATION > MACHINE ADD Input the name of the machine Set the machine type to Fanuc ...