Setting Up Part-Count in Fanuc Controllers: A Step-by-Step Tutorial

Configuring Part ID 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 header of the machining program, you will need to find a spare variable, in this example we are using variable 600 inside program 1234 (sample program attached):

O1234(ST-1984 OP10)
#600=#4115

In FactoryWiz we need to change a few settings:

Part ID Source = MACRO VARIABLE POINTER
Part ID Source Address = 600



This method also works well for pallet change machines running each pallet as subprograms.

How does this work?

FactoryWiz will get the value in variable 600. #4115 is the system variable of the current program number, in this case #600 is set to 1234. FactoryWiz then looks in the CNC memory (doesn't work with DS) for the name of program 1234, which in this case is ST-1984 OP10. FactoryWiz will then set the PART ID as ST-1984 OP10.

Limitations

  1. Only works with CNC memory, not data servers.
  2. Comment must be on the same line as the O number
  3. Must use an O number on newer controls. <NAME> will not work.

    • Related Articles

    • 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 ...
    • 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 ...
    • 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, ...
    • Configuring Mazak for Monitoring

      Configuring Mazak Configuring Mazak for Monitoring In FactoryWiz Login as an Admin Navigate to CONFIGURATION > MACHINE ADD Input the name of the machine Set the machine type to Mazak Set IP address Save. Navigate to CONFIGURATION > LICENSING Increase ...