Originally Posted by
falcon64
I need some help with writing a sub routine program. I have multiple parts set up in different work coordinates that all have a common feature ( threaded hole ) that I need to program. I need to drill, chamfer, and threadmill these holes and would like to write a program and separate the operations into there own program. My machine doesn't have much memory and the threadmill program gets big. I think I can figure out the drilling and chamfering part of this but the threadmilling part is whats throwing me. Some parts have a hole on zero of the part and others have multiple holes along them. Eventually I would like to be able to go in and just edit the main program for my different locations right at the control. I am using a fanuc O-M control. Sorry if this is confusing but I am not sure how else to explain it.