Default - Single Cycle
By default a Haas CNC will part count when it reaches M30. This is most common on milling machines or single spindle lathes.
Continuous Looping Programs with M99
Where programs are looped with an M99 and a part is made each loop, then we can enable the CNC to count on M99 by enabling setting 118. Please note, it will only increment the counter if in the main program, not a sub.
Intermittent Looping Programs and then M30
There are occasions where programs will loop and then stop, such as a bar puller cycle. In this scenario, you will only want the machine to count each loop and not on the M30. In this scenario we recommend using a macro variable. Without using a macro you will get an extra count.
Simply put the following code before the M99:
#500=#500+1.
M99
You do not have to use 500, you can use any spare variable between 500-999.
Multiple Parts Per Cycle
When you make more than one part per cycle again, we recommend using a macro variable, and incrementing that variable by the number of parts produced.
#500=#500+5.
M30
To learn about how to read Haas macro variables into the CNC, see this guide.
Once you have successfully mapped this macro variable as a part counter, you will need to set the part counter source in machinemetrics to this new source by following this guide.
NextGen Controls
If you have a Haas NGC using MTConnect, you will need to add second data source for this machine, Haas serial. Please reach out to us and we can guide on you on this. support@machinemetrics.com
Comments
0 comments
Please sign in to leave a comment.