View Full Version : Sub program help


quadbob
06-02-2006, 04:46 AM
Good morning,
We have a Centurion 6 control on our milltronics lathe. The problem they are having is trying to make a series of grooves on an idler.Currently they have had to program each point on the each location of grooves. they haven't been able to figure out out how to make the control generate a sub program to move incremental distance and then perform the groove sub. They have had tech support from the manufacturer ,but they seem not to be able to give us an answer. Any help would be greatly appreciated.

single phase
06-12-2006, 06:33 PM
If you call a subroutine what happens? It just does not see it? Are you using conversational programming? Did you try programming in g-code?


Dave

harttool
06-15-2006, 09:38 AM
i have yet to find something i couldn't do with the conversational program. try writing a main program to position your grooves in absolute, than call a sub program for the groove that defines the groove. you can use the misc screen to switch back and forth between incremental and absolute as needed. try absolute for depth and inc for z movement to control width.

quadbob
06-22-2006, 10:35 AM
Would you please send a programming example of how you would accomplish using a sub to mill the same groove at multiple locations. Thanks

harttool
06-23-2006, 10:30 AM
remove the .doc extensions from the 2 files, 9500 is absolute for position and calling the subprogram 9501 which is the incremental program for the groove. i just wrote this as an example, the program is not complete, but it will run in verify.

quadbob
06-25-2006, 09:56 AM
I anm having trouble removing the .doc from file. What am I doing with it after that? Do I give it another extension? Thanks.

harttool
06-25-2006, 01:07 PM
i usually remove the extension, and copy the file to the correct directory in the milltronics lathe software.

dxxx
07-16-2006, 02:41 PM
I worked on a milltronics for about 3 years. Used subprograms all the time.
this was a mill not a lathe. the sub has to have a name. the sub can't have any
thing but moves in it. Also, it has to be called from the main program, then return to the main program. I think you can nest them 7 deep.