Using Macro Variables for Accurate Part Counting in CNC Operations

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, 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