Incorrect Fanuc Part ID

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 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. Here is a video on this in action.

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

    • 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 ...
    • 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)  ...