Macro Variable Part Counter

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


    • Related Articles

    • 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 ...
    • Configuring Part-Count 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 ...
    • Mazak RYM DPRNT Transmitter Service

      .Net Framework 2.0 is required. 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. Installing the DPRNT Service 1. Create a ...
    • RYM DPRNT Transmitter Service

      How to send DPRNT commands to FactoryWiz 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 ...