Macro Variable Part Counter

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 #700 as the counter and #701 as the parts per cycle.

CNC Header

%
O1000(MAIN PROGRAM)
#701=10. (10 parts per cycle)
cutting here......

#700=#700+#701 (increment the count by 10)
M30
%

In FactoryWiz Settings

When should FactoryWiz mark a cycle as complete and begin a new cycle record?
      Macro Variable Change
If using "Macro Variable Change", "PCode Variable Change", or "PMC Bit On" for the type, what is the variable number or bit address to be used?
      700
When watching a part counter or variable, should the amount of change set the Parts Per Cycle field in FactoryWiz? Recommended value: True
      True


    • 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 ...
    • 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 ...
    • 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 ...
    • RYM DPRNT Transmitter Service

      This is a windows server that sends received DPRNT commands to FactoryWiz. This service is installed on a windows service. .Net Framework 2.0 is required.   Installing the DPRNT Service:   1.     Create a folder in the C drive called FactoryWiz ...
    • Mazak RYM DPRNT Transmitter Service

      This is a windows server that sends received DPRNT commands from the Mazak CNC to FactoryWiz. This service is installed on a windows service. .Net Framework 2.0 is required.   Installing the DPRNT Service:   1.     Create a folder in the C drive ...