Fanuc Part Count

Fanuc Part Count

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

    • Incorrect Fanuc Part ID

      Fanuc machines will tell us exactly what program they are running, which is great, most of the time.... 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 ...
    • Macro Variable Part Counter

      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, in this Fanuc example we will use ...
    • 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 ...
    • Fanuc 0T configuration document

      CNC Configuration Sheet Fanuc 0T CNC Parameters: (Phone camera) original settings before making modifications! Setting screen: Punch code- 1=ISO TV CHECK=0 OFF I/O=0 (for Channel 1) Parameters screen: 0002 = 1xxxxxx0  (do not change values for x)  ...
    • Fanuc 0M configuration document

      CNC Configuration Sheet Fanuc 0M CNC Parameters: (Phone camera) original settings before making modifications! Setting screen: Punch code- 1=ISO TV CHECK=0 OFF I/O=0 (for Channel 1) Parameters screen: 0002 = 1xxxxxx0  (do not change values for x)  ...