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.
%
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 ...
8.7.14 Machine Macro Variables (Advanced)
In addition to logging and notifying users of state changes, FactoryWiz™ Monitoring can also be configured to monitor macro variables and log and notify users of changes to those variables. Use the Macro Variables (ADVANCED) pane to configure these ...
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 ID on Fanuc Controllers
Part ID Troubleshooting How to configure Part-ID 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 ...
8.10.2 Part Scrap Reasons
On the Part Scrap Reasons page, you may view a list of current part scrap reasons, add new, and delete reasons that an operator can use to explain why a part was scrapped. Add Part Scrap Reason Click the Add Part Scrap Reason button in the upper left ...